CN114021536A - Processing method, device, equipment and storage medium of multi-level header report - Google Patents

Processing method, device, equipment and storage medium of multi-level header report Download PDF

Info

Publication number
CN114021536A
CN114021536A CN202111363383.5A CN202111363383A CN114021536A CN 114021536 A CN114021536 A CN 114021536A CN 202111363383 A CN202111363383 A CN 202111363383A CN 114021536 A CN114021536 A CN 114021536A
Authority
CN
China
Prior art keywords
header
node
tree structure
level
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111363383.5A
Other languages
Chinese (zh)
Other versions
CN114021536B (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.)
Guangzhou Tiancom Information Technology Co ltd
Original Assignee
Guangzhou Tiancom Information 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 Guangzhou Tiancom Information Technology Co ltd filed Critical Guangzhou Tiancom Information Technology Co ltd
Priority to CN202111363383.5A priority Critical patent/CN114021536B/en
Publication of CN114021536A publication Critical patent/CN114021536A/en
Application granted granted Critical
Publication of CN114021536B publication Critical patent/CN114021536B/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/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • 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/183Tabulation, i.e. one-dimensional positioning

Abstract

The application provides a processing method, a device, equipment and a storage medium of a multi-level header report, which comprises the steps of firstly obtaining header fields and header upper and lower level relations corresponding to the multi-level header report; generating a corresponding tree structure for each header field and the header upper and lower level relation; the tree node comprises a plurality of nodes and a plurality of node hierarchies, wherein the plurality of nodes comprise a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the plurality of child nodes are respectively distributed on a plurality of node levels, and each child node corresponds to a header field; the node level is used for representing the upper and lower level relation of the header; and correspondingly generating a multi-level header report according to the tree structure. The processing method of the multi-level header report adopts the tree structure to represent the header fields in the report, and then the multi-level header report is correspondingly generated according to the tree structure. The method is very intuitive, simple, accurate and efficient.

Description

