CN112487771B - Report generation method, report generation device and terminal - Google Patents

Report generation method, report generation device and terminal Download PDF

Info

Publication number
CN112487771B
CN112487771B CN202011467350.0A CN202011467350A CN112487771B CN 112487771 B CN112487771 B CN 112487771B CN 202011467350 A CN202011467350 A CN 202011467350A CN 112487771 B CN112487771 B CN 112487771B
Authority
CN
China
Prior art keywords
report
page
stylized
basic
template
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.)
Active
Application number
CN202011467350.0A
Other languages
Chinese (zh)
Other versions
CN112487771A (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.)
State Grid Hebei Electric Power Co Ltd
Original Assignee
State Grid Hebei Electric Power 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 State Grid Hebei Electric Power Co Ltd filed Critical State Grid Hebei Electric Power Co Ltd
Priority to CN202011467350.0A priority Critical patent/CN112487771B/en
Publication of CN112487771A publication Critical patent/CN112487771A/en
Application granted granted Critical
Publication of CN112487771B publication Critical patent/CN112487771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention is suitable for the technical field of data processing, and provides a report generation method, a report generation device and a terminal. The report generation method comprises the following steps: obtaining report data and report configuration information, generating a report data set and a report configuration set, selecting a basic report single-page template and a stylized report single-page template, analyzing the basic report single-page template and the stylized report single-page template to obtain basic report single-page template data blocks and stylized report single-page template data blocks, filling the report data matched with the basic report single-page template data blocks in the report data set into the basic report single-page template to obtain a basic single-page report, filling the report data matched with the stylized report single-page template data blocks in the report data set into the stylized report single-page template to obtain a stylized single-page report, carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report, thereby enriching report generation means.

Description

