CN113076731A - Report file generation method and device, computer equipment and storage medium - Google Patents

Report file generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113076731A
CN113076731A CN202110466361.5A CN202110466361A CN113076731A CN 113076731 A CN113076731 A CN 113076731A CN 202110466361 A CN202110466361 A CN 202110466361A CN 113076731 A CN113076731 A CN 113076731A
Authority
CN
China
Prior art keywords
dimension
target
data
level
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110466361.5A
Other languages
Chinese (zh)
Inventor
陈鹏
杜虎
强露璐
吉永辉
王成伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qichacha Technology Co ltd
Original Assignee
Qichacha Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qichacha Technology Co ltd filed Critical Qichacha Technology Co ltd
Priority to CN202110466361.5A priority Critical patent/CN113076731A/en
Publication of CN113076731A publication Critical patent/CN113076731A/en
Pending legal-status Critical Current

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/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Abstract

The application relates to a report file generation method, a report file generation device, computer equipment and a storage medium, wherein an enterprise data dimension set is displayed in a dimension display page and comprises data dimensions to be selected; in response to a selection instruction of a data dimension, determining a target data dimension for generating a report file in the enterprise data dimension set; the customization requirements of users on the report files can be met, the content of the report files corresponds to the target data dimension selected by the users, the content of the report files which is not matched with the user requirements is reduced, the efficiency of reading the report files by the users is improved, and further, the target enterprise data corresponding to the target data dimension is obtained; acquiring an initial file data stream, wherein target enterprise data is used for filling the initial file data stream; and generating a target report file according to the initial file data stream and the target enterprise data. The generation speed of the report file is accelerated, and the time for a user to wait for the generation of the report file is reduced.

Description