Processing method, device, equipment and storage medium of multi-level header report
Technical Field
The present application relates to the field of report processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a multi-level header report.
Background
Along with the development of computer software, products of intelligent data reports are more and more abundant. The users can process the reports by using the reporting software, the currently used reporting software includes smartbi, finereport, powerbi and the like in a large variety, however, the operation of the software is very complicated when the multi-level headers are processed (for example, calculated and combined).
Content of application
In view of this, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for processing a multi-level header report.
In a first aspect, an embodiment of the present application provides a method for processing a multi-level header report, where the method includes:
acquiring the header fields and the header up-down relation corresponding to the multi-level header report;
generating a corresponding tree structure for each header field and the header upper and lower level relation; wherein the tree structure comprises a plurality of nodes and a plurality of node hierarchies, the plurality of nodes comprises a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the sub-nodes are respectively distributed on the node levels, and each sub-node respectively corresponds to one header field; the node hierarchy is used for representing the upper and lower level relation of the header;
and correspondingly generating a multi-level header report according to the tree structure.
In a second aspect, an embodiment of the present application provides a device for processing a multi-level header report, where the device includes:
the information acquisition module is used for acquiring each header field corresponding to the multi-level header report and the header up-down level relation;
the tree structure generating module is used for generating a corresponding tree structure for each header field and the header upper-lower level relation; wherein the tree node comprises a plurality of nodes and a plurality of node hierarchies, the plurality of nodes comprises a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the sub-nodes are respectively distributed on the node levels, and each sub-node respectively corresponds to one header field; the node hierarchy is used for representing the upper and lower level relation of the header;
and the report generation module is used for correspondingly generating a multi-level header report according to the tree structure.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory; one or more processors coupled with the memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to perform the method for processing the multi-level header report provided by the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the processing method for the multi-level header report provided in the first aspect.
According to the processing method, the processing device, the processing equipment and the storage medium for the multi-level header report, firstly, header fields and header upper and lower level relations corresponding to the multi-level header report are obtained; generating a corresponding tree structure for each header field and the header upper and lower level relation; the tree node comprises a plurality of nodes and a plurality of node hierarchies, wherein the plurality of nodes comprise a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the plurality of child nodes are respectively distributed on a plurality of node levels, and each child node corresponds to a header field; the node level is used for representing the upper and lower level relation of the header; and correspondingly generating a multi-level header report according to the tree structure.
The processing method of the multi-level header report adopts the tree structure to represent the header fields in the report, and then the multi-level header report is correspondingly generated according to the tree structure. The method is very intuitive, simple, accurate and efficient.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is an application scenario diagram of a processing method for a multi-level header report according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a processing method of a multi-level header report according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a structure of a multi-level header report according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a tree structure according to an embodiment of the present application;
FIG. 5 is a diagram illustrating a tree structure including dynamic nodes and a structure of a report according to an embodiment of the present application;
fig. 6 is a structural diagram of a processing apparatus for a multi-level header report according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely below, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For more detailed description of the present application, a method, an apparatus, a terminal device, and a computer storage medium for processing a multi-level header report provided in the present application are specifically described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application scenario of the processing method of the multi-level header report provided in the embodiment of the present application, where the application scenario includes a terminal device 100 provided in the embodiment of the present application, and the terminal device 100 may be various electronic devices (such as structural diagrams of 102, 104, 106, and 108) with a display screen, including but not limited to a smart phone and a computer device, where the computer device may be at least one of a desktop computer, a portable computer, a laptop computer, a tablet computer, and the like. A user operates the terminal device 100 to send a processing operation instruction of the multi-level header report, and the terminal device 100 executes the processing method of the multi-level header report of the present application, which refers to an embodiment of the processing method of the multi-level header report in the specific process.
Next, the terminal device 100 may be generally referred to as one of a plurality of terminal devices, and the present embodiment is only illustrated by the terminal device 100. Those skilled in the art will appreciate that the number of terminal devices described above may be greater or fewer. For example, the number of the terminal devices may be only a few, or the number of the terminal devices may be tens of or hundreds, or may be more, and the number and the type of the terminal devices are not limited in the embodiment of the present application. The terminal device 100 may be configured to execute the method for processing a multi-level header report provided in the embodiment of the present application.
In an optional implementation manner, the application scenario may include a server in addition to the terminal device 100 provided in the embodiment of the present application, where a network is disposed between the server and the terminal device. Networks are used as the medium for providing communication links between terminal devices and servers. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be understood that the number of terminal devices, networks, and servers are merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server may be a server cluster composed of a plurality of servers. Wherein, the terminal device interacts with the server through the network to receive or send messages and the like. The server may be a server that provides various services. The server may be configured to execute the steps of the method for processing a multi-level header report provided in the embodiment of the present application. In addition, when the terminal device executes the processing method of the multi-level header report provided in the embodiment of the present application, a part of the steps may be executed at the terminal device, and a part of the steps may be executed at the server, which is not limited herein.
Based on this, the embodiment of the present application provides a processing method for a multi-level header report. Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a processing method for a multi-level header report according to an embodiment of the present application, and the method is applied to the terminal device in fig. 1 as an example for description, and includes the following steps:
step S110, acquiring each header field and header upper and lower level relation corresponding to the multi-level header report.
The multi-level header report comprises a plurality of headers, and some headers in the headers have a superior-inferior relation. Each header has header fields, for example, as shown in fig. 3, field 1, field 2, field 3, field 4, and field 5 are headers in a multi-level header report, field 1, field 2, and field 3 are headers in the same level, and field 2 is an upper-level header of the three headers, i.e., field 4 and field 5.
And step S120, generating a corresponding tree structure for each header field and the header upper-lower level relation.
The tree structure comprises a plurality of nodes and a plurality of node hierarchies, wherein the plurality of nodes comprise a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the plurality of child nodes are respectively distributed on a plurality of node levels, and each child node corresponds to a header field; the node hierarchy is used for representing the upper and lower level relation of the header.
Specifically, as shown in fig. 4, the tree structure includes a plurality of nodes including a root node (i.e., the heel in fig. 4) and child nodes (i.e., the fields 1 to 5 in fig. 4). The root node is used as the base of the tree structure and is used for connecting child nodes, and the child nodes are used for representing or storing various table header fields. The node hierarchy is used for representing the upper-lower level relation of the headers, namely, the number of the hierarchies is included, and the headers in the same node hierarchy belong to the same level. As shown in fig. 4, there are 3 node levels in total, the root node is the first node level, the fields 1, 2 and 3 are the second node level, and the fields 4 and 5 are the third node level.
Further, a specific embodiment of generating the tree structure is given, which is described as follows:
in one embodiment, generating a corresponding tree structure for each header field and header context includes: determining each node level and the number of child nodes in each node level according to the upper-lower level relation of the header; on the basis of the root node, drawing an initial tree structure by using the node levels and the number of child nodes in the node levels; and correspondingly writing each header field into the initial tree structure to generate the tree structure.
Specifically, the node levels in the tree structure and the number of child nodes in each node level may be determined according to the hierarchical relationship of the header, that is, the hierarchical relationship of the header may be analyzed to determine how many node levels are and how many character nodes are included in each node level. For example, as shown in fig. 3, there are 5 header fields, which are respectively field 1, field 2, field 3, field 4 and field 5, field 1, field 2 and field 3 are headers of the same level, and field 2 is a higher-level header of the three headers, namely field 4 and field 5, so that it can be known that there are three node hierarchies in the tree structure, the first node hierarchy is only a root node, and the second node hierarchy has field 1, field 2 and field 3, so that there are 3 child nodes in the second node hierarchy; the third node level has fields 4 and 5, and then the third node level has 2 child nodes. And drawing an initial tree structure after determining the number of each node hierarchy and the sub-nodes in each node hierarchy, and then correspondingly writing each header field into the initial tree structure to generate the tree structure.
And step S130, correspondingly generating a multi-level header report according to the tree structure.
Specifically, after the tree structure is generated, the multi-level header report may be generated according to the tree structure.
In one embodiment, the correspondingly generating the multi-level header report according to the tree structure includes: and adopting a recursive algorithm to correspondingly generate a multi-level header report form by the tree structure.
Among them, the recursive algorithm (recursion algorithm) refers to a method for solving a problem by repeatedly decomposing the problem into similar sub-problems in computer science. The recursive method can be used to solve many computer science problems, and thus is a very important concept in computer science. Most programming languages support self-adaptation of functions, in which the function can recurse by calling itself. Computational theory can prove that recursive effects can completely replace loops, so that it is customary in many functional programming languages to implement loops with recursion. Recursion is simply the process of calling itself continuously during the running process until a termination condition is met and returning the result. Recursion can be viewed as two processes, respectively recursion and regression. The result to be calculated is transmitted to the subproblems by the original problem; and the regression is a process of returning the result to the original problem layer by layer after the result is solved by the subproblem.
In this embodiment, the nodes in the tree structure may be sequentially arranged one by using a recursive algorithm, and a report is generated according to the arrangement result.
The method for processing the multi-level header report includes the steps that firstly, header fields and header up-and-down relations corresponding to the multi-level header report are obtained; generating a corresponding tree structure for each header field and the header upper and lower level relation; the tree node comprises a plurality of nodes and a plurality of node hierarchies, wherein the plurality of nodes comprise a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the plurality of child nodes are respectively distributed on a plurality of node levels, and each child node corresponds to a header field; the node level is used for representing the upper and lower level relation of the header; and correspondingly generating a multi-level header report according to the tree structure.
The processing method of the multi-level header report adopts the tree structure to represent the header fields in the report, and then the multi-level header report is correspondingly generated according to the tree structure. The method is very intuitive, simple, accurate and efficient.
In one embodiment, the child nodes include static nodes and dynamic nodes; the header fields comprise static header fields and dynamic header fields; correspondingly writing each header field into an initial tree structure, including: writing the static header field into a static node of the initial tree structure; and writing the dynamic header field into the dynamic node of the initial tree structure.
In one embodiment, writing the dynamic header field in the front of the dynamic node of the initial tree structure includes: and recursion is carried out on the same header fields by adopting a row-to-column algorithm to generate dynamic header fields.
Specifically, the nodes of the tree structure include static nodes and dynamic nodes, wherein the static nodes are used for representing or storing static header fields; and the dynamic node is used to store or represent the dynamic header fields. Wherein, the static header field is a fixed and unchangeable determined header field; and the dynamic header field refers to a header field which can be changed and is not fixed. Referring to fig. 5, a header field, such as "month", may be set as a dynamic node, and a lower-level child node of the dynamic node is a static node. The value of the month can be unfixed, so that the dynamic node can be used. In the process of generating the report, data is subjected to column conversion calculation to form a dynamic multi-level header. And then classifying the fields 2 and 3 of different months, and dynamically adding the real month into the node of the month.
By adopting the method, the dynamic or changed header fields can be conveniently updated and determined, so that a correct report can be generated.
It should be understood that, although the steps in the flowchart of fig. 2 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 portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The embodiment disclosed in the present application describes a method for processing a multi-level header report in detail, and the method disclosed in the present application can be implemented by devices in various forms.
Referring to fig. 6, a processing apparatus for a multi-level header report according to an embodiment of the present application mainly includes:
the information acquisition module 610 is configured to acquire each header field and a header context corresponding to the multi-level header report;
a tree structure generating module 620, configured to generate a corresponding tree structure for each header field and the header upper-lower level relationship; the tree structure comprises a plurality of nodes and a plurality of node hierarchies, wherein the plurality of nodes comprise a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the plurality of child nodes are respectively distributed on a plurality of node levels, and each child node corresponds to a header field; the node level is used for representing the upper and lower level relation of the header;
and a report generating module 630, configured to generate a multi-level header report according to the tree structure.
In an embodiment, the tree structure generating module 620 is configured to determine each node level and the number of child nodes in each node level according to the top-bottom relation of the table header; on the basis of the root node, drawing an initial tree structure by using the node levels and the number of child nodes in the node levels; and correspondingly writing each header field into the initial tree structure to generate the tree structure.
In one embodiment, the child nodes include static nodes and dynamic nodes; the header fields comprise static header fields and dynamic header fields; a tree structure generating module 620, configured to write the static header field into a static node of the initial tree structure; and writing the dynamic header field into the dynamic node of the initial tree structure.
In an embodiment, the report generating module 630 is configured to generate a multi-level header report by using a recursive algorithm to correspond the tree structure.
In one embodiment, the tree structure generating module 620 is configured to generate the dynamic header field by recursively applying a Row-Row transformation algorithm to the same header field.
The specific limitations of the processing device for the multi-level header report can be referred to the limitations of the method above, and are not described herein again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal device, and can also be stored in a memory in the terminal device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 7, fig. 7 is a block diagram illustrating a structure of a terminal device according to an embodiment of the present application. The terminal device 70 may be a computer device. The terminal device 70 in the present application may include one or more of the following components: a processor 72, a memory 74, and one or more applications, wherein the one or more applications may be stored in the memory 74 and configured to be executed by the one or more processors 72, the one or more applications configured to perform the methods described in the above-described embodiments of the method for processing a multi-level header report.
Processor 72 may include one or more processing cores. The processor 72, using various interfaces and lines to connect various parts throughout the terminal device 70, performs various functions of the terminal device 70 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 74, and calling data stored in the memory 74. Alternatively, the processor 72 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 72 may integrate one or a combination of a Central Processing Unit (CPU), a Graphic Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may be implemented by a communication chip, rather than being integrated into the processor 72.
The Memory 74 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 74 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 74 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal device 70 in use, and the like.
Those skilled in the art will appreciate that the structure shown in fig. 7 is a block diagram of only a portion of the structure relevant to the present disclosure, and does not constitute a limitation on the terminal device to which the present disclosure applies, and that a particular terminal device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
In summary, the terminal device provided in this embodiment of the present application is used to implement the method for processing the multi-level header report in the foregoing method embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Referring to fig. 8, a block diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. The computer readable storage medium 80 stores program code that can be invoked by a processor to perform the processing of the multi-level header report of the method described in the above-described embodiments of the processing method of the multi-level header report.
The computer-readable storage medium 80 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 80 includes a non-transitory computer-readable storage medium. The computer readable storage medium 80 has storage space for program code 82 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 82 may be compressed, for example, in a suitable form.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A processing method of a multi-level header report is characterized by comprising the following steps:
acquiring the header fields and the header up-down relation corresponding to the multi-level header report;
generating a corresponding tree structure for each header field and the header upper and lower level relation; wherein the tree structure comprises a plurality of nodes and a plurality of node hierarchies, the plurality of nodes comprises a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the sub-nodes are respectively distributed on the node levels, and each sub-node respectively corresponds to one header field; the node hierarchy is used for representing the upper and lower level relation of the header;
and correspondingly generating a multi-level header report according to the tree structure.
2. The method of claim 1, wherein generating a corresponding tree structure for each header field and the header context comprises:
determining each node level and the number of child nodes in each node level according to the top-bottom relation of the table header;
drawing an initial tree structure by taking the root node as a basis and the number of the child nodes in each node level and each node level;
and correspondingly writing each table head field into the initial tree structure to generate the tree structure.
3. The method of claim 2, wherein the child nodes comprise static nodes and dynamic nodes; the header fields comprise static header fields and dynamic header fields; correspondingly writing each table head field into the initial tree structure, including:
writing the static header fields into the static nodes of the initial tree structure;
writing the dynamic header field into the dynamic node of the initial tree structure.
4. The method according to any one of claims 1-3, wherein correspondingly generating a multi-level header report according to the tree structure comprises:
and adopting a recursive algorithm to correspondingly generate a multi-level header report form by the tree structure.
5. The method of claim 3, wherein writing the dynamic header field into the dynamic node of the initial tree structure comprises:
and recursing the same header fields by adopting a row-to-column algorithm to generate the dynamic header fields.
6. An apparatus for processing a multi-level header report, the apparatus comprising:
the information acquisition module is used for acquiring each header field corresponding to the multi-level header report and the header up-down level relation;
the tree structure generating module is used for generating a corresponding tree structure for each header field and the header upper-lower level relation; wherein the tree node comprises a plurality of nodes and a plurality of node hierarchies, the plurality of nodes comprises a root node and a plurality of child nodes, and the root node is used for connecting the child nodes; the sub-nodes are respectively distributed on the node levels, and each sub-node respectively corresponds to one header field; the node hierarchy is used for representing the upper and lower level relation of the header;
and the report generation module is used for correspondingly generating a multi-level header report according to the tree structure.
7. The apparatus according to claim 6, wherein the tree structure generating module is configured to determine the node hierarchies and the number of child nodes in each node hierarchy according to the top-bottom relationship of the header; drawing an initial tree structure by taking the root node as a basis and the number of the child nodes in each node level and each node level; and correspondingly writing each table head field into the initial tree structure to generate the tree structure.
8. The apparatus of claim 6, wherein the apparatus comprises: the child nodes comprise static nodes and dynamic nodes; the header fields comprise static header fields and dynamic header fields;
the tree structure generating module is configured to write the static header field into the static node of the initial tree structure; writing the dynamic header field into the dynamic node of the initial tree structure.
9. A terminal device, comprising:
a memory; one or more processors coupled with the memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-5.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 5.
CN202111363383.5A 2021-11-17 2021-11-17 Processing method, device, equipment and storage medium of multi-level header report Active CN114021536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111363383.5A CN114021536B (en) 2021-11-17 2021-11-17 Processing method, device, equipment and storage medium of multi-level header report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111363383.5A CN114021536B (en) 2021-11-17 2021-11-17 Processing method, device, equipment and storage medium of multi-level header report

