Method and related device for quickly generating statistical report in data statistical task
The method and equipment for automatically generating statistical reports through human-computer interaction design interfaces have solved the problem of low data collection efficiency in power management systems, realized no-code report generation, and improved user experience and system efficiency.
Patent Information
- Application Number
- CN202611092467.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-22
- Publication Date
- 2026-11-06
AI Technical Summary
In the power management system, the statistical analysis function for marketing and management business data suffers from low data collection efficiency due to frequent project changes, relying on traditional spreadsheets and email summaries, which affects system efficiency.
This invention provides a method and device for quickly generating statistical reports in data statistics tasks. The method allows for report design through human-computer interaction, automatically generates deployable code, and includes displaying the report design interface, dragging and dropping controls, configuring attributes, and generating a structured page description file, thus enabling report generation without writing code.
It optimized the user experience, improved data collection efficiency, reduced reliance on code updates, and enhanced the data collection capabilities of the power management system.
Smart Images

Figure CN123048634A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, and in particular to methods and related devices for rapidly generating statistical reports in data statistics tasks. Background Technology
[0002] In related technologies, a power management system is a software system used to monitor, control, and optimize the operation of a power system. It can collect and manage power production data, power investment data, and power supply data from its power grid subsidiaries, power plants, and other units. In practical applications, it has been found that system development focuses on implementing statistical functions related to production business data, such as power generation. Marketing business data and management business data frequently change due to project requirements; for example, overdue project data requires adjustments to data collection reports as projects change. Adding statistical analysis functions for these two types of data to the power management system relies on code updates, resulting in data collection being limited to traditional spreadsheets and email summaries, impacting the efficiency of power management.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the Invention
[0004] The main objective of this application is to propose a method and related equipment for rapidly generating statistical reports in data statistics tasks. This method can quickly generate statistical reports according to the needs of statistical tasks, facilitate the collection of statistical data, and improve the user experience.
[0005] To achieve the above objectives, one aspect of this application proposes a method for rapidly generating statistical reports in data statistics tasks, the method comprising: In response to the statistical report generation operation, a report design interface is displayed, wherein the report design interface includes a first area, a second area and a third area, and the first area displays control icons for interaction; In response to moving the control icon from the first area to the second area, a control corresponding to the control icon is generated in the second area; The third area displays the attribute configuration list of the control, obtains the control setting information through the attribute configuration list, and changes the display state of the control and / or adds the control according to the control setting information; In response to the save operation of the statistical report, the report information on the second area is serialized to obtain a structured page description file, and the structured page description file is sent to the system. The structured page description file is used to start the page access service of the statistical report on the system.
[0006] In some embodiments, the second area includes a top panel, a side panel, and a content panel; the top panel is used to place controls at the global operation level, the side panel is used to place controls at the page switching operation level, and the content panel is used to place controls at the page operation level; wherein, the controls at the global operation level represent controls that implement common functional operations in the statistical report; the controls at the page switching operation level represent controls that implement page switching operations for different data collection objects; and the controls at the page operation level represent controls that implement operations to display, collect, or distribute data to the data collection object.
[0007] In some embodiments, the controls are categorized according to their functional types, including container controls, composite controls, and single-unit controls. The container control represents a control that defines the data structure of the content panel, the composite control represents a control with reusable operations, and the single-unit control represents a control that configures data types or configures trigger actions.
[0008] In some embodiments, the composite control includes a two-dimensional table, a card table, a Gantt chart, a tree structure, and a toolbar; The step of responding to moving the control icon from the first area to the second area and generating a control corresponding to the control icon in the second area further includes: if the control icon corresponds to a two-dimensional table, card table, or Gantt chart of the composite control, inserting a two-dimensional table, card table, or Gantt chart into the content panel; if the control icon corresponds to a tree structure of the composite control, inserting a tree branch into the sidebar panel, the tree branch being used to switch pages of the content panel; if the control icon corresponds to a toolbar of the composite control, inserting a toolbar into the top bar panel, the toolbar being used to implement common functional operations in the statistical report.
[0009] In some embodiments, The step of responding to moving the control icon from the first area to the second area and generating a control corresponding to the control icon in the second area further includes: if the control icon corresponds to a two-dimensional table, card table, or Gantt chart of the composite control, inserting a two-dimensional table, card table, or Gantt chart into the content panel; If the control icon corresponds to the tree structure of the composite control, a tree branch is inserted into the sidebar panel, and the tree branch is used to switch the page of the content panel; If the control icon corresponds to the toolbar of the composite control, a toolbar is inserted into the top panel. The toolbar is used to implement common functions in the statistical report.
[0010] In some embodiments, the step of generating a control corresponding to the control icon in the second area in response to moving the control icon from the first area to the second area further includes: if the control icon corresponds to the single control, inserting the single control into the grid, group box, or several tabs of the content panel.
[0011] In some embodiments, the report design interface further includes a panel expansion button, and the method further includes: Click the panel expansion button to add an expanded panel to the second area. The expanded panel supports custom operations.
[0012] To achieve the above objectives, another aspect of the embodiments of this application proposes an apparatus for rapidly generating statistical reports in a data statistics task, the apparatus including a processor and a display screen; The display screen is used to display the report design interface in the above-described method; The processor is used for data processing and instruction response in the methods described above.
[0013] To achieve the above objectives, another aspect of this application provides an apparatus for rapidly generating statistical reports in a data statistics task. The apparatus includes a processor and a display screen, wherein the display screen is used to display a report design interface, and the report design interface includes a first area, a second area, and a third area. The processor is configured to respond to the statistical report generation operation by displaying a report design interface, wherein the report design interface includes a first area, a second area, and a third area. The first area displays control icons for interaction. In response to moving the control icons from the first area to the second area, a control corresponding to the control icon is generated in the second area. In the third area, an attribute configuration list of the control is displayed, and control setting information is obtained through the attribute configuration list. The processor then performs operations to change the display state of the control and / or add the control based on the control setting information. In response to the statistical report saving operation, the processor serializes the report information in the second area to obtain a structured page description file, and sends the structured page description file to the system. The structured page description file is used to start the page access service of the statistical report on the system.
[0014] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described above.
[0015] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described above.
[0016] To achieve the above objectives, another aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned method. The embodiments of this application include at least the following beneficial effects: This application provides a method and related equipment for quickly generating statistical reports in data statistics tasks. This solution displays a report design interface in response to the generation operation of the statistical report. The report design interface includes a first area, a second area, and a third area. The first area displays control icons for interaction. In response to moving the control icons from the first area to the second area, a control corresponding to the control icon is generated in the second area. A control setting list of the control is displayed in the third area, setting information is obtained through the control setting list, and the display state of the control is changed according to the setting information. In response to the saving operation of the statistical report, statistical reports can be designed through human-computer interaction without writing code. The human-computer interaction operation is automatically generated into deployable code. After the service is started, the participants in the survey can access the page service and upload data, which helps to optimize the user experience. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of an implementation system for a method to quickly generate statistical reports in a data statistics task provided in this application embodiment; Figure 2 This is a flowchart of a method for quickly generating statistical reports in a data statistics task provided in this application embodiment; Figure 3 This is a schematic diagram of the report design interface provided in an embodiment of this application; Figures 4 to 6 This is a functional diagram of the container control provided in this application embodiment displayed on the second area; Figures 7 to 12 This is a functional diagram of the composite control provided in this application embodiment displayed on the second area; Figures 13 to 30 This is a functional diagram of the single control provided in this application embodiment displayed on the second area; Figures 31 to 33 The images illustrate the styles of statistical reports designed for three different statistical tasks.
[0018] Figure 34 This is a schematic diagram of the structure of the device for rapidly generating statistical reports in a data statistics task provided in the embodiments of this application; Figure 35 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.
[0020] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”
[0021] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0023] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.
[0024] In related technologies, a power management system is a software system used to monitor, control, and optimize the operation of a power system. It can collect and manage power production data, power investment data, and power supply data from its power grid subsidiaries, power plants, and other units. In practical applications, it has been found that system development focuses on implementing statistical functions related to production business data, such as power generation. Marketing business data and management business data frequently change due to project requirements; for example, overdue project data requires adjustments to data collection reports as projects change. Adding statistical analysis functions for these two types of data to the power management system relies on code updates, resulting in data collection being limited to traditional spreadsheets and email summaries, impacting the efficiency of power management.
[0025] Figure 1 The diagram shows an implementation system of a method for quickly generating statistical reports in a data statistics task provided in this application embodiment, including a terminal 101 and a system terminal 102.
[0026] The terminal 101 and the system terminal 102 can communicate via a network, which may include a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof. Optionally, the system terminal 102 may be a node in a cloud computing system, or each system terminal may be a separate cloud computing system, including multiple computers interconnected by a network and operating as a distributed processing system. Designers design statistical reports on the report design interface displayed on the terminal 101. After receiving the designer's release instruction, the terminal 101 converts the designer's operations (selected controls, control positions) into corresponding structured data and sends the structured data to the system terminal 102. The system terminal 102 generates front-end and back-end code based on the structured data and automatically starts an accessible statistical report page service.
[0027] In addition, it should be noted that, Figure 1 The examples shown are merely one application environment provided by the embodiments in this specification. In practical applications, other application environments may also be included, and this specification does not impose any limitations.
[0028] This application provides a method and related equipment for quickly generating statistical reports in data statistics tasks. The solution utilizes a statistical model design function in a power management system. This function enables the design of statistical reports through human-computer interaction without writing code. The system automatically generates deployable code from the human-computer interaction. After the service is started, the participants in the survey can access the service and upload data, which helps to optimize the user experience.
[0029] The method and related equipment for rapidly generating statistical reports in data statistics tasks provided in this application embodiment relate to the field of human-computer interaction technology. The method for rapidly generating statistical reports in data statistics tasks provided in this application embodiment can be applied to a terminal, a server, or software running on a terminal or server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, etc., but is not limited to these; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the method for rapidly generating statistical reports in data statistics tasks, etc., but is not limited to the above forms.
[0030] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, controls, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0031] Figure 2 This is an optional flowchart of a method for quickly generating statistical reports in a data statistics task provided in this application embodiment, applied in... Figure 1 Terminal 101 shown, Figure 2 The method may include, but is not limited to, steps 201 to 204.
[0032] Step 201: In response to the statistical report generation operation, a report design interface is displayed, wherein the report design interface includes a first area, a second area and a third area, and the first area displays control icons for interaction.
[0033] After the user activates the statistical report design function in the power management system, terminal 101 displays the following to the user: Figure 3 The report design interface shown has a first area for displaying controls to be configured. Users can perform interactive operations on the controls in the first area, such as clicking, inserting, and dragging.
[0034] Step 202: In response to moving the control icon from the first area to the second area, a control corresponding to the control icon is generated in the second area; In step 202, the user drags the selected control icon from the first area to the second area, freely adjusting the position of the control icon in the second area. The control icon corresponds to a control in the statistical report, and the terminal 101 displays the control corresponding to the control icon in the second area.
[0035] Step 203: Display the attribute configuration list of the control in the third area, obtain the control setting information through the attribute configuration list, and change the display state of the control and / or add the control according to the control setting information.
[0036] In step 203, after the position of the control is determined, the attribute configuration list of the selected control is displayed in the third area. The user can modify the shape attribute, font type, color and add operations in the attribute configuration list, including jump, pop-up window, data transmission, etc.
[0037] Step 204: In response to the saving operation of the statistical report, the control information of the control on the second area is serialized to obtain a structured page description file, and the structured page description file is sent to the system. The structured page description file is used to start the page access service of the statistical report on the system.
[0038] The report information includes the interface layout, control positions, and a list of attribute configurations. It is understood that the interface layout, control positions, and attribute configuration lists are used to generate front-end and back-end code in a visual low-code platform.
[0039] In step 204, after the user completes the design, terminal 101 generates a JSON-formatted page description file from the final report information determined by the design interface. After receiving the page description file, system terminal 102 can parse the file to generate the front-end code and back-end code displayed in the design interface. After the code is deployed, a data collection page access service is added to the power management system. The subjects participating in the survey can fill in, import, or upload data by accessing this service.
[0040] In this embodiment, through steps 201 to 204, terminal 101 responds to the statistical report generation operation by displaying a report design interface. This interface includes a first area, a second area, and a third area. The first area displays interactive control icons. In response to moving the control icons from the first area to the second area, a corresponding control is generated in the second area. A control setting list of the controls is displayed in the third area, and setting information is obtained from this list. The display state of the controls is then changed based on this setting information. Finally, in response to the statistical report saving operation, statistical reports can be designed through human-computer interaction without writing code. The human-computer interaction is automatically generated into deployable code. After the service is started, survey participants can access the page service and upload data, which helps optimize the user experience.
[0041] In some embodiments, the second area is divided into a top panel, a side panel, and a content panel according to the operation level. The top panel is used to place controls for the global operation level, the side panel is used to place controls for switching the page operation level, and the content panel is used to place controls for the page operation level. The second region is divided according to the level of operations to be performed on the statistical report. The global operation level controls represent controls that implement common functional operations in the statistical report, such as save, upload, import, and export. The page switching operation level controls represent controls that implement page switching operations for different data collection objects. The page operation level controls represent controls that are intended to display, collect, or distribute data to the data collection object.
[0042] In this embodiment, the second area (the navigation structure of the statistical report) is divided into three panels according to the controls stored at different operation levels. This can guide designers to quickly add controls to the corresponding panels according to their operation levels, reduce the situation where different designers design non-standard statistical reports due to lack of experience, improve the operational efficiency of inexperienced personnel, and reduce the situation where garbled characters appear in the pre-coded front-end code due to misoperation.
[0043] In some embodiments, the controls are categorized according to their functional types, including container controls, composite controls, and single-unit controls. The container control represents a control that defines the data structure of the content panel, the composite control represents a control with reusable operations, and the single-unit control represents a control that configures data types or configures trigger actions.
[0044] In some embodiments, the container control includes a grid container, a grouping box, and a tab layout. In step 202, if the control icon corresponds to the container control, the content panel is divided into a grid, a grouping box, or several tabs.
[0045] In some embodiments, the composite control includes a two-dimensional table, a card table, a Gantt chart, a tree structure, and a toolbar.
[0046] In step 202, if the control icon corresponds to a two-dimensional table, card table, or Gantt chart of the composite control, a two-dimensional table, card table, or Gantt chart is inserted into the content panel; if the control icon corresponds to a tree structure of the composite control, a tree branch is inserted into the sidebar panel, and the tree branch is used to switch the page of the content panel; if the control icon corresponds to a toolbar of the composite control, a toolbar is inserted into the top bar panel, and the toolbar is used to implement the common functions in the statistical report.
[0047] In this embodiment, a composite control represents a general, reusable function composed of a large number of individual controls. As a well-encapsulated module that provides batch operation functions, it can be directly encapsulated as a single control, which can improve the efficiency of creating statistical tables. Designers can directly insert the most frequently used functions into the statistical table together, reducing repetitive operations.
[0048] In some embodiments, if the control icon corresponds to the single control, the single control is inserted into the grid, group box, or several tabs of the content panel.
[0049] In some embodiments, the report design interface further includes a panel expansion button, and the method further includes: clicking the panel expansion button to add an expanded panel in the second area.
[0050] like Figure 4 As shown, click the grid container in the report design interface and drag it into the report design interface on the right. An additional grid will appear in the right design interface for designing the interface layout. You can set the width and spacing of the grid, and you can drag the grid to customize its position.
[0051] like Figure 5 As shown, click the group box in the report design interface and drag it into the design interface on the right. This will add another group box to the right-hand design interface. Multiple group boxes can be set simultaneously, and their positions can be freely adjusted to allow for user-defined interface design. The right side allows for setting properties for the group boxes, such as their names, shadows, and whether they are collapsed.
[0052] like Figure 6As shown, click on the tab layout in the report design interface and drag it into the design interface on the right. This will add another tab to the right-hand design interface, allowing you to set multiple tabs simultaneously and customize the interface design. Tabs can be deleted and renamed on the right side.
[0053] like Figure 7 As shown, the data display module of the composite control includes a two-dimensional table, a card table, and a Gantt chart, and the operation module of the composite control includes a toolbar and a tree view.
[0054] like Figure 8 As shown in the figure, the user drags a two-dimensional table control from the left to the design area on the right. The design area on the right then displays a two-dimensional table. By designing the number of rows and columns of the two-dimensional table, the user can customize how many rows and columns the two-dimensional table has. The user can also fill in field values and design the table header, etc.
[0055] like Figure 9 As shown in the image, the user drags a card table control from the left into the design area on the right, which then displays a card table. Users can design the number of rows and columns, as well as the card table's height, borders, and other properties.
[0056] like Figure 10 As shown in the image, this diagram illustrates how a user drags toolbar controls from the left into the design area on the right. The right design area then displays a toolbar, typically added at the top of the right design area, but it can also be placed elsewhere. Event bindings can be assigned to toolbar buttons. Custom toolbars are supported.
[0057] like Figure 11 As shown in the image, the user drags a tree control from the left into the design area on the right. The right design area then displays a tree structure designer, primarily used for hierarchical design. The default is a three-level tree, but the hierarchy can be customized. The right side allows users to design the tree's title, size, parent-child node linkage, and other attributes.
[0058] like Figure 12 As shown in the diagram, the user drags the Gantt chart control from the left to the design area on the right, where a Gantt chart is displayed, and the user can customize the Gantt chart's properties.
[0059] like Figure 13As shown, the control panel includes individual control elements such as input boxes, multi-line text boxes, checkboxes, dropdown options, and time pickers. Users can add these controls by dragging and dropping from the left-hand control panel to create their desired data form for displaying data. Clicking "OK" saves the user-designed form, which is then displayed on the data presentation screen.
[0060] like Figure 14 As shown in the image, the user drags an input box control from the left into the design area on the right. The right design area then displays an input box, which is primarily used to receive user input. Users can customize the input box's properties, including its title, size, text direction, and position.
[0061] like Figure 15 As shown in the image, the user drags a multi-line text box control from the left into the design area on the right. The right design area then displays a multi-line text box, similar to an input box, but unlike an input box which only allows single-line text input and does not support line breaks, the multi-line text box allows line breaks. Users can customize the properties of the multi-line text box, including the title, size, text direction, and position. They can also resize the multi-line text box control by dragging the bottom right corner.
[0062] like Figure 16 As shown in the image, the user drags a counter control from the left into the design area on the right. The right design area then displays a counter, which is primarily used for counting. Users can customize the size and position of the counter, and add data sources to it, among other operations.
[0063] like Figure 17 As shown in the image, the user drags a radio button control from the left into the design area on the right, where a radio button is displayed. The user can customize the size and position of the radio button, as well as the value of each option.
[0064] like Figure 18 As shown in the image, the user drags a checkbox control from the left to the design area on the right, where a checkbox is displayed. Checkboxes are similar to radio buttons, except that multiple selections can be made. Users can customize the size and position of the checkbox, as well as the value of each option.
[0065] like Figure 19As shown in the image, the user drags a dropdown control from the left to the design area on the right, where a dropdown is then displayed. The dropdown allows the user to select a value from the dropdown options. Users can customize the size and position of the dropdown, and set its data source, among other things.
[0066] like Figure 20 As shown in the image, the user drags a time picker control from the left into the design area on the right, where a time picker is displayed. The time picker automatically selects the current time by default, but the user can customize the selected time. The size, border color, and corner radius of the time picker control can be customized.
[0067] like Figure 21 As shown in the image, the user drags a time range selector control from the left into the design area on the right. The right design area then displays a time range selector. The time range selector allows selection of a time range. Users can customize the start and end times. The current time is automatically selected by default. The size, border color, and corner radius of the time range selector control can be customized.
[0068] like Figure 22 As shown in the image, the user drags a date picker control from the left into the design area on the right, where a date picker is displayed. The date picker allows selection of a specific date. It automatically defaults to the current date. The size, border color, and corner radius of the date picker control can be customized.
[0069] like Figure 23 As shown in the image, the user drags a date range selector control from the left into the design area on the right, which then displays a date range selector. The date range selector allows selection of a date range. Users can customize the start and end dates. The current date is automatically selected by default. The size, border color, and corner radius of the date range selector control can be customized.
[0070] like Figure 24 As shown in the image, the user drags a switch selector control from the left to the design area on the right, where a switch selector is displayed. The user can set properties for the switch selector, such as data source, border color, and corner radius.
[0071] like Figure 25As shown in the image, the user drags a rating control from the left into the design area on the right, where the rating control is then displayed. The user can then use the rating control to assign a rating. Users can also set properties for the rating control, such as data source, color, and size.
[0072] like Figure 26 As shown in the image, the user drags a slider control from the left to the design area on the right, where the slider control is then displayed. The slider control is primarily used to record task progress, and users can bind data sources to it and design recording conditions, colors, and other attributes.
[0073] like Figure 27 As shown in the image, the user drags a button control from the left into the design area on the right, where a button is then displayed. Users can customize the button's size, color, shape, type, and other attributes, and can add click events to the button.
[0074] like Figure 28 As shown in the image, the user drags a divider control from the left into the design area on the right, and the right design area then displays a divider. Dividers are primarily used to separate two sections of content, standardizing the page layout. Users can customize the divider's name, direction, and other attributes.
[0075] like Figure 29 As shown in the image, the user drags an attachment control from the left to the design area on the right, which then displays an attachment selection control. Clicking the "Select File" button on the right opens a folder where the user can select specific files to add. Users can customize attachment properties, including whether multiple files can be selected, upload prompts, file types, maximum number of files that can be uploaded, and file size limits.
[0076] like Figure 30 As shown in the image, the user drags an image control from the left to the design area on the right, which then displays an image selection control. Clicking the '+' button on the right opens a folder where the user can select specific images to add. Users can customize the image selection control's properties, including whether multiple images can be selected, upload prompts, image types, maximum number of images uploaded, and image size limits.
[0077] The following section provides a detailed introduction and explanation of the solutions in this embodiment of the invention, using specific statistical task implementation scenarios as examples: This application provides a method for quickly generating statistical reports in data statistics tasks. This method is applied to a power management system, enabling the design of statistical report pages and the development of statistical functions using low-code methods within the power management system.
[0078] See Figure 31 , Figure 31 This document illustrates the task of compiling data on the number of overdue major science and technology projects for the Innovation Department. In order to achieve quarterly data statistics on overdue major science and technology projects for the Innovation Department, monitor the progress of major science and technology projects, and promptly identify overdue situations, data items such as the number of overdue major science and technology projects for the current quarter and the cumulative data for the year are collected on a quarterly basis. Data collection needs to support both manual entry and data import methods, and batch data export is also possible, so as to realize the review and reporting process management of the number of overdue major science and technology projects.
[0079] See Figure 32 , Figure 32 This demonstrates the data statistics function for major and above accidents of the Ministry of Safety Supervision. It enables quarterly data statistics for major and above accidents of the Ministry of Safety Supervision, allowing for an understanding of the occurrence of accidents. It collects data items such as the number of major and above accidents for the current quarter and the cumulative data for the year on a quarterly basis. Data collection should support both manual entry and data import methods. It can also export data in batches, and realize the management of the review and reporting process for the number of major and above accidents.
[0080] See Figure 33 , Figure 33 The function shown is the statistical function for primary and secondary negative public opinion data. It realizes the quarterly statistical analysis of primary and secondary negative public opinion data, and enables the monitoring and supervision of public opinion data. It collects data items such as the current quarter and annual cumulative data of primary and secondary negative public opinion indicators on a quarterly basis. Data collection should support both manual entry and data import. At the same time, it can export data in batches, and realize the review and reporting process management of primary and secondary negative public opinion indicators.
[0081] To achieve the above objectives, another aspect of the embodiments of this application proposes an apparatus for rapidly generating statistical reports in a data statistics task, the apparatus including a processor and a display screen; The display screen is used to display the report design interface in the method described in the above embodiments; The processor is used for data processing and instruction response in the methods described in the above embodiments.
[0082] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0083] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0084] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0085] Please see Figure 35 , Figure 35 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 3501 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 3502 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 3502 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 3502 and is called and executed by the processor 3501 using the methods described in the embodiments of this application. The 3503 input / output interface is used to implement information input and output. The communication interface 3504 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 3505 transmits information between various controls of the device (e.g., processor 3501, memory 3502, input / output interface 3503, and communication interface 3504); The processor 3501, memory 3502, input / output interface 3503 and communication interface 3504 are connected to each other within the device via bus 3505.
[0086] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0087] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0088] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0089] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0090] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0091] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0092] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0093] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0094] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0095] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0096] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0097] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or controls may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between devices or units, and may be electrical, mechanical, or other forms.
[0098] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0099] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0100] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0101] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for rapidly generating statistical reports in data statistics tasks, characterized in that, The method includes: In response to the statistical report generation operation, a report design interface is displayed, wherein the report design interface includes a first area, a second area and a third area, and the first area displays control icons for interaction; In response to moving the control icon from the first area to the second area, a control corresponding to the control icon is generated in the second area; The third area displays the attribute configuration list of the control, obtains the control setting information through the attribute configuration list, and changes the display state of the control and / or adds the control according to the control setting information; In response to the save operation of the statistical report, the report information on the second area is serialized to obtain a structured page description file, and the structured page description file is sent to the system. The structured page description file is used to start the page access service of the statistical report on the system.
2. The method as described in claim 1, characterized in that, The second area includes a top panel, a side panel, and a content panel; the top panel is used to place controls at the global operation level, the side panel is used to place controls at the page switching operation level, and the content panel is used to place controls at the page operation level; wherein, the global operation level controls represent controls that implement common functional operations in the statistical report; the page switching operation level controls represent controls that implement page switching operations for different data collection objects; and the page operation level controls represent controls that implement operations to display, collect, or distribute data to the data collection object.
3. The method as described in claim 2, characterized in that, The controls are categorized by function type, including container controls, composite controls, and single-unit controls. Container controls define the data structure of the content panel, composite controls allow for reusable operations, and single-unit controls configure data types or trigger actions.
4. The method as described in claim 3, characterized in that, The composite control includes a two-dimensional table, a card table, a Gantt chart, a tree structure, and a toolbar; The step of responding to moving the control icon from the first area to the second area and generating a control corresponding to the control icon in the second area includes: If the control icon corresponds to a two-dimensional table, card table, or Gantt chart of the composite control, insert the two-dimensional table, card table, or Gantt chart into the content panel; if the control icon corresponds to a tree structure of the composite control, insert a tree branch into the sidebar panel, and the tree branch is used to switch the page of the content panel; if the control icon corresponds to a toolbar of the composite control, insert a toolbar into the top bar panel, and the toolbar is used to implement the common functions in the statistical report.
5. The method as described in claim 3, characterized in that, The step of responding to moving the control icon from the first area to the second area and generating a control corresponding to the control icon in the second area further includes: If the control icon corresponds to a two-dimensional table, card table, or Gantt chart of the composite control, insert the two-dimensional table, card table, or Gantt chart into the content panel; If the control icon corresponds to the tree structure of the composite control, a tree branch is inserted into the sidebar panel, and the tree branch is used to switch the page of the content panel; If the control icon corresponds to the toolbar of the composite control, a toolbar is inserted into the top panel. The toolbar is used to implement common functions in the statistical report.
6. The method as described in claim 3, characterized in that, The step of responding to moving the control icon from the first area to the second area and generating a control corresponding to the control icon in the second area further includes: If the control icon corresponds to the single control, insert the single control into the grid, group box, or several tabs of the content panel.
7. The method as described in claim 1, characterized in that, The report design interface also includes a panel expansion button, and the method further includes: Click the panel expansion button to add an expanded panel to the second area. The expanded panel supports custom operations.
8. An apparatus for rapidly generating statistical reports in a data statistics task, characterized in that, The device includes a processor and a display screen; The display screen is used to execute the display report design interface in the method of any one of claims 1 to 7; The processor is used to perform data processing and instruction response in the method of any one of claims 1 to 7.
9. An electronic device, characterized in that, include: At least one processor; At least one memory for storing at least one program; when the at least one program is executed by the at least one processor, the at least one processor implements the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