Report generation method, report generation device and terminal
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a report generating method, a report generating device, a terminal, and a computer readable storage medium.
Background
At present, a report is used as an enterprise-level application, mainly exists in a browser and server architecture (namely a B/S architecture), an application program can be deployed to be accessed by multiple people, and when people with different roles access the report, permission control is accompanied so that report results seen by different people are different.
The existing report generating application program is generally a Web application program based on Java and J2EE, and is seriously dependent on a network. In some specific scenarios, for example, in the case of field interviews, the external network cannot be connected according to the confidentiality principle of the field, and then a required report cannot be generated.
Therefore, there is a need to generate reports in a standalone environment. However, the conventional single-machine report generating tool usually generates multiple pages of the same report according to a model, and only provides the simplest form to display data, so that the generated report has single format and cannot meet the actual needs.
Disclosure of Invention
In view of the above, the present invention provides a report generating method, a report generating device, a terminal and a computer readable storage medium, so as to solve the problem that the report generated by the report generating method in the prior art cannot meet the use requirement in a stand-alone environment.
The first aspect of the embodiment of the invention provides a report generation method, which is applied to terminal equipment in a single-machine environment, wherein the terminal equipment is pre-stored with a plurality of single-page templates, the single-page templates comprise more than two basic report single-page templates and more than two stylized report single-page templates, and the single-page templates comprise data blocks for indicating single-page content data of the single-page templates;
the report generation method comprises the following steps:
acquiring report data and report configuration information, wherein the report data comprises data to be displayed in a generated report, and the report configuration information comprises page style information and page ordering information of the generated report;
classifying and integrating the report data to generate a report data set;
classifying and integrating the report configuration information to generate a report configuration set;
selecting at least one basic report single page template and at least one stylized report single page template;
analyzing the selected basic report single page template to obtain a basic report single page template data block, and analyzing the selected stylized report single page template to obtain a stylized report single page template data block;
filling report data matched with the data block of the basic report single-page template in the report data set into the basic report single-page template to obtain a basic single-page report, and filling report data matched with the data block of the stylized report single-page template in the report data set into the stylized report single-page template to obtain a stylized single-page report;
and carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report.
The second aspect of the embodiment of the invention provides a report generating device, which is applied to terminal equipment in a single-machine environment, wherein the terminal equipment is pre-stored with a plurality of single-page templates, the single-page templates comprise more than two basic report single-page templates and more than two stylized report single-page templates, and the single-page templates comprise data blocks for indicating single-page content data of the single-page templates;
the report generating device comprises:
the system comprises an acquisition unit, a generation unit and a display unit, wherein the acquisition unit is used for acquiring report data and report configuration information, the report data comprises data to be displayed in a generated report, and the report configuration information comprises page style information and page ordering information of the generated report;
the first classification integration unit is used for classifying and integrating the report data to generate a report data set;
the second classification integration unit is used for classifying and integrating the report configuration information to generate a report configuration set;
the selecting unit is used for selecting at least one basic report single page template and at least one stylized report single page template;
the analysis unit is used for analyzing the selected basic report single-page template to obtain a basic report single-page template data block, and analyzing the selected stylized report single-page template to obtain a stylized report single-page template data block;
the filling unit is used for filling the report data matched with the data block of the basic report single page template in the report data set into the basic report single page template to obtain a basic single page report, and filling the report data matched with the data block of the stylized report single page template in the report data set into the stylized report single page template to obtain a stylized single page report;
and the configuration merging unit is used for carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set and merging to obtain a final report.
A third aspect of an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the report generating method as described in any one of the above when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the report generating method as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that:
the invention is applied to terminal equipment in a single machine environment, the terminal equipment is pre-stored with a plurality of single page templates, the single page templates comprise more than two basic report single page templates and more than two stylized report single page templates, and the single page templates comprise data blocks for indicating single page content data of the single page templates; generating a report data set by acquiring report data and report configuration information and classifying and integrating the report data; classifying and integrating the report configuration information to generate a report configuration set; selecting at least one basic report single page template and at least one stylized report single page template; analyzing the selected basic report single page template to obtain a basic report single page template data block, and analyzing the selected stylized report single page template to obtain a stylized report single page template data block; filling report data matched with the data block of the basic report single-page template in the report data set into the basic report single-page template to obtain a basic single-page report, and filling report data matched with the data block of the stylized report single-page template in the report data set into the stylized report single-page template to obtain a stylized single-page report; and carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report. On one hand, the invention adopts a mode of directly reading and writing the local single-page template of the terminal equipment, and can be suitable for a single-machine environment without connecting an external network; on the other hand, the invention can select the single page template to carry out data filling and template style adjustment according to actual needs by presetting more than two basic report single page templates and more than two stylized report single page templates in a single machine environment, and finally generates a final report through combination, thereby enriching the means of report generation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of one implementation of a report generation method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a report generating device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made by way of specific embodiments with reference to the accompanying drawings.
The invention can be applied to terminal equipment in a single-machine environment, the terminal equipment can be stored with a plurality of single-page templates in advance, and the stored single-page templates can comprise more than two basic report single-page templates and more than two stylized report single-page templates, wherein each single-page template comprises a data block for indicating single-page content data of the single-page template, so that report generation in the single-machine environment is realized.
Referring to fig. 1, a flowchart of an implementation of a report generation method provided by an embodiment of the present invention is shown, and details are as follows:
s101, report data and report configuration information are obtained, wherein the report data comprises data to be displayed in a generated report, and the report configuration information comprises page style information and page ordering information of the generated report.
In the embodiment of the invention, the report configuration information can be page style and page ordering required to be displayed in a report, the report data can be data to be displayed in a generated report, for example, a paper monograph is arranged in a report template, the content required to be displayed in the paper monograph is paper name, publishing time, publication name and the like, the content filled in after the paper name, the time filled in after the publishing time and the content filled in after the publication name can be report data, and the display position, paper name, publishing time, the arrangement sequence of the publication names and the overall page style of the paper monograph can be report configuration information.
S102, classifying and integrating the report data to generate a report data set.
In the embodiment of the invention, the report data set can be used for being filled into the report single page template later, and the report data set can comprise a data type set and a data display set. For example, all data in the catalogued integrated paper work is one data set.
S103, classifying and integrating the report configuration information to generate a report configuration set.
In the embodiment of the invention, the report configuration information set can be used for generating a report, and the report configuration information set can comprise template configuration of each page of the report, a data set corresponding to each page, a name for generating the report and a report generation address. For example, each page template of the classified integrated report is configured as a report configuration set.
S104, selecting at least one basic report single page template and at least one stylized report single page template.
In the embodiment of the invention, the basic single page template can comprise five basic report single page templates of a personal basic information report, a filling description table, a unit recommendation report, a personal work performance report and a unit audit opinion report; the stylized report single page template can be obtained by combining configuration information in the five basic report single page templates according to actual needs.
Optionally, in an embodiment, the method may further include receiving custom single page template information, where the custom single page template information includes custom single page titles and custom style configuration information;
and generating a custom template according to the custom single-page template information and storing the custom template in the terminal equipment.
S105, analyzing the selected basic report single-page template to obtain a basic report single-page template data block, and analyzing the selected stylized report single-page template to obtain the stylized report single-page template data block.
In the embodiment of the invention, the data block of the base report single page template can be single page content data in the base report single page template, and the data block of the stylized report single page template can be single page content data in the stylized report single page template.
Optionally, in an embodiment, in S105, analyzing the selected basic report single-page template to obtain a basic report single-page template data block, and analyzing the selected stylized report single-page template to obtain a stylized report single-page template data block may further include: judging whether the grammar of the parsed basic report single-page template data block and the grammar of the stylized report single-page template data block correspond to those of the JSON format file, if the grammar of the parsed basic report single-page template data block and the grammar of the stylized report single-page template data block correspond to those of the JSON format file, filling the report data matched with the basic report single-page template data block in the report data set into the basic report single-page template to obtain a basic single-page report, and filling the report data matched with the stylized report single-page template data block in the report data set into the stylized report single-page template to obtain a stylized single-page report.
And S106, filling the report data matched with the data block of the basic report single-page template in the report data set into the basic report single-page template to obtain a basic single-page report, and filling the report data matched with the data block of the stylized report single-page template in the report data set into the stylized report single-page template to obtain a stylized single-page report.
In the embodiment of the invention, the report data set is respectively matched with the basic report single page template data block and the stylized report single page template data block, for example, the analysis generated basic report single page template data block or the stylized report single page template data block is required to comprise the paper name, the publication time, the publication name and the like in the paper monograph, and the report data set also comprises the paper name, the publication time and the publication name, and after the matching is consistent, the report generation link is entered.
And S107, carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report.
In the embodiment of the invention, the basic single-page report and the stylized single page after the page style configuration are combined according to the report configuration set to obtain the final report.
Optionally, in an embodiment, performing page style configuration on the basic single-page report and the stylized single-page report according to page style information in the report configuration set to obtain a basic single-page report page style meeting the requirement and a stylized single-page report page style meeting the requirement; and merging the single-page report after the page style configuration is completed according to the report names and the page ordering information in the report configuration set, and generating a final report.
Optionally, in an embodiment of the present invention, the report generating method further includes:
receiving custom single page template information, wherein the custom single page template information comprises custom single page titles and custom style configuration information;
and generating a custom template according to the custom single-page template information and storing the custom template in the terminal equipment.
As can be seen from the above, the present invention can be applied to a terminal device in a stand-alone environment, where the terminal device stores in advance a plurality of single-page templates, where the single-page templates include two or more basic report single-page templates and two or more stylized report single-page templates, and the single-page templates include data blocks for indicating single-page content data of the single-page templates; the report generation method can comprise the following steps: acquiring report data and report configuration information, wherein the report data comprises data to be displayed in a generated report, and the report configuration information comprises page style information and page ordering information of the generated report; classifying and integrating the report data to generate a report data set; classifying and integrating the report configuration information to generate a report configuration set; selecting at least one basic report single page template and at least one stylized report single page template; analyzing the selected basic report single page template to obtain a basic report single page template data block, and analyzing the selected stylized report single page template to obtain a stylized report single page template data block; filling report data matched with the data block of the basic report single-page template in the report data set into the basic report single-page template to obtain a basic single-page report, and filling report data matched with the data block of the stylized report single-page template in the report data set into the stylized report single-page template to obtain a stylized single-page report; and carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report. On one hand, the invention adopts a mode of directly reading and writing the local single-page template of the terminal equipment, and can be suitable for a single-machine environment without connecting an external network; on the other hand, the invention can select the single page template to carry out data filling and template style adjustment according to actual needs by presetting more than two basic report single page templates and more than two stylized report single page templates in a single machine environment, and finally generates a final report through combination, thereby enriching the means of report generation.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 2 is a schematic structural diagram of a report generating device according to an embodiment of the present invention, and for convenience of explanation, only the portions relevant to the embodiment of the present invention are shown, which are described in detail below:
as shown in fig. 2, the report generating device 2 is applied to a terminal device in a stand-alone environment, where the terminal device stores a plurality of single-page templates in advance, where the single-page templates include two or more basic report single-page templates and two or more stylized report single-page templates, and the single-page templates include a data block for indicating single-page content data of the single-page templates;
the report generation device 2 includes: the system comprises an acquisition unit 21, a first classification integration unit 22, a second classification integration unit 23, a selection unit 24, a resolution unit 25, a reporting unit 26 and a configuration merging unit 27.
An obtaining unit 21, configured to obtain report data and report configuration information, where the report data includes data to be displayed in a generated report, and the report configuration information includes page style information and page ordering information of the generated report;
the first classification integration unit 22 is configured to perform classification integration on the report data to generate a report data set;
the second classification integration unit 23 is configured to perform classification integration on the report configuration information to generate a report configuration set;
a selecting unit 24, configured to select at least one basic report sheet template and at least one stylized report sheet template;
the parsing unit 25 is configured to parse the selected basic report single-page template to obtain a basic report single-page template data block, and parse the selected stylized report single-page template to obtain a stylized report single-page template data block;
the filling unit 26 is configured to fill report data in the report data set, which is matched with the data block of the base report single page template, into the base report single page template to obtain a base single page report, and fill report data in the report data set, which is matched with the data block of the stylized report single page template, into the stylized report single page template to obtain a stylized single page report;
and the configuration merging unit 27 is used for carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set and merging to obtain a final report.
As can be seen from the above, the present invention can be applied to a terminal device in a stand-alone environment, where the terminal device stores in advance a plurality of single-page templates, where the single-page templates include two or more basic report single-page templates and two or more stylized report single-page templates, and the single-page templates include data blocks for indicating single-page content data of the single-page templates; the report generation method can comprise the following steps: acquiring report data and report configuration information, wherein the report data comprises data to be displayed in a generated report, and the report configuration information comprises page style information and page ordering information of the generated report; classifying and integrating the report data to generate a report data set; classifying and integrating the report configuration information to generate a report configuration set; selecting at least one basic report single page template and at least one stylized report single page template; analyzing the selected basic report single page template to obtain a basic report single page template data block, and analyzing the selected stylized report single page template to obtain a stylized report single page template data block; filling report data matched with the data block of the basic report single-page template in the report data set into the basic report single-page template to obtain a basic single-page report, and filling report data matched with the data block of the stylized report single-page template in the report data set into the stylized report single-page template to obtain a stylized single-page report; and carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report. On one hand, the invention adopts a mode of directly reading and writing the local single-page template of the terminal equipment, and can be suitable for a single-machine environment without connecting an external network; on the other hand, the invention can select the single page template to carry out data filling and template style adjustment according to actual needs by presetting more than two basic report single page templates and more than two stylized report single page templates in a single machine environment, and finally generates a final report through combination, thereby enriching the means of report generation.
Optionally, the file type of the report template comprises a JSON format file.
Optionally, the report generating device 2 further includes:
the judging unit is used for judging whether the grammar of the parsed basic report single page template data block and the grammar of the stylized report single page template data block correspond to the grammar of the JSON format file;
correspondingly, if the grammar of the parsed basic report single page template data block and the grammar of the stylized report single page template data block correspond to the grammar of the JSON format file, the configuration merging unit is specifically configured to fill the report data matched with the basic report single page template data block in the report data set into the basic report single page template to obtain a basic single page report, and fill the report data matched with the stylized report single page template data block in the report data set into the stylized report single page template to obtain a stylized single page report.
Optionally, the report generating device 2 further includes:
the page style configuration unit is used for carrying out page style configuration on the basic single page report and the stylized single page report according to page style information in the report configuration set;
correspondingly, the configuration merging unit 27 is specifically configured to merge the single-page report after the configuration of the page style is completed according to the report name and the page ordering information in the report configuration set, so as to generate a final report.
Optionally, the report generating device 2 further includes:
the receiving unit is used for receiving the custom single-page template information, wherein the custom single-page template information comprises custom single-page titles and custom style configuration information;
and the custom template generating unit is used for generating a custom template according to the custom single-page template information and storing the custom template in the terminal equipment.
Fig. 3 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 3, the terminal 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30. The processor 30, when executing the computer program 32, implements the steps in the method embodiments of report generation described above, such as S101 to S107 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, performs the functions of the units in the above-described device embodiments, such as the functions of the units 21 to 27 shown in fig. 3.
By way of example, the computer program 32 may be divided into one or more units, which are stored in the memory 31 and executed by the processor 30 to complete the present invention. The one or more units may be a series of computer program instruction segments capable of performing a specific function describing the execution of the computer program 32 in the terminal 3. For example, the computer program 32 may be divided into an acquisition unit, a first classification integration unit, a second classification integration unit, a selection unit, a parsing unit, a reporting unit, and a configuration merging unit, each of which has the following specific functions:
the system comprises an acquisition unit, a generation unit and a display unit, wherein the acquisition unit is used for acquiring report data and report configuration information, the report data comprises data to be displayed in a generated report, and the report configuration information comprises page style information and page ordering information of the generated report;
the first classification integration unit is used for classifying and integrating the report data to generate a report data set;
the second classification integration unit is used for classifying and integrating the report configuration information to generate a report configuration set;
the selecting unit is used for selecting at least one basic report single page template and at least one stylized report single page template;
the analysis unit is used for analyzing the selected basic report single-page template to obtain a basic report single-page template data block, and analyzing the selected stylized report single-page template to obtain a stylized report single-page template data block;
the filling unit is used for filling the report data matched with the data block of the basic report single page template in the report data set into the basic report single page template to obtain a basic single page report, and filling the report data matched with the data block of the stylized report single page template in the report data set into the stylized report single page template to obtain a stylized single page report;
and the configuration merging unit is used for carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set and merging to obtain a final report.
The terminal 3 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the terminal 3 and does not constitute a limitation of the terminal 3, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal may further include an input-output device, a network access device, a bus, etc.
The processor 30 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the terminal 3, such as a hard disk or a memory of the terminal 3. The memory 31 may be an external storage device of the terminal 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal 3. The memory 31 is used for storing the computer program as well as other programs and data required by the terminal. The memory 31 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that the above-described functional units are merely illustrated in terms of division for convenience and brevity, and that in practical applications, the above-described functional units may be allocated to different functional units, i.e., the internal structure of the apparatus may be divided into different functional units, so as to perform all or part of the above-described functions. The functional units in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present application. The specific working process of the units in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of units, electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium may include content that is subject to appropriate increases and decreases as required by jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is not included as electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (9)

