CN106708540A - General time selection method - Google Patents

General time selection method Download PDF

Info

Publication number
CN106708540A
CN106708540A CN201710071680.XA CN201710071680A CN106708540A CN 106708540 A CN106708540 A CN 106708540A CN 201710071680 A CN201710071680 A CN 201710071680A CN 106708540 A CN106708540 A CN 106708540A
Authority
CN
China
Prior art keywords
time
selection
interface
generalized
granularity
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.)
Granted
Application number
CN201710071680.XA
Other languages
Chinese (zh)
Other versions
CN106708540B (en
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.)
Beijing Tianyuan Creative Technology Ltd
Original Assignee
Beijing Tianyuan Creative Technology 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 Beijing Tianyuan Creative Technology Ltd filed Critical Beijing Tianyuan Creative Technology Ltd
Priority to CN201710071680.XA priority Critical patent/CN106708540B/en
Publication of CN106708540A publication Critical patent/CN106708540A/en
Application granted granted Critical
Publication of CN106708540B publication Critical patent/CN106708540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the invention provides a general time selection method. The general time selection method includes setting multiple selectable time granularities; if the action that a user triggers to confirm completing time granularity selection is detected, returning a time selection result to a third-party component invoking general time. The general time selection method is capable of improving time selection flexibility and extendibility of the general time component.

Description

A kind of generalized time system of selection
Technical field
The present embodiments relate to common software technical field, and in particular to a kind of generalized time system of selection.
Background technology
With developing rapidly for software development technique, mass data is generated, and people are more and more sensitive to data, more More to pay close attention to, the data of interest in order to more accurately screening, showing people, systems soft ware has for the selection of time Requirement higher, is no longer satisfied with Conventional temporal component day, the selection of hour granularity.
But, because function required time selection demand different in system is different, using traditional development scheme, Need to each function, each way carries out overlapping development, causes system code redundancy, it is difficult to transform, and practicality is not high Problem.
Therefore, flexibility, the scalability of generalized time selection how are improved, as the problem that need be solved.
The content of the invention
For the problem that prior art is present, the embodiment of the present invention provides a kind of generalized time system of selection, methods described Including:
Multiple optional time granularities are set;
If detecting user's triggering to confirm to complete the action of the time granularity selection, selection of time result is returned to Transfer third party's component of the generalized time.
Generalized time system of selection provided in an embodiment of the present invention, it is possible to increase generalized time component selection time it is flexible Property, scalability.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of embodiment of the present invention generalized time system of selection;
Fig. 2 is embodiment of the present invention continuous time selection interface sectional drawing;
Fig. 3 is embodiment of the present invention discrete time selection interface sectional drawing;
Fig. 4 is embodiment of the present invention cycle time selection interface sectional drawing;
Fig. 5 is device entity structural representation provided in an embodiment of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of embodiment of the present invention generalized time system of selection, as shown in figure 1, the embodiment of the present invention The generalized time system of selection of offer, comprises the following steps:
S1:Multiple optional time granularities are set.
Specifically, device sets multiple optional time granularities.It should be noted that:Time granularity can include:Hour, Date, week, the moon, year, busy.But do not make specific restriction.
S2:If detecting user's triggering to confirm to complete the action of the time granularity selection, selection of time result is returned Return to the third party's component for transferring the generalized time.
If specifically, device detects user's triggering to confirm to complete the action of the time granularity selection, will select the time Select result and return to the third party's component for transferring the generalized time.It should be noted that:Confirm to complete the time granularity choosing The action selected can be realized by clicking on " confirmation " button.After clicking on " confirmation " button, then selection of time result is returned to Third party's component of the generalized time is transferred, selection of time result can be understood as:Result after objectification, it is specific as follows:
{
period:string,
timeType:string,
timeList:[Array],
isBusyTime:boolean,
text:string
}
Wherein, period:Time granularity, enumerated value:[3:Hour/busy, 8:My god, 9:Week, a:Month].
When isBusyTime is true, busy is represented.
timeType:Time type, enumerated value:['COND':Continuous time, ' DSET':Discrete time], in selection of time The selection of device " continuous " Shipping Options Page is COND, and " cycle/discrete " is DSET, and busy is fixed as DSET.
timeList:Time point list.It is an array, the COND times store sart point in time and end time point, DSET times storage time point.Hour is accurate to minute, and busy date and busy type # are split, and multiple busy are divided with ", " Cut.Such as 2016-03-03#1,3 represents the day busy of on March 3rd, 2016 and early busy.
isBusyTime:Whether busy.Enumerate [true, false], busy is [1 in enumerating for timeList:Its busy, 3:Early busy, 4:Late busy].
text:The text of time gate.
Specifically, table 1 is initiation parameter defines table,
Table 1
Table 2 is that returning result parameter defines table,
Table 2
By the object approach for initializing, the flexible configuration of method presentation mode is realized, joined by the initialization for defining Whether number, can freely configure needs that time granularity is presented, it is necessary to the time granularity option for presenting is, it is necessary to the selection of time for presenting Initialization value of type and each time type etc..
Generalized time system of selection provided in an embodiment of the present invention, it is possible to increase generalized time selection flexibility, can expand Malleability.
On the basis of above-described embodiment, multiple optional time granularities, the time are set on selection of time interface Selection interface includes:Continuous time selection interface, discrete time selection interface and cycle time selection interface.Specifically, described Selection of time interface includes:Continuous time selection interface, discrete time selection interface and cycle time selection interface.Each time Selection interface is provided with multiple optional time granularities;Time granularity can include:Hour, date, week, the moon, year, busy.
It is " hour " with time granularity selection, and selection of time interface is to be said as a example by " continuous time selection interface " It is bright:Fig. 2 is embodiment of the present invention continuous time selection interface sectional drawing, as shown in Fig. 2 can be cut by clicking on " continuous " label Continuous time selection interface is changed to, the time granularity selected in the interface is date and hour, continuous time selection interface sets Put including initial value when 2016-12-26 and 9 (in corresponding diagram 2) before word " extremely " and end value (word in corresponding diagram 2 During 2016-12-26 and 9 behind " extremely "), initial value can include the time started (in corresponding diagram 2 before word " extremely " 2016-12-26), sart point in time (in corresponding diagram 2 before word " extremely " 9 when);End value can include that the end time is (right Answer the 2016-12-26 behind word " extremely " in Fig. 2), end time point (in corresponding diagram 2 behind word " extremely " 9 when) is when starting Between and the end time be defaulted as current date, sart point in time is defaulted as current point in time and pushes away forward one hour, end time point Current point in time is defaulted as, the initial value and end value of the above can be adjusted on demand.When cancelling button specifically for cancelling Between select operation, reset button specifically for selection of time reset into above-mentioned default value again, time granularity is " day Phase " can by extend combobox add panel set, time granularity be " moment ", " week ", " moon ", " year " can be by drop-down Frame is set.
With time granularity selection as hour, and selection of time interface be discrete time selection interface as a example by illustrate: Fig. 3 is embodiment of the present invention discrete time selection interface sectional drawing, as shown in figure 3, in discrete time selection interface, the day of acquiescence Phase is the same day, be additionally arranged the shortcut " the previous day " corresponding with current time granularity (this example time granularity is " date "), " after One day " time granularity of (this example time granularity be " date ") selection is date and hour, because discrete selection of time is more, More hour Option Box can be set, and discrete time point can be presented by tabular form, multiselect is supported, and will select The content that presents of discrete time point be shown in white space in Fig. 3 after " having selected the time " of lower section.Full choosing is additionally provided with, instead The operations such as choosing, removing, are easy to fast select discrete time point.
With time granularity selection as hour, and selection of time interface be cycle time selection interface as a example by illustrate: Fig. 4 is embodiment of the present invention cycle time selection interface sectional drawing, as shown in figure 4, in cycle time selection interface, in above-mentioned company On the basis of continuous selection of time interface and discrete time selection interface, be also additionally arranged by week selection mode, can flexibly according to Select corresponding time point week, cycle time point can be presented by tabular form, support multiselect.Above is pair when Between granularity be " hour " and respectively be directed to continuous time selection interface, discrete time selection interface and cycle time selection interface As a example by the detailed description that carries out, be to time granularity " date ", " week ", to refer to time granularity in " moon ", " year " be " hour " Discuss, repeat no more.
Generalized time system of selection provided in an embodiment of the present invention, the time is set by different selection of time interfaces Granularity, it is possible to increase the flexibility of selection time, scalability.
On the basis of above-described embodiment, the continuous time selection interface, the discrete time selection interface and described Cycle time selection interface is respectively arranged with the label of correspondence title, if detecting the dynamic of the label of user's triggering correspondence title Make, then switch the continuous time selection interface, the discrete time selection interface and the cycle time selection interface.Need What is illustrated is:Continuous time selection interface is provided with " continuous " label, discrete time selection interface and is provided with " discrete " label, week Phase selection of time interface is provided with " cycle " label, if device detects the action of the label of user's triggering correspondence title, cuts Change the continuous time selection interface, the discrete time selection interface and the cycle time selection interface.
Generalized time system of selection provided in an embodiment of the present invention, changes different time selection interface lateral incision, further fast The selection of generalized time is realized promptly.
On the basis of above-described embodiment, the time granularity includes hour, date, week, the moon, year and busy, wherein, institute Stating busy includes day busy, early busy and late busy.Specifically, day busy, early busy and late busy can be according to actual conditions Different busy periods are independently set, and different busy periods can also independently to that there should be different hours sections.Its busy, morning are busy When busy Option Box corresponding with late busy can be presented by tabular form, support multiselect, illustrate and refer to Embodiment is stated, is repeated no more.
Generalized time system of selection provided in an embodiment of the present invention, time granularity is defined by various dimensions, is further carried Flexibility, the scalability of generalized time selection high.
On the basis of above-described embodiment, it is additionally provided with the selection of time interface:Cancel button, for cancelling the time The operation of selection;Button is reset, for selection of time to reset to defaults again.Illustrate and refer to above-described embodiment, Repeat no more.
Generalized time system of selection provided in an embodiment of the present invention, button, replacement button are cancelled by setting, and are further carried Flexibility, the scalability of generalized time selection high.
On the basis of above-described embodiment, the continuous time selection interface is provided with beginning for different time granularity Value, end value, the initial value or the end value distinguish the corresponding date by extend combobox add panel set, it is described Initial value or the end value distinguish corresponding moment, week, the moon, year by combobox setting.Above-described embodiment is refer to, no longer Repeat.
Generalized time system of selection provided in an embodiment of the present invention, by setting the option in continuous time selection interface, Further improve flexibility, the scalability of generalized time selection.
On the basis of above-described embodiment, it is additionally provided with accordingly for discrete time selection interface described in different time granularity Key swift to operate.Specifically, so that time granularity is as date as an example:The date of acquiescence is the same day, is additionally arranged and current time grain Spend corresponding shortcut " the previous day " (this example time granularity is " date "), " one day after ", (this example time granularity was " day Phase ").
Generalized time system of selection provided in an embodiment of the present invention is fast by the operation for further setting up discrete selection interface Prompt key option, further improves flexibility, the scalability of generalized time selection.
On the basis of above-described embodiment, for different time granularity be provided with accordingly can discrete selection time option The white space of the selected Option Box content of frame and in real time presentation.Above-described embodiment is refer to, is repeated no more.
Generalized time system of selection provided in an embodiment of the present invention, by the option for further setting up discrete selection time Frame, further improves flexibility, the scalability of generalized time selection.
On the basis of above-described embodiment, it is provided with accordingly for cycle time selection interface described in different time granularity Can cycle selection time Option Box.Above-described embodiment is refer to, is repeated no more.
Generalized time system of selection provided in an embodiment of the present invention, by the option for further setting up cycle selection time Frame, further improves flexibility, the scalability of generalized time selection.
On the basis of above-described embodiment, being provided with for different time granularity can enter the Option Box of term selection.Please With reference to above-described embodiment, repeat no more.
Generalized time system of selection provided in an embodiment of the present invention, the option of term selection can be entered by further setting up Frame, further improves flexibility, the scalability of generalized time selection.
Fig. 5 is device entity structural representation provided in an embodiment of the present invention, as shown in figure 5, described device includes:Treatment Device (processor) 501, memory (memory) 502 and bus 503;
Wherein, the processor 501, memory 502 complete mutual communication by bus 503;
The processor 501 is used to call the programmed instruction in the memory 502, to perform above-mentioned each method embodiment The method for being provided, for example, include:Multiple optional time granularities are set;If detecting user's triggering to confirm to complete the time The action of granularity selection, then selection of time result is returned to the third party's component for transferring the generalized time.
The present embodiment discloses a kind of computer program product, and the computer program product includes storage in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program includes programmed instruction, when described program instruction is calculated When machine is performed, computer is able to carry out the method that above-mentioned each method embodiment is provided, for example, include:When setting multiple optional Between granularity;If detecting user's triggering to confirm to complete the action of the time granularity selection, selection of time result is returned to Transfer third party's component of the generalized time.
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage medium storing program for executing Storage computer instruction, the computer instruction makes the computer perform the method that above-mentioned each method embodiment is provided, example Such as include:Multiple optional time granularities are set;If detecting user's triggering to confirm to complete the action of the time granularity selection, Selection of time result is then returned to the third party's component for transferring the generalized time.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The embodiments such as device described above are only schematical, wherein the unit illustrated as separating component Can be or may not be physically separate, the part shown as unit can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware.Based on such understanding, on Stating the part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, should Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Order is used to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs each implementation Method described in some parts of example or embodiment.
Finally it should be noted that:Various embodiments above is only used to illustrate the technical scheme of embodiments of the invention, rather than right Its limitation;Although being described in detail to embodiments of the invention with reference to foregoing embodiments, the ordinary skill of this area Personnel should be understood:It can still modify to the technical scheme described in foregoing embodiments, or to which part Or all technical characteristic carries out equivalent;And these modifications or replacement, do not make the essence disengaging of appropriate technical solution The scope of each embodiment technical scheme of embodiments of the invention.

Claims (10)

1. a kind of generalized time system of selection, it is characterised in that including:
Multiple optional time granularities are set;
If detecting user's triggering to confirm to complete the action of the time granularity selection, selection of time result is returned to and is transferred Third party's component of the generalized time.
2. generalized time system of selection according to claim 1, it is characterised in that set multiple on selection of time interface Optional time granularity, the selection of time interface includes:When continuous time selection interface, discrete time selection interface and cycle Between selection interface.
3. generalized time system of selection according to claim 2, it is characterised in that the continuous time selection interface, institute State discrete time selection interface and the cycle time selection interface is respectively arranged with the label of correspondence title, if detecting user The action of the label of triggering correspondence title, then switch the continuous time selection interface, the discrete time selection interface and institute State cycle time selection interface.
4. generalized time system of selection according to claim 1, it is characterised in that the time granularity includes hour, day Phase, week, the moon, year and busy, wherein, the busy includes day busy, early busy and late busy.
5. according to any described generalized time system of selection of Claims 1-4, it is characterised in that the selection of time interface On be additionally provided with:
Cancel button, the operation for cancelling selection of time;
Button is reset, for selection of time to reset to defaults again.
6. generalized time system of selection according to claim 5, it is characterised in that
The continuous time selection interface is provided with initial value, end value, the initial value or described for different time granularity End value distinguishes the corresponding date, and by extending, combobox addition panel is set, the initial value or the end value are corresponded to respectively Moment, week, the moon, year by combobox set.
7. generalized time system of selection according to claim 5, it is characterised in that for discrete described in different time granularity Selection of time interface is additionally provided with corresponding key swift to operate.
8. generalized time system of selection according to claim 7, it is characterised in that different time granularity is provided with phase Answer can discrete selection time Option Box and the white space of selected Option Box content is presented in real time.
9. according to any described generalized time system of selection of claim 6 to 8, it is characterised in that for different time granularity The cycle time selection interface be provided with accordingly can cycle selection time Option Box.
10. generalized time system of selection according to claim 9, it is characterised in that be provided with for different time granularity The Option Box of term selection can be entered.
CN201710071680.XA 2017-02-09 2017-02-09 Universal time selection method Active CN106708540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710071680.XA CN106708540B (en) 2017-02-09 2017-02-09 Universal time selection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710071680.XA CN106708540B (en) 2017-02-09 2017-02-09 Universal time selection method

