Embodiment
The embodiment of the invention is separated the selection on date with the operation of closing the calendar board, be implemented on the calendar board the repeatedly Continuous Selection date, and convenient widespread use in productive life improves user experience.
Calendar board in the embodiment of the invention mainly refers to the calendar shown in Fig. 1 left side, comprise the full content shown in Fig. 1 and Fig. 2 etc. from the broad sense angle, being mainly used in the demonstration and the selection on date, realizing and show on screen with computer software, specifically can be a kind of control.
Referring to Fig. 3, the main method flow process of option date is as follows in the present embodiment:
Step 301: the incident of monitoring click calendar board.
Step 302: the incident according to the date on the click calendar board that listens to is determined the date that the user selects.
Step 303: the selection number of times that upgrades the date correspondence of described selection.
Step 304: determine final date of selecting of user and corresponding selection number of times by the incident of monitoring end mark on the click calendar board.
Step 301-303 can repeat, and the user is option date arbitrarily, and can repeatedly be selected same date, and the method to option date is described in detail below, and referring to shown in Figure 4, idiographic flow is as follows:
Step 401: monitor the incident of click calendar board, and listen to mouse options button (present embodiment middle finger left button) and click the incident on date on the calendar board.
Step 402: the incident of clicking the date on the calendar board according to the left button that listens to is determined the date that the user selects, and what for example determine user's click is 6.
Step 403: upgrade the selection number of times of the date correspondence of described selection, corresponding selection number of times on the 6th is added 1.
Step 404: date that explicit user is selected on described calendar board and corresponding selection number of times.
Can continuestep 401, circulation execution in step 401-404, for example determine the user clicked 4times 13 days, 1time 20 days and 2times 27 days, referring to shown in Figure 5,6 days of purple mark expression current dates are 6 and are chosen by the user, on the date that 13,20 and 27 days of Green Marker expression users choose, the selection number of times of the numeral correspondence in 13 days and the lower right corner on the 27th defaultly when the selection number of times is 1 does not show.Also can adopt modes such as other color, visual effect or list box to represent date and the corresponding selection number of times of selecting thereof.
Step 405: determine final date of selecting of user and corresponding selection number of times by the incident of monitoring end mark on the click calendar board, final selection can be referring to shown in Figure 5.Described end mark comprises the sign of closing described calendar board, referring to " * " shown in Fig. 5 upper right corner.This end mark also can comprise " determining " button and " cancellation " button etc., and Fig. 5 is not shown, and " determining " button is equivalent to " * " button, and " cancellation " button is used to cancel user's all operations and cuts out the calendar board.If the user clicked " cancellation " button, then direct process ends no longer needs execution instep 406.
Step 406: adopt final date of selecting of data-base recording user and corresponding selection number of times.Present embodiment is to be that example describes with the database, because database is a recording mode commonly used at present, present embodiment is not got rid of other recording mode.
The user may need once to select a plurality of dates, and may there be certain rule in these dates., the user can carry out repeatedly click operation if needing option date, the user selects for convenience, present embodiment adopts check box and comes user friendly operation according to several rules commonly used, and check box can be referring to " appointment " shown in Fig. 5, " connect and step on ", " very stepping on " and " idol is stepped on "." appointment " expression user can carry out the date by the click of mouse and select, and process can be referring to the flow process shown in 4; " step on ", " very stepping on " and " idol step on " all be continuous appointment, each continuous date is specified in " connect and step on " expression, the continuous odd number date is specified in " very stepping on " expression, continuous even number date is specified in " idol is stepped on " expression.Specifying continuously needs to determine continuous fate, this fate can be a default value, is 5 days as default value, also can be specified by the user, referring to " fate " shown in Figure 5 corresponding text box, the user can carry out the appointment of consecutive days by input digit in text frame.Each button, check box and text boxes etc. shown in Fig. 5 all are the interfaces that is used for the order indication, and user's click or input operation all are a kind of order indications.Referring to process shown in Figure 6, the specific implementation flow process of date system of selection that has order indication is as follows:
Step 601: the user clicks calendar board sign in the operation interface of application program, application program is called the calendar board according to this operation by function C allCal.This application program comprises the various softwares that need option date and number of times information is set.
Step 602: the calendar board is given the user by function S howCalControl with the interface display of calendar board.
Step 603: the calendar board is monitored the incident of click calendar board, and listens to the incident that the mouse options button is clicked the date on the calendar board by function G etUserInput.
Step 604: the calendar board is clicked the incident on date on the calendar board according to the left button that listens to, and by function DoUserInput the incident that listens to is handled, and determines the date that the user selects, and what for example determine user's click is 6.
Step 605: further upgrade the selection number of times of the date correspondence of described selection, corresponding selection number of times on the 6th is added 1 by function DoUserInput.
Step 606: the calendar board is by the date and the corresponding selection number of times of function S howResultsToUser explicit user selection on the interface of described calendar board, i.e. 6 days mark dates and corresponding selection number of times thereof.The calendar board returns the result of function DoUserInput to application program by function C allbackResults.The operation of this passback result also can once realize instep 609.
Step 607: the calendar board captures the fate that the user imports, as 5 days simultaneously by the type option such as " very stepping on " that function G etUserInput listens to click.The check box default option is " appointment " in the present embodiment.
Step 608: the calendar board is handled user's order indication by function DoUserInput, determines that the user has selected 5 continuous after 6 days odd number dates, is 7,9,11,13 and 15.And the selection number of times of determining these 5 date correspondences simultaneously is identical with corresponding selection number of times on the 6th.
If what the user clicked instep 607 is " idol step on ", then 5 dates instep 608, determining can comprise 6 itself, also can not comprise 6 days own, can be provided with voluntarily by the user.
Step 609: the calendar board returns the result of function DoUserInput to application program by function C allbackResults.And the calendar board can be by the date and the corresponding selection number of times of function S howResultsToUser explicit user selection on the interface of described calendar board, i.e. 7,9,11,13 and 15 days mark dates and corresponding selection number of times thereof.
If circulation execution in step 603-606 for example determines that the user has clicked 6 once more, then in the selection number of times that increases correspondence on the 6th, increase corresponding selection number of times on the 7th, 9,11,13 and 15.Step 607 and 608 also can repeat, and the user can repeatedly click check box with the change operation.
Present embodiment be with the odd number date be the explanation that example is carried out, also can be in continuous a plurality of weeks on the same day, also can be every month selected on the same day medium.
The selection on date comprises to be chosen and cancels, and the foregoing description has been described the process of choosing the date, may exist wrong choosing to wait maloperation when choosing the date, so the method for choosing the date is deleted in following introduction, referring to shown in Figure 7, idiographic flow is as follows:
Step 701: monitor the incident of click calendar board, and listen to mouse property key (present embodiment middle finger right button) and click the incident on date on the calendar board, especially click the date of having chosen.
Step 702: the incident according to the date on the right-click calendar board that listens to is determined the date that the user selects, and what for example determine user's click is 6.
Step 703: upgrade the selection number of times of the date correspondence of described selection, corresponding selection number of times on the 6th is subtracted 1.This step is represented whenever to click right button one time, will select number of times to subtract 1 accordingly, is 0 up to selecting number of times, and cancellation is to the mark on this date.
Also can as 6 days dates a mouse click right button, eject a menu by alternate manner change selection to the date, menu comprise delete 1 time, delete this date and delete all and chosen options such as date.The user can click certain option by left button and carry out deletion action, and the calendar board is handled after listening to this left button click event accordingly.If be to click right button on the unchecked date instep 701, then the menu of Dan Chuing comprises that deleting all has chosen options such as date.
Step 704: date that explicit user is selected on described calendar board and corresponding selection number of times.
Can continue step 701, circulation execution in step 701-704.
Step 705: determine final date of selecting of user and corresponding selection number of times by the incident of monitoring end mark on the click calendar board.
Instep 703, if the user has selected continuous appointment (comprising " connect and step on ", " very stepping on " and " idol is stepped on ") in check box, when then right-click reduces the selection number of times on this date, reduce the selection number of times on other relevant continuous date, and in the result who shows on the interface of calendar board after reducing.
Referring to Fig. 8, be used in the present embodiment realize that the device 800 of date selection comprisesmonitoring module 801 andprocessing module 802.
Monitor module 801 and be used to monitor the incident on date on the click calendar board, and the incident of monitoring end mark on the click calendar board.The incident that listens to comprises that left button clicks the incident on date, left button and click the incident etc. that incident, the left button of each button and menu are clicked incident, the incident on right-click date and the right button popup menu of text box and keyboard input.
Processing module 802 is used for determining the date that the user selects by the incident on date on the click calendar board that listens to, and the selecteed number of times of date of the described selection of renewal, and the selection number of times of determining final date of selecting of user and correspondence by the incident of end mark on the click calendar board that listensto.Processing module 802 can further output to result other device, as outputs todatabase 901, exports toapplication program 902 to be shown to user etc., also can carry out related with other application operating (as print system etc.).
Wherein, can be to monitoring the further refinement of function ofmodule 801 and processing module 802.Monitor module 801 and comprise that first monitors the submodule and the second monitoring submodule.First monitors submodule is used to monitor the incident on date on the click calendar board, and the incident of monitoring end mark on the click calendar board; Second monitors submodule is used for knowing user's order indication by monitoring mouse event, according to described order indication with listen to the incident on date on the click calendar board, determines the date that the user selects.User's order indication comprises the indication clicking check box and do, click indication that text box and keyboard input done etc.
Processing module 802 comprises upgrades processing sub and output processing sub.Upgrading processing sub is used for determining the date that the user selects by the incident on date on the click calendar board that listens to, and the selecteed number of times of date of the described selection of renewal, and the selection number of times of determining final date of selecting of user and correspondence by the incident of end mark on the click calendar board that listens to; The output processing sub is used for when determining the date that the user selects and upgrading the selecteed number of times of date of described selection, and date that explicit user is selected on described calendar board and corresponding selection number of times also can output to result other device.
Device 800 also can compriseinterface module 803, monitorsmodule 801 andprocessing module 802 and carries out alternately with other device by thisinterface module 803, and structure is referring to shown in Figure 9.
Device 800 (as the calendar boards) constitute a system with other device (as application program), and its structure can be referring to shown in Figure 9.
The embodiment of the invention can be applicable to several scenes, is the system manager as the user, and it can limit the operation on corresponding date by the selection to the date, as the date of choosing does not publish a newspaper or only publishes a newspaper on the date of choosing; As only play the advertisement of certain company on the date of choosing, the selection number of times on date is represented the number of times of one day playing advertisements; As only buying the train ticket of choosing the date, the selection number of times on date represents to buy the quantity of train ticket; As for personal note, the date of choosing represents that commemorative activity is arranged, and may be has meeting or friend to celebrate a birthday etc.
Be used to realize that the software of the embodiment of the invention can be stored in storage mediums such as floppy disk, hard disk, CD and flash memory.
The embodiment of the invention can repeatedly listen to the incident on date on the click calendar board by mouse is separated with the operation of closing the calendar board option date, has realized functions such as the selection on a plurality of dates and of even date multiselect.The embodiment of the invention also makes things convenient for the user to carry out the selection on a plurality of dates by the mode of check box.Accordingly, when having realized that the date chooses, the embodiment of the invention also provides the method for destruction operation, has realized the change of selecting number of times and the change of option date etc. by clicking incident by right key.These flexible operations have been arranged, and the embodiment of the invention can be used for the user facilitates efficiently in the every aspect in life and the production.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.