CN112364050A - Time period obtaining method and device based on time control, electronic equipment and storage medium - Google Patents

Time period obtaining method and device based on time control, electronic equipment and storage medium Download PDF

Info

Publication number
CN112364050A
CN112364050A CN202011286941.8A CN202011286941A CN112364050A CN 112364050 A CN112364050 A CN 112364050A CN 202011286941 A CN202011286941 A CN 202011286941A CN 112364050 A CN112364050 A CN 112364050A
Authority
CN
China
Prior art keywords
trend
type
trend type
user
date
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
CN202011286941.8A
Other languages
Chinese (zh)
Other versions
CN112364050B (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.)
Borui Shangge Technology Co ltd
Original Assignee
Borui Shangge Technology 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 Borui Shangge Technology Co ltd filed Critical Borui Shangge Technology Co ltd
Priority to CN202011286941.8A priority Critical patent/CN112364050B/en
Publication of CN112364050A publication Critical patent/CN112364050A/en
Application granted granted Critical
Publication of CN112364050B publication Critical patent/CN112364050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2428Query predicate definition using graphical user interfaces, including menus and forms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Fuzzy Systems (AREA)
  • Software Systems (AREA)
  • Electric Clocks (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention relates to a method, a device, electronic equipment and a storage medium for acquiring a time period based on a time control, wherein the method comprises the following steps: receiving a trend type selected by a user through the trend type list; calling out a starting date selection control corresponding to the trend type, and determining a drop-down list item contained in the duration selection module according to the trend type; receiving a start date selected by a user through the start date selection control and receiving a duration selected by the user through a drop-down list item of the duration selection module; and determining an ending date according to the starting date and the duration, and displaying the data between the starting date and the ending date after statistics according to the time granularity corresponding to the trend type. The technical scheme of the embodiment of the invention can simplify the selection operation of the time period and improve the user experience.

Description

Time period obtaining method and device based on time control, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a method and a device for acquiring a time period based on a time control, electronic equipment and a storage medium.
Background
Currently, before trend analysis is performed on data and trend charts are generated, a user needs to be provided with a time control which can determine a starting time and an ending time, and the time control is generally used for selecting a time period.
However, the inventor of the present application finds that in a common application program for trend analysis, a time control is usually provided for a user to select a start time and an end time of a time period, and this way requires the user to calculate the end time and then input the end time after inputting the start time, which is inconvenient to operate and affects user experience.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for obtaining a time period based on a time control, so as to simplify selection operations of the time period and improve user experience.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of embodiments of the invention.
In a first aspect of the present disclosure, an embodiment of the present invention provides a method for acquiring a time period based on a time control, where the time control includes a start date selection module and a duration selection module, where the start date selection module includes a trend type list and a start date selection control, and the method includes:
receiving a trend type selected by a user through the trend type list;
calling out a starting date selection control corresponding to the trend type, and determining a drop-down list item contained in the duration selection module according to the trend type;
receiving a start date selected by a user through the start date selection control and receiving a duration selected by the user through a drop-down list item of the duration selection module;
and determining an ending date according to the starting date and the duration, and displaying the data between the starting date and the ending date after statistics according to the time granularity corresponding to the trend type.
In one embodiment, the trend types include at least two of a daily trend, a weekly trend, a monthly trend, and an annual trend.
In an embodiment, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, the time granularity corresponding to the daily trend is 1 day;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, the time granularity corresponding to the week trend is 1 week;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, the time granularity corresponding to the month trend is 1 month;
if the trend type comprises an annual trend and the trend type selected by the user through the trend type list is an annual trend, the time granularity corresponding to the annual trend is 1 year.
In an embodiment, if the trend type includes a daily trend, the start date selection control corresponding to the daily trend includes a year selection control, a month selection control, and a day selection control;
if the trend type comprises a week trend, the starting date selection control corresponding to the week trend comprises a year selection control, a month selection control and a week selection control;
if the trend type comprises a month trend, the starting date selection control corresponding to the month trend comprises a year selection control and a month selection control;
if the trend type comprises a year trend, the start date selection control corresponding to the year trend comprises a year selection control.
In an embodiment, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, determining that the pull-down list items included in the duration selection module include the first 30 days, the first 15 days, the first 7 days, the last 15 days, and the last 30 days according to the trend type;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, determining that the pull-down list items contained in the duration selection module comprise the first 3 weeks, the first 2 weeks, the first 1 week, the last 2 weeks and the last 3 weeks according to the trend type;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, determining that the drop-down list items contained in the duration selection module comprise 1 month, 2 months, 3 months, 4 months, 5 months, 6 months and 7 months according to the trend type;
and if the trend type comprises a year trend and the trend type selected by the user through the trend type list is a year trend, determining that the drop-down list items contained in the duration selection module comprise the first 3 years, the first 2 years, the first 1 year, the last 2 years and the last 3 years according to the trend type.
In one embodiment, the time control further comprises a shielding and screening module, wherein the shielding and screening module comprises a first tab for shielding workdays, a second tab for shielding holidays, and a third tab for shielding holidays.
In an embodiment, displaying the data between the start date and the end date according to the time granularity statistics corresponding to the trend type includes:
and after the date shielded by the shielding and screening module is excluded from the data between the starting date and the ending date, counting according to the time granularity corresponding to the trend type and then displaying.
In a second aspect of the present disclosure, an embodiment of the present invention further provides an apparatus for acquiring a time period based on a time control, where the time control includes a start date selection module and a duration selection module, where the start date selection module includes a trend type list and a start date selection control, and the apparatus includes:
the trend type selection unit is used for receiving a trend type selected by a user through the trend type list;
the control calling unit is used for calling out a starting date selection control corresponding to the trend type and determining a pull-down list item contained by the duration selection module according to the trend type;
the time information receiving unit receives a start date selected by the user through the start date selection control and receives a duration selected by the user through a drop-down list item of the duration selection module;
and the data display unit is used for determining an end date according to the start date and the duration, and displaying the data between the start date and the end date after statistics according to the time granularity corresponding to the trend type.
In one embodiment, the trend types include at least two of a daily trend, a weekly trend, a monthly trend, and an annual trend.
In an embodiment, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, the time granularity corresponding to the daily trend is 1 day;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, the time granularity corresponding to the week trend is 1 week;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, the time granularity corresponding to the month trend is 1 month;
if the trend type comprises an annual trend and the trend type selected by the user through the trend type list is an annual trend, the time granularity corresponding to the annual trend is 1 year.
In an embodiment, if the trend type includes a daily trend, the start date selection control corresponding to the daily trend includes a year selection control, a month selection control, and a day selection control;
if the trend type comprises a week trend, the starting date selection control corresponding to the week trend comprises a year selection control, a month selection control and a week selection control;
if the trend type comprises a month trend, the starting date selection control corresponding to the month trend comprises a year selection control and a month selection control;
if the trend type comprises a year trend, the start date selection control corresponding to the year trend comprises a year selection control.
In an embodiment, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, determining that the pull-down list items included in the duration selection module include the first 30 days, the first 15 days, the first 7 days, the last 15 days, and the last 30 days according to the trend type;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, determining that the pull-down list items contained in the duration selection module comprise the first 3 weeks, the first 2 weeks, the first 1 week, the last 2 weeks and the last 3 weeks according to the trend type;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, determining that the drop-down list items contained in the duration selection module comprise 1 month, 2 months, 3 months, 4 months, 5 months, 6 months and 7 months according to the trend type;
and if the trend type comprises a year trend and the trend type selected by the user through the trend type list is a year trend, determining that the drop-down list items contained in the duration selection module comprise the first 3 years, the first 2 years, the first 1 year, the last 2 years and the last 3 years according to the trend type.
In one embodiment, the time control further comprises a shielding and screening module, wherein the shielding and screening module comprises a first tab for shielding workdays, a second tab for shielding holidays, and a third tab for shielding holidays.
In an embodiment, displaying the data between the start date and the end date according to the time granularity statistics corresponding to the trend type includes:
and after the date shielded by the shielding and screening module is excluded from the data between the starting date and the ending date, counting according to the time granularity corresponding to the trend type and then displaying.
In a third aspect of the disclosure, an electronic device is provided. The electronic device includes: a processor; and a memory for storing executable instructions that, when executed by the processor, cause the electronic device to perform the method of the first aspect.
In a fourth aspect of the disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method in the first aspect.
The technical scheme provided by the embodiment of the invention has the beneficial technical effects that:
according to the embodiment of the invention, the trend type selected by the user through the trend type list is received, the starting date selection control corresponding to the trend type is called, and the drop-down list item contained in the duration selection module is determined according to the trend type; receiving a start date selected by a user through the start date selection control and receiving a duration selected by the user through a drop-down list item of the duration selection module; and determining an ending date according to the starting date and the duration, and displaying the data between the starting date and the ending date after counting according to the time granularity corresponding to the trend type, so that the selection operation of the time period can be simplified, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only a part of the embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for acquiring a time period based on a time control according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating the effect of the time control when the trend type selected by the user is a daily trend;
FIG. 3 is a diagram illustrating the effect of the time control when the trend type selected by the user is a week trend;
FIG. 4 is a diagram illustrating the effect of the time control when the trend type selected by the user is a monthly trend;
FIG. 5 is a schematic diagram of the effect of the time control when the trend type selected by the user is an annual trend;
FIG. 6 illustratively shows a trend graph according to one data presentation;
FIG. 7 schematically illustrates a trend graph according to two data presentations;
FIG. 8 is a schematic structural diagram of an apparatus for obtaining a time period based on a time control according to an embodiment of the present invention;
FIG. 9 shows a schematic diagram of an electronic device suitable for use in implementing embodiments of the present invention.
Detailed Description
In order to make the technical problems solved, the technical solutions adopted and the technical effects achieved by the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments, but not all embodiments, of the embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, belong to the scope of protection of the embodiments of the present invention.
It should be noted that the terms "system" and "network" are often used interchangeably herein in embodiments of the present invention. Reference to "and/or" in embodiments of the invention is intended to include any and all combinations of one or more of the associated listed items. The terms "first", "second", and the like in the description and claims of the present disclosure and in the drawings are used for distinguishing between different objects and not for limiting a particular order.
It should be further noted that, in the embodiments of the present invention, each of the following embodiments may be executed alone, or may be executed in combination with each other, and the embodiments of the present invention are not limited in this respect.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The technical solutions of the embodiments of the present invention are further described by the following detailed description with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for acquiring a time period based on a time control according to an embodiment of the present invention, where the embodiment is applicable to a case where a data trend is displayed according to a time selected by a user using a predetermined time control, and the method may be executed by an apparatus configured in an electronic device for displaying a data trend based on a time control, where the time control includes a start date selection module and a duration selection module, where the start date selection module includes a trend type list and a start date selection control, as shown in fig. 1, the method for acquiring a time period based on a time control according to the embodiment includes:
in step S110, a trend type selected by the user through the trend type list is received.
The trend type is used for determining granularity of displaying the trend graph, and may include multiple types, such as daily trend, weekly trend, monthly trend, annual trend, and the like.
In step S120, a start date selection control corresponding to the trend type is called, and a drop-down list item included in the duration selection module is determined according to the trend type.
For example, if the trend type includes a daily trend, the start date selection control corresponding to the daily trend includes a year selection control, a month selection control, and a day selection control. Further, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, it is determined that the pull-down list items included in the duration selection module include the first 30 days, the first 15 days, the first 7 days, the last 15 days, and the last 30 days according to the trend type, and the time control effect graph is shown in fig. 2.
For another example, if the trend type includes a week trend, the start date selection control corresponding to the week trend includes a year selection control, a month selection control, and a week selection control. Further, if the trend type includes a week trend and the trend type selected by the user through the trend type list is a week trend, it is determined according to the trend type that the drop-down list items included in the duration selection module include the first 3 weeks, the first 2 weeks, the first 1 week, the last 2 weeks, and the last 3 weeks, and the time control effect graph is shown in fig. 3.
For another example, if the trend type includes a month trend, the start date selection control corresponding to the month trend includes a year selection control and a month selection control. Further, if the trend type includes a month trend and the trend type selected by the user through the trend type list is a month trend, it is determined that the drop-down list items included in the duration selection module include 1 month, 2 months, 3 months, 4 months, 5 months, 6 months, and 7 months according to the trend type, and the time control effect graph is shown in fig. 4.
For another example, if the trend type includes a year trend, the start date selection control corresponding to the year trend includes a year selection control. Further, if the trend type includes an annual trend and the trend type selected by the user through the trend type list is an annual trend, it is determined that the drop-down list items included in the duration selection module include the first 3 years, the first 2 years, the first 1 year, the last 2 years, and the last 3 years according to the trend type, and the time control effect graph is shown in fig. 5.
In step S130, a start date selected by the user through the start date selection control and a duration selected by the user through the drop-down list item of the duration selection module are received.
In step S140, an end date is determined according to the start date and the duration, and the data between the start date and the end date is displayed according to the time granularity statistics corresponding to the trend type.
In general, the trend type corresponds to the granularity of time at which the data is presented. For example, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, the time granularity corresponding to the daily trend is 1 day. Fig. 6 exemplarily shows a trend graph according to one data presentation, and fig. 7 exemplarily shows a trend graph according to two data presentations.
For another example, if the trend type includes a weekly trend and the trend type selected by the user through the trend type list is a weekly trend, the time granularity corresponding to the weekly trend is 1 week.
For another example, if the trend type includes a month trend and the trend type selected by the user through the trend type list is a month trend, the time granularity corresponding to the month trend is 1 month.
For another example, if the trend type includes an annual trend and the trend type selected by the user through the trend type list is an annual trend, the time granularity corresponding to the annual trend is 1 year.
According to one or more embodiments of the present disclosure, the time control further comprises a masking filter module comprising a first tab for masking workdays, a second tab for masking holidays, and a third tab for masking holidays. If the first tab for shielding the workday is selected, the trend graph does not include the workday; if the second tab for shielding the public holiday is selected, the trend graph does not include the public holiday; if the third tab is used to mask holidays, the holidays are not included in the trend graph. It should be noted that, in order to provide richer functions, the first tab, the second tab, and the third tab may be selected as one, two, or three.
If the time control further includes a shielding and screening module that is the same as or similar to the above, the data between the start date and the end date is displayed after being counted according to the time granularity corresponding to the trend type in step S140, which may include displaying the data between the start date and the end date after excluding the date shielded by the shielding and screening module and after being counted according to the time granularity corresponding to the trend type.
In the embodiment, a trend type selected by a user through the trend type list is received, a starting date selection control corresponding to the trend type is called, and a drop-down list item contained in the duration selection module is determined according to the trend type; receiving a start date selected by a user through the start date selection control and receiving a duration selected by the user through a drop-down list item of the duration selection module; and determining an ending date according to the starting date and the duration, and displaying the data between the starting date and the ending date after counting according to the time granularity corresponding to the trend type, so that the selection operation of the time period can be simplified, and the user experience is improved.
As an implementation of the methods shown in the above drawings, the present application provides an embodiment of an apparatus for acquiring a time period based on a time control, and fig. 8 illustrates a schematic structural diagram of the apparatus for acquiring a time period based on a time control provided in this embodiment, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 1, and the apparatus may be specifically applied to various electronic devices. As shown in fig. 8, the time control according to this embodiment includes a start date selection module and a duration selection module, where the start date selection module includes a trend type list and a start date selection control, and the apparatus based on the time control acquisition time period according to this embodiment includes a trend type selection unit 810, a control calling unit 820, a time information receiving unit 830, and a data display unit 840.
The trend type selection unit 810 is configured to receive a trend type selected by a user through the trend type list.
The control calling unit 820 is configured to call a start date selection control corresponding to the trend type, and determine a drop-down list item included in the duration selection module according to the trend type.
The time information receiving unit 830 is configured to receive a start date selected by a user through the start date selection control and a duration selected by the user through a drop-down list item of the duration selection module.
The data presentation unit 840 is configured to determine an end date according to the start date and the duration, and present data between the start date and the end date according to the time granularity statistics corresponding to the trend type.
According to one or more embodiments of the present disclosure, the trend types include at least two of a daily trend, a weekly trend, a monthly trend, and an annual trend.
According to one or more embodiments of the present disclosure, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, the time granularity corresponding to the daily trend is 1 day;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, the time granularity corresponding to the week trend is 1 week;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, the time granularity corresponding to the month trend is 1 month;
if the trend type comprises an annual trend and the trend type selected by the user through the trend type list is an annual trend, the time granularity corresponding to the annual trend is 1 year.
According to one or more embodiments of the present disclosure, if the trend type includes a daily trend, the start date selection control corresponding to the daily trend includes a year selection control, a month selection control, and a day selection control;
if the trend type comprises a week trend, the starting date selection control corresponding to the week trend comprises a year selection control, a month selection control and a week selection control;
if the trend type comprises a month trend, the starting date selection control corresponding to the month trend comprises a year selection control and a month selection control;
if the trend type comprises a year trend, the start date selection control corresponding to the year trend comprises a year selection control.
According to one or more embodiments of the present disclosure, if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, determining that the drop-down list items included in the duration selection module include the first 30 days, the first 15 days, the first 7 days, the last 15 days, and the last 30 days according to the trend type;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, determining that the pull-down list items contained in the duration selection module comprise the first 3 weeks, the first 2 weeks, the first 1 week, the last 2 weeks and the last 3 weeks according to the trend type;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, determining that the drop-down list items contained in the duration selection module comprise 1 month, 2 months, 3 months, 4 months, 5 months, 6 months and 7 months according to the trend type;
and if the trend type comprises a year trend and the trend type selected by the user through the trend type list is a year trend, determining that the drop-down list items contained in the duration selection module comprise the first 3 years, the first 2 years, the first 1 year, the last 2 years and the last 3 years according to the trend type.
According to one or more embodiments of the present disclosure, the time control further comprises a masking filter module comprising a first tab for masking workdays, a second tab for masking holidays, and a third tab for masking holidays.
According to one or more embodiments of the present disclosure, displaying the data between the start date and the end date according to the time granularity statistics corresponding to the trend type includes:
and after the date shielded by the shielding and screening module is excluded from the data between the starting date and the ending date, counting according to the time granularity corresponding to the trend type and then displaying.
The device for acquiring the time period based on the time control, which is provided by the embodiment of the invention, can execute the method for acquiring the time period based on the time control, and has the corresponding functional modules and beneficial effects of the execution method.
Referring now to FIG. 9, shown is a schematic diagram of an electronic device 900 suitable for use in implementing embodiments of the present invention. The terminal device in the embodiment of the present invention is, for example, a mobile device, a computer, or a vehicle-mounted device built in a floating car, or any combination thereof. In some embodiments, the mobile device may include, for example, a cell phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, and the like, or any combination thereof. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 9, the electronic device 900 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 901 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage means 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic apparatus 900 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 9 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program, when executed by the processing apparatus 901, performs the above-described functions defined in the methods of the embodiments of the present invention.
It should be noted that the computer readable medium mentioned above can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In yet another embodiment of the invention, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a trend type selected by a user through the trend type list; calling out a starting date selection control corresponding to the trend type, and determining a drop-down list item contained in the duration selection module according to the trend type; receiving a start date selected by a user through the start date selection control and receiving a duration selected by the user through a drop-down list item of the duration selection module; and determining an ending date according to the starting date and the duration, and displaying the data between the starting date and the ending date after statistics according to the time granularity corresponding to the trend type.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only a preferred embodiment of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present invention is not limited to the specific combinations of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the spirit of the disclosure. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present invention are mutually replaced to form the technical solution.

Claims (10)

1. A method for presenting data trends based on a time control, the time control comprising a start date selection module and a duration selection module, wherein the start date selection module comprises a trend type list and a start date selection control, the method comprising:
receiving a trend type selected by a user through the trend type list;
calling out a starting date selection control corresponding to the trend type, and determining a drop-down list item contained in the duration selection module according to the trend type;
receiving a start date selected by a user through the start date selection control and receiving a duration selected by the user through a drop-down list item of the duration selection module;
and determining an ending date according to the starting date and the duration, and displaying the data between the starting date and the ending date after statistics according to the time granularity corresponding to the trend type.
2. The method of claim 1, wherein the trend types include at least two of a daily trend, a weekly trend, a monthly trend, and an annual trend.
3. The method according to claim 2, wherein if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, the time granularity corresponding to the daily trend is 1 day;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, the time granularity corresponding to the week trend is 1 week;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, the time granularity corresponding to the month trend is 1 month;
if the trend type comprises an annual trend and the trend type selected by the user through the trend type list is an annual trend, the time granularity corresponding to the annual trend is 1 year.
4. The method of claim 2, wherein if the trend type comprises a daily trend, the start date selection control corresponding to the daily trend comprises a year selection control, a month selection control, and a day selection control;
if the trend type comprises a week trend, the starting date selection control corresponding to the week trend comprises a year selection control, a month selection control and a week selection control;
if the trend type comprises a month trend, the starting date selection control corresponding to the month trend comprises a year selection control and a month selection control;
if the trend type comprises a year trend, the start date selection control corresponding to the year trend comprises a year selection control.
5. The method according to claim 2, wherein if the trend type includes a daily trend and the trend type selected by the user through the trend type list is a daily trend, determining that the drop-down list items included in the duration selection module include the first 30 days, the first 15 days, the first 7 days, the last 15 days, and the last 30 days according to the trend type;
if the trend type comprises a week trend and the trend type selected by the user through the trend type list is a week trend, determining that the pull-down list items contained in the duration selection module comprise the first 3 weeks, the first 2 weeks, the first 1 week, the last 2 weeks and the last 3 weeks according to the trend type;
if the trend type comprises a month trend and the trend type selected by the user through the trend type list is a month trend, determining that the drop-down list items contained in the duration selection module comprise 1 month, 2 months, 3 months, 4 months, 5 months, 6 months and 7 months according to the trend type;
and if the trend type comprises a year trend and the trend type selected by the user through the trend type list is a year trend, determining that the drop-down list items contained in the duration selection module comprise the first 3 years, the first 2 years, the first 1 year, the last 2 years and the last 3 years according to the trend type.
6. The method of claim 1, wherein the time control further comprises a mask filter module comprising a first tab for masking weekdays, a second tab for masking holidays, and a third tab for masking holidays.
7. The method of claim 6, wherein displaying the data between the start date and the end date according to the time granularity statistics corresponding to the trend type comprises:
and after the date shielded by the shielding and screening module is excluded from the data between the starting date and the ending date, counting according to the time granularity corresponding to the trend type and then displaying.
8. An apparatus for obtaining a time period based on a time control, the time control comprising a start date selection module and a duration selection module, wherein the start date selection module comprises a trend type list and a start date selection control, the apparatus comprising:
the trend type selection unit is used for receiving a trend type selected by a user through the trend type list;
the control calling unit is used for calling out a starting date selection control corresponding to the trend type and determining a pull-down list item contained by the duration selection module according to the trend type;
the time information receiving unit receives a start date selected by the user through the start date selection control and receives a duration selected by the user through a drop-down list item of the duration selection module;
and the data display unit is used for determining an end date according to the start date and the duration, and displaying the data between the start date and the end date after statistics according to the time granularity corresponding to the trend type.
9. An electronic device, comprising:
a processor; and
a memory to store executable instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202011286941.8A 2020-11-17 2020-11-17 Method, device, electronic equipment and storage medium for acquiring time period based on time control Active CN112364050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011286941.8A CN112364050B (en) 2020-11-17 2020-11-17 Method, device, electronic equipment and storage medium for acquiring time period based on time control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011286941.8A CN112364050B (en) 2020-11-17 2020-11-17 Method, device, electronic equipment and storage medium for acquiring time period based on time control

Publications (2)

Publication Number Publication Date
CN112364050A true CN112364050A (en) 2021-02-12
CN112364050B CN112364050B (en) 2024-08-06

Family

ID=74515127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011286941.8A Active CN112364050B (en) 2020-11-17 2020-11-17 Method, device, electronic equipment and storage medium for acquiring time period based on time control

Country Status (1)

Country Link
CN (1) CN112364050B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306152A (en) * 2011-06-28 2012-01-04 用友软件股份有限公司 Calendar generating device and calendar generating method
JP2012190385A (en) * 2011-03-14 2012-10-04 Yokogawa Electric Corp Totaling and analysis support device, and computer program
CN103500170A (en) * 2013-09-02 2014-01-08 上海淼云文化传播有限公司 Statement generating method and system
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus
CN106708482A (en) * 2015-07-30 2017-05-24 北京奇虎科技有限公司 Date information display method and apparatus
CN108062322A (en) * 2016-11-08 2018-05-22 北京国双科技有限公司 A kind of Supplementing Data method and device based on time-tendency graph
CN305808614S (en) * 2020-05-26
CN111291090A (en) * 2020-01-21 2020-06-16 博锐尚格科技股份有限公司 Time period obtaining method and device based on time control, electronic equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN305808614S (en) * 2020-05-26
JP2012190385A (en) * 2011-03-14 2012-10-04 Yokogawa Electric Corp Totaling and analysis support device, and computer program
CN102306152A (en) * 2011-06-28 2012-01-04 用友软件股份有限公司 Calendar generating device and calendar generating method
CN103500170A (en) * 2013-09-02 2014-01-08 上海淼云文化传播有限公司 Statement generating method and system
CN106708482A (en) * 2015-07-30 2017-05-24 北京奇虎科技有限公司 Date information display method and apparatus
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus
CN108062322A (en) * 2016-11-08 2018-05-22 北京国双科技有限公司 A kind of Supplementing Data method and device based on time-tendency graph
CN111291090A (en) * 2020-01-21 2020-06-16 博锐尚格科技股份有限公司 Time period obtaining method and device based on time control, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈鑫: "基于生产过程大数据统计分析方法在石化企业工厂管理的应用", 《仪器仪表用户》, 8 November 2016 (2016-11-08), pages 68 - 73 *

Also Published As

Publication number Publication date
CN112364050B (en) 2024-08-06

Similar Documents

Publication Publication Date Title
CN109857486B (en) Method, device, equipment and medium for processing program page data
CN110990090A (en) Dynamic wallpaper display method, device and computer readable medium
CN113741755A (en) Information processing method and device, terminal and storage medium
CN113254139B (en) Online education course information display method, device, terminal and storage medium
CN109634702B (en) Information prompting method and device, electronic equipment and readable medium
CN111176707A (en) Templated automatic operation and maintenance method and device and electronic equipment
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN114021016A (en) Data recommendation method, device, equipment and storage medium
CN111291090B (en) Method, device, electronic equipment and medium for acquiring time period based on time control
CN111857518A (en) Method and device for canceling image editing operation, electronic equipment and medium
CN110727558A (en) Information prompting method and device, storage medium and electronic equipment
CN112364050B (en) Method, device, electronic equipment and storage medium for acquiring time period based on time control
CN110673908A (en) Interface generation method, device, medium and electronic equipment
CN112882857B (en) Performance problem positioning method, device, electronic equipment and storage medium
CN115470754A (en) Data analysis method and device, computer readable medium and electronic equipment
CN113672317B (en) Method and device for rendering topic pages
CN111770385A (en) Card display method and device, electronic equipment and medium
CN111324349A (en) Method, device, terminal and storage medium for generating interactive interface
CN112064287A (en) Water use control method and device for washing machine, electronic equipment and storage medium
CN111310175A (en) iOS application safety monitoring and protecting method and device based on plug-in
CN109918357A (en) Information playback method, device, electronic equipment and computer readable storage medium
CN111381898A (en) Interface calling method and device, mobile terminal and storage medium
CN110618849A (en) Notification bar setting method, device, equipment and storage medium
CN114816609B (en) Method and device for displaying window, electronic equipment and computer readable storage medium
CN111210271B (en) Method, device, electronic equipment and storage medium for identifying form cheating

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
GR01 Patent grant
GR01 Patent grant