Publications (2)

Publication Number Publication Date
CN106708540A true CN106708540A (en) 2017-05-24
CN106708540B CN106708540B (en) 2020-01-07

Family

ID=58910404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710071680.XA Active CN106708540B (en) 2017-02-09 2017-02-09 Universal time selection method

Country Status (1)

Country Link
CN (1) CN106708540B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177305A (en) * 2019-12-30 2020-05-19 广州骏伯网络科技有限公司 Method, system, device and storage medium for time segment selection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929511A (en) * 2011-09-22 2013-02-13 微软公司 User interface for editing a value in place
CN104123633A (en) * 2014-07-24 2014-10-29 北京嘉和美康信息技术有限公司 Calendar control
CN104598252A (en) * 2015-02-15 2015-05-06 北京恒华伟业科技股份有限公司 Time control as well as method for determining time based on time control
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929511A (en) * 2011-09-22 2013-02-13 微软公司 User interface for editing a value in place
CN104123633A (en) * 2014-07-24 2014-10-29 北京嘉和美康信息技术有限公司 Calendar control
CN104598252A (en) * 2015-02-15 2015-05-06 北京恒华伟业科技股份有限公司 Time control as well as method for determining time based on time control
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177305A (en) * 2019-12-30 2020-05-19 广州骏伯网络科技有限公司 Method, system, device and storage medium for time segment selection
CN111177305B (en) * 2019-12-30 2021-01-05 广州骏伯网络科技有限公司 Method, system, device and storage medium for time segment selection

Also Published As

Publication number Publication date
CN106708540B (en) 2020-01-07

Similar Documents

Publication Publication Date Title
US20210271674A1 (en) Single input graphical user interface control element and method
CN104238897B (en) A kind of menu item display methods and device
US9483307B2 (en) Asynchronous, interactive task workflows
US10146668B1 (en) Modeling code coverage in software life cycle
CN104516794B (en) Backup method, the apparatus and system of database file
CN107704241A (en) A kind of display methods and device of page status switching
US9785511B2 (en) Network device and operating method thereof
US20170337560A1 (en) System for providing and employing recommended resolution paths
US8806281B1 (en) Systems and methods for displaying backup-status information for computing resources
CN103838720B (en) Page file, which is loaded into, executes method and apparatus
US8712967B1 (en) Systems and methods for simultaneously configuring multiple independent backups
US10020996B1 (en) Real-time policy management of data management life cycle
CN106708540A (en) General time selection method
US8732568B1 (en) Systems and methods for managing workflows
US10007554B2 (en) Task scheduling based on user interaction
CN103645968A (en) Browser status restoration method and device
CN110413279A (en) Data load method and device
CN106155486A (en) A kind of task call method and terminal
CN114153345A (en) Multi-time node selection method and device, electronic equipment and storage medium
CN106227626A (en) The backup method of a kind of communications records and terminal
US20150199820A1 (en) Generating and displaying a specific area
US11556226B2 (en) User interface for tag management
US11132260B2 (en) Data processing method and apparatus
CN106293959A (en) The creation method of a kind of Pending tasks and device
CN108170408B (en) JS object definition generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant