CN108009145A - Report form generation method and device - Google Patents
Report form generation method and device Download PDFInfo
- Publication number
- CN108009145A CN108009145A CN201711364749.4A CN201711364749A CN108009145A CN 108009145 A CN108009145 A CN 108009145A CN 201711364749 A CN201711364749 A CN 201711364749A CN 108009145 A CN108009145 A CN 108009145A
- Authority
- CN
- China
- Prior art keywords
- report
- gauge outfit
- report form
- data
- template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a kind of report form generation method and device, this method is applied to report generating system, has imported Jquery plug-in units in the system, method includes:Operated in response to template-setup, determine the report form template and report form type of selection, in response to the selection operation of the gauge outfit data to tree structure, the gauge outfit selected is shown in report form template, according to the gauge outfit and report form type selected, back-end data is handled, generates report data, the report data is filled into report form template, obtains report.Relative to the prior art, by importing Jquery plug-in units, make it possible to effectively reduce the size of the data packet of the report of generation, have the advantages that to safeguard that simple, compatibility is strong and page loading velocity is fast, and by using the gauge outfit data of tree structure, the setting for realizing gauge outfit that can be simple and quick, report generation are simple and convenient.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of report form generation method and device.
Background technology
With the extensive use of internet, E-Government, e-commerce and IT application in enterprises are grown rapidly, data
Collection, transmission, displaying, interaction, the problems such as seem more and more important.Report is as a kind of information tissue and the strong hand of displaying
Section, is the important component of enterprise information system.According to incompletely statistics, in the practical application of business system, there is more than 60%
It is related to report.Reporting system has very extensive purposes in all trades and professions, be carry out information browse, analysis, printing have
Power instrument.With the development of WEB technologies, business system is from traditional user terminal/server framework progressively to browser/server
Framework shifts, and also positive Web-based methodology is changed enterprise information system, and more and more Report form applications will be
Exploitation and operation under Web environment.
At present, in WEB report capabilities existing in the market, the making of many reports is all using third party's plug-in unit system
Work such as Pentaho, JasperReports, OpenReports, JFreeReport plug-in unit, but their js
(JavaScript) wrap all bigger, so the function of end item is safeguarded and causes difficult and browser there are compatibility to ask
The problems such as topic and loading page are excessively slow, and since the bag of plug-in unit is all bigger, report generation is also more complicated.
The content of the invention
It is a primary object of the present invention to provide a kind of report form generation method and device, it is intended to solve report in the prior art
Difficult in maintenance there are function, poor compatibility and page loading velocity be slow and the technical problem such as report generation complexity.
To achieve the above object, first aspect present invention provides a kind of report form generation method, and the report form generation method should
For report generating system, Jquery plug-in units have been imported in the system, the described method includes:
Operated in response to template-setup, determine the report form template and report form type of selection;
In response to the selection operation of the gauge outfit data to tree structure, the table selected is shown in the report form template
Head;
According to the gauge outfit and the report form type selected, back-end data is handled, generates report data;
The report data is filled into the report form template, obtains report
To achieve the above object, second aspect of the present invention provides a kind of report generation device, and the report generation device should
For report generating system, Jquery plug-in units are imported in the system, described device includes:
First determining module, for being operated in response to template-setup, determines the report form template and report form type of selection;
Display module, for the selection operation in response to the gauge outfit data to tree structure, is opened up in the report form template
Show the gauge outfit selected;
Generation module is handled, for according to the gauge outfit and the report form type selected, handling back-end data, life
Into report data;
Module being filled, for filling the report data into the report form template, obtaining report.
The present invention provides a kind of report form generation method, and this method is applied to report generating system, has been imported in the system
Jquery plug-in units, method include:Operated in response to template-setup, the report form template and report form type of selection are determined, in response to right
The selection operation of the gauge outfit data of tree structure, shows the gauge outfit selected in report form template, according to the gauge outfit selected and
Report form type, handles back-end data, generates report data, which is filled into report form template, is reported
Table.Relative to the prior art, by importing Jquery plug-in units, enabling effectively reduce the big of the data packet of the report of generation
It is small, have the advantages that to safeguard that simple, compatibility is strong and page loading velocity is fast, and by using the gauge outfit data of tree structure,
The setting for realizing gauge outfit that can be simple and quick, report generation are simple and convenient.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those skilled in the art, without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is the flow diagram of report form generation method in first embodiment of the invention;
Fig. 2 is the flow diagram of report form generation method in second embodiment of the invention;
Fig. 3 is the structure diagram of the program module of report generation device in third embodiment of the invention;
Fig. 4 is the structure diagram of the program module of report generation device in fourth embodiment of the invention.
Embodiment
Goal of the invention, feature, advantage to enable the present invention is more obvious and understandable, below in conjunction with the present invention
Attached drawing in embodiment, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art
Member's all other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Since report is difficult in maintenance there are function in the prior art, poor compatibility and page loading velocity are slow and report is given birth to
Into technical problems such as complexity.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of report form generation method, by importing Jquery plug-in units, makes
Can effectively reduce generation report data packet size, have and safeguard that simple, compatibility is strong and page loading velocity is fast
The advantages that, and by using the gauge outfit data of tree structure, the setting for realizing gauge outfit that can be simple and quick, report generation is simple
It is convenient.
Referring to Fig. 1, be the flow diagram of report form generation method in first embodiment of the invention, wherein, report life
It is applied to report generating system into method, has imported Jquery plug-in units in the system, method includes:
Step 101, operate in response to template-setup, determines the report form template and report form type of selection;
In embodiments of the present invention, above-mentioned report form generation method is applied to report generating system, which is
Software and/or hardware system, and Jquery plug-in units are imported in the report generating system.Wherein, above-mentioned report form generation method can be with
By report generation device (hereinafter referred to as:Generating means) realize, which is program module, which is stored in
In the memory of report generating system, above procedure module is called by the processor in report generating system, it is above-mentioned to realize
Report form generation method.And it is further, above-mentioned generating means are also based on what Jquery frames were write.
Wherein, Jquery is a quick, succinct JavaScript frame, has unique chain type grammer and short and small clear
Clear functional interface, has cascading style sheets (Cascading Style Sheets, CSS) selector of high efficient and flexible, and
CSS selector can be extended, possess easily plug-in extension mechanism and abundant plug-in unit, and good compatibility.Therefore, exist
Jquery plug-in units are imported in system, and generate report, will have the function of to safeguard simple, compatibility is strong and page loading velocity is fast etc.
Advantage.
In embodiments of the present invention, report form template has cross form, vertical framework, expense report template and multiple lines and multiple rows report
Table template etc., perform set operation after, generating means will be responsive to the setting operation, determine selection report form template and
Report form type.
Wherein, report form type, which is primarily referred to as every a line of report or the chronomere of each row, the report form type, to be
Type in units of year, either the type in units of the moon either the type in units of day or by when in units of class
Type, in practical applications, can select specific report form type as needed, not limit herein.
Step 102, in response to top-of-form set operate, the Table Header information set is shown in the report form template, it is described
Table Header information is the Table Header information of tree structure;
In embodiments of the present invention, gauge outfit is the beginning part of report, more for sorting out to the property of some things
A gauge outfit can be shown in a row, can also be shown in a column.
A variety of different types of gauge outfits are included in form library storage, can be with for example, for energy consumption analysis report, in form library storage
Including:Gantry crane maintenance between power consumption, stockyard dosage, stacker power consumption, auxiliary bayonet power consumption, tool materials storehouse power consumption,
Machinery room power consumption, container gate power consumption, refrigerating box electricity power consumption, stream hangar power consumption, gantry crane power consumption, bridge crane are waited
Work building power consumption, harbour power consumption, front lobby power consumption etc..
In embodiments of the present invention, a variety of different types of gauge outfits in form library storage are with the associated gauge outfit number of tree structure
According to by using the mode of tree structure so that the relation between gauge outfit becomes apparent from, and the selection to gauge outfit of being more convenient for, and makes
Obtain the simpler convenience of production of report.Further, since it is that report is associated by way of tree structure, enabling realize each
The report of kind pattern, species are more abundant.
Generating means will be responsive to top-of-form set operation, and the gauge outfit selected is shown in report form template.
The gauge outfit and the report form type that step 103, basis have selected, handle back-end data, generate report number
According to;
Step 104, fill the report data into the report form template, obtains report.
In embodiments of the present invention, generating means will utilize the gauge outfit selected and above-mentioned report form type, to back-end data
Handled, generate report data, and report data is filled into report form template, obtain report.
It is understood that a plurality of record is included in report data, wherein, each record all correspond in report form template
A line or one row.
In embodiments of the present invention, method is applied to import in the system of Jquery plug-in units, and in response to template-setup
Operation, determines the report form template and report form type of selection, in response to the selection operation of the gauge outfit data to tree structure, in report
The gauge outfit that displaying has selected in template, according to the gauge outfit and report form type selected, is handled back-end data, generates report
Data, which is filled into report form template, obtains report.Relative to the prior art, by importing Jquery plug-in units,
Make it possible to the size of the effectively data packet of the report of reduction generation, have and safeguard simple, compatible strong and page loading velocity
The advantages that fast, and by using the gauge outfit data of tree structure, the setting for realizing gauge outfit that can be simple and quick, report generation letter
Folk prescription is just.
Based on embodiment illustrated in fig. 1, referring to Fig. 2, the flow for report form generation method in second embodiment of the invention is shown
It is intended to, including:
Step 201, in response to report form template selection operation, determine the report form template of selection;
In embodiments of the present invention, web display interfaces will be divided into three parts, be that hierarchy management region, report are pre- respectively
Look at region and report attributes edit region, wherein, hierarchy management region is used for the level of managerial report, report preview area is used for
Show report, report attributes edit region is used to select gauge outfit.Wherein, three regions can according to order from left to right according to
Secondary arrangement display, or can also be shown in other ways in web display interfaces, do not limit herein.
In embodiments of the present invention, report form template can be selected by way of click, for example, the exhibition by way of click
To show the title of all report form templates, click on the report form template of needs, generating means will be responsive to the selection operation of the report form template,
Determine the report form template of selection, at this time, the report form template of the selection will be illustrated in above-mentioned report preview area.
Step 202, set in response to time parameter and operate, and determines the report form type of the report form template;
In embodiments of the present invention, when can click on the time parameter setting button on display interface, and select corresponding
Between, generating means will be responsive to time parameter and set operation, the report form type of report form template be determined, if for example, the report form type
For the type that year is unit, then by using, the temporal information as report such as 2015 in 2016 in 2017, if the report form type
For the type in units of the moon, and scope is 2017, then report will be with January, 2017,2 months 2017,2017 years 3
Month ..., in December, 2017 etc. be temporal information, wherein, above-mentioned temporal information is filled into report form template in the follow-up process
It is interior.
Step 203, in response to the pulling operation to gauge outfit data, show gauge outfit data, tree included in the gauge outfit data
Multiple gauge outfits of shape structure;
In embodiments of the present invention, the button of gauge outfit selection is provided with above-mentioned report attributes edit region, this is clicked on and presses
Button, for setting gauge outfit, clicks on, and generating means will be responsive to the pulling operation to gauge outfit data, shows gauge outfit data,
Wherein, which is tree structure, and therefore, when displaying also will show multiple gauge outfits in the way of tree structure.
Further, after some gauge outfit is selected, drag operation can also be performed to the gauge outfit, dragging needs to select
Gauge outfit to report preview area in, generating means will be responsive to the drag operation, will be drawn to the table in report preview area
Head corresponding position displaying in report preview area.Referring particularly to step 204 and step 205.
Step 204, in response to the drag operation to the gauge outfit, to be drawn to the gauge outfit in the report preview area into
Row recurrence, is assembled into array object;
Step 205, by the array object assignment to the relevant position in the report form template, the report form template be
Html page form, and the report form template is shown in the report preview area;
In embodiments of the present invention, for the gauge outfit chosen, it is pre- the gauge outfit can be drawn to by report by drag operation
Look in region, generating means will be responsive to the drag operation, and recurrence, assembling are carried out to the gauge outfit being drawn in report preview area
Into array object, and by the response position in the array object assignment to report form template, wherein, which is hypertext mark
Remember language (HyperText Markup Language, HTML) page formatting, and the report form template is shown in report preview region
In domain.
It is understood that repeatedly above-mentioned step 204 can be performed, to select multiple gauge outfits, wherein, select gauge outfit
When can also be made choice according to the tree structure of gauge outfit, such as first select upper strata gauge outfit, then reselection lower floor gauge outfit, or
Person, based on the gauge outfit and other relations of gauge outfit selected in tree structure, can also determine the table after gauge outfit is selected
Display location of the head in report preview area.
Wherein, value object object contains the position of gauge outfit and gauge outfit in report preview area.
It is understood that display location is also based on what position of the gauge outfit in tree structure was determined, for example, phase
The gauge outfit of same level is located at a line or same row.
It should be noted that except being configured to the gauge outfit of report, the title of report can also be configured, report is used
Font size, font color, the type of font, the display location etc. of title so that the data of report are more abundant, and full
The personal format needs to report of foot.
Step 206, initialization time plug-in unit, will be filled to the report form template time based on the report form type;
Step 207, obtain back-end data, and the back-end data is carried out based on the gauge outfit and the report form type selected
Processing, generates report data;
Step 208, fill the report data into the report form template, obtains report.
In embodiments of the present invention, after displaying information, will be inserted initialization time in selection gauge outfit and in report form template
Part, will be filled to report form template the time based on report form type, if for example, the report form type is type in units of the moon, and
Scope is 2017, then report will with January, 2017,2 months 2017, in March, 2017 ..., in December, 2017 etc. is the time
Information, and the time is filled to report form template.
Wherein, user can import button with click data, and generating means will obtain back-end data, it is to be understood that can
To obtain back-end data based on the corresponding attribute type of gauge outfit selected, for example, the corresponding attribute type of gauge outfit is electricity number
According to, then back-end data is electric quantity data, in another example, the corresponding attribute type of gauge outfit is temperature data, then back-end data is temperature
Data.And the further gauge outfit selected and above-mentioned report form type handle back-end data, report data is generated, its
In, which can be data division, data statistics etc., and the above-mentioned gauge outfit selected is to be existed by drag operation
The gauge outfit of displaying in report form template.Wherein, multirow or multi-column data are included in report data, for filling into report form template,
Report is obtained, for example, the transverse direction of report is gauge outfit, it is respectively gauge outfit A to E, longitudinal direction is the time, is January to December respectively,
When report data records for horizontal behavior one, then the data of gauge outfit A to E in some moon (such as May) are contained in a record.
In embodiments of the present invention, method is applied to import in the system of Jquery plug-in units, and in response to template-setup
Operation, determines the report form template and report form type of selection, in response to the selection operation of the gauge outfit data to tree structure, in report
The gauge outfit that displaying has selected in template, according to the gauge outfit and report form type selected, is handled back-end data, generates report
Data, which is filled into report form template, obtains report.Relative to the prior art, by importing Jquery plug-in units,
Make it possible to the size of the effectively data packet of the report of reduction generation, have and safeguard simple, compatible strong and page loading velocity
The advantages that fast, and by using the gauge outfit data of tree structure, the setting for realizing gauge outfit that can be simple and quick, report generation letter
Folk prescription is just.
It is understood that by the above-mentioned means, be only all pre-reserved to all gauge outfits in form library storage, can be achieved with
The generation of simple various reports, it is only necessary to which different gauge outfits can just be selected by arbitrarily pulling gauge outfit, it is not necessary to rewrite generation
Code, greatly promotes development efficiency and reduces learning cost
It should be noted that above-mentioned report form generation method can be applied to multiple fields, such as energy management, harbour pipe
The fields such as reason, airdrome control, building management, tobacco management, chemical management, it might even be possible to which use is in power monitoring field.
Referring to Fig. 3, the structure diagram of the program module for the report generation device in third embodiment of the invention, should
Report generation device is applied to report generating system, has imported Jquery plug-in units in system, which includes:
First determining module 301, for being operated in response to template-setup, determines the report form template and report form type of selection;
Wherein, Jquery is a quick, succinct JavaScript frame, has unique chain type grammer and short and small clear
Clear functional interface, has cascading style sheets (Cascading Style Sheets, CSS) selector of high efficient and flexible, and
CSS selector can be extended, possess easily plug-in extension mechanism and abundant plug-in unit, and good compatibility.Therefore, exist
Jquery plug-in units are imported in system, and generate report, will have the function of to safeguard simple, compatibility is strong and page loading velocity is fast etc.
Advantage.
In embodiments of the present invention, report form template has cross form, vertical framework, expense report template and multiple lines and multiple rows report
Table template etc., perform set operation after, generating means will be responsive to the setting operation, determine selection report form template and
Report form type.
Wherein, report form type, which is primarily referred to as every a line of report or the chronomere of each row, the report form type, to be
Type in units of year, either the type in units of the moon either the type in units of day or by when in units of class
Type, in practical applications, can select specific report form type as needed, not limit herein.
Display module 302, for the selection operation in response to the gauge outfit data to tree structure, in the report form template
Show the gauge outfit selected;
In embodiments of the present invention, gauge outfit is the beginning part of report, more for sorting out to the property of some things
A gauge outfit can be shown in a row, can also be shown in a column.
A variety of different types of gauge outfits are included in form library storage, can be with for example, for energy consumption analysis report, in form library storage
Including:Gantry crane maintenance between power consumption, stockyard dosage, stacker power consumption, auxiliary bayonet power consumption, tool materials storehouse power consumption,
Machinery room power consumption, container gate power consumption, refrigerating box electricity power consumption, stream hangar power consumption, gantry crane power consumption, bridge crane are waited
Work building power consumption, harbour power consumption, front lobby power consumption etc..
In embodiments of the present invention, a variety of different types of gauge outfits in form library storage are with the associated gauge outfit number of tree structure
According to by using the mode of tree structure so that the relation between gauge outfit becomes apparent from, and the selection to gauge outfit of being more convenient for, and makes
Obtain the simpler convenience of production of report.Further, since it is that report is associated by way of tree structure, enabling realize each
The report of kind pattern, species are more abundant.
Generating means will be responsive to top-of-form set operation, and the gauge outfit selected is shown in report form template.
Generation module 303 is handled, the gauge outfit and the report form type selected for basis, at back-end data
Reason, generates report data;
Module 304 being filled, for filling the report data into the report form template, obtaining report.
In embodiments of the present invention, generating means will utilize the gauge outfit selected and above-mentioned report form type, to back-end data
Handled, generate report data, and report data is filled into report form template, obtain report.
It is understood that a plurality of record is included in report data, wherein, each record all correspond in report form template
A line or one row.
In embodiments of the present invention, device is applied to import in the system of Jquery plug-in units, and in response to template-setup
Operation, determines the report form template and report form type of selection, in response to the selection operation of the gauge outfit data to tree structure, in report
The gauge outfit that displaying has selected in template, according to the gauge outfit and report form type selected, is handled back-end data, generates report
Data, which is filled into report form template, obtains report.Relative to the prior art, by importing Jquery plug-in units,
Make it possible to the size of the effectively data packet of the report of reduction generation, have and safeguard simple, compatible strong and page loading velocity
The advantages that fast, and by using the gauge outfit data of tree structure, the setting for realizing gauge outfit that can be simple and quick, report generation letter
Folk prescription is just.
Referring to Fig. 4, be the structure diagram of the program module of report generation device in fourth embodiment of the invention, the dress
Put including the first determining module 301 as shown in Figure 3, display module 302, processing generation module 303 and filling module 304, and
It is similar to the content described in embodiment illustrated in fig. 3.
In embodiments of the present invention, the first determining module 301 includes:
Second determining module 401, in response to report form template selection operation, determining the report form template of selection;
3rd determining module 402, operates for being set in response to time parameter, determines the report class of the report form template
Type.
In embodiments of the present invention, display module 302 includes:
Data display module 403, in response to the pulling operation to gauge outfit data, showing gauge outfit data, the gauge outfit
Multiple gauge outfits of tree structure are included in data;
Gauge outfit display module 404, in response to the drag operation to the gauge outfit, will be drawn in report preview area
Gauge outfit corresponding position displaying in the report preview area.
Wherein, gauge outfit display module 404 includes:
Recurrence assembles module 405, in response to the drag operation to the gauge outfit, to being drawn to the report preview region
Gauge outfit in domain carries out recurrence, is assembled into array object;
Assignment module 406, for by the array object assignment to the relevant position in the report form template, the report
Template is hypertext markup language html page form, and the report form template is shown in the report preview area.
Wherein, processing generation module 303 includes:
Time fills module 407, for initialization time plug-in unit, will be filled the time to the report based on the report form type
In table template;
Generation module 408, for obtaining back-end data, based on the gauge outfit and the report form type selected to the backstage
Data are handled, and generate report data.
In embodiments of the present invention, web display interfaces will be divided into three parts, be that hierarchy management region, report are pre- respectively
Look at region and report attributes edit region, wherein, hierarchy management region is used for the level of managerial report, report preview area is used for
Show report, report attributes edit region is used to select gauge outfit.Wherein, three regions can according to order from left to right according to
Secondary arrangement display, or can also be shown in other ways in web display interfaces, do not limit herein.
Wherein it is possible to report form template is selected by way of click, for example, showing all report moulds by way of click
The title of plate, clicks on the report form template of needs, and generating means will be responsive to the selection operation of the report form template, determine the report of selection
Table template, at this time, the report form template of the selection will be illustrated in above-mentioned report preview area.
Wherein it is possible to which the time parameter clicked on display interface sets button, and the corresponding time is selected, generating means will
Set and operate in response to time parameter, determine the report form type of report form template, if for example, the report form type be unit in year class
Type, then by using, the temporal information as report such as 2015 in 2016 in 2017, if the report form type is in units of the moon
Type, and scope is 2017, then report will with January, 2017,2 months 2017, in March, 2017 ..., in December, 2017 etc.
For temporal information, wherein, above-mentioned temporal information is filled into report form template in the follow-up process.
Wherein, the button of gauge outfit selection is provided with above-mentioned report attributes edit region, is clicked on, for setting table
Head, clicks on, and generating means will be responsive to the pulling operation to gauge outfit data, shows gauge outfit data, wherein, the gauge outfit number
According to being tree structure, therefore, when displaying, also will show multiple gauge outfits in the way of tree structure.
Wherein, value object object contains the position of gauge outfit and gauge outfit in report preview area.
It is understood that display location is also based on what position of the gauge outfit in tree structure was determined, for example, phase
The gauge outfit of same level is located at a line or same row.
It should be noted that except being configured to the gauge outfit of report, the title of report can also be configured, report is used
Font size, font color, the type of font, the display location etc. of title so that the data of report are more abundant, and full
The personal format needs to report of foot.
In embodiments of the present invention, after displaying information, will be inserted initialization time in selection gauge outfit and in report form template
Part, will be filled to report form template the time based on report form type, if for example, the report form type is type in units of the moon, and
Scope is 2017, then report will with January, 2017,2 months 2017, in March, 2017 ..., in December, 2017 etc. is the time
Information, and the time is filled to report form template.
Wherein, user can import button with click data, and generating means will obtain back-end data, it is to be understood that can
To obtain back-end data based on the corresponding attribute type of gauge outfit selected, for example, the corresponding attribute type of gauge outfit is electricity number
According to, then back-end data is electric quantity data, in another example, the corresponding attribute type of gauge outfit is temperature data, then back-end data is temperature
Data.And the further gauge outfit selected and above-mentioned report form type handle back-end data, report data is generated, its
In, which can be data division, data statistics etc., and the above-mentioned gauge outfit selected is to be existed by drag operation
The gauge outfit of displaying in report form template.Wherein, multirow or multi-column data are included in report data, for filling into report form template,
Report is obtained, for example, the transverse direction of report is gauge outfit, it is respectively gauge outfit A to E, longitudinal direction is the time, is January to December respectively,
When report data records for horizontal behavior one, then the data of gauge outfit A to E in some moon (such as May) are contained in a record.
In embodiments of the present invention, device is applied to import in the system of Jquery plug-in units, and in response to template-setup
Operation, determines the report form template and report form type of selection, in response to the selection operation of the gauge outfit data to tree structure, in report
The gauge outfit that displaying has selected in template, according to the gauge outfit and report form type selected, is handled back-end data, generates report
Data, which is filled into report form template, obtains report.Relative to the prior art, by importing Jquery plug-in units,
Make it possible to the size of the effectively data packet of the report of reduction generation, have and safeguard simple, compatible strong and page loading velocity
The advantages that fast, and by using the gauge outfit data of tree structure, the setting for realizing gauge outfit that can be simple and quick, report generation letter
Folk prescription is just.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can pass through it
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module
Letter connection, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module
The component shown may or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
Embody, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It should be noted that for foregoing each method embodiment, describe, therefore it is all expressed as a series of for simplicity
Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because
According to the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is above the description to a kind of report form generation method provided by the present invention and device, for those skilled in the art
Member, according to the thought of the embodiment of the present invention, there will be changes in specific embodiments and applications, to sum up, this theory
Bright book content should not be construed as limiting the invention.
Claims (10)
1. a kind of report form generation method, it is characterised in that the report form generation method is applied to report generating system, the system
In imported Jquery plug-in units, the described method includes:
Operated in response to template-setup, determine the report form template and report form type of selection;
In response to the selection operation of the gauge outfit data to tree structure, the gauge outfit selected is shown in the report form template;
According to the gauge outfit and the report form type selected, back-end data is handled, generates report data;
The report data is filled into the report form template, obtains report.
2. according to the method described in claim 1, it is characterized in that, described operate in response to template-setup, the report of selection is determined
Table template and report form type, including:
In response to report form template selection operation, the report form template of selection is determined;
Set and operate in response to time parameter, determine the report form type of the report form template.
3. the according to the method described in claim 1, it is characterized in that, selection of the gauge outfit data in response to tree structure
Operation, shows the gauge outfit selected in the report form template, including:
In response to the pulling operation to gauge outfit data, show gauge outfit data, the multiple of tree structure are included in the gauge outfit data
Gauge outfit;
In response to the drag operation to the gauge outfit, by the gauge outfit being drawn in report preview area in the report preview area
Interior corresponding position displaying.
4. according to the method described in claim 3, it is characterized in that, it is described by the gauge outfit being drawn in report preview area in institute
Corresponding position displaying in report preview area is stated, including:
Recurrence is carried out to the gauge outfit being drawn in the report preview area, is assembled into array object;
By the array object assignment to the relevant position in the report form template, the report form template is hypertext markup language
Html page form, and the report form template is shown in the report preview area.
5. method according to any one of claims 1 to 4, it is characterised in that the gauge outfit and institute that the basis has selected
Report form type is stated, back-end data is handled, generates report data, including:
Initialization time plug-in unit, will be filled to the report form template time based on the report form type;
Back-end data is obtained, the back-end data is handled based on the gauge outfit and the report form type selected, generation report
Table data.
6. a kind of report generation device, it is characterised in that the report generation device is applied to report generating system, the system
In imported Jquery plug-in units, described device includes:
First determining module, for being operated in response to template-setup, determines the report form template and report form type of selection;
Display module, for the selection operation in response to the gauge outfit data to tree structure, shows in the report form template
The gauge outfit of selection;
Generation module is handled, for according to the gauge outfit and the report form type selected, handling back-end data, generation report
Table data;
Module being filled, for filling the report data into the report form template, obtaining report.
7. device according to claim 6, it is characterised in that first determining module includes:
Second determining module, in response to report form template selection operation, determining the report form template of selection;
3rd determining module, operates for being set in response to time parameter, determines the report form type of the report form template.
8. device according to claim 7, it is characterised in that the display module includes:
Data display module, in response to the pulling operation to gauge outfit data, showing gauge outfit data, being wrapped in the gauge outfit data
Multiple gauge outfits containing tree structure;
Gauge outfit display module, in response to the drag operation to the gauge outfit, the gauge outfit in report preview area will to be drawn to
The corresponding position displaying in the report preview area.
9. device according to claim 8, it is characterised in that the gauge outfit display module includes:
Recurrence assembles module, in response to the drag operation to the gauge outfit, to being drawn in the report preview area
Gauge outfit carries out recurrence, is assembled into array object;
Assignment module, for being by the array object assignment to the relevant position in the report form template, the report form template
Hypertext markup language html page form, and the report form template is shown in the report preview area.
10. according to the device described in claim 6 to 9 any one, it is characterised in that the processing generation module includes:
Time fills module, for initialization time plug-in unit, will be filled the time to the report form template based on the report form type
It is interior;
Generation module, for obtaining back-end data, based on the gauge outfit and the report form type selected to the back-end data into
Row processing, generates report data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711364749.4A CN108009145A (en) | 2017-12-18 | 2017-12-18 | Report form generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711364749.4A CN108009145A (en) | 2017-12-18 | 2017-12-18 | Report form generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108009145A true CN108009145A (en) | 2018-05-08 |
Family
ID=62059530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711364749.4A Pending CN108009145A (en) | 2017-12-18 | 2017-12-18 | Report form generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108009145A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857786A (en) * | 2018-12-19 | 2019-06-07 | 成都四方伟业软件股份有限公司 | Page data fill method and device |
CN109885819A (en) * | 2019-02-19 | 2019-06-14 | 携程旅游信息技术(上海)有限公司 | Data form dynamic adjusting method, system, equipment and storage medium |
CN112346728A (en) * | 2020-10-27 | 2021-02-09 | 北京字节跳动网络技术有限公司 | Device adaptation method, device and computer readable medium |
CN112733494A (en) * | 2020-12-25 | 2021-04-30 | 山东浪潮通软信息科技有限公司 | Method and system for automatically generating standard detection report |
CN112883695A (en) * | 2019-11-29 | 2021-06-01 | 比亚迪股份有限公司 | Method, device, equipment and medium for generating report template and displaying data report |
CN113962206A (en) * | 2021-10-22 | 2022-01-21 | 中电金信软件有限公司 | Report generation method and device |
CN114417802A (en) * | 2022-03-22 | 2022-04-29 | 创意信息技术股份有限公司 | Intelligent report generation system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104376068A (en) * | 2014-11-07 | 2015-02-25 | 北京思特奇信息技术股份有限公司 | Data representation system and method based on dynamic report template |
CN104636393A (en) * | 2013-11-13 | 2015-05-20 | 航天信息股份有限公司 | Self-adaptation report form establishing method based on user self-definition behavior analysis |
CN105488073A (en) * | 2014-09-26 | 2016-04-13 | 北京神州泰岳软件股份有限公司 | Method and device for generating report header |
CN106294301A (en) * | 2016-08-09 | 2017-01-04 | 广州唯品会信息科技有限公司 | Report form generation method and device |
CN107329942A (en) * | 2017-06-28 | 2017-11-07 | 深圳市康必达中创科技有限公司 | Report form generation method and device based on tree structure |
-
2017
- 2017-12-18 CN CN201711364749.4A patent/CN108009145A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104636393A (en) * | 2013-11-13 | 2015-05-20 | 航天信息股份有限公司 | Self-adaptation report form establishing method based on user self-definition behavior analysis |
CN105488073A (en) * | 2014-09-26 | 2016-04-13 | 北京神州泰岳软件股份有限公司 | Method and device for generating report header |
CN104376068A (en) * | 2014-11-07 | 2015-02-25 | 北京思特奇信息技术股份有限公司 | Data representation system and method based on dynamic report template |
CN106294301A (en) * | 2016-08-09 | 2017-01-04 | 广州唯品会信息科技有限公司 | Report form generation method and device |
CN107329942A (en) * | 2017-06-28 | 2017-11-07 | 深圳市康必达中创科技有限公司 | Report form generation method and device based on tree structure |
Non-Patent Citations (1)
Title |
---|
王新宇: "LTE无线网络优化平台的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857786A (en) * | 2018-12-19 | 2019-06-07 | 成都四方伟业软件股份有限公司 | Page data fill method and device |
CN109885819A (en) * | 2019-02-19 | 2019-06-14 | 携程旅游信息技术(上海)有限公司 | Data form dynamic adjusting method, system, equipment and storage medium |
CN109885819B (en) * | 2019-02-19 | 2022-12-20 | 携程旅游信息技术(上海)有限公司 | Data table dynamic adjustment method, system, device and storage medium |
CN112883695A (en) * | 2019-11-29 | 2021-06-01 | 比亚迪股份有限公司 | Method, device, equipment and medium for generating report template and displaying data report |
CN112346728A (en) * | 2020-10-27 | 2021-02-09 | 北京字节跳动网络技术有限公司 | Device adaptation method, device and computer readable medium |
CN112346728B (en) * | 2020-10-27 | 2023-07-25 | 抖音视界有限公司 | Device adaptation method, apparatus, device and computer readable medium |
CN112733494A (en) * | 2020-12-25 | 2021-04-30 | 山东浪潮通软信息科技有限公司 | Method and system for automatically generating standard detection report |
CN113962206A (en) * | 2021-10-22 | 2022-01-21 | 中电金信软件有限公司 | Report generation method and device |
CN114417802A (en) * | 2022-03-22 | 2022-04-29 | 创意信息技术股份有限公司 | Intelligent report generation system |
CN114417802B (en) * | 2022-03-22 | 2022-06-10 | 创意信息技术股份有限公司 | Intelligent report generation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108009145A (en) | Report form generation method and device | |
CN104036040B (en) | Report form generation method and device | |
Clark | What are the components of complex interventions in healthcare? Theorizing approaches to parts, powers and the whole intervention | |
CN101976235B (en) | Extensible Word report automatically-generating method based on dynamic web page | |
CN100511138C (en) | Generation method and apparatus for report condition inputting interface | |
CN104239073B (en) | Data maintenance system rapid prototyping development system and method | |
CN104182225B (en) | A kind of General Mobile information system adaptation method and device | |
CN106776514A (en) | A kind of annotation method and device | |
CN110399420A (en) | A kind of deriving method, electronic equipment and the medium of configurableization Excel format | |
CN102254049A (en) | Web page design system and method for building same | |
CN107925786A (en) | The data visualization video of animation | |
CN103279455B (en) | The pattern treatment process of electrical form and device | |
CN104572813B (en) | A kind of report generation method and device | |
CN112232047A (en) | Method, system, equipment and medium for multi-dimensional data acquisition and automatic summarization | |
CN107704243A (en) | Construction method and device, the computer equipment and storage medium of front-end interface | |
CN109710250A (en) | It is a kind of for constructing the visualization engine system and method for user interface | |
CN107229474A (en) | Method and device based on visualization interface rapid configuration Java interfaces and graph service | |
CN106709017A (en) | Big data-based aid decision making method | |
CN105653255B (en) | A method of report template is set in OFFICE frames to automatically generate report file | |
US9501462B2 (en) | Form object having form representation and grid representation of form | |
CN106294389A (en) | A kind of method and system realizing customizing form | |
CN101976394B (en) | Data acquiring and counting system and method | |
CN110515606A (en) | A kind of Components Development method based on block | |
CN109614671A (en) | A kind of three-dimensional MBD process model tissue and expression based on view | |
CN108305053A (en) | Implementation method, device, electronic equipment and the storage medium of approval process |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180508 |