CN113836879A - Report form filling method and device - Google Patents

Report form filling method and device Download PDF

Info

Publication number
CN113836879A
CN113836879A CN202111139369.7A CN202111139369A CN113836879A CN 113836879 A CN113836879 A CN 113836879A CN 202111139369 A CN202111139369 A CN 202111139369A CN 113836879 A CN113836879 A CN 113836879A
Authority
CN
China
Prior art keywords
display block
block
display
data
row
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
CN202111139369.7A
Other languages
Chinese (zh)
Other versions
CN113836879B (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111139369.7A priority Critical patent/CN113836879B/en
Publication of CN113836879A publication Critical patent/CN113836879A/en
Application granted granted Critical
Publication of CN113836879B publication Critical patent/CN113836879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Abstract

The application provides a report filling method and device. The report comprises at least one line, each line is divided into at least one display block according to a pre-planned layout mode, and each display block respectively displays different types of data. In the method, the display blocks of empty data do not exist in the report mainly by moving data among different display blocks and expanding (combining) the display blocks, so that a user can browse effective data quickly; in addition, by moving data among display blocks which are the same in width and close in rows, the display effect of the data and the importance degree of the data can be effectively considered, the change of the report layout can be reduced as much as possible, the attractiveness of the report is considered, and the report maintenance efficiency is improved.

Description

Report form filling method and device
Technical Field
The application relates to the technical field of computers, in particular to a report filling method and device.
Background
In an intelligent operation and maintenance application scenario, monitoring data of a monitoring object (such as an operating system, a hardware device, and the like) is usually presented in a form of a report. Fig. 1 shows an example of a monitoring report of the Linux operating system. The monitoring report shows 5 rows of monitoring data, each row is divided into one or two display blocks according to a pre-planned layout mode, a widget (widget) is deployed at the corresponding position of each display block, and corresponding data are collected and displayed through the widget.
For example, in fig. 1, widgets at the corresponding positions of the 1 st display block (ordered from left to right and from top to bottom) can collect and display monitor information; for another example, the widget at the position corresponding to the 3 rd display block may collect and display the Central Processing Unit (CPU) utilization rate.
As can be seen from fig. 1, the position corresponding to the 5 th display block and the position corresponding to the 8 th display block have no data, but still occupy the display space of the report, which brings inconvenience to the user in browsing the valid data (collected data) in the report.
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for filling a report, so as to automatically adjust the report and provide convenience for a user to browse the report.
In order to achieve the purpose of the application, the application provides the following technical scheme:
in a first aspect, the present application provides a report filling method, where the report includes at least one line, each line is divided into at least one display block according to a display block layout rule planned in advance, and each display block is used for displaying different types of data, and the method includes:
in the report, each line of the report is traversed from top to bottom in sequence, and the following processing is executed for each line:
if a first display block exists in the current line, sequentially traversing a subsequent preset number of target lines, wherein the first display block is a display block which is not filled with data;
if at least one second display block exists in the current target row, selecting a third display block from the at least one second display block, copying data in the third display block to the first display block, deleting data in the third display block, and ending traversal aiming at the preset number of target rows, wherein the second display block is a display block which has the same width as the first display block and is filled with data;
if the second display block does not exist in the preset number of target rows, judging whether a fourth display block exists in the current row, wherein the fourth display block is a display block which is adjacent to the first display block and is filled with data;
if at least one fourth display block exists in the current row, selecting a fifth display block from the at least one fourth display block, merging the fifth display block with the first display block, and displaying data in the fifth display block in the merged display block;
and if the fourth display block does not exist in the current line, deleting the current line.
Optionally, the display block includes at least one basic block, and the basic block is a single block obtained by equally dividing rows according to the maximum number of division columns corresponding to the rows.
Optionally, the selecting one third display block from the at least one second display block includes:
and selecting the first second display block as the third display block from the current target row according to the sequence from left to right.
Optionally, the selecting one fifth display block from the at least one fourth display block includes:
selecting, from among the at least one fourth display block, a fourth display block having a smallest width as the fifth display block.
Optionally, the method further includes:
if the first display block does not exist in the current row, ending the processing for the current row.
In a second aspect, the present application provides a report filling apparatus, where the report includes at least one line, each line is divided into at least one display block according to a display block layout rule planned in advance, and each display block is used to display different types of data, the apparatus includes:
the traversing unit is used for sequentially traversing each line of the report form from top to bottom in the report form;
the traversal unit is further configured to, for each line, sequentially traverse a subsequent preset number of target lines if a first display block exists in a current line, where the first display block is a display block not filled with data;
a moving unit, configured to select a third display block from at least one second display block if at least one second display block exists in a current target row, copy data in the third display block to the first display block, delete the data in the third display block, and end traversal for the preset number of target rows, where the second display block is a display block that has the same width as the first display block and is filled with data;
a determining unit, configured to determine whether a fourth display block exists in the current line if a second display block does not exist in the preset number of target lines, where the fourth display block is a display block that is adjacent to the first display block and is filled with data;
a merging unit, configured to select a fifth display block from the at least one fourth display block if at least one fourth display block exists in the current row, merge the fifth display block with the first display block, and display data in the fifth display block in the merged display block;
and the deleting unit is used for deleting the current line if the fourth display block does not exist in the current line.
Optionally, the display block includes at least one basic block, and the basic block is a single block obtained by equally dividing rows according to the maximum number of division columns corresponding to the rows.
Optionally, the mobile unit selects a third display block from the at least one second display block, including:
and selecting the first second display block as the third display block from the current target row according to the sequence from left to right.
Optionally, the merging unit selects a fifth display block from the at least one fourth display block, including:
selecting, from among the at least one fourth display block, a fourth display block having a smallest width as the fifth display block.
Optionally, the apparatus further comprises:
and the ending unit is used for ending the processing aiming at the current line if the first display block does not exist in the current line.
As can be seen from the above description, in the embodiment of the present application, the display blocks of empty data do not exist in the report by mainly moving data among different display blocks and expanding (merging) the display blocks, so that the user can browse the valid data quickly; in addition, by moving data among display blocks which are the same in width and close in rows, the display effect of the data and the importance degree of the data can be effectively considered, the change of the report layout can be reduced as much as possible, the attractiveness of the report is considered, and the report maintenance efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is an example of a monitoring report for a Linux operating system;
FIG. 2 is a flowchart of a report filling method according to an embodiment of the present application;
FIG. 3 is a simplified report diagram according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another report shown in the embodiment of the present application;
FIG. 5 is a schematic diagram of another report shown in the embodiment of the present application;
FIG. 6 is a schematic diagram of another report shown in the embodiment of the present application;
FIG. 7 is a schematic diagram illustrating basic block partitioning according to an embodiment of the present application;
FIG. 8 is an example of a block layout for a row based on the row and base blocks shown in FIG. 7;
fig. 9 is a schematic diagram of a report filling apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the embodiments of the present application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the negotiation information may also be referred to as second information, and similarly, the second information may also be referred to as negotiation information without departing from the scope of the embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 2, a flowchart of a report filling method according to an embodiment of the present application is shown. The process comprises the following steps:
step 201, in the report, each row of the report is traversed from top to bottom in sequence.
Referring to fig. 3, a simplified report diagram according to an embodiment of the present disclosure is shown. The report includes 6 lines, each line is divided into at least one display block according to a pre-planned layout mode, for example, in fig. 3, the 1 st line is divided into 3 display blocks; line 2 is divided into 5 display blocks; line 3 is divided into 4 show blocks; line 4 is divided into 4 show blocks; line 5 is divided into 1 display block; line 6 is divided into 2 display blocks.
Wherein, the height, the width and the like of each display block in the same row can be the same or different; the heights of the different rows may be the same or different.
In the embodiment of the present application, each row in the report is sequentially traversed from top to bottom, for example, in fig. 3, the row 1 is sequentially traversed to the row 6, and the processing of step 202 to step 206 is performed for each row.
Step 202, if the first display block exists in the current row, sequentially traversing a subsequent preset number of target rows.
Here, the first presentation block refers to a presentation block not filled with data. For example, in fig. 3, display blocks (the 3 rd display block in the 2 nd row and the display block in the 5 th row) are drawn with oblique solid lines. It should be understood that the first display block is named for convenience of distinguishing and is not limiting.
If the first presentation block does not exist in the current line, for example, line 1 in fig. 3, the processing for the current line is ended, and the next line is continuously traversed.
If the first display block exists in the current row, for example, the 2 nd row in fig. 3, sequentially traversing the subsequent preset number of target rows. Here, a preset number of rows following the current row are each referred to as a target row. It is to be understood that the reference to a target row is merely a nomenclature for ease of distinction and is not intended to be limiting.
Step 203, if at least one second display block exists in the current target row, selecting a third display block from the at least one second display block, copying the data in the third display block to the first display block, and deleting the data in the third display block.
Here, the second display block is a display block that is the same width as the first display block and is already filled with data. It should be understood that the second display block is named for convenience of distinguishing and is not limiting.
And if at least one second display block exists in the current target row, selecting a third display block from the at least one second display block, copying the data in the third display block to the first display block, and deleting the data in the third display block. At this time, the data in the original third display block is displayed in the first display block, and the data in the third display block is empty and becomes a display block not filled with data.
Here, one presentation block selected from among the at least one second presentation block is referred to as a third presentation block. It should be understood that the third display block is named for convenience of distinguishing and is not limiting.
As an example, any one of the presentation blocks may be selected from the at least one second presentation block as a third presentation block.
As another example, the first second presentation block may be selected as the third presentation block from the current target row in left-to-right order.
For example, in fig. 3, there are 3 display blocks in the 3 rd row with the same width as the 3 rd display block in the 2 nd row, then according to the sequence from left to right, the first display block in the 3 rd row with the same width as the 3 rd display block in the 2 nd row can be selected, that is, the display block (the 2 nd display block in the 3 rd row) located right below the 3 rd display block in the 2 nd row is selected, the data in the display block is copied to the 3 rd display block in the 2 nd row, and the data in the 2 nd display block in the 3 rd row is deleted, at this time, the report is as shown in fig. 4. As can be seen from fig. 4, the data in the original row 3, row 2 presentation block is moved to the row 2, row 3 presentation block, and the row 3, row 2 presentation block becomes empty (no data).
Here, it should be noted that, since important data (for example, data focused by a user) is usually laid out in front when the report is laid out, in this example, the data in the front position is preferentially selected to move forward, so that the user can quickly browse the relatively important data.
In addition, the data of the display blocks in other rows (target rows) are moved to the current row instead of the current row, so that the data moving times can be effectively reduced, and the change on the report layout is reduced; and by moving data between presentation tiles of the same width, the impact on the data presentation effect (e.g., font size) may be reduced. The display block has different heights, so that the data display effect is not influenced generally, and when more data exist, the data in the display block can be browsed through the scroll bar.
After the data population of the first display block is completed by the current target row, traversal of the next target row may be stopped. Here, it should be noted that the preset number of target rows that can be traversed by the embodiment of the present application is not large, and as an example, the preset number is 1, that is, only the next row adjacent to the row where the first display block is located is traversed. This is because the important degree of the data is considered, and the unimportant data at the back is prohibited from moving to the important position at the front end of the report.
Step 204, if the second display block does not exist in the preset number of target rows, determining whether a fourth display block exists in the row where the first display block is located.
Here, the fourth display block is a display block that is adjacent to the first display block and is already filled with data. It should be understood that the fourth display block is named for convenience of distinguishing and is not limiting.
Taking the 2 nd display block (first display block) in the 3 rd row in fig. 4 as an example, since there is no second display block with the same width as the first display block in the 4 th row (here, 1 target row is taken as an example), it is queried whether there is a fourth display block adjacent to the first display block in the 3 rd row. As can be seen from fig. 4, the 1 st display block of the 3 rd row and the 3 rd display block of the 3 rd row are both the fourth display block adjacent to the first display block (the 2 nd display block of the 3 rd row).
After the determination in this step, if there is a fourth display block in the row where the first display block is located, go to step 205; if there is no fourth display block in the row of the first display block, go to step 206.
Step 205, selecting a fifth display block from at least one fourth display block, merging the fifth display block with the first display block, and displaying data in the fifth display block in the merged display block.
As one example, any one of the fourth presentation blocks may be selected from the at least one fourth presentation block as the fifth presentation block.
As another example, a fourth presentation block having a smallest width may be selected from the at least one fourth presentation block as the fifth presentation block. It should be understood that the fifth display block is named for convenience of distinguishing and is not limiting.
Still taking the 2 nd display block (first display block) in the 3 rd row in fig. 4 as an example, the fourth display block adjacent to the first display block is the 1 st display block in the 3 rd row and the 3 rd display block in the 3 rd row, respectively. Wherein, the width of the 3 rd display block in the 3 rd row is smaller than the width of the 1 st display block in the 3 rd row, so that the 3 rd display block in the 3 rd row can be selected as the fifth display block to be merged with the 2 nd display block in the 3 rd row, and the data of the 3 rd display block in the original 3 rd row is displayed in the merged display block, as shown in fig. 5.
It can be seen that after merging, the width of the display block becomes larger, and the display effect (for example, font size) of the data may change, but the display frame without data does not exist in the row of the original first display block, which may bring a good visual experience to the user; in addition, because the display blocks with smaller widths are selected for expansion (merging), the sizes of the display blocks in the same row can be balanced, and a better visual effect is brought.
Step 206, delete the row of the first display block.
I.e. deleting the line currently being processed. After the deletion, the subsequent rows move upward in sequence, and the subsequent rows may specifically move upward by using the existing implementation manner, which is not described herein again.
Taking the row 5 display block (first display block) shown in fig. 5 as an example, there is no second display block with the same width as the first display block in the subsequent row (row 6), and there is no fourth display block adjacent to the first display block in the row where the first display block is located, in other words, the first display block occupies the entire row 5, so that the row where the first display block is located can be directly deleted, and the subsequent rows (row 6) can be moved up, as shown in fig. 6, so as to obtain a complete report without null data.
Thus, the flow shown in fig. 2 is completed.
As can be seen from the flow shown in fig. 2, in the embodiment of the present application, the display blocks of empty data do not exist in the report by mainly moving data among different display blocks and expanding (merging) the display blocks, so that the user can browse the effective data quickly; in addition, by moving data among display blocks which are the same in width and close in rows, the display effect of the data and the importance degree of the data can be effectively considered, the change of the report layout can be reduced as much as possible, the attractiveness of the report is considered, and the report maintenance efficiency is improved.
As one embodiment, each display block may be constructed based on the base block of the row in which it is located.
Here, the basic block refers to a single block obtained by equally dividing rows by the maximum number of division columns corresponding to the rows. For example, if the maximum number of division columns corresponding to a row is 5, the row can be divided into 5 columns on average, and 5 basic blocks are obtained, as shown in fig. 7.
The size of the display block is an integer multiple of the base block size, i.e., one display block may consist of at least one base block, and the largest display block in each row may consist of the largest number of base blocks divided into columns.
Referring to fig. 8, an example of a block layout is shown for a row based on the row and base blocks shown in fig. 7. As can be seen from fig. 8, 16 display block layouts can be obtained based on the 5 basic blocks shown in fig. 7. For example, layout 1 indicates that a row can be divided into 5 display blocks, and each display block is composed of a base block; for another example, layout 2 indicates that a row can be divided into 4 display blocks, where the 1 st display block is composed of 2 base blocks, and the other 3 display blocks are each composed of 1 base block; for another example, the layout 12 represents that a row can be divided into 2 display blocks, wherein the 1 st display block is composed of 3 base blocks, and the 2 nd display block is composed of 2 base blocks.
Here, it should be noted that, although the length of each row in the report is the same, the maximum number of division columns corresponding to each row may be different, in other words, the basic block size of each row is different. Different sized display blocks may be constructed based on different sized base blocks.
For example, in fig. 3, the maximum number of division columns of the 1 st row is 3, the row can be divided into 3 basic blocks, and in fig. 3, each display block of the 1 st row is composed of one basic block; for another example, in fig. 3, the maximum number of the division columns in the 3 rd row is 5, and the row can be divided into 5 basic blocks, wherein the 1 st display block is composed of 2 basic blocks, and the last 3 display blocks are respectively composed of one basic block; for another example, in fig. 3, the maximum number of division columns of the 4 th row is 4, the row can be divided into 4 basic blocks, and in fig. 3, each display block of the 4 th row is composed of one basic block.
The report filling method of the present application is described in detail below by taking the report shown in fig. 3 as an example.
First, traversing the 1 st line of the report, and ending the processing for the 1 st line if no display block of unfilled data exists in the 1 st line.
Traversing the 2 nd row of the report, if the display block (the 3 rd display block in the 2 nd row) without data filling exists in the 2 nd row, continuously traversing the next row (the 3 rd row) adjacent to the 2 nd row, and searching the display block with the same broadband as the 3 rd display block in the 2 nd row from the 3 rd row. As can be seen from fig. 3, the widths of the 2 nd display block, the 3 rd display block, and the 4 th display block in the 3 rd row are the same as the widths of the 3 rd display block in the 2 nd row, data in the 2 nd display block in the 3 rd row is preferentially selected, the data is copied to the 3 rd display block in the 2 nd row, and the data in the 2 nd display block in the 3 rd row is deleted, at this time, the report is as shown in fig. 4.
On the basis of the report shown in fig. 4, traversing the 3 rd row of the report, if there is a display block (2 nd display block in the 3 rd row) which is not filled with data in the 3 rd row, continuing traversing the next row (4 th row) adjacent to the 3 rd row, and searching for a display block with the same bandwidth as the 2 nd display block in the 3 rd row from the 4 th row. As can be seen from fig. 4, if there is no display block in the 4 th row with the same width as the 2 nd display block in the 3 rd row, the 3 rd row is returned, and the display blocks adjacent to the 2 nd display block in the 3 rd row are searched, which are the 1 st display block in the 3 rd row and the 3 rd display block in the 3 rd row, respectively. The width of the 3 rd display block in the 3 rd row is smaller than that of the 1 st display block in the 3 rd row, so that the 3 rd display block in the 3 rd row is preferably selected to be merged with the 2 nd display block in the 3 rd row, and the data in the 3 rd display block in the original 3 rd row is displayed in the merged display block. After merging, the report is shown in fig. 5.
On the basis of the report shown in fig. 5, the 4 th line of the report is traversed, and if there is no display block not filled with data in the 4 th line, the processing for the 4 th line is ended.
And continuously traversing the 5 th row of the report, wherein the 5 th row has a display block without data filling, and the 6 th row adjacent to the 5 th row does not have a display block with the same width as the display block in the 5 th row, and the display block without data filling does not have an adjacent display block in the 5 th row, directly deleting the row (the 5 th row) where the display block is located, and moving up the 6 th row to obtain the report shown in fig. 6.
If the display block with unfilled data does not exist in the moved-up line 5 (original line 6), the processing of the report is finished, and finally the report shown in fig. 6 is obtained, where the display block with unfilled data does not exist in the report.
The method provided by the embodiment of the present application is described above, and the apparatus provided by the embodiment of the present application is described below:
referring to fig. 9, a report filling apparatus shown in this embodiment of the present application includes at least one row, each row is divided into at least one display block according to a display block layout rule planned in advance, and each display block is respectively used for displaying different types of data, and the apparatus includes: a traversing unit 901, a moving unit 902, a judging unit 903, a merging unit 904 and a deleting unit 905. Wherein the content of the first and second substances,
a traversing unit 901, configured to sequentially traverse each line of the report from top to bottom in the report;
the traversal unit 901 is further configured to, for each line, sequentially traverse a subsequent preset number of target lines if a first display block exists in a current line, where the first display block is a display block that is not filled with data;
a moving unit 902, configured to select a third display block from the at least one second display block if at least one second display block exists in the current target row, copy data in the third display block to the first display block, delete the data in the third display block, and end traversal for the preset number of target rows, where the second display block is a display block that has the same width as the first display block and is filled with data;
a determining unit 903, configured to determine whether a fourth display block exists in the current line if a second display block does not exist in the preset number of target lines, where the fourth display block is a display block that is adjacent to the first display block and is filled with data;
a merging unit 904, configured to select a fifth display block from the at least one fourth display block if at least one fourth display block exists in the current row, merge the fifth display block with the first display block, and display data in the fifth display block in the merged display block;
a deleting unit 905, configured to delete the current line if the fourth display block does not exist in the current line.
As an embodiment, the display block includes at least one basic block, and the basic block is a single block obtained by equally dividing rows by the maximum number of division columns corresponding to the rows.
As one embodiment, the mobile unit 902 selects a third display block from the at least one second display block, comprising:
and selecting the first second display block as the third display block from the current target row according to the sequence from left to right.
As one embodiment, the merging unit 904 selects one fifth display block from the at least one fourth display block, including:
selecting, from among the at least one fourth display block, a fourth display block having a smallest width as the fifth display block.
As an embodiment, the apparatus further comprises:
and the ending unit is used for ending the processing aiming at the current line if the first display block does not exist in the current line.
The description of the apparatus shown in fig. 9 is thus completed.
As can be seen from the above description, in the embodiment of the present application, the display blocks of empty data do not exist in the report by mainly moving data among different display blocks and expanding (merging) the display blocks, so that the user can browse the valid data quickly; in addition, by moving data among display blocks which are the same in width and close in rows, the display effect of the data and the importance degree of the data can be effectively considered, the change of the report layout can be reduced as much as possible, the attractiveness of the report is considered, and the report maintenance efficiency is improved.
The above description is only a preferred embodiment of the present application, and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application shall be included in the scope of the present application.

Claims (10)

1. A report filling method is characterized in that the report comprises at least one line, each line is divided into at least one display block according to a display block layout rule planned in advance, and each display block is respectively used for displaying different types of data, and the method comprises the following steps:
in the report, each line of the report is traversed from top to bottom in sequence, and the following processing is executed for each line:
if a first display block exists in the current line, sequentially traversing a subsequent preset number of target lines, wherein the first display block is a display block which is not filled with data;
if at least one second display block exists in the current target row, selecting a third display block from the at least one second display block, copying data in the third display block to the first display block, deleting data in the third display block, and ending traversal aiming at the preset number of target rows, wherein the second display block is a display block which has the same width as the first display block and is filled with data;
if the second display block does not exist in the preset number of target rows, judging whether a fourth display block exists in the current row, wherein the fourth display block is a display block which is adjacent to the first display block and is filled with data;
if at least one fourth display block exists in the current row, selecting a fifth display block from the at least one fourth display block, merging the fifth display block with the first display block, and displaying data in the fifth display block in the merged display block;
and if the fourth display block does not exist in the current line, deleting the current line.
2. The method of claim 1, wherein the presentation block comprises at least one basic block, and the basic block is a single block obtained by equally dividing rows by a maximum number of divided columns corresponding to the rows.
3. The method of claim 1, wherein said selecting a third presentation block from said at least one second presentation block comprises:
and selecting the first second display block as the third display block from the current target row according to the sequence from left to right.
4. The method of claim 1, wherein said selecting a fifth presentation block from said at least one fourth presentation block comprises:
selecting, from among the at least one fourth display block, a fourth display block having a smallest width as the fifth display block.
5. The method of claim 1, wherein the method further comprises:
if the first display block does not exist in the current row, ending the processing for the current row.
6. A report filling device is characterized in that the report comprises at least one line, each line is divided into at least one display block according to a display block layout rule planned in advance, and each display block is respectively used for displaying different types of data, and the device comprises:
the traversing unit is used for sequentially traversing each line of the report form from top to bottom in the report form;
the traversal unit is further configured to, for each line, sequentially traverse a subsequent preset number of target lines if a first display block exists in a current line, where the first display block is a display block not filled with data;
a moving unit, configured to select a third display block from at least one second display block if at least one second display block exists in a current target row, copy data in the third display block to the first display block, delete the data in the third display block, and end traversal for the preset number of target rows, where the second display block is a display block that has the same width as the first display block and is filled with data;
a determining unit, configured to determine whether a fourth display block exists in the current line if a second display block does not exist in the preset number of target lines, where the fourth display block is a display block that is adjacent to the first display block and is filled with data;
a merging unit, configured to select a fifth display block from the at least one fourth display block if at least one fourth display block exists in the current row, merge the fifth display block with the first display block, and display data in the fifth display block in the merged display block;
and the deleting unit is used for deleting the current line if the fourth display block does not exist in the current line.
7. The apparatus of claim 6, wherein the presentation block comprises at least one basic block, the basic block being a single block obtained by equally dividing rows by a maximum number of divided columns corresponding to the rows.
8. The apparatus of claim 6, wherein the mobile unit selects a third presentation block from the at least one second presentation block, comprising:
and selecting the first second display block as the third display block from the current target row according to the sequence from left to right.
9. The apparatus of claim 6, wherein the merging unit selects a fifth presentation block from the at least one fourth presentation block, comprising:
selecting, from among the at least one fourth display block, a fourth display block having a smallest width as the fifth display block.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the ending unit is used for ending the processing aiming at the current line if the first display block does not exist in the current line.
CN202111139369.7A 2021-09-26 2021-09-26 Report form filling method and device Active CN113836879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111139369.7A CN113836879B (en) 2021-09-26 2021-09-26 Report form filling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111139369.7A CN113836879B (en) 2021-09-26 2021-09-26 Report form filling method and device

Publications (2)

Publication Number Publication Date
CN113836879A true CN113836879A (en) 2021-12-24
CN113836879B CN113836879B (en) 2024-03-22

Family

ID=78970733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111139369.7A Active CN113836879B (en) 2021-09-26 2021-09-26 Report form filling method and device

Country Status (1)

Country Link
CN (1) CN113836879B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117217196A (en) * 2023-11-09 2023-12-12 杭州瀚斯科技有限公司 Data processing system, method and computer device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036040A (en) * 2014-06-30 2014-09-10 贝壳网际(北京)安全技术有限公司 Method and device for generating report
US20150128076A1 (en) * 2013-11-07 2015-05-07 Touchtunes Music Corporation Techniques for generating electronic menu graphical user interface layouts for use in connection with electronic devices
WO2020253066A1 (en) * 2019-06-18 2020-12-24 平安科技(深圳)有限公司 Page management method and apparatus, and computer device and storage medium
CN112434077A (en) * 2020-11-18 2021-03-02 中国建设银行股份有限公司 Data statistics display method, device, equipment and medium based on customized report

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150128076A1 (en) * 2013-11-07 2015-05-07 Touchtunes Music Corporation Techniques for generating electronic menu graphical user interface layouts for use in connection with electronic devices
CN104036040A (en) * 2014-06-30 2014-09-10 贝壳网际(北京)安全技术有限公司 Method and device for generating report
WO2020253066A1 (en) * 2019-06-18 2020-12-24 平安科技(深圳)有限公司 Page management method and apparatus, and computer device and storage medium
CN112434077A (en) * 2020-11-18 2021-03-02 中国建设银行股份有限公司 Data statistics display method, device, equipment and medium based on customized report

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
戚平;何俊博;: "基于B/S架构的自主生成报表引擎系统设计与实现", 电子设计工程, no. 08, 20 April 2017 (2017-04-20) *
汤加;符云清;万煊民;: "一种基于单数据源的可视化自定义报表模型", 计算机科学, no. 05, 15 May 2017 (2017-05-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117217196A (en) * 2023-11-09 2023-12-12 杭州瀚斯科技有限公司 Data processing system, method and computer device
CN117217196B (en) * 2023-11-09 2024-01-26 杭州瀚斯科技有限公司 Data processing system, method and computer device

Also Published As

Publication number Publication date
CN113836879B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US11307750B2 (en) Method and system for section-based editing of a website page
US10318095B2 (en) Reader mode presentation of web content
US9760543B2 (en) Graphical tile-based layout
US6874128B1 (en) Mouse driven splitter window
JP4880334B2 (en) Scrollable and resizable formula bar
US5577187A (en) Method and system for tiling windows based on previous position and size
US8887085B1 (en) Dynamic content navigation
US8443281B2 (en) Constructing a labeled treemap with balanced layout
US20130174023A1 (en) Presentation of rich search results in delineated areas
US20120120086A1 (en) Interactive and Scalable Treemap as a Visualization Service
US20110210986A1 (en) Systems and methods for determining positioning and sizing of graphical elements
JPH0445874B2 (en)
US20050005236A1 (en) Method of displaying a document
CN113836879A (en) Report form filling method and device
US9183215B2 (en) Mosaic display systems and methods for intelligent media search
CN101578576B (en) Method and system for assisting object selection when web page is authored
JPS6037945B2 (en) How to display hierarchical tree-structured text in an ordered structure
CN114327192A (en) Information browsing method, device and equipment
JP2009245162A (en) Display control device, display control method, and display control program
CN102487362B (en) The display packing of IM message and device
CN109800039B (en) User interface display method and device, electronic equipment and storage medium
CN103677524A (en) Control method and device of presenting mode of navigation bar
CN111460764B (en) Electronic book labeling method, electronic equipment and storage medium
CN107526576B (en) Method and device for displaying view components of page
CN110889072B (en) Screenshot method and device for removing webpage advertisements, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant