Embodiment
The embodiment of the invention provides a kind of method and device that disposes p.m.entry, is used for the p.m.entry parameter that dynamic configuration system produces, so that the relevant item of the generation of p.m.entry and prompting can dynamic-configuration.Below described in detail respectively.
See also Fig. 1, an embodiment of the method for the configuration p.m.entry in the embodiment of the invention comprises:
101, the p.m.entry parameter that presets in the reading database;
From database, read the p.m.entry parameter that sets in advance, this p.m.entry parameter comprises that timing produces switch parameter, the timing prompting switch parameter, produce the time parameter of p.m.entry, produce the mode parameter of p.m.entry, the time parameter of prompting p.m.entry, the mode parameter of prompting p.m.entry, the number of times parameter of prompting p.m.entry can also comprise the p.m.entry type parameter.
Wherein, regularly produce the time that switch parameter represents that timing produces switch open; The timing prompting switch parameter represents the time of timing prompting switch open; The time parameter that produces p.m.entry represents when p.m.entry produces; The mode Parametric Representation p.m.entry that produces p.m.entry produces in which way, is divided into Static and dynamic, and the mode of Dynamic Generation p.m.entry is that system generates automatically, and the static mode that produces p.m.entry is manual creation; The time parameter of prompting p.m.entry represents when prompting user is checked p.m.entry; The mode Parametric Representation of prompting p.m.entry is by the p.m.entry prompting user of which kind of form, for example check that by message box demonstration p.m.entry, mail prompting user p.m.entry, weak point cease prompting user and check p.m.entry, different according to prompting mode, the prompting form is also slightly variant, if note or mail, suggestion content can add individualized signature; The number of times Parametric Representation of prompting p.m.entry is done the how many times prompting for a p.m.entry, and the p.m.entry type parameter represents that p.m.entry is system's p.m.entry or user's p.m.entry.
102, produce switch parameter according to the timing in the p.m.entry parameter, judge whether to start regularly generation task;
According to regularly producing switch parameter, judge whether to start regularly generation task, regularly produce switch parameter and represent regularly to produce the time of switch open, start regularly generation task if be judged as, then execution in step 103.
103, start regularly generation task when being judged as, then the time parameter according to the mode parameter that produces p.m.entry and generation p.m.entry generates p.m.entry;
According to regularly producing switch parameter, be judged as startup timing generation task, then carry out the p.m.entry task that produces, according to the time parameter generation p.m.entry of the mode parameter that produces p.m.entry and generation p.m.entry.The user reaches the time of predetermined switch open in using the process of product, regularly the generation task in case unusual or unpredictable event occurs, will produce p.m.entry for the user with the operation of poll supervisory user according to the form of making an appointment.
104, according to the timing prompting switch parameter in the p.m.entry parameter, judge whether to start the timing prompting task;
Timing prompting switch parameter according in the p.m.entry parameter judges whether to start the timing prompting task, and the timing prompting switch parameter represents the time of timing prompting switch open, starts regularly generation task if be judged as, and then execution in step 105.
105, when being judged as startup timing prompting task, then according to the mode parameter of prompting p.m.entry, point out the time parameter of p.m.entry, and the number of times parameter of prompting p.m.entry is pointed out the p.m.entry that generates.
According to the timing prompting switch parameter, be judged as and start the timing prompting task, then carry out prompting p.m.entry task, mode parameter according to the prompting p.m.entry, point out the time parameter of p.m.entry, and point out the number of times parameter of p.m.entry to point out the p.m.entry that generates, as: can check that p.m.entry, weak point cease prompting user and check p.m.entry by message box demonstration p.m.entry, mail prompting user, 10 promptings in the morning of every day are reminded 5 times altogether.
Need to prove that regularly generation task and timing prompting task are the thread that pre-defines, the two does not have direct sequencing relation, and is independent of each other.The user is in the process of the system of use; regularly the generation task is with the operation of poll supervisory user; unusual or unpredictable event appears; system will produce p.m.entry and preservation for the user according to the form of making an appointment; start simultaneously the timing prompting task; the timing prompting task is shown to the user according to the prompting mode of making an appointment with p.m.entry, in order to immediately notify the user to check p.m.entry.
In the embodiment of the invention, the p.m.entry parameter that presets in the reading database, produce switch parameter according to the timing in the p.m.entry parameter, judge whether to start regularly generation task, if, then the time parameter according to the mode parameter that produces p.m.entry and generation p.m.entry generates p.m.entry, according to the timing prompting switch parameter in the p.m.entry parameter, judge whether to start the timing prompting task, if, then according to the mode parameter of pointing out p.m.entry, according to the p.m.entry parameter control system that presets when and the p.m.entry that produces which kind of form the time parameter of prompting p.m.entry, and the p.m.entry that generates of the number of times parameter prompting of prompting p.m.entry can be, simultaneously when and with which kind of form prompting user control system checks p.m.entry, thereby realizes the generation of p.m.entry and the dynamic-configuration of prompting.
For ease of understanding, the below describes the method for the configuration p.m.entry in the embodiment of the invention in detail with another embodiment, sees also Fig. 2, and another embodiment of the method for the configuration p.m.entry in the embodiment of the invention comprises:
201, with the systematic parameter that presets, be kept in the database;
In the present embodiment, at first open p.m.entry the interface is set, carry out necessary system parameter setting, and parameter is arranged the result be saved in the database, this database can arrange storer outside the system for p.m.entry, in the whole process of configuration p.m.entry, p.m.entry arranges system and extract data from this storer.
202, the p.m.entry parameter that presets in the reading database;
The p.m.entry parameter that from storer, arranges in the read step 201, this p.m.entry parameter comprises that timing produces switch parameter, the timing prompting switch parameter, produce the time parameter of p.m.entry, produce the mode parameter of p.m.entry, the time parameter of prompting p.m.entry, the mode parameter of prompting p.m.entry, the number of times parameter of prompting p.m.entry can also comprise the p.m.entry type parameter.
Wherein, regularly produce the time that switch parameter represents that timing produces switch open; The timing prompting switch parameter represents the time of timing prompting switch open; The time parameter that produces p.m.entry represents when p.m.entry produces; The mode Parametric Representation p.m.entry that produces p.m.entry produces in which way, is divided into Static and dynamic, and the mode of Dynamic Generation p.m.entry is that system generates automatically, and the static mode that produces p.m.entry is manual creation; The time parameter of prompting p.m.entry represents when prompting user is checked p.m.entry; The mode Parametric Representation of prompting p.m.entry is by the p.m.entry prompting user of which kind of form, for example check that by message box demonstration p.m.entry, mail prompting user p.m.entry, weak point cease prompting user and check p.m.entry, different according to prompting mode, the prompting form is also slightly variant, if note or mail, suggestion content can add individualized signature; The number of times Parametric Representation of prompting p.m.entry is done the how many times prompting for a p.m.entry, and the p.m.entry type parameter represents that p.m.entry is system's p.m.entry or user's p.m.entry.
203, produce switch parameter according to the timing in the p.m.entry parameter, judge whether to start regularly generation task;
According to regularly producing switch parameter, judge whether to start regularly generation task, regularly produce switch parameter and represent regularly to produce the time of switch open, start regularly generation task if be judged as, then execution in step 204.
If 204 are judged as regularly generation task of startup, then judge according to the mode parameter that produces p.m.entry whether the mode that produces p.m.entry is the Dynamic Generation mode;
Start when regularly producing task when being judged as, then judge according to the mode parameter that produces p.m.entry whether the mode that produces p.m.entry is the Dynamic Generation mode.Produce p.m.entry dual mode is arranged: Dynamic Generation mode and static producing method, the mode of Dynamic Generation p.m.entry are that system generates automatically, and the static mode that produces p.m.entry is manual creation.
If judge that the mode that produces p.m.entry is the Dynamic Generation mode, then execution in step 205.
If judge that the mode that produces p.m.entry is static producing method, then by user's manual creation p.m.entry, by behind the manual creation p.m.entry, then need not restart regularly generation task when.
If 205 modes that produce p.m.entry are the Dynamic Generation mode, then generate p.m.entry according to the time parameter that produces p.m.entry, and the p.m.entry that generates is kept in the database;
If producing the mode of p.m.entry is the Dynamic Generation mode, the correlation parameter that then generates according to p.m.entry generates p.m.entry, generate p.m.entry such as the time parameter according to the mode parameter that produces p.m.entry and generation p.m.entry, and the p.m.entry that generates is kept in the database.
206, according to the timing prompting switch parameter in the p.m.entry parameter, judge whether to start the timing prompting task;
Timing prompting switch parameter according in the p.m.entry parameter judges whether to start the timing prompting task, and the timing prompting switch parameter represents the time of timing prompting switch open, starts regularly generation task if be judged as, and then execution in step 207.
If 207 are judged as startup timing prompting task, the p.m.entry that has then generated in the reading database, and according to the mode parameter of pointing out p.m.entry, the time parameter of prompting p.m.entry, and the number of times parameter of prompting p.m.entry is pointed out the p.m.entry that has generated.
Start the timing prompting task, the p.m.entry that has then generated in the reading database, regularly with the prompting mode (mail of p.m.entry to pre-set, note or message box) be prompted to the user, user selection is clicked and is checked, write-back has read identification information simultaneously, when the p.m.entry prompting number of times parameter that arranges is 1, system receives the identification information that has read, then stop to point out the p.m.entry that has generated, the p.m.entry that has read will can not reresented, when the p.m.entry prompting number of times parameter that arranges greater than 1 the time, even receive the identification information that has read, system also can according to p.m.entry point out the number of times parameter again or repeatedly prompting user check p.m.entry.
Stock's early warning p.m.entry in certain warehouse for example when turnover goods, exceeds when setting in advance the safety inventory scope when kinds of goods advance shipment amount, for prompting user is processed as early as possible, and a p.m.entry that can produce.At first, the user opens the p.m.entry system interface is set, and the p.m.entry parameters is set, prompt time is set to the point in afternoons four of every day, and the number of times of prompting is 10 times, and prompting mode is the message box, producing method is Dynamic Generation, opens the prompting task timer, and the result will be set preserve.In kinds of goods data module, set stock's upper limit, stock's lower limit.During shipment, if these kinds of goods stock exceeds stock's safe range, at this moment can produce at once a memorandum information and be saved in the database, content shape is as " the XX kinds of goods, the shortage of stock please in time replenishes! ".And in the desktop lower right corner with the mode prompting user of message box.Concrete form can be as shown in Figure 3.
In the embodiment of the invention, with the systematic parameter that presets, be kept in the database, the p.m.entry parameter that presets in the reading database, produce switch parameter according to the timing in the p.m.entry parameter, judge whether to start regularly generation task, start regularly generation task if be judged as, then judge according to the mode parameter that produces p.m.entry whether the mode that produces p.m.entry is the Dynamic Generation mode, if not, then by user's manual creation p.m.entry, by behind the manual creation p.m.entry, then need not restart regularly generation task when; If, then generate p.m.entry, start simultaneously the timing prompting task, if the p.m.entry that arranges prompting number of times parameter is 1, system receives the identification information that the user has read, then stop to point out the p.m.entry that has generated, by judgement and the corresponding execution result of some links, can realize flexibly generation and the prompting of dynamic-configuration p.m.entry.
The below introduces the device of the configuration p.m.entry in the embodiment of the invention, sees also Fig. 4, and an embodiment of the device of the configuration p.m.entry in the embodiment of the invention comprises:
Read module 401, be used for the p.m.entry parameter that reading database presets, this p.m.entry parameter comprises that timing produces switch parameter, the timing prompting switch parameter, produce the time parameter of p.m.entry, produce the mode parameter of p.m.entry, the time parameter of prompting p.m.entry, the mode parameter of prompting p.m.entry, the number of times parameter (referring to step 101) of prompting p.m.entry;
Judge module 402 is used for judging whether to start regularly generation task according to regularly producing switch parameter, also is used for according to the timing prompting switch parameter, judges whether to start timing prompting task (referring to step 102,104);
Generation module 403 starts regularly generation task if be used for being judged as, and then the time parameter according to the mode parameter that produces p.m.entry and generation p.m.entry generates p.m.entry (referring to step 103);
Reminding module 404 if start the timing prompting task for being judged as, then according to the mode parameter of prompting p.m.entry, point out the time parameter of p.m.entry, and the number of times parameter of prompting p.m.entry is pointed out the p.m.entry (referring to step 104) that generates.
More than the specific implementation process of each module, see also aforementioned associated description content embodiment illustrated in fig. 1, repeat no more herein.
In the embodiment of the invention, the p.m.entry parameter that presets in read module 401 reading databases, this p.m.entry parameter comprises that timing produces switch parameter, the timing prompting switch parameter, produce the time parameter of p.m.entry, produce the mode parameter of p.m.entry, the time parameter of prompting p.m.entry, the mode parameter of prompting p.m.entry, the number of times parameter of prompting p.m.entry, judge module 402 is according to regularly producing switch parameter, judge whether to start regularly generation task, start regularly generation task if be judged as, then generation module 403 generates p.m.entry according to the time parameter of the mode parameter that produces p.m.entry and generation p.m.entry, judge module 402 is according to the timing prompting switch parameter, judge whether to start the timing prompting task, start the timing prompting task if be judged as, then reminding module 404 is according to the mode parameter of prompting p.m.entry, the time parameter of prompting p.m.entry, and the number of times parameter of prompting p.m.entry is pointed out the p.m.entry that generates, so far, can be according to the p.m.entry parameter control system that presets when and the p.m.entry that produces which kind of form, simultaneously when and with which kind of form prompting user control system checks p.m.entry, thereby realizes the generation of p.m.entry and the dynamic-configuration of prompting.
For ease of understanding, the below describes the device of the configuration p.m.entry in the embodiment of the invention in detail with another embodiment, sees also Fig. 5, and another embodiment of the device of the configuration p.m.entry in the embodiment of the invention comprises:
Read module 501, be used for the p.m.entry parameter that reading database presets, this p.m.entry parameter comprises that timing produces switch parameter, timing prompting switch parameter, the time parameter of generation p.m.entry, produce the mode parameter of p.m.entry, the time parameter of prompting p.m.entry, the mode parameter of prompting p.m.entry, the number of times parameter of prompting p.m.entry, if also be used for being judged as and start timing prompting task, the p.m.entry that has then generated in the reading database (referring to step 202,207);
Judge module 502, be used for according to regularly producing switch parameter, judge whether to start regularly generation task, start regularly generation task if be judged as, then judge according to the mode parameter that produces p.m.entry whether the mode that produces p.m.entry is the Dynamic Generation mode, also be used for according to the timing prompting switch parameter, judge whether to start timing prompting task (referring to step 203,204,206);
Generation module 503 is the Dynamic Generation mode if be used for the mode of generation p.m.entry, and then the time parameter according to the mode parameter that produces p.m.entry and generation p.m.entry generates p.m.entry (referring to step 205);
Reminding module 504 if start the timing prompting task for being judged as, then according to the mode parameter of prompting p.m.entry, point out the time parameter of p.m.entry, and the number of times parameter of prompting p.m.entry is pointed out the p.m.entry (referring to step 207) that generates.
Need explanation the time, the configuration p.m.entry device in the embodiment of the invention also comprises:
Preserve module 505, be used for the systematic parameter that presets is kept at database, also be used for the p.m.entry that generates is kept at database (referring to step 201,205).
More than the specific implementation process of each module, see also earlier figures 1 and associated description content embodiment illustrated in fig. 2, repeat no more herein.
In the embodiment of the invention, the user opens p.m.entry the interface is set, carry out necessary system parameter setting, this p.m.entry parameter comprises that timing produces switch parameter, the timing prompting switch parameter, produce the time parameter of p.m.entry, produce the mode parameter of p.m.entry, the time parameter of prompting p.m.entry, the mode parameter of prompting p.m.entry, the number of times parameter of prompting p.m.entry and the type parameter of p.m.entry, preserving module 505 is kept at these systematic parameters that preset in the database, these p.m.entry parameters that preset in read module 501 reading databases, judge module 502 produces switch parameter according to the timing in the p.m.entry parameter, judge whether to start regularly generation task, start regularly generation task if be judged as, then judge according to the mode parameter that produces p.m.entry whether the mode that produces p.m.entry is the Dynamic Generation mode, if producing the mode of p.m.entry is not the Dynamic Generation mode, then by user's manual creation p.m.entry, after passing through the manual creation p.m.entry, then need not restart regularly generation task, if producing the mode of p.m.entry is the Dynamic Generation mode, then generation module 503 generates p.m.entry according to the time parameter of the mode parameter that produces p.m.entry and generation p.m.entry, and by preserving module 505 p.m.entry that generates is kept in the database, judge module 502 is according to the timing prompting switch parameter, judge whether to start the timing prompting task, start the timing prompting task if be judged as, then reminding module 504 reads p.m.entry from storer, mode parameter according to the prompting p.m.entry, the time parameter of prompting p.m.entry, and point out the number of times parameter of p.m.entry to point out the p.m.entry that generates, can realize flexibly generation and the prompting of dynamic-configuration p.m.entry.
It will be appreciated by those skilled in the art that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
More than a kind of method and device that disposes p.m.entry provided by the present invention is described in detail, for those skilled in the art, thought according to the embodiment of the invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.