Publications (2)

Publication Number Publication Date
CN114021536A true CN114021536A (en) 2022-02-08
CN114021536B CN114021536B (en) 2022-08-09

Family

ID=80064752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111363383.5A Active CN114021536B (en) 2021-11-17 2021-11-17 Processing method, device, equipment and storage medium of multi-level header report

Country Status (1)

Country Link
CN (1) CN114021536B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097384A1 (en) * 2000-12-11 2003-05-22 Jianying Hu Method for identifying and using table structures
CN101620636A (en) * 2009-08-21 2010-01-06 腾讯科技(北京)有限公司 Method and apparatus for displaying tabular data
CN105488073A (en) * 2014-09-26 2016-04-13 北京神州泰岳软件股份有限公司 Method and device for generating report header
CN105930447A (en) * 2016-04-20 2016-09-07 零氪科技(北京)有限公司 Method for converting tree-like nested data into plane data table
CN107329942A (en) * 2017-06-28 2017-11-07 深圳市康必达中创科技有限公司 Report form generation method and device based on tree structure
CN109635011A (en) * 2018-10-31 2019-04-16 北京辰森世纪科技股份有限公司 Multistage gauge outfit report processing method, device and equipment based on data service metadata

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097384A1 (en) * 2000-12-11 2003-05-22 Jianying Hu Method for identifying and using table structures
CN101620636A (en) * 2009-08-21 2010-01-06 腾讯科技(北京)有限公司 Method and apparatus for displaying tabular data
CN105488073A (en) * 2014-09-26 2016-04-13 北京神州泰岳软件股份有限公司 Method and device for generating report header
CN105930447A (en) * 2016-04-20 2016-09-07 零氪科技(北京)有限公司 Method for converting tree-like nested data into plane data table
CN107329942A (en) * 2017-06-28 2017-11-07 深圳市康必达中创科技有限公司 Report form generation method and device based on tree structure
CN109635011A (en) * 2018-10-31 2019-04-16 北京辰森世纪科技股份有限公司 Multistage gauge outfit report processing method, device and equipment based on data service metadata

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龚建军等: "一种基于Web数据库的动态表头的实现", 《电力情报》 *