1. The report generation method is characterized by being applied to terminal equipment in a single machine environment, wherein the terminal equipment is pre-stored with a plurality of single page templates, the single page templates comprise more than two basic report single page templates and more than two stylized report single page templates, and the single page templates comprise data blocks for indicating single page content data of the single page templates;
the report generation method comprises the following steps:
acquiring report data and report configuration information of a single-page template stored in the terminal equipment in advance, wherein the report data comprises data to be displayed in a generated report in a single-machine environment, and the report configuration information comprises page style information and page ordering information of the report to be generated in the single-machine environment;
classifying and integrating the report data to generate a report data set;
classifying and integrating the report configuration information to generate a report configuration set;
selecting at least one basic report single page template and at least one stylized report single page template which are stored in the terminal equipment in advance, wherein the stylized report single page templates can be used for combining configuration information in the basic single page report templates according to actual needs to obtain the stylized report single page templates meeting requirements;
analyzing the selected basic report single-page template to obtain a basic report single-page template data block, wherein the basic report single-page module data block comprises single-page content data in the basic report template; analyzing the selected stylized report single-page template to obtain a stylized report single-page template data block, wherein the stylized report single-page template data block comprises single-page content data in the stylized report single-page template;
filling report data matched with the data block of the basic report single-page template in the report data set into the basic report single-page template to obtain a basic single-page report, and filling report data matched with the data block of the stylized report single-page template in the report data set into the stylized report single-page template to obtain a stylized single-page report;
performing page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set, and merging to obtain a final report;
the step of carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set and combining the basic single-page report and the stylized single-page report to obtain a final report comprises the following steps:
performing page style configuration on the basic single page report and the stylized single page report according to page style information in the report configuration set;
and merging the single-page report after the page style configuration is completed according to the report names and the page ordering information in the report configuration set, and generating a final report.
2. The report generating method of claim 1, wherein the file type of the report template comprises a JSON format file.
3. The report generating method as set forth in claim 2, wherein after said parsing the selected base report sheet template to obtain a base report sheet template data block, and parsing the selected stylized report sheet template to obtain a stylized report sheet template data block, further comprises:
judging whether the grammar of the parsed basic report single page template data block and the grammar of the stylized report single page template data block correspond to the grammar of the JSON format file;
correspondingly, the step of filling the report data matched with the data block of the base report single page template in the report data set into the base report single page template to obtain a base single page report, and the step of filling the report data matched with the data block of the stylized report single page template in the report data set into the stylized report single page template to obtain a stylized single page report comprises the following steps:
and if the grammar of the basic report single page template data block and the grammar of the stylized report single page template data block obtained after analysis correspond to the grammar of the JSON format file, filling the report data matched with the basic report single page template data block in the report data set into the basic report single page template to obtain a basic single page report, and filling the report data matched with the stylized report single page template data block in the report data set into the stylized report single page template to obtain a stylized single page report.
4. A report generating method as claimed in any one of claims 1 to 3, wherein said report generating method further comprises:
receiving custom single page template information, wherein the custom single page template information comprises custom single page titles and custom style configuration information;
and generating a custom template according to the custom single-page template information and storing the custom template in the terminal equipment.
5. The report generating device is characterized by being applied to terminal equipment in a single machine environment, wherein the terminal equipment is pre-stored with a plurality of single page templates, the single page templates comprise more than two basic report single page templates and more than two stylized report single page templates, and the single page templates comprise data blocks for indicating single page content data of the single page templates;
the report generating device comprises: the terminal equipment comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit is used for acquiring report data and report configuration information of a single page template stored in the terminal equipment in advance, the report data comprises data to be displayed in a generated report in a single machine environment, and the report configuration information comprises page style information and page ordering information of the report to be generated in the single machine environment;
the first classification integration unit is used for classifying and integrating the report data to generate a report data set;
the second classification integration unit is used for classifying and integrating the report configuration information to generate a report configuration set;
the selection unit is used for selecting at least one basic report single page template and at least one stylized report single page template, wherein the stylized report single page templates can be used for combining configuration information in the basic single page report template according to actual needs to obtain the stylized report single page template meeting the needs;
the analysis unit is used for analyzing the selected basic report single-page template to obtain a basic report single-page template data block, wherein the basic report single-page module data block comprises single-page content data in the basic report template; analyzing the selected stylized report single-page template to obtain a stylized report single-page template data block, wherein the basic report single-page module data block comprises single-page content data in a basic report template;
the filling unit is used for filling the report data matched with the data block of the basic report single page template in the report data set into the basic report single page template to obtain a basic single page report, and filling the report data matched with the data block of the stylized report single page template in the report data set into the stylized report single page template to obtain a stylized single page report;
the configuration merging unit is used for carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set and merging to obtain a final report;
the step of carrying out page style configuration on the basic single-page report and the stylized single-page report based on the report configuration set and combining the basic single-page report and the stylized single-page report to obtain a final report comprises the following steps:
performing page style configuration on the basic single page report and the stylized single page report according to page style information in the report configuration set;
and merging the single-page report after the page style configuration is completed according to the report names and the page ordering information in the report configuration set, and generating a final report.
6. The report generating apparatus of claim 5, wherein the file type of the report template comprises a JSON format file.
7. The report generating apparatus as recited in claim 6, wherein the report generating apparatus further comprises:
the judging unit is used for judging whether the grammar of the parsed basic report single page template data block and the grammar of the stylized report single page template data block correspond to the grammar of the JSON format file;
correspondingly, the filling unit is specifically configured to:
and if the grammar of the basic report single page template data block and the grammar of the stylized report single page template data block obtained after analysis correspond to the grammar of the JSON format file, filling the report data matched with the basic report single page template data block in the report data set into the basic report single page template to obtain a basic single page report, and filling the report data matched with the stylized report single page template data block in the report data set into the stylized report single page template to obtain a stylized single page report.
8. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the report generating method according to any of the preceding claims 1 to 4 when the computer program is executed.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the report generating method according to any of the preceding claims 1 to 4.
CN202011467350.0A 2020-12-14 2020-12-14 Report generation method, report generation device and terminal Active CN112487771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011467350.0A CN112487771B (en) 2020-12-14 2020-12-14 Report generation method, report generation device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011467350.0A CN112487771B (en) 2020-12-14 2020-12-14 Report generation method, report generation device and terminal

