CN108509118A - Selection method, device, computer equipment and the storage medium of period - Google Patents

Selection method, device, computer equipment and the storage medium of period Download PDF

Info

Publication number
CN108509118A
CN108509118A CN201710977240.0A CN201710977240A CN108509118A CN 108509118 A CN108509118 A CN 108509118A CN 201710977240 A CN201710977240 A CN 201710977240A CN 108509118 A CN108509118 A CN 108509118A
Authority
CN
China
Prior art keywords
time
push button
period
initial time
line segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710977240.0A
Other languages
Chinese (zh)
Inventor
洪灿昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710977240.0A priority Critical patent/CN108509118A/en
Priority to PCT/CN2018/088384 priority patent/WO2019076054A1/en
Publication of CN108509118A publication Critical patent/CN108509118A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The embodiment of the present invention provides a kind of selection method of period, device, computer equipment and storage medium, belongs to field of computer technology.The selection method of the period includes determining that initial time, the mouse drag events are triggered by receiving the selection dragging instruction of mouse or the touch-control dragging instruction of screen by monitoring mouse drag events;The initial time is added into preset time span, obtains finish time;The period of selection is determined according to the initial time and the finish time;When receiving inquiry instruction, inquired as querying condition using the determining period.On the one hand the present invention can only need user input start time can automatically derive the corresponding period, on the other hand the present invention is when carrying out data query, if only allowing to inquire Fixed Time Interval, inquiry can be caused to malfunction when time interval of the user in input error, in this case, the present invention can also reduce the case where system mistake and occur, and can improve the stability of system.

Description

Selection method, device, computer equipment and the storage medium of period
Technical field
The present invention relates to field of computer technology, more particularly to the selection method of period, device, computer equipment and Storage medium.
Background technology
When user needs to select the time interval of a period, current conventional method is when user being needed to input this Between section initial time and end time, system determine corresponding time interval by two time points, but in some uses In scene, such as the period selected every time is fixed, such as is all ten minutes, utilizes the selecting party of existing period Case is required for user to select starting and end time at the two time points every time, and system is not smart enough to lead to user's operation It is cumbersome.
Invention content
The embodiment of the present invention provides selection method, device, computer equipment and the storage medium of period, when can improve Between section efficiency of selection.
A kind of selection method of period, this method include:
Determine that initial time, the mouse drag events are dragged by receiving the selection of mouse by monitoring mouse drag events Dynamic instruction or the touch-control dragging instruction of screen are triggered;
The initial time is added into preset time span, obtains finish time;
The period of selection is determined according to the initial time and the finish time;
When receiving inquiry instruction, inquired as querying condition using the determining period.
In one of which embodiment, should further include by monitoring the step of mouse drag events determine initial time:
The trailing displacement of virtual push button on monitor terminal screen;
The initial time is determined according to the displacement of dragging.
In one of which embodiment, the selection method of the period further includes:
The trailing distance of line segment of the virtual push button on the terminal screen is monitored, the length of the line segment is virtually pressed with this Button can trailing maximum distance it is identical;
The ratio-dependent of the line segment length initial time is accounted for according to the trailing distance of the virtual push button.
In one of which embodiment, the selection method of the period further includes:
When the trailing direction of the virtual push button and the line segment are there are when angle, which is moved along the line segment Effective distance is determined as the trailing actual range of the virtual push button;
The initial time is determined according to the actual range.
In one of which embodiment, should further include by monitoring the step of mouse drag events determine initial time:
According to the line segment option of reception, a line segment is determined;
The trailing maximum distance of the virtual push button is determined as to the length of the line segment;
The line segment is divided into several parts, and by each part mapping at the time of correspondence;
When the virtual push button is dragged, will with the virtual push button where part maps mutually at the time of be determined as this it is initial when It carves.
A kind of selection device of period, the device include:
Initial time determining module determines initial time, the mouse drag thing for passing through monitoring mouse drag events Part is triggered by receiving the selection dragging instruction of mouse or the touch-control dragging instruction of screen;
Finish time determining module obtains finish time for the initial time to be added preset time span;
Period determining module, the period for determining selection according to the initial time and the finish time;
Enquiry module, for when receiving inquiry instruction, being inquired as querying condition using the determining period.
In one of which embodiment, which includes:
Displacement monitoring unit, for the trailing displacement of virtual push button on monitor terminal screen;
Initial time determination unit, for determining the initial time according to the displacement of dragging.
In one of which embodiment, which further includes:
Line segment determination unit determines a line segment for the line segment option according to reception;
Maximum displacement determination unit, the length for the trailing maximum distance of the virtual push button to be determined as to the line segment;
Map unit, for the line segment to be divided into several parts, and by each part mapping at the time of correspondence;
Initial time determination unit, for that when the virtual push button is dragged, will set each other off with part where the virtual push button It is determined as the initial time at the time of penetrating.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, the processor realize the selection method of above-mentioned period when executing the program.
A kind of computer readable storage medium, is stored thereon with computer program, which realizes when being executed by processor Step in the selection method of above-mentioned period.
The present invention determines initial time by monitoring mouse drag events, by the way that the initial time is added the preset time Length automatically derives finish time, is the finish time that can determine user's selection by the start time and the finish time, and one Aspect does not need user and inputs two time points, and only input start time, it is corresponding to obtain can to automatically derive finish time Period, the another aspect present invention are very suitable for the fixed scene of time interval, when needing to carry out data query, if foundation The characteristics of system itself, can only input Fixed Time Interval, when user's meeting when the time interval of input error carries out data search Inquiry is caused to malfunction, in this case, the case where present invention can also reduce system mistake occurs, and can improve the stabilization of system Property.
Description of the drawings
Fig. 1 is the flow chart according to the selection method of the period of one embodiment of the present of invention;
Fig. 2 is the flow chart according to the selection method of the period of another embodiment of the present invention;
Fig. 3 is the flow chart according to the selection method of the period of another embodiment of the present invention;
Fig. 4 is the usage scenario interface schematic diagram according to one embodiment of the present of invention;
Fig. 5 is the exemplary block diagram according to the selection device of the period of one embodiment of the present of invention;
Fig. 6 is the internal structure schematic diagram according to the computer equipment of one embodiment of the present of invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is to be come with reference to Fig. 1 detailed according to the flow chart of the selection method of the period of one embodiment of the present of invention The selection method of period according to an embodiment of the invention carefully described, this method can be applied to such as tablet computer, The computer equipment of terminal device, server etc., as shown in Figure 1, this approach includes the following steps S101 to S103.
S101, initial time is determined by monitoring mouse drag events, the mouse drag events are by receiving mouse Selection dragging instruction or the touch-control dragging instruction of screen are triggered.
In this embodiment, above-mentioned mouse drag events can carry out dragging triggering by pinning left mouse button, Screen can also be touched by the finger of user and carries out dragging triggering.
In one of which embodiment, user can be by operating the input mode of mouse-keyboard in computer equipment Corresponding initial time is selected on screen, it can also be by the screen of touch computer equipment, by virtual on Touch Screen Button carries out the selection of initial time.
In one of which embodiment, the initial time selection can by all by selection in a manner of it is defeated to carry out Enter, pre-set user optionally each moment can be shown on computer screen, and by drop-down option or list can be passed through The mode hit or double-clicked is shown more.
For example according to the present embodiment usage scenario:User can carry out option date by mouse in screen, such as Year, month, day, hour, min can be selected mouse or by way of touching screen, and then completes the selection of initial time section.Wherein, User can also only part-time mouse click or touch screen by way of select, such as user can by mouse click or The mode of touch screen selects year, month, day, and hour and minute can then be selected by way of sliding the button on screen It selects, wherein position where the button and corresponding hour and minute, there are mapping relations, when the location determination of the button Corresponding hour and minute are can determine, to carry out the determination of initial time.
S102, the initial time is added into preset time span, obtains finish time.
In this step, the form that above-mentioned preset time span can be incorporated by the advance code of programmer is set Set, which can be ten minutes, a hour, week etc., be not limited herein, user can root It is configured according to actual needs.
According to the present embodiment example, the determination of above-mentioned finish time can be preset plus this by the initial time Time span determines, for example, when the initial time that the user that receive selects is on 07 07th, 2,017 17:When 18, if The preset time span is ten minutes, then it is on 07 07th, 2,017 17 that finish time, which can automatically determine,:28, do not need user Input can automatically determine finish time.
S103, the period that selection is determined according to the initial time and the finish time.
According to the present embodiment example, the period of the selection is the period of user's selection, and user passes through input Initial time automatically derives finish time.
S104, when receiving inquiry instruction, inquired as querying condition using the determining period.
The querying condition in the step is not limited to the period of user's selection in one of the embodiments, can also incite somebody to action User selects/other restrictions such as the keyword of input as querying condition, be not limited herein.
The selection method of period provided in this embodiment makes user in the selection course for carrying out the period, and user is only A starting point for needing the selection period, the step of need not twice be inputted, simplify user's operation, and this implementation Example is very suitable for the selection scene of fixed time period, such as during data query, if the characteristics of according to system only Allow user to inquire the period of specific length, when user inputs the period of other length, may result in inquiry error, The selecting party rule of the period provided through this embodiment can be very good to avoid this problem, to the effect of data query Rate.
Fig. 2 is to be come with reference to Fig. 2 detailed according to the flow chart of the selection method of the period of another embodiment of the present invention The selection method of period according to an embodiment of the invention is carefully described, as shown in Fig. 2, this method is including above-mentioned steps On on the basis of S102 to S104, above-mentioned steps S101 further comprises the steps S201 and S202:
The trailing displacement of virtual push button on S201, monitor terminal screen.
Fig. 4 is the usage scenario interface schematic diagram according to one embodiment of the present of invention, is made according to the one of the present embodiment With scene as shown in figure 4, selection for hour and minute, user can be realized by dragging corresponding button.
S202, the initial time is determined according to the displacement of dragging.
According to the present embodiment usage scenario, corresponding initial time at least two ways is determined by the displacement To realize:
One is by the virtual push button selected for hour can trailing total displacement point be divided into 24 parts, wherein often A part is corresponded with corresponding hour, for example, first part correspond to a bit, second part correspond to 2 points, Part III correspond to 3 points ..., the 24th part correspond to 24 points, the virtual push button selected when for small rests on the position of which part When in shifting, you can at the time of corresponding hour is determined as user's selection.It similarly, also can by the virtual push button selected for minute Trailing total displacement is divided into 60 parts, and can will be by first part specifically per part mapping to corresponding minute Corresponding first minute, second part correspond to second minute, Part III corresponds to third minute ..., the 60th part correspondence the 6th Ten minutes, when the virtual push button selected for minute rests in the displacement of which part, you can determine corresponding minute At the time of selection for user.Similarly, for the selection of year, month, day it is also possible that design.
It is determined the second is accounting for the percentage m of total displacement by calculating the trailing displacement of the virtual push button, it is assumed that the void The maximum unit of time of the quasi- button for selection is n, then can be obtained the initial time of corresponding selection, example by calculating m*n It is such as 1/3 when the trailing displacement of the virtual push button of calculating accounts for the percentage of total displacement, and the virtual push button is for carrying out hour When selection, then understand through time hour that the virtual push button selects to be 8 points by calculating 24/3, similarly, such as when calculating The percentage that the trailing displacement of virtual push button accounts for total displacement is 1/3, and when selection of the virtual push button for carrying out minute, then Known to 60/3 by time hour that the virtual push button selects be 20 minutes by calculating, when so far can be completed with the choosing that divides It selects.
In one of which embodiment, the selection method of the period further includes:
The trailing distance of line segment of the virtual push button on the terminal screen is monitored, the length of the line segment is virtually pressed with this Button can trailing maximum distance it is identical.
In one of which embodiment, the trailing distance of line segment of the virtual push button on the terminal screen is included in Trailing distance before the dragging step, i.e. the trailing final position of the virtual push button is apart from the initial position of the line segment The selection of distance, the line segment can be taken by being dragged from programming interface when being programmed using java script language, in determination When showing corresponding line segment, initialization time shaft length St, the time shaft length be initial time hour or minute it is optional Then the total length of time covers event to detect whether mouse is covered on button with mouse by newly-built, then passes through unlatching Mouse down displacement time is monitored to detect the distance that mouse holds button movement, and listening period axis in the process is initial Position S0 monitors the final position S1 that virtual push button is discharged again by mouse drag, completes the monitoring step accordingly, and return to (S1- S0)/St, indicate mouse drag on a timeline virtual push button movement apart from percentage.
The ratio-dependent of the line segment length initial time is accounted for according to the trailing distance of the virtual push button.
In view of percentage (the S1-S0)/St for having obtained the trailing distance of virtual push button and accounting for total displacement, it is assumed that this is virtual Maximum unit of the button for the time of selection is M, then can be obtained the initial of corresponding selection by calculating M* (S1-S0)/St Moment.
In one of which embodiment, the selection method of the period further includes:
When the trailing direction of the virtual push button and the line segment are there are when angle, which is moved along the line segment Effective distance is determined as the trailing actual range of the virtual push button.
According to the present embodiment example, the actual range in the step can determine in this way:Determine this virtually by The trailing direction of button and in the direction upper trailing displacement, determine the final position of the displacement, determine the terminal location To the vertical line of the line segment, the intersection point of the vertical line and the line segment is determined as to the end of the trailing actual range of the virtual push button Point determines the trailing actual range of the virtual push button according to starting point and the end point.
In other embodiments, when the direction of mouse drag virtual push button movement and the inconsistent direction of the line segment, no Respond the mouse drag events.
The initial time is determined according to the actual range.
According to the present embodiment example, the percentage that the trailing actual range of the virtual push button accounts for total displacement is calculated M is determined, it is assumed that maximum unit of the virtual push button for the time of selection is n, then can be obtained corresponding choosing by calculating m*n The initial time selected.
Fig. 3 is to be come with reference to Fig. 3 detailed according to the flow chart of the selection method of the period of another embodiment of the present invention The selection method of period according to an embodiment of the invention is carefully described, as shown in figure 3, this method is including above-mentioned steps On the basis of S102 to S104, above-mentioned steps S101 further comprises the steps S301 to S304.
S301, the line segment option according to reception, determine a line segment.
In one of which embodiment, programming tool is provided with several eavesdropping target, such as button, line segment, icon Etc., the determination of the line segment can by programmer when being programmed using java script language from the toolbar of programming interface In drag and take.
S302, the length that the trailing maximum distance of the virtual push button is determined as to the line segment.
In this step, when determining the corresponding line segment of display, initialization time shaft length St, which is first The total length of the hour of time beginning or the optional time of minute.
S303, the line segment is divided into several parts, and by each part mapping at the time of correspondence.
It, can trailing total displacement point by the virtual push button selected for hour according to the present embodiment example Be divided into 24 parts, wherein each part is corresponded with corresponding hour, such as first part's mapping a bit, second part Map 2 points, Part III map 3 points ..., 24 points of the 24th part mapping, what is selected when for small virtual presses When button rests in the displacement of which part, you can at the time of corresponding hour is determined as user's selection.Similarly, it will also be used for The virtual push button of minute selection can trailing total displacement be divided into 60 parts, and corresponding minute will be arrived per part mapping, had Body, can be that first part's mapping first minute, second part are mapped into second minute, Part III mapping third point Clock ..., the 60th part mapping the 60th minute, when the virtual push button selected for minute rests on the displacement of which part When upper, you can at the time of by user's selection is determined as with the minute of the part maps mutually.Similarly, for the selection of year, month, day It may be designed so that.
S304, when the virtual push button is dragged, will with the virtual push button where part maps mutually at the time of be determined as this Initial time.
It is write by java script language according to the selection method of period provided in this embodiment so that this method has Stronger compatibility can be adapted in various browsers, such as when carrying out data query by browser, can be used for The input inquiry period in browser.
Fig. 4 is the usage scenario interface schematic diagram according to one embodiment of the present of invention, is described in detail with reference to Fig. 4 Usage scenario according to an embodiment of the invention, as shown in figure 4, the initial time display area that user can be above is looked into See that current selection initial time, user can be by selecting year, month and day in the choice box of lower section, it can also be small by dragging When subsequent virtual push button select corresponding hour, select corresponding minute by dragging minute subsequent virtual push button, and can To determine the initial time of selection by clicking the confirming button of lower section, and by the way that the initial time is long plus the preset time Degree obtains the finish time.In this embodiment, such as user can be selected on 07 07th, 2017 by way of clicking, then Select at 17 points 18 minutes by dragging corresponding virtual push button, when preset time span is ten minutes, then finish time is automatic Be determined as on 07 07th, 2,017 17 points 28 minutes.
User can not pass through when the selection method of the period provided through this embodiment carries out the selection of period Keyboard with regard to the deadline section input, and carry out the period input process in only need input an initial time, terminate Moment can automatically determine, and save the step of user is when selecting the period.
According to the present embodiment example, the label of above-mentioned steps S101~S304 is not used to limit in the present embodiment The sequencing of each step, the number of each step are intended merely to allow general reference step when describing each step Label easily referred to, can also be step S303's such as before above-mentioned steps S302 can be the S303 the step of After step, as long as the logical relation that the sequence that each step executes does not influence the present embodiment indicates to be claimed in the application Within the scope of.
Fig. 5 is to be tied below according to the exemplary block diagram of the selection device of the period of one embodiment of the present of invention Fig. 5 is closed the selection device of period according to an embodiment of the invention is described in detail, as shown in figure 5, the period Selection device 10 includes
Initial time determining module 11 determines initial time, the mouse drag for passing through monitoring mouse drag events Event is triggered by receiving the selection dragging instruction of mouse or the touch-control dragging instruction of screen;
Finish time determining module 12 obtains finish time for the initial time to be added preset time span;
Period determining module 13, the period for determining selection according to the initial time and the finish time;
Enquiry module 14, for when receiving inquiry instruction, being looked into as querying condition using the determining period It askes.
According to the present embodiment example, which allows user complete to the selection of the initial time Portion is inputted by way of selection, and pre-set user optionally each moment can be shown on computer screen, and It can be drop-down option or by being shown by way of clicking or double-clicking more.
Wherein, the form that above-mentioned preset time span can be incorporated by the advance code of programmer is configured, this is pre- If time span can be ten minutes, a hour, week etc., be not limited herein, user can be according to reality Needs be configured.
According to the present embodiment example, the determination of above-mentioned finish time can be preset plus this by the initial time Time span determines, for example, when the initial time that the user that receive selects is on 07 07th, 2,017 17:When 18, if The preset time span is ten minutes, then it is on 07 07th, 2,017 17 that finish time, which can automatically determine,:28, do not need user Input can automatically determine finish time.
In one of which embodiment, which further includes:
Displacement monitoring unit, for the trailing displacement of virtual push button on monitor terminal screen;
Initial time determination unit, for determining the initial time according to the displacement of dragging.
It can be achieved according to the present embodiment example:It can be trailing by the virtual push button selected for hour Total displacement point is divided into 24 parts, wherein each part is corresponded with corresponding hour, such as first part correspond to a bit, Second part correspond to 2 points, Part III correspond to 3 points ..., the 24th part correspond to 24 points, when displacement monitoring unit When listening to the virtual push button selected for hour and resting in the displacement of which part, you can be determined as using by corresponding hour At the time of family selects.Similarly, also by the virtual push button selected for minute can trailing total displacement be divided into 60 parts, and will Can be that first part is corresponded into first minute, second point of second part correspondence specifically per part mapping to corresponding minute Clock, Part III correspond to third minute ..., the 60th part correspond to the 60th minute, when the virtual push button selected for minute When resting in the displacement of which part, the initial time determination unit corresponding minute can be determined as user selection when It carves.Similarly, for the selection of year, month, day it is also possible that design.
It can also be achieved according to another example of the present embodiment:Virtual push button is monitored by displacement monitoring unit to be dragged Dynamic displacement, and it is m to calculate the trailing displacement to account for the percentage of total displacement, it is assumed that the virtual push button is used for the time of selection Maximum unit be n, then can be obtained the initial time of corresponding selection, such as the virtual push button quilt when calculating by calculating m*n The percentage that the displacement of dragging accounts for total displacement is 1/3, and the virtual push button is for when carrying out hour selection, then passing through calculating 24/3 It understands through time hour that the virtual push button selects to be 8 points, similarly, such as when the trailing displacement of the virtual push button of calculating The percentage for accounting for total displacement is 1/3, and when selection of the virtual push button for carrying out minute, then is passed through known to 60/3 by calculating Time hour that the virtual push button selects is 20 minutes, when so far the initial time determination unit can be completed and point choosing It selects.
In one of which embodiment, above-mentioned displacement monitoring unit is specifically used for monitoring the virtual push button along the end panel The trailing distance of line segment on curtain, the length of the line segment and the virtual push button can trailing maximum distance it is identical;
Above-mentioned initial time determination unit is specifically used for accounting for the line segment length according to the trailing distance of the virtual push button The ratio-dependent initial time.
According to the present embodiment example, the selection of the line segment can be by being programmed using java script language When drag and take from programming interface, determining that initialization time shaft length St, which is first when showing corresponding line segment Then the length of the hour of time beginning or the optional time of minute cover event to detect whether mouse covers by newly-built with mouse It covers on button, then mouse down displacement time is monitored to detect the distance that mouse holds button movement, displacement prison by unlatching The initial position S0 of unit listening period axis in the process is listened, and monitors the most final position that virtual push button is discharged again by mouse drag S1 is set, line segment trailing distance of the virtual push button on the terminal screen is completed accordingly, and return to (S1-S0)/St, indicates mouse Mark on a timeline dragging virtual push button movement apart from percentage.
In view of percentage (the S1-S0)/St for having obtained the trailing displacement of virtual push button and accounting for total distance, it is assumed that this is virtual Maximum unit of the button for the time of selection is M, then initial time determination unit can be obtained by calculating M* (S1-S0)/St To the initial time of corresponding selection.
The selection device of the period further includes in one of the embodiments,:
Actual range determination unit, for when the trailing direction of the virtual push button and the line segment are there are when angle, by this The effective distance that virtual push button is moved along the line segment is determined as the trailing actual range of the virtual push button;
Above-mentioned initial time determination unit is specifically used for determining the initial time according to the actual range.
In one of which embodiment, above-mentioned initial time determining module 11 further includes:
Line segment determination unit determines a line segment for the line segment option according to reception;
Maximum displacement determination unit, the length for the trailing maximum distance of the virtual push button to be determined as to the line segment;
Map unit, for the line segment to be divided into several parts, and by each part mapping at the time of correspondence;
Initial time determination unit, for that when the virtual push button is dragged, will set each other off with part where the virtual push button It is determined as the initial time at the time of penetrating.
Wherein, the modules that the selection device of the period includes can fully or partially through software, hardware or its It combines to realize.Further, the modules in the selection device of the period can be the journey for realizing corresponding function Sequence section.
The selection device of above-mentioned period can be implemented as a kind of form of computer program, and computer program can be such as It is run on computer equipment shown in fig. 6.
A kind of computer equipment provided according to one embodiment of present invention, including memory, processor and be stored in On memory and the computer program that can run on a processor, the processor realize the above-mentioned period when executing the program Selection method.
Fig. 6 is according to the internal structure schematic diagram of the computer equipment of one embodiment of the present of invention, the computer equipment It can be server.With reference to Fig. 6, the computer equipment include processor connect by system bus, processor, input fills It sets, display screen and network interface.Wherein, which includes non-volatile memory medium and built-in storage, the computer equipment Non-volatile memory medium can storage program area and computer-readable instruction, which is performed, can So that processor executes the selection method of period of each embodiment of the application a kind of, the specific implementation process of this method can refer to The particular content of each embodiments of Fig. 1 to 4, details are not described herein.The processor of the computer equipment is calculated and is controlled for providing Ability supports the operation of entire computer equipment.Computer-readable instruction can be stored in the built-in storage, this is computer-readable When instruction is executed by processor, processor may make to execute a kind of selection method of period.The input unit of computer equipment For the input of parameters, the display screen of computer equipment for being shown, the network interface of computer equipment be used for into Row network communication.It will be understood by those skilled in the art that structure shown in Fig. 6, only with the relevant portion of application scheme The block diagram of separation structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer Equipment may include either combining certain components or with different component cloth than more or fewer components as shown in the figure It sets.
Any reference of memory, storage, database or other media may include as used herein non-volatile. Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), Electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as External cache.
The present embodiment separately provides a kind of computer readable storage medium, is stored thereon with computer program, which is located Reason device realizes each step in the selection method of above-mentioned period when executing.
According to the present embodiment example, all or part of flow in above-described embodiment method can pass through calculating Machine program is completed to instruct relevant hardware, and described program can be stored in a computer read/write memory medium, such as this hair In bright embodiment, which can be stored in the storage medium of computer system, and by least one of the computer system Processor executes, and includes the flow such as the embodiment of above-mentioned each method with realization.The storage medium includes but not limited to magnetic disc, excellent Disk, CD, read-only memory (Read-Only Memory, ROM) etc..
The present embodiment determines initial time by monitoring mouse drag events, when by the way that the initial time being added preset Between length, automatically derive finish time, be the finish time that can determine user's selection by the start time and the finish time, On the one hand it does not need user and inputs two time points, only input start time can automatically derive finish time to be corresponded to Period, the another aspect present invention is very suitable for the fixed scene of time interval, when needing to carry out data query, if according to According to Fixed Time Interval can only be inputted the characteristics of system itself, when user is when the time interval of input error carries out data search Inquiry can be caused to malfunction, in this case, the case where present invention can also reduce system mistake occurs, and can improve the steady of system It is qualitative.
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of selection method of period, which is characterized in that the method includes:
Determine that initial time, the mouse drag events refer to by receiving the selection dragging of mouse by monitoring mouse drag events It enables or the dragging instruction of the touch-control of screen is triggered;
The initial time is added into preset time span, obtains finish time;
The period of selection is determined according to the initial time and the finish time;
When receiving inquiry instruction, inquired as querying condition using the determining period.
2. according to the method described in claim 1, it is characterized in that, described determine initial time by monitoring mouse drag events The step of include:
The trailing displacement of virtual push button on monitor terminal screen;
The initial time is determined according to the displacement of dragging.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
Monitor the trailing distance of line segment of the virtual push button on the terminal screen, the length of the line segment and the void Quasi- button can trailing maximum distance it is identical;
Initial time described in the ratio-dependent of the line segment length is accounted for according to the trailing distance of the virtual push button.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
When the trailing direction of the virtual push button and the line segment are there are when angle, the virtual push button is moved along the line segment Dynamic effective distance is determined as the trailing actual range of the virtual push button;
The initial time is determined according to the actual range.
5. method according to claim 1 or 2, which is characterized in that described to be determined initially by monitoring mouse drag events The step of moment further includes:
According to the line segment option of reception, a line segment is determined;
The trailing maximum distance of the virtual push button is determined as to the length of the line segment;
The line segment is divided into several parts, and by each part mapping at the time of correspondence;
When the virtual push button is dragged, will be determined as at the time of the maps mutually of part where the virtual push button it is described initial Moment.
6. a kind of selection device of period, which is characterized in that described device includes:
Initial time determining module determines that initial time, the mouse drag events are logical for passing through monitoring mouse drag events The touch-control dragging instruction for crossing the selection dragging instruction or screen that receive mouse is triggered;
Finish time determining module obtains finish time for the initial time to be added preset time span;
Period determining module, the period for determining selection according to the initial time and the finish time;
Enquiry module, for when receiving inquiry instruction, being inquired as querying condition using the determining period.
7. device according to claim 6, which is characterized in that the initial time determining module includes:
Displacement monitoring unit, for the trailing displacement of virtual push button on monitor terminal screen;
Initial time determination unit, for determining the initial time according to the displacement of dragging.
8. the device described according to claim 6 or 7, which is characterized in that the initial time determining module further includes:
Line segment determination unit determines a line segment for the line segment option according to reception;
Maximum displacement determination unit, the length for the trailing maximum distance of the virtual push button to be determined as to the line segment;
Map unit, for the line segment to be divided into several parts, and by each part mapping at the time of correspondence;
Initial time determination unit, for that when the virtual push button is dragged, will set each other off with part where the virtual push button It is determined as the initial time at the time of penetrating.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes the time such as any one of claim 1 to 5 when executing described program The selection method of section.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is handled The step in the selection method of period as described in any one of claim 1 to 5 is realized when device executes.
CN201710977240.0A 2017-10-19 2017-10-19 Selection method, device, computer equipment and the storage medium of period Pending CN108509118A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710977240.0A CN108509118A (en) 2017-10-19 2017-10-19 Selection method, device, computer equipment and the storage medium of period
PCT/CN2018/088384 WO2019076054A1 (en) 2017-10-19 2018-05-25 Time period selection method, apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710977240.0A CN108509118A (en) 2017-10-19 2017-10-19 Selection method, device, computer equipment and the storage medium of period