Also Published As

Publication number Publication date
CN114021536B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN109324791B (en) Financial self-service terminal business process development method and device and terminal equipment
US10037390B2 (en) Techniques to simulate production events
US9367289B2 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
CN108459962A (en) Code specification detection method, device, terminal device and storage medium
CN108664406A (en) Exploitation test method, terminal device and the medium of mobile application
CN107562459B (en) Management system, interface generating/displaying/operating method, medium, and terminal
CN107728999A (en) A kind of App, the method and system of small routine interface simulation
CN109471626A (en) Page logic structure, page generation method, page data processing method and device
CN111399941A (en) Batch configuration method, device and equipment for BMC (baseboard management controller) functions
CN108197002A (en) Mobile equipment is without burying point data statistical method, system, terminal and medium
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN114021536B (en) Processing method, device, equipment and storage medium of multi-level header report
CN112036931A (en) Real-time label calculation method and device, computer equipment and storage medium
CN111273980B (en) Interface thread visualization method and device, computer equipment and storage medium
US10783063B2 (en) Systems and methods for testing a customer environment
CN115758018A (en) Grid-based page layout method and device, computer equipment and storage medium
CN115221852A (en) Vxe-table based dynamic calculation table implementation method, device and computer equipment
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN114675819A (en) RPA component recommendation method, device, equipment and readable storage medium
CN112114931B (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN112182115A (en) Relationship display method and device, storage medium and electronic device
CN112749229A (en) Data conversion method, device, storage medium and electronic equipment
CN114090015A (en) Page DSL (digital subscriber line) analysis method, system, equipment and storage medium
CN115686672A (en) Business process data generation system, method and equipment
CN115826922A (en) Proposal process template definition method and system

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