Publications (2)

Publication Number Publication Date
CN112487771A CN112487771A (en) 2021-03-12
CN112487771B true CN112487771B (en) 2023-05-30

Family

ID=74916953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011467350.0A Active CN112487771B (en) 2020-12-14 2020-12-14 Report generation method, report generation device and terminal

Country Status (1)

Country Link
CN (1) CN112487771B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779941B (en) * 2021-09-08 2023-07-25 无锡艾布斯智能科技发展有限公司 Configurable dynamic report generation device, system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778234A (en) * 2014-01-26 2014-05-07 北京恒华伟业科技股份有限公司 Report form generating method and device
CN106354707A (en) * 2015-10-29 2017-01-25 云南电力调度控制中心 Province class power grid energy-saving power generation dispatching report dynamic generation system
CN108132945A (en) * 2016-12-01 2018-06-08 百度在线网络技术(北京)有限公司 For generating the method and apparatus of report
CN109471890A (en) * 2018-10-16 2019-03-15 深圳壹账通智能科技有限公司 Generation method, terminal device and the medium of report file
CN109634992A (en) * 2019-02-20 2019-04-16 北京虹晟信息科技有限公司 A kind of structure of report decomposition method, report form generation method, device
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium
CN111126019A (en) * 2019-11-28 2020-05-08 泰康保险集团股份有限公司 Report generation method and device based on mode customization and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778234A (en) * 2014-01-26 2014-05-07 北京恒华伟业科技股份有限公司 Report form generating method and device
CN106354707A (en) * 2015-10-29 2017-01-25 云南电力调度控制中心 Province class power grid energy-saving power generation dispatching report dynamic generation system
CN108132945A (en) * 2016-12-01 2018-06-08 百度在线网络技术(北京)有限公司 For generating the method and apparatus of report
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium
CN109471890A (en) * 2018-10-16 2019-03-15 深圳壹账通智能科技有限公司 Generation method, terminal device and the medium of report file
CN109634992A (en) * 2019-02-20 2019-04-16 北京虹晟信息科技有限公司 A kind of structure of report decomposition method, report form generation method, device
CN111126019A (en) * 2019-11-28 2020-05-08 泰康保险集团股份有限公司 Report generation method and device based on mode customization and electronic equipment