Report file generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a report file, a computer device, and a storage medium.
Background
With the development of computer technology, report file automatic generation technology has emerged. For example, the business information of a certain enterprise is quickly and completely presented to the user with corresponding requirements, and an enterprise business information report file can be generated through a report file automatic generation technology. However, the manner of generating the enterprise business information report file in the conventional technology has a certain influence on the reading efficiency of the user.
Disclosure of Invention
In view of the above, it is desirable to provide a report file generation method, apparatus, computer device and storage medium capable of improving reading efficiency of a user.
A method of report file generation, the method comprising:
displaying an enterprise data dimension set in a dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected;
determining a target data dimension in the set of enterprise data dimensions for generating the report file in response to a selection instruction of a data dimension;
acquiring target enterprise data corresponding to the target data dimension;
acquiring an initial file data stream, wherein the target enterprise data is used for filling the initial file data stream;
and generating a target report file according to the initial file data stream and the target enterprise data.
In one embodiment, before the presenting the set of enterprise data dimensions in the dimension presentation page, the method comprises:
and responding to a selection instruction of a report type, and displaying the dimension display page, wherein the dimension display page corresponds to the report type carried by the selection instruction.
In one embodiment, the generating a target report file according to the initial file data stream and the target enterprise data includes:
filling enterprise data corresponding to the initial blank page to obtain an intermediate file data stream, and generating a new blank page based on the intermediate file data stream, wherein the target enterprise data further comprises enterprise data corresponding to the new blank page;
filling the enterprise data corresponding to the new blank page to obtain a report file data stream;
and generating the target report file according to the report file data stream.
In one embodiment, the populating the new blank page with the enterprise data corresponding to the new blank page includes:
determining each level of title text according to the text data corresponding to the target data dimension, and placing the each level of title text in the new blank page;
and correspondingly filling the target enterprise data corresponding to the target data dimension to the text position of each level of the title text in the new blank page.
In one embodiment, the target data dimension comprises a first level dimension and a second level dimension; determining each level of title text according to the text data corresponding to the target data dimension, wherein the step of determining each level of title text comprises the following steps:
determining a first-level title text according to the text data corresponding to the first-level dimensionality, and placing the first-level title text in the new blank page;
and responding to a line feed instruction, determining a second-level title text according to the text data corresponding to the second-level dimension, and placing the second-level title text in the new blank page.
In one embodiment, the correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page includes:
correspondingly filling the enterprise data corresponding to the first-level dimension to the text position of the first-level title text in the new blank page;
and correspondingly filling the enterprise data corresponding to the second-level dimension to the text position of the second-level title text in the new blank page.
In one embodiment, the correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page includes:
detecting a presentation style of each target data dimension;
if the presentation style of any target data dimension is a table style, displaying the target data dimension in the table style;
and if the presentation style of any target data dimension is a chart style, displaying the target data dimension in the chart form.
A report file generation apparatus, the apparatus comprising:
the dimension set display module is used for displaying an enterprise data dimension set in a dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected;
a target dimension determination module for determining a target data dimension for generating the report file in the set of enterprise data dimensions in response to a selection instruction for a data dimension;
the target data acquisition module is used for acquiring target enterprise data corresponding to the target data dimension;
the file data stream filling module is used for acquiring an initial file data stream, and the target enterprise data is used for filling the initial file data stream;
and the report file generation module is used for generating a target report file according to the initial file data stream and the target enterprise data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the report file generation method, the report file generation device, the computer equipment and the storage medium, the enterprise data dimension set is displayed in the dimension display page, and the enterprise data dimension set comprises the data dimensions to be selected; determining a target data dimension in the set of enterprise data dimensions for generating the report file in response to a selection instruction of a data dimension; the customized requirements of the user on the report file can be met, the content of the report file corresponds to the target data dimension selected by the user, the content of the report file which is not matched with the user requirements is reduced, the efficiency of reading the report file by the user is improved, the user requirements are flexibly met, the time spent by the user on screening the enterprise data is reduced, the user can make a decision quickly, and further, the target enterprise data corresponding to the target data dimension is obtained; acquiring an initial file data stream, wherein the target enterprise data is used for filling the initial file data stream; and generating a target report file according to the initial file data stream and the target enterprise data. The generation speed of the report file is accelerated, and the time for a user to wait for the generation of the report file is reduced.
Drawings
FIG. 1 is a diagram of an application environment of a report file generation method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for generating a report file in one embodiment;
FIG. 3 is a flowchart illustrating a method for generating a report file according to an embodiment;
FIG. 4 is a flowchart illustrating the step S250 according to an embodiment;
FIG. 5 is a flowchart illustrating the step S420 according to one embodiment;
FIG. 6 is a flowchart illustrating step S510 according to an embodiment;
FIG. 7 is a flowchart illustrating the step S520 according to an embodiment;
FIG. 8 is a flowchart illustrating the step S520 according to an embodiment;
FIG. 9 is a diagram that illustrates radar maps representing enterprise data, under an embodiment;
FIG. 10 is a block diagram showing the construction of a report file generating apparatus according to an embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The report file generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 displays a dimension display page, and displays an enterprise data dimension set in the dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected; in response to a selection instruction for a data dimension, a target data dimension for generating a report file is determined in the set of enterprise data dimensions. On one hand, the terminal 102 may obtain target enterprise data corresponding to the target data dimension according to the target data dimension; acquiring an initial file data stream, wherein the target enterprise data is used for filling the initial file data stream; thereby generating a target report file based on the initial file data stream and the target enterprise data. On the other hand, the terminal 102 may send the target data dimension to the server 104, and the server 104 obtains the target data dimension and searches according to the target data dimension to obtain target enterprise data corresponding to the target data dimension; acquiring an initial file data stream, wherein the target enterprise data is used for filling the initial file data stream; server 104 thereby generates a target report file based on the initial file data stream and the target enterprise data.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a report file generation method is provided, which is described by taking the application environment in fig. 1 as an example, and includes the following steps:
and S210, displaying the enterprise data dimension set in a dimension display page.
And S220, responding to a selection instruction of the data dimension, and determining a target data dimension for generating a report file in the enterprise data dimension set.
The enterprise data dimension set comprises data dimensions to be selected. The enterprise data dimension set can include dimensions such as basic information, stockholder information, enterprise external investment, legal action, enterprise risk, annual newspaper information, financial information, intellectual property rights, operation information and the like, can also be categories of industrial and commercial basic information, lost news, court announcements, referee documents and opening announcements, and can also include categories such as tax affairs, certificates, software copyright, tenders and bids, staff information and judicial auctions. Specifically, the terminal 102 triggers a presentation request for an enterprise data dimension, and in response to the presentation request, the terminal 102 displays a dimension presentation page. The set of enterprise data dimensions is presented in a dimension presentation page. The enterprise data dimension set comprises a plurality of data dimensions to be selected, and each data dimension to be selected is provided with a corresponding dimension selection inlet. The form of the selection instruction can adopt a voice form, a gesture form and a posture form. In some embodiments, the dimension selection entry may also employ a dimension selection control, which may be presented in the dimension presentation page in the form of a button or checkbox. A target data dimension may be determined in the set of enterprise data dimensions by responding to a selection instruction for the data dimension, where the target data dimension may be understood as a data dimension selected by a user in the set of enterprise data dimensions and may also be understood as an enterprise data dimension of interest to the user, and the enterprise data of the target data dimension is used to generate a report file.
For example, the enterprise data dimension set may be displayed in a form of a graph, a selection box is provided at a corresponding position of each enterprise data dimension, and a user may determine a target data dimension for generating a report file by performing a check operation on the selection box and responding to the check operation on any enterprise data dimension.
And S230, acquiring target enterprise data corresponding to the target data dimension.
S240, obtaining the initial file data stream, wherein the target enterprise data is used for filling the initial file data stream.
And S250, generating a target report file according to the initial file data stream and the target enterprise data.
The initial file data stream may be a blank file stream, such as a blank word file stream, a blank TEX file stream, a blank LaTex file stream, a blank slide (such as Microsoft Office PowerPoint) file stream, a blank table (Excel) file stream, and the like. The enterprise data may be data stored in a database that is relevant to enterprise operations. The enterprise data is used to fill in the gaps in the initial file data stream.
In some embodiments, the terminal 102 may send the target data dimension to the server, the server searches in the database according to the target data dimension to obtain target enterprise data corresponding to the target data dimension, the server returns the target enterprise data corresponding to the target data dimension to the terminal 102, and the terminal 102 obtains the target enterprise data corresponding to the target data dimension. The terminal 102 may obtain the initial file data stream locally from the terminal, or may obtain the initial file data stream from the server. The terminal 102 fills the initial file data stream with the target enterprise data to obtain a report file data stream. The target report file may be a Word file, a slide file, a table file, or other format file. Specifically, since the initial file data stream corresponds to the file format, the report file data stream is stored as the target report file according to the file format corresponding to the initial file data stream, and in some embodiments, the target report file may be a Word file, or may be a pdf file. It is understood that the initial blank pages included in the initial document data stream and the new blank pages generated may be understood as a document stream, which is different from the pages of the target report document that present information to the user.
In some embodiments, the terminal 102 may send the target data dimension to a server, and the server searches in a database according to the target data dimension to obtain target enterprise data corresponding to the target data dimension. And the server may obtain the initial file data stream from a computer device local to the server or connected to the server, with the target enterprise data used to populate the initial file data stream. And the server fills the initial file data stream with the target enterprise data to obtain a report file data stream, and stores the report file data stream as a target report file.
In the report file generation method, an enterprise data dimension set is displayed in a dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected; in response to a selection instruction of a data dimension, determining a target data dimension for generating a report file in the enterprise data dimension set; the customized requirement of a user on the report file can be met, the content of the report file corresponds to the target data dimension selected by the user, the content of the report file which is not matched with the requirement of the user is reduced, the efficiency of reading the report file is improved, the requirement of the user is flexibly met, the time spent by the user on screening enterprise data is reduced, the user can make a decision quickly, and further, the target enterprise data corresponding to the target data dimension is obtained; acquiring an initial file data stream, wherein target enterprise data is used for filling the initial file data stream; and generating a target report file according to the initial file data stream and the target enterprise data. The generation speed of the report file is accelerated, and the time for a user to wait for the generation of the report file is reduced. In addition, the initial file data stream of the application is adjusted according to the actual conditions of the obtained enterprise data, when the enterprise data corresponding to the report file changes, the report file data stream can be flexibly adjusted, the sustainable maintenance of the report file is improved, and the generation process of the report file is simplified.
In one embodiment, as shown in FIG. 3, prior to exposing the set of enterprise data dimensions in a dimension exposure page, the method includes: and responding to a selection instruction of the report type, and displaying a dimension display page, wherein the dimension display page corresponds to the report type carried by the selection instruction.
The corresponding relation between the dimension display page and the report type is predefined, so that the report files of different report types comprise different enterprise data dimensions, and the screening time of a user on the enterprise data dimensions is reduced. Specifically, platform software for generating a report file is installed on the terminal, a report type selection control can be arranged in a platform software interface, the report type selection control is responded to trigger operation of the report type selection control, the report type selection control is responded to a selection instruction of a report type, and the terminal displays a dimension display page corresponding to the report type carried by the selection instruction.
In the embodiment, the report type selection control responds to the selection instruction of the report type, and the dimension display page is displayed, so that the effect of reducing the screening time of the user on the enterprise data dimension can be achieved, and the requirements of the user can be met more flexibly.
In one embodiment, the initial file data stream includes initial blank pages and the target enterprise data includes enterprise data corresponding to the initial blank pages. As shown in fig. 4, generating a target report file according to the initial file data stream and the target enterprise data includes:
s410, filling the enterprise data corresponding to the initial blank page to obtain an intermediate file data stream, and generating a new blank page based on the intermediate file data stream.
The target enterprise data also comprises enterprise data corresponding to the new blank page. The initial file data stream includes initial blank pages, and the enterprise data includes page content data corresponding to the initial blank pages. The enterprise data also includes enterprise data corresponding to the new blank page. The initial blank page may correspond to the first page in the report document, may be the cover page of the report document, or may be the facing page of the report document. Specifically, after the initial file data stream is obtained, the enterprise data corresponding to the initial blank page is filled to the initial blank page, and the initial file data stream is filled to obtain an intermediate file data stream. After the initial blank page is filled, a new blank page is generated based on the intermediate file data stream. The generated new blank page may be a back cover page, a report text page, a report directory page, or a report summary page, and the generated new blank page is not illustrated one by one.
And S420, filling the enterprise data corresponding to the new blank page into the new blank page to obtain a report file data stream.
Specifically, the new blank page needs to be filled, and the enterprise data corresponding to the new blank page can be acquired from the target enterprise data according to the attribute data of the new blank page, so that the enterprise data corresponding to the new blank page is filled into the new blank page, and so on, if part of data in the enterprise data needs to be filled into the file data stream, the new blank page can be continuously generated, and the corresponding page content data is filled into the new blank page in the same way until the target enterprise data is used up, so that the report file data stream is obtained.
And S430, generating a target report file according to the report file data stream.
The target report file may be a format file such as a Word file, a slide file, a table file, etc. Specifically, since the initial file data stream corresponds to the file format, the report file data stream is stored as the target report file according to the file format corresponding to the initial file data stream, and in some embodiments, the target report file may be a Word file, or may be a pdf file. It is understood that the initial blank pages included in the initial document data stream and the new blank pages generated may be understood as a document stream, which is different from the pages of the target report document that present information to the user.
In this embodiment, the new blank page is added to the initial file data stream according to the actual situation of the acquired enterprise data, and when the enterprise data corresponding to the report file changes, the report file data stream can be flexibly adjusted, so that the sustainable maintenance of the report file is improved, and the generation process of the report file is simplified.
In one embodiment, as shown in fig. 5, the filling the enterprise data corresponding to the new blank page into the new blank page includes:
s510, determining each level of title text according to the text data corresponding to the target data dimension, and placing each level of title text in a new blank page.
And S520, correspondingly filling the target enterprise data corresponding to the target data dimension to the text position of each level of the title text in the new blank page.
The target data dimension can include basic information, stockholder information, enterprise external investment, legal action, enterprise risk, annual newspaper information, financial information, intellectual property, operation information and other dimensions, can also be the categories of industrial and commercial basic information, lost letter, court announcement, referee document and open court announcement, and can also include categories of tax affairs, certificates, software copyright, tendering and bidding, employee information, judicial auction and the like. Specifically, the target data dimension corresponds to text data, and the text data corresponding to the target data dimension is used as a title text. Title styles include font, color, segment front end, line space, reduced, etc. styles. The title style of each level of title may be set in advance, or may be set according to the page size and the actual situation of the page content data. And inserting the title texts of all levels into the new blank page according to the title styles of all levels of titles. And acquiring target enterprise data corresponding to the target data dimension, and correspondingly filling the acquired target enterprise data to the text position of each level of the title text in the new blank page because the target data dimension corresponds to each level of the title text.
It should be noted that, in some embodiments, the text data corresponding to all the target enterprise data may be obtained, the text data corresponding to each target enterprise data is used as the title texts at each level, and the title texts at each level may be inserted into a new blank page at one time. After the title texts at all levels are inserted into the report file data stream, the target enterprise data corresponding to the target data dimensions can be sequentially obtained according to the sequence of the title texts at all levels, and the target enterprise data corresponding to the target enterprise data dimensions are filled to the text positions of the title texts at all levels. In other embodiments, a first headline text may be inserted into a new blank page, target enterprise data corresponding to the first headline text is obtained, the target enterprise data is filled into a body position of the first headline text, then, a second headline text (which may be the same as or different from the level of the first headline text) is inserted into the new blank page, target enterprise data corresponding to the second headline text is obtained, the target enterprise data is filled into the body position of the second headline text, and so on, and the filling of the target enterprise data corresponding to each headline text into the file data stream is sequentially completed.
In one embodiment, as shown in FIG. 6, the target data dimensions include a first level dimension and a second level dimension. Determining each level of title text according to text data corresponding to the target data dimension, comprising the following steps:
s610, determining a first-level title text according to the text data corresponding to the first-level dimensionality, and placing the first-level title text in a new blank page.
S620, responding to the line feed instruction, determining a second-level title text according to the text data corresponding to the second-level dimension, and placing the second-level title text in the new blank page.
The target data dimension includes multiple levels of dimensions, illustratively, a first level dimension and a second level dimension. The first level dimension is higher than the second level dimension. The first-level dimensionality comprises dimensionalities such as basic information, stockholder information, enterprise external investment, legal action, enterprise risk, annual newspaper information, financial information, intellectual property, management information and the like, and the basic information can comprise a plurality of second-level dimensionalities such as industrial and commercial information, main personnel, branch organizations, change records, contact information and the like. The shareholder information may include two second-level dimensions, shareholder funding information and suspected actual control person information. Legal action may include second-level dimensions such as executives information, deceitlerants, referee document information, court announcements, delivery announcements, and the like. Intellectual property rights may include second-level dimensions such as patent information, trademark information, certificate qualification, software copyright information, work copyright information, website domain names, and the like. And if any data dimension comprises a second-level dimension, inserting the text data corresponding to the first-level dimension into the new blank page as the first-level title text, and responding to a line feed instruction to insert the text data corresponding to the second-level dimension into the new blank page as the second-level title text. For example, the basic information is inserted into a new blank page as the title text of the first level, and the industrial and commercial information is inserted into the new blank page as the title text of the second level in response to the line feed instruction.
Specifically, a first-level title text is determined according to text data corresponding to a first-level dimension, and a first-level title text corresponding to a data dimension can be inserted into a file data stream according to a preset sequence and inserted into a new blank page in the file data stream; and then responding to a line feed instruction, inserting the text data corresponding to the second-level dimension into a new blank page as a second-level title text, writing the enterprise data corresponding to the second-level dimension into a text position corresponding to the second-level title text, writing the enterprise data corresponding to the second-level dimension into a file data stream, responding to the line feed instruction again, inserting the text data corresponding to the next second-level dimension into the new blank page as the second-level title text, and inserting the text data corresponding to the next first-level dimension into the new blank page as the first-level title text. And will not be described in detail herein.
In the embodiment, the actual situation of the enterprise data corresponding to the target data dimension is combined, the target enterprise data corresponding to the target data dimension is flexibly and correspondingly filled to the text position of each level of the title text in the new blank page, the data flow of the report file is adaptively adjusted, the sustainable maintenance performance of the report file is improved, and the generation process of the report file is simplified.
In one embodiment, correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page, including the following steps:
and S710, correspondingly filling the enterprise data corresponding to the first-level dimension to the text position of the first-level title text in the new blank page.
And S720, correspondingly filling the enterprise data corresponding to the second-level dimension to the text position of the second-level title text in the new blank page.
Specifically, the target enterprise data corresponding to the target data dimension includes enterprise data corresponding to the first level dimension and enterprise data corresponding to the second level dimension. And taking the text data corresponding to the first level dimension as a first level title text, and taking the text data corresponding to the second level dimension as a second level title text. Inserting the first-level title text into the new blank page, acquiring enterprise data corresponding to the first-level dimension, and correspondingly filling the enterprise data corresponding to the first-level dimension to the text position of the first-level title text in the new blank page. And inserting the second-level title text into the new blank page, acquiring enterprise data corresponding to the second-level dimension, and correspondingly filling the enterprise data corresponding to the second-level dimension to the text position of the second-level title text in the new blank page.
In some embodiments, not all data dimensions have corresponding dimension data, and if there is no corresponding dimension data in a certain data dimension, the title text corresponding to the data dimension may not be displayed in the report file, or the title text corresponding to the data dimension may be displayed in the report file, and a prompt utterance without related data is displayed below the title text.
In one embodiment, as shown in fig. 8, correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page includes:
s810, detecting the presentation style of each target data dimension;
s820, if the presentation style of any target data dimension is a table style, displaying any target data dimension in a table form;
and S830, if the presentation style of any target data dimension is a chart style, displaying any target data dimension in a chart form.
The enterprise data can adopt different presentation styles, such as table styles, chart styles, simple text descriptions and the like. Specifically, after the title text is added to the new blank page, dimension data corresponding to the title text needs to be added to the new blank page, so that the presentation style of each enterprise data dimension is detected, if the form style is detected, a cell of the form is created in the new blank page, corresponding cell data is obtained from the dimension data, and the cell data is inserted into the cell. It is understood that the table may be a horizontal table or a column table. And if the presentation style is a chart style, creating a blank chart in the new blank page, and binding the corresponding enterprise data with the blank chart to generate a corresponding chart. The chart style may be a bar chart, a line chart, a radar chart, or may be set in advance in the size such as the length and width of the chart.
If the table is a horizontal table, a first cell on a first row of the table is created in the new blank page, and corresponding enterprise data is added into the first cell; then, creating a second cell in the extending direction of the first line, and adding the corresponding enterprise data into the second cell; then, a third cell is created in the extending direction of the first row, and the corresponding enterprise data is added into the third cell; if the instruction for ending the line is triggered, performing line feed operation, creating a first cell of a second line below the first line, and filling corresponding enterprise data; and sequentially creating a second cell of the second row, filling the corresponding enterprise data until the second row is created, and the like until the creation of each row and the filling of the enterprise data are completed.
If the table is a column-oriented table, creating a first cell on a first column of the table in the new blank page, and adding corresponding enterprise data into the first cell; then, creating a second cell in the extending direction of the first column, and adding the corresponding enterprise data into the second cell; then, a third cell is created in the extending direction of the first column, and the corresponding enterprise data is added into the third cell; if the command for ending the column is triggered, performing a line feed operation, creating a first cell of a second column below the first column, and filling corresponding enterprise data; and sequentially creating a second cell of the second column, filling the corresponding enterprise data until the second column is created, and the like until the creation of each column and the filling of the enterprise data are completed.
In the embodiment, the enterprise data is visually presented to the user through the chart style or the form style, the form and the chart are flexibly generated by combining the actual condition of the enterprise data, and the flexibility and the efficiency of generating the message file are improved.
In one embodiment, radar maps may be employed to identify enterprise data. The method can acquire data on a plurality of dimensions, such as credit records, business conditions, innovation capacity, enterprise vitality, organization background and business conditions, and generate the radar map by using the data on the plurality of dimensions. The maximum value and the minimum value of the radar map numerical range can be set, the maximum value and the minimum value form a fixed range for generating the radar map, and the radar map is generated according to the fixed range as shown in fig. 9, so that the generated radar map can be more accurate, more intuitive and stronger in readability.
In one embodiment, the present application provides a report file generation method, comprising the steps of:
s902, responding to a selection instruction of the report type through the report type selection control, and displaying the dimension display page.
And the dimension display page corresponds to the report type carried by the selection instruction.
S904, displaying an enterprise data dimension set in a dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected;
s906, responding to a selection instruction of a data dimension, and determining a target data dimension for generating the report file in the enterprise data dimension set;
s908, obtaining target enterprise data corresponding to the target data dimension;
s910, acquiring an initial file data stream.
Wherein the target enterprise data is used to populate the initial file data stream; the initial file data stream comprises an initial blank page, and the target enterprise data comprises enterprise data corresponding to the initial blank page.
S912, filling the enterprise data corresponding to the initial blank page to obtain an intermediate file data stream, and generating a new blank page based on the intermediate file data stream.
S914, filling the enterprise data corresponding to the new blank page into the new blank page to obtain a report file data stream;
the target enterprise data further comprises enterprise data corresponding to the new blank page; specifically, determining each level of title text according to the text data corresponding to the target data dimension, and placing the each level of title text in the new blank page; and correspondingly filling the target enterprise data corresponding to the target data dimension to the text position of each level of the title text in the new blank page.
In some embodiments, the target data dimension comprises a first level dimension and a second level dimension; determining each level of title text according to the text data corresponding to the target data dimension, wherein the step of determining each level of title text comprises the following steps: determining a first-level title text according to the text data corresponding to the first-level dimensionality, and placing the first-level title text in the new blank page; and responding to a line feed instruction, determining a second-level title text according to the text data corresponding to the second-level dimension, and placing the second-level title text in the new blank page.
In some embodiments, the correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page includes: correspondingly filling the enterprise data corresponding to the first-level dimension to the text position of the first-level title text in the new blank page; and correspondingly filling the enterprise data corresponding to the second-level dimension to the text position of the second-level title text in the new blank page.
In some embodiments, the correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page includes: detecting a presentation style of each target data dimension; if the presentation style of any target data dimension is a table style, displaying the target data dimension in the table style; and if the presentation style of any target data dimension is a chart style, displaying the target data dimension in the chart form.
S916, generating the target report file according to the report file data stream.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
In one embodiment, as shown in fig. 10, there is provided a report file generating apparatus including: a dimension set display module 1010, a target dimension determination module 1020, a target data acquisition module 1030, a file data stream filling module 1040, and a report file generation module 1050, wherein:
a dimension set presentation module 1010, configured to present an enterprise data dimension set in a dimension presentation page, where the enterprise data dimension set includes data dimensions to be selected;
a target dimension determination module 1020 for determining a target data dimension for generating the report file in the set of enterprise data dimensions in response to a selection instruction for the data dimension;
a target data obtaining module 1030, configured to obtain target enterprise data corresponding to the target data dimension;
a file data stream filling module 1040, configured to obtain an initial file data stream, where the target enterprise data is used to fill the initial file data stream;
a report file generating module 1050, configured to generate a target report file according to the initial file data stream and the target enterprise data.
In one embodiment, the device further includes a dimension page display module, configured to display the dimension display page in response to a selection instruction of a report type through a report type selection control, where the dimension display page corresponds to the report type carried by the selection instruction.
In one embodiment, the initial file data stream includes initial blank pages, and the target enterprise data includes enterprise data corresponding to the initial blank pages. The report file generating module 1050 is further configured to fill the enterprise data corresponding to the initial blank page into the initial blank page to obtain an intermediate file data stream, and generate a new blank page based on the intermediate file data stream, where the target enterprise data further includes enterprise data corresponding to the new blank page; filling the enterprise data corresponding to the new blank page to obtain a report file data stream; generating the target report file according to the report file data stream
In an embodiment, the report file generating module 1050 is further configured to determine each level of title text according to the text data corresponding to the target data dimension, and place the each level of title text in the new blank page; and correspondingly filling the target enterprise data corresponding to the target data dimension to the text position of each level of the title text in the new blank page.
In one embodiment, the target data dimension comprises a first level dimension and a second level dimension; the report file generating module 1050 is further configured to determine a first-level title text according to the text data corresponding to the first-level dimension, and place the first-level title text in the new blank page; and responding to a line feed instruction, determining a second-level title text according to the text data corresponding to the second-level dimension, and placing the second-level title text in the new blank page.
In an embodiment, the report file generating module 1050 is further configured to correspondingly fill the enterprise data corresponding to the first-level dimension to a body position of the first-level heading text in the new blank page; and correspondingly filling the enterprise data corresponding to the second-level dimension to the text position of the second-level title text in the new blank page.
In one embodiment, the report file generating module 1050 is further configured to detect a presentation style of each of the target data dimensions; if the presentation style of any target data dimension is a table style, displaying the target data dimension in the table style; and if the presentation style of any target data dimension is a chart style, displaying the target data dimension in the chart form.
For the specific limitations of the report file generation apparatus, reference may be made to the above limitations of the report file generation method, which are not described herein again. The modules in the report file generation device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a report file generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the report file generation method in the above embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the report file generation method in the above-described embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for generating a report file, the method comprising:
displaying an enterprise data dimension set in a dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected;
determining a target data dimension in the set of enterprise data dimensions for generating the report file in response to a selection instruction of a data dimension;
acquiring target enterprise data corresponding to the target data dimension;
acquiring an initial file data stream, wherein the target enterprise data is used for filling the initial file data stream;
and generating a target report file according to the initial file data stream and the target enterprise data.
2. The method of claim 1, wherein prior to said exposing the set of enterprise data dimensions in the dimension exposure page, the method further comprises:
and responding to a selection instruction of a report type, and displaying the dimension display page, wherein the dimension display page corresponds to the report type carried by the selection instruction.
3. The method of claim 1 or 2, wherein the initial file data stream includes initial blank pages, wherein the target enterprise data includes enterprise data corresponding to the initial blank pages, and wherein generating a target report file from the initial file data stream and the target enterprise data comprises:
filling enterprise data corresponding to the initial blank page to obtain an intermediate file data stream, and generating a new blank page based on the intermediate file data stream, wherein the target enterprise data further comprises enterprise data corresponding to the new blank page;
filling the enterprise data corresponding to the new blank page to obtain a report file data stream;
and generating the target report file according to the report file data stream.
4. The method of claim 3, wherein the populating the new blank page with the enterprise data corresponding to the new blank page includes:
determining each level of title text according to the text data corresponding to the target data dimension, and placing the each level of title text in the new blank page;
and correspondingly filling the target enterprise data corresponding to the target data dimension to the text position of each level of the title text in the new blank page.
5. The method of claim 4, wherein the target data dimensions include a first level dimension and a second level dimension; determining each level of title text according to the text data corresponding to the target data dimension, wherein the step of determining each level of title text comprises the following steps:
determining a first-level title text according to the text data corresponding to the first-level dimensionality, and placing the first-level title text in the new blank page;
and responding to a line feed instruction, determining a second-level title text according to the text data corresponding to the second-level dimension, and placing the second-level title text in the new blank page.
6. The method according to claim 5, wherein correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page comprises:
correspondingly filling the enterprise data corresponding to the first-level dimension to the text position of the first-level title text in the new blank page;
and correspondingly filling the enterprise data corresponding to the second-level dimension to the text position of the second-level title text in the new blank page.
7. The method according to claim 4, wherein correspondingly filling the target enterprise data corresponding to the target data dimension to the body position of each level of the title text in the new blank page comprises:
detecting a presentation style of each target data dimension;
if the presentation style of any target data dimension is a table style, displaying the target data dimension in the table style;
and if the presentation style of any target data dimension is a chart style, displaying the target data dimension in the chart form.
8. An apparatus for generating a report file, the apparatus comprising:
the dimension set display module is used for displaying an enterprise data dimension set in a dimension display page, wherein the enterprise data dimension set comprises data dimensions to be selected;
a target dimension determination module for determining a target data dimension for generating the report file in the set of enterprise data dimensions in response to a selection instruction for a data dimension;
the target data acquisition module is used for acquiring target enterprise data corresponding to the target data dimension;
the file data stream filling module is used for acquiring an initial file data stream, and the target enterprise data is used for filling the initial file data stream;
and the report file generation module is used for generating a target report file according to the initial file data stream and the target enterprise data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110466361.5A 2021-04-28 2021-04-28 Report file generation method and device, computer equipment and storage medium Pending CN113076731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466361.5A CN113076731A (en) 2021-04-28 2021-04-28 Report file generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466361.5A CN113076731A (en) 2021-04-28 2021-04-28 Report file generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113076731A true CN113076731A (en) 2021-07-06