Publications (1)

Publication Number Publication Date
CN108509118A true CN108509118A (en) 2018-09-07

Family

ID=63374536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710977240.0A Pending CN108509118A (en) 2017-10-19 2017-10-19 Selection method, device, computer equipment and the storage medium of period

Country Status (2)

Country Link
CN (1) CN108509118A (en)
WO (1) WO2019076054A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407920A (en) * 2018-09-27 2019-03-01 维沃移动通信有限公司 A kind of Status icons display methods, Status icons processing method and relevant device
CN112578956A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Date and time range processing method, storage medium and electronic device
CN114721561A (en) * 2022-04-06 2022-07-08 江苏安超云软件有限公司 Date interval retrieval method and application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282039A (en) * 1999-05-21 2001-01-31 索尼株式会社 Information processing method and device
CN101446884A (en) * 2008-12-19 2009-06-03 腾讯科技(深圳)有限公司 Touch screen device and scrolling method thereof
CN102004632A (en) * 2009-09-01 2011-04-06 阿里巴巴集团控股有限公司 Method and device for setting time information
CN102622155A (en) * 2011-01-26 2012-08-01 华晶科技股份有限公司 Electronic device with touch display interface and method for displaying images and diagrams in accordance with time intervals
US20130027412A1 (en) * 2010-04-14 2013-01-31 Colimote Limited Programmable controllers and schedule timers
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus
CN105302821A (en) * 2014-06-26 2016-02-03 阿里巴巴集团控股有限公司 Data query method and apparatus
CN105468246A (en) * 2014-08-29 2016-04-06 霍尼韦尔国际公司 Method for setting call forwarding time

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830928A (en) * 2012-08-14 2012-12-19 北京金山软件有限公司 Method and device for acquiring text inquiry result and mobile equipment
CN104900176B (en) * 2014-03-07 2018-10-19 腾讯科技(北京)有限公司 The display control method and device of multi-medium data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282039A (en) * 1999-05-21 2001-01-31 索尼株式会社 Information processing method and device
CN101446884A (en) * 2008-12-19 2009-06-03 腾讯科技(深圳)有限公司 Touch screen device and scrolling method thereof
CN102004632A (en) * 2009-09-01 2011-04-06 阿里巴巴集团控股有限公司 Method and device for setting time information
US20130027412A1 (en) * 2010-04-14 2013-01-31 Colimote Limited Programmable controllers and schedule timers
CN102622155A (en) * 2011-01-26 2012-08-01 华晶科技股份有限公司 Electronic device with touch display interface and method for displaying images and diagrams in accordance with time intervals
CN105302821A (en) * 2014-06-26 2016-02-03 阿里巴巴集团控股有限公司 Data query method and apparatus
CN105468246A (en) * 2014-08-29 2016-04-06 霍尼韦尔国际公司 Method for setting call forwarding time
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407920A (en) * 2018-09-27 2019-03-01 维沃移动通信有限公司 A kind of Status icons display methods, Status icons processing method and relevant device
CN109407920B (en) * 2018-09-27 2021-05-25 维沃移动通信有限公司 Status icon display method, status icon processing method and related equipment
CN112578956A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Date and time range processing method, storage medium and electronic device
CN114721561A (en) * 2022-04-06 2022-07-08 江苏安超云软件有限公司 Date interval retrieval method and application