Also Published As

Publication number Publication date
CN112487771A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN109614102A (en) Code automatic generation method, device, electronic equipment and storage medium
CN107798038B (en) Data response method and data response equipment
CN107862425B (en) Wind control data acquisition method, device and system and readable storage medium
CN110309498B (en) Method and device for generating audit report based on parameters and method for generating audit report by using same
US20110161063A1 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN107451112B (en) Form tool data checking method, device, terminal equipment and storage medium
CN110347984B (en) Policy page changing method and device, computer equipment and storage medium
CN110472109B (en) Dynamic data quality analysis method and platform system
US11106908B2 (en) Techniques to determine document recognition errors
CN107784205A (en) A kind of method, apparatus, server and the storage medium of consumer products examination & verification
CN109408502A (en) A kind of data standard processing method, device and its storage medium
CN112487771B (en) Report generation method, report generation device and terminal
CN113938408B (en) Data traffic testing method and device, server and storage medium
CN113360300B (en) Interface call link generation method, device, equipment and readable storage medium
CN114266539A (en) File flow processing method, system, device and computer readable storage medium
CN113361220A (en) Verification environment construction method and device for automatically cutting integrated circuit design
CN109814916B (en) IVR flow configuration method, device, storage medium and server
CN117149631A (en) Parameter verification method, device, equipment and medium
CN110895460A (en) Jenkins-based robot system integration method and device and terminal equipment
CN114511318A (en) Account accounting method and device and electronic equipment
CN109344372B (en) Big data-based document generation method and system
CN113626392A (en) Method and device for updating document data, electronic equipment and storage medium
CN112395575A (en) Authority management method, device, equipment and storage medium
CN111652747B (en) Electronic policy processing method, device, equipment and computer readable storage medium
CN115222371B (en) Problem troubleshooting method and device, electronic equipment and storage medium

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