Family

ID=76619122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466361.5A Pending CN113076731A (en) 2021-04-28 2021-04-28 Report file generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113076731A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113850059A (en) * 2021-12-01 2021-12-28 北京一起教育科技有限责任公司 Method and device for generating evaluation report and electronic equipment
CN114004212A (en) * 2021-12-30 2022-02-01 深圳希施玛数据科技有限公司 Data processing method, device and storage medium
CN114398865A (en) * 2022-01-17 2022-04-26 广州天维信息技术股份有限公司 Performance report generation method, device, storage medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178747A (en) * 2019-12-26 2020-05-19 金蝶征信有限公司 Enterprise portrait generation method and device, computer equipment and storage medium
CN111752899A (en) * 2020-06-28 2020-10-09 中科三清科技有限公司 Environment report generation method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178747A (en) * 2019-12-26 2020-05-19 金蝶征信有限公司 Enterprise portrait generation method and device, computer equipment and storage medium
CN111752899A (en) * 2020-06-28 2020-10-09 中科三清科技有限公司 Environment report generation method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113850059A (en) * 2021-12-01 2021-12-28 北京一起教育科技有限责任公司 Method and device for generating evaluation report and electronic equipment
CN113850059B (en) * 2021-12-01 2022-03-22 北京一起教育科技有限责任公司 Method and device for generating evaluation report and electronic equipment
CN114004212A (en) * 2021-12-30 2022-02-01 深圳希施玛数据科技有限公司 Data processing method, device and storage medium
CN114398865A (en) * 2022-01-17 2022-04-26 广州天维信息技术股份有限公司 Performance report generation method, device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
US11294968B2 (en) Combining website characteristics in an automatically generated website
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
US9507480B1 (en) Interface optimization application
US20130151938A1 (en) Browser spreadsheet integration
US10223698B2 (en) Integrating a web-based CRM system with a PIM client application
US11354684B2 (en) Data analytics for international product quality and user experience
CN103098051A (en) Search engine optmization assistant
CN111324716A (en) Index data acquisition method and device, computer equipment and storage medium
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN107798459A (en) Parameter values computational methods, device, storage medium and computer equipment
US8687210B2 (en) Document data access
US9176645B1 (en) Manipulating collections of items in a user interface
CN110377891B (en) Method, device and equipment for generating event analysis article and computer readable storage medium
CN111723210A (en) Method and device for storing data table, computer equipment and readable storage medium
CN111858686A (en) Data display method and device, terminal equipment and storage medium
US20180004723A1 (en) Dynamic web document creation
US20160005002A1 (en) Generating Tasks
US10970533B2 (en) Methods and systems for finding elements in optical character recognition documents
CN114201157A (en) Method and system for customizing target service module by low code
CN109656549B (en) Construction method and device of monitoring system, computer equipment and storage medium
CN113268968A (en) Report file generation method and device, computer equipment and storage medium
CN110968682A (en) Comment information publishing method, device, client, server and system
CN115423595B (en) File information processing method and device, computer equipment and storage medium
US10114800B1 (en) Layout reconstruction using spatial and grammatical constraints
US9613105B1 (en) Streamlined data entry based on data relationships

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