Also Published As

Publication number Publication date
WO2019076054A1 (en) 2019-04-25

Similar Documents

Publication Publication Date Title
KR101781129B1 (en) Terminal device for downloading and installing an application and method thereof
CN105227626B (en) Content pushing method and device and terminal
CN106125984B (en) A kind of the touch-control processing method and mobile terminal of mobile terminal
KR101934998B1 (en) Method and system for providing user interface to a plurality of applications
CN107193750A (en) A kind of script method for recording and device
CN110333818A (en) Processing method, device, equipment and the storage medium of split screen display available
CN108509118A (en) Selection method, device, computer equipment and the storage medium of period
CN104238897A (en) Menu item displaying method and device
CN109615343A (en) Electronic contract generation method, device, computer equipment and storage medium
US20140325423A1 (en) Showing relationships between tasks in a gantt chart
KR20100083777A (en) Summarizing portlet usage captured responsive to trigger events in a portal page
CN106778389B (en) A kind of loss detection method and mobile terminal of mobile terminal
CN102855068A (en) Interface operation control method and device and electronic equipment
CN106033507A (en) Screen unlocking methods and devices for touch screen devices
US10761717B2 (en) Controlling application launch
CN108234744A (en) A kind of PUSH message management method and mobile terminal
CN109542719A (en) Thread state monitoring method and device, computer equipment and storage medium
CN110084486A (en) A kind of method for managing resource and device
CN105094669A (en) Method and device for switching multiple tab pages of browser
CN105279431A (en) Method, device, and system for recording operation information in mobile device
CN103914288B (en) The method for judging control state
CN110780830A (en) Household equipment display method and device, terminal and readable storage medium
CN107357485A (en) A kind of application program discharging method and electronic equipment
CN105137930A (en) Method and a device are disclosed for managing and configuring field devices in an automation installation with a configuration tool
CN107832337A (en) The method, apparatus and equipment that the page returns

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180907