CN105843788A - Report generation method and device - Google Patents
Report generation method and device Download PDFInfo
- Publication number
- CN105843788A CN105843788A CN201610194827.XA CN201610194827A CN105843788A CN 105843788 A CN105843788 A CN 105843788A CN 201610194827 A CN201610194827 A CN 201610194827A CN 105843788 A CN105843788 A CN 105843788A
- Authority
- CN
- China
- Prior art keywords
- field
- configuration information
- configuration
- key
- treemap
- 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
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000001419 dependent effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a report generation method and device. The method comprises the following steps: acquiring configuration information of fields of a target report; and resolving the configuration information of the fields to generate a target report. Through adoption of the report generation method and device provided by the invention, the report generation efficiency can be increased.
Description
Technical field
The present invention relates to field of computer technology, particularly to a kind of method and device generating form.
Background technology
When carrying out resource management, all kinds of form, such as quality form, statistical report form, verification can be run into
Form etc..The data required for user are recorded by these forms.According to different demands, form
Form also have nothing in common with each other, generating different forms the most as required is problem demanding prompt solution.
In prior art, typically by manually arranging report tableau format, specifically, by manually building
Vertical form, arranges the title of every string of form, or, the title etc. of each row.Then, to setting
The form put imports corresponding data.
Visible by foregoing description, prior art is mainly by manually generating required form, when
When form is more complicated, the time required for generation form is longer, and in a word, prior art generates form
Inefficient.
Summary of the invention
Embodiments provide a kind of method and device generating form, it is possible to increase generate form
Efficiency.
On the one hand, embodiments provide a kind of method generating form, including:
S1: obtain the configuration information of each field of target form;
S2: resolve the configuration information of each field, generates target form.
Further, the configuration information of each field of described parsing in described S2, including:
The key-value pair that the configuration information of each field is converted into TreeMap is stored;
Described generation target form in described S2, including:
According to the key-value pair of described TreeMap, generate described target form.
Further, also include: pre-set the field number of each field;
The configuration information of each field includes: field number, configuration data;
The key-value pair that the described configuration information by each field is converted into TreeMap stores, including:
Obtain the field number in the configuration information of each field, the field number of each field is stored
In the Key of described TreeMap;
Obtain the configuration data in the configuration information of each field, using the configuration data of each field as number
Store in the Value of the described TreeMap corresponding to the Key that each field is corresponding according to object;
The described key-value pair according to described TreeMap, generates described target form, including:
According to Key and Value in described TreeMap, generate described target form.
Further, also include: pre-set Column Properties configuration interface;
Described S1, including: by the dependent of dead military hero of each field of the outside input of described attribute configuration interface
The configuration information of property;
Described Column Properties includes: field name.
Further, also include: pre-set color configuration interface;
Described S1, including: by the color of each field of the outside input of described color configuration interface
The configuration information of attribute;
Described color attribute, including: it is configured at least one Show Color of the data of field, and often
Plant the scope of data corresponding to Show Color.
Further, also include: pre-set figure configuration interface;
Described S1, including: by the figure of each field of the described figure outside input of configuration interface
The configuration information of attribute;
Described graphic attribute includes: for presenting the graph style of the data being configured field.
Further, also include: pre-set subreport configuration interface;
Described S1, including: by the son of each field of the described subreport outside input of configuration interface
The configuration information of form attribute;
Described subreport attribute, including: it is configured the link of the subreport of field.
On the other hand, embodiments provide a kind of device generating form, including:
Acquiring unit, for obtaining the configuration information of each field of target form;
Signal generating unit, for resolving the configuration information of each field, generates target form.
Further, described signal generating unit, when performing the configuration information of each field of described parsing, use
Store in the key-value pair that the configuration information of each field is converted into TreeMap;
Described signal generating unit, when performing described generation target form, for according to described TreeMap's
Key-value pair, generates described target form.
Further, also include: first arranges unit, for arranging the field number of each field;
The configuration information of each field includes: field number, configuration data;
Described signal generating unit, is converted into the key of TreeMap at the described configuration information by each field of execution
Value is to when storing, and the field number in the configuration information obtaining each field, by each field
Field number store in the Key of described TreeMap, obtain joining in the configuration information of each field
Put data, the configuration data of each field are stored, as data object, the Key institute that each field is corresponding
In the Value of corresponding described TreeMap;
Described signal generating unit, is performing the described key-value pair according to described TreeMap, is generating described target
During form, for according to Key and Value in described TreeMap, generate described target form.
Further, also include: second arranges unit, be used for arranging Column Properties configuration interface;
Described acquiring unit, for each field by the outside input of described attribute configuration interface
The configuration information of Column Properties;
Described Column Properties includes: field name.
Further, also include: the 3rd arranges unit, be used for arranging color configuration interface;
Described acquiring unit, for each field by the outside input of described color configuration interface
The configuration information of color attribute;
Described color attribute, including: it is configured at least one Show Color of the data of field, and often
Plant the scope of data corresponding to Show Color.
Further, also include: the 4th arranges unit, be used for arranging figure configuration interface;
Described acquiring unit, for each field by the outside input of configuration interface of described figure
The configuration information of graphic attribute;
Described graphic attribute includes: for presenting the graph style of the data being configured field.
Further, also include: the 5th arranges unit, be used for arranging subreport configuration interface;
Described acquiring unit, for each field by the outside input of configuration interface of described subreport
The configuration information of subreport attribute;
Described subreport attribute, including: it is configured the link of the subreport of field.
In embodiments of the present invention, user can be arranged as required to the configuration information of each field, obtains
The configuration information of user setup, resolves configuration information, generates target form, and user only need to pass through
The mode of configuration information arranges the requirement to target form, can automatically give birth to according to the configuration information of user
Target form required for one-tenth, improves the efficiency generating form.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, not
On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of method generating form that one embodiment of the invention provides;
Fig. 2 is the flow chart of the another kind of method generating form that one embodiment of the invention provides;
Fig. 3 is the schematic diagram of a kind of device generating form that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of the another kind of device generating form that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments, based on
Embodiment in the present invention, those of ordinary skill in the art are institute on the premise of not making creative work
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of method generating form, the method can be wrapped
Include following steps:
S1: obtain the configuration information of each field to target form;
S2: resolve the configuration information of each field, generates target form.
In embodiments of the present invention, user can be arranged as required to the configuration information of each field, obtains
The configuration information of user setup, resolves configuration information, generates target form, and user only need to pass through
The mode of configuration information arranges the requirement to target form, can automatically give birth to according to the configuration information of user
Target form required for one-tenth, improves the efficiency generating form.
In a kind of possible implementation, the configuration information of each field of described parsing in described S2,
Including:
The key-value pair that the configuration information of each field is converted into TreeMap is stored;
Described generation target form in described S2, including:
According to the key-value pair of described TreeMap, generate described target form.
In this implementation, configuration information is converted into the key-value pair of TreeMap so that follow-up place
Reason process can recognize that these configuration informations.Specifically, the configuration of each field of target form is believed
Breath reads in internal memory, is processed by configuration information, changes, obtain TreeMap data acquisition system in internal memory,
And configuration information is stored in TreeMap.Owing to form to support multistage, complex table head, so will
TreeMap uses as data storage container.
In this implementation, the method also includes: pre-set the field number of each field;
The configuration information of each field includes: field number, configuration data;
The key-value pair that the described configuration information by each field is converted into TreeMap stores, including:
Obtain the field number in the configuration information of each field, the field number of each field is stored
In the Key of described TreeMap;
Obtain the configuration data in the configuration information of each field, using the configuration data of each field as number
Store in the Value of the described TreeMap corresponding to the Key that each field is corresponding according to object;
The described key-value pair according to described TreeMap, generates described target form, including:
According to Key and Value in described TreeMap, generate described target form.
In this implementation, the configuration information of either field is stored in a pair Key and Value.
For example, for the either field of target form, field number is 001, and configuration data include: word
Name section is yield, and the yield data more than 100 are by red display, and data are shown by block diagram.
When storing, a Key of TreeMap stores 001, the Value that this Key is corresponding deposits
Storage: field name is yield, the yield data more than 100 are by red display, and data pass through block diagram
Display.Wherein, these configuration data are stored in Value with the form of data object.
The configuration information of each field may include that the configuration letter of the configuration information of Column Properties, color attribute
Breath, the configuration information of graphic attribute, the configuration information of subreport attribute.These four attribute information is presented herein below
Implementation.
In a kind of possible implementation, the method also includes: pre-set Column Properties configuration interface;
Described S1, including: by the dependent of dead military hero of each field of the outside input of described attribute configuration interface
The configuration information of property;
Described Column Properties includes: field name.
In this implementation, the Column Properties of each field is configured by user for convenience, is provided with
Column Properties configuration interface, user can be by the configuration information of this interface input Column Properties.Wherein, dependent of dead military hero
Property includes: field name;Can also include: the numbering of target form, field number, the English of field
Title, higher level's gauge outfit of field, sort result, physical field title;Wherein, the numbering of target form
It it is unique mark of target form;Higher level's gauge outfit of field is the higher level's gauge outfit described in field, is used for judging
Merging rows;Sort result, during for sky, represents and does not sorts, and during for asc, represents sequence, during for desc,
Represent sequence;Physical field title is the field name of physical table corresponding to field, refers to that present field is straight
Connect the field used corresponding to physical field title.
In a kind of possible implementation, the method also includes: pre-set color configuration interface;
Described S1, including: by the color of each field of the outside input of described color configuration interface
The configuration information of attribute;
Described color attribute, including: it is configured at least one Show Color of the data of field, and often
Plant the scope of data corresponding to Show Color.
In this implementation, the color attribute of each field is configured by user for convenience, arranges
Color configuration interface, user can be by the configuration information of this interface input color attribute.Wherein, face
Color attribute, including: it is configured at least one Show Color of the data of field, and every kind of Show Color
The scope of corresponding data.For example, the configuration information of color attribute includes: red, green, red
Color correspondence is less than or equal to 10, and green is to should be greater than 10.According to this configuration information, this configuration in target form
In the field that information is corresponding, the data more than 10 are shown by green, and the data less than or equal to 10 are by red
Color shows.Wherein, the scope of the data that every kind of Show Color is corresponding can be come by maximum, minima
Arrange.Such as: for color redness, the maximum of red corresponding scope is 10, and minima is
0. color attribute can also include: the numbering of target form, field number, legend.Legend refers to color
Value.
In a kind of possible implementation, the method also includes: pre-set figure configuration interface;
Described S1, including: by the figure of each field of the described figure outside input of configuration interface
The configuration information of attribute;
Described graphic attribute includes: for presenting the graph style of the data being configured field.
In this implementation, the graphic attribute of each field is configured by user for convenience, arranges
Figure configuration interface, user can be by the configuration information of this interface tablet pattern attribute.Wherein, figure
Shape attribute, including: for presenting the graph style of the data being configured field.Image type may include that
Rectangular histogram, cake chart.For example, when the configuration information of graphic attribute is cake chart, target form
The data of the field that this configuration information is corresponding can be shown by the way of cake chart.Graphic attribute, also
May include that the numbering of target form, field number, legend, display Name.Wherein, legend refers to
The pattern of image type;Display Name refers to the title of display on the image that image type is corresponding, such as:
For cake chart, display Name is each title of part on cake chart.
In a kind of possible implementation, the method also includes: pre-set subreport configuration interface;
Described S1, including: by the son of each field of the described subreport outside input of configuration interface
The configuration information of form attribute;
Described subreport attribute, including: it is configured the link of the subreport of field.
In this implementation, the subreport attribute of each field is configured by user for convenience, if
Having put subreport configuration interface, user can be by the configuration information of this interface input subreport attribute.Son
Form attribute, including: it is configured the link of the subreport of field.For example, user needs to check son
The field that form attribute is corresponding is less than all data of 100, can be arranged by subreport attribute and be less than
The link of the subreport of all data of 100, clicks on this link and can obtain all data less than 100.
Subreport attribute, it is also possible to including: the numbering of target form, field number.
It addition, the method can also include: pre-set target form configuration interface;
The configuration information of the target form of outside input is received by described target form attribute interface;
The configuration information of target form includes: the numbering of target form, the title of target form, target report
Classification belonging to table, the disclosedest information of target form, target form granularity (such as: year, the moon,
Day etc.), parent gauge outfit ID (the parent table head belonging to target form) of target form, the tying up of target form
Determine physical table (referring to the table of the Data Source of target form).The configuration information of target form can also wrap
Include: serial number (major key).
As in figure 2 it is shown, embodiments provide a kind of method generating form, the method can be wrapped
Include following steps:
Step 201: pre-set configuration interface, pre-sets the field number of each field.
Specifically, configuration interface may include that Column Properties configuration interface, color configuration interface, figure are joined
Put interface, subreport configuration interface.For example, can provide the user configuration interface, user passes through
Target form is configured by this configuration interface.Configuration interface can rely on spring+xwork framework to realize,
The page is presented and can be realized by jsp+Extjs.
Step 202: obtained the configuration information of each field of target form by described configuration interface, its
In, the configuration information of each field includes: field number, configuration data.
In embodiments of the present invention, form element is broken up, with field for minimum particle size unit, to field
Configure.
Furthermore it is possible to the configuration information of each field is solidificated in oracle database, subsequent treatment mistake
Journey, obtains configuration information from oracle database.
Step 203: obtain the field number in the configuration information of each field, by the field of each field
Numbering stores in the Key of TreeMap.
Wherein, the parsing to configuration information can be realized by the analysis program pre-set.In this reality
Execute in example, step 203 and step 204 can be realized by analysis program.Wherein, analysis program is permissible
Java realizes.
For example, for field A, the field number in the configuration information of field A is 002, configuration
Data are: D11.In this step, the field number obtaining field A is 002,002 storage is arrived
In oneth Key of TreeMap.
Step 204: obtain the configuration data in the configuration information of each field, by the configuration of each field
Data store in the Value of the TreeMap corresponding to the Key that each field is corresponding as data object.
For example, for above-mentioned field A, the configuration data obtaining field A are D11, by D11
Store in a Value corresponding for Key of TreeMap.
Step 205: according to Key and Value in described TreeMap, generates target form.
For example, for above-mentioned field A, the configuration information of field A is stored in a Key and
In one Value, according to a Key and a Value of TreeMap, it may be determined that target form
Field A.Specifically, may determine that field A according to 002 in a Key.If D11 includes:
The configuration information of Column Properties, the configuration information of color attribute, the configuration information of graphic attribute, wherein, row
The configuration information of attribute includes: field name is yield;The configuration information of color attribute includes: red,
Green, red corresponding less than or equal to 10, green to should be greater than 10;The configuration information of graphic attribute, including:
Graph style is cake chart.Then according to a Key and a Value of TreeMap, it may be determined that:
The field name of field A is yield, and the data more than 10 in field A are shown by green, are less than
Data equal to 10 pass through red display, and the data in field A can be presented by cake chart.
It addition, after generating target form, the method can also include: adds each in target form
The data that field is corresponding.This step can be realized by the total program pre-set.Total program can
To be realized by java, perl, sh, sql etc., call data storage must be had from adding by total program
(id) value.
After generating target form, it is also possible to including: present target form.This step can be by advance
The report form showing program arranged realizes.
In embodiments of the present invention, being configured by target form in units of field, user only needs basis
Need to configure the field of target form, say, that user is each by arrange target form
The demand of field, it is possible to obtain the target form needed, promote the allocative efficiency of form, it is possible to more
It is easily configured the form with complex table head.
As shown in Figure 3, Figure 4, a kind of device generating form is embodiments provided.Device is real
Execute example to be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.From firmly
For part aspect, as it is shown on figure 3, a kind of device place generating form provided for the embodiment of the present invention
A kind of hardware structure diagram of equipment, except the processor shown in Fig. 3, internal memory, network interface, Yi Jifei
Outside volatile memory, in embodiment, the equipment at device place generally can also include other hardware, as
It is responsible for forwarding chip processing message etc..As a example by implemented in software, as shown in Figure 4, patrol as one
Collect the device in meaning, be that the CPU by its place equipment is by calculating corresponding in nonvolatile memory
Machine programmed instruction reads and runs formation in internal memory.A kind of device generating form that the present embodiment provides,
Including:
Acquiring unit 401, for obtaining the configuration information of each field of target form;
Signal generating unit 402, for resolving the configuration information of each field, generates target form.
In a kind of possible implementation, described signal generating unit 402, performing each word of described parsing
During the configuration information of section, carry out for the configuration information of each field being converted into the key-value pair of TreeMap
Storage;
Described signal generating unit 402, when performing described generation target form, for according to described TreeMap
Key-value pair, generate described target form.
In a kind of possible implementation, this device also includes: first arranges unit, is used for arranging often
The field number of individual field;
The configuration information of each field includes: field number, configuration data;
Described signal generating unit 402, is converted into TreeMap performing the described configuration information by each field
Key-value pair when storing, the field number in the configuration information obtaining each field, by each
The field number of field stores in the Key of described TreeMap, obtains in the configuration information of each field
Configuration data, the configuration data of each field are stored each field as data object corresponding
In the Value of the described TreeMap corresponding to Key;
Described signal generating unit 402, is performing the described key-value pair according to described TreeMap, generates described
During target form, for according to Key and Value in described TreeMap, generate described target form.
In a kind of possible implementation, this device also includes: second arranges unit, is used for arranging row
Attribute configuration interface;
Described acquiring unit 401, for each word by the outside input of described attribute configuration interface
The configuration information of the Column Properties of section;
Described Column Properties includes: field name.
In a kind of possible implementation, this device also includes: the 3rd arranges unit, is used for arranging face
Color configuration interface;
Described acquiring unit 401, for each word by the outside input of described color configuration interface
The configuration information of the color attribute of section;
Described color attribute, including: it is configured at least one Show Color of the data of field, and often
Plant the scope of data corresponding to Show Color.
In a kind of possible implementation, this device also includes: the 4th arranges unit, is used for arranging figure
Shape configuration interface;
Described acquiring unit 401, for each word by the outside input of configuration interface of described figure
The configuration information of the graphic attribute of section;
Described graphic attribute includes: for presenting the graph style of the data being configured field.
In a kind of possible implementation, this device also includes: the 5th arranges unit, is used for arranging son
Form configuration interface;
Described acquiring unit 401, each for inputted by described subreport configuration interface outside
The configuration information of the subreport attribute of field;
Described subreport attribute, including: it is configured the link of the subreport of field.
In embodiments of the present invention, this device can be accomplished by: uses java as mainly
Development language, oracle is as mainly storing data base.Use Hibernate+Spring+xwork conduct
Main system architecture supports, and Extjs+jsp presents as main page.System deployment is at Weblogic
Main flow web container.Service requirement Jdk version must not be less than 1.5.
The embodiment of the present invention can be issued in the following manner:
Data base creates (support oracle database), and Web container (supports weblogic, tomcat),
Creating data source, amendment arranges (jdbc.properties/log4j.xml/webconfig.xml in program),
Deployment program, restart service.
The contents such as the information between each unit in said apparatus is mutual, execution process, due to the present invention
Embodiment of the method is based on same design, and particular content can be found in the narration in the inventive method embodiment, this
Place repeats no more.
The embodiment of the present invention at least has the advantages that
1, in embodiments of the present invention, user can be arranged as required to the configuration information of each field, obtains
Taking the configuration information of user setup, resolve configuration information, generate target form, user only need to be led to
The mode crossing configuration information arranges the requirement to target form, and the configuration information according to user can be automatic
Target form required for generation, improves the efficiency generating form.
2, in embodiments of the present invention, being configured by target form in units of field, user only needs root
According to needing to configure the field of target form, say, that user is every by arrange target form
The demand of individual field, it is possible to obtain the target form needed, promote the allocative efficiency of form, it is possible to more
Add and be easily configured the form with complex table head.
It should be noted that in this article, the relational terms of such as first and second etc be used merely to by
One entity or operation separate with another entity or operating space, and not necessarily require or imply this
Relation or the order of any this reality is there is between a little entities or operation.And, term " includes ",
" comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is
The process of row key element, method, article or equipment not only include those key elements, but also include the brightest
Other key elements really listed, or also include intrinsic for this process, method, article or equipment
Key element.In the case of there is no more restriction, statement " include one " and limit
Key element, it is not excluded that there is also another in including the process of described key element, method, article or equipment
Outer same factor.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment
Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in embodied on computer readable
Storage medium in, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned
Storage medium include: various Jie that can store program code such as ROM, RAM, magnetic disc or CD
In matter.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate this
The technical scheme of invention, is not intended to limit protection scope of the present invention.All spirit in the present invention and former
Any modification, equivalent substitution and improvement etc. done within then, are all contained in protection scope of the present invention.
Claims (10)
1. the method generating form, it is characterised in that including:
S1: obtain the configuration information of each field of target form;
S2: resolve the configuration information of each field, generates target form.
Method the most according to claim 1, it is characterised in that
The configuration information of each field of described parsing in described S2, including:
The key-value pair that the configuration information of each field is converted into TreeMap is stored;
Described generation target form in described S2, including:
According to the key-value pair of described TreeMap, generate described target form.
Method the most according to claim 2, it is characterised in that
Also include: pre-set the field number of each field;
The configuration information of each field includes: field number, configuration data;
The key-value pair that the described configuration information by each field is converted into TreeMap stores, including:
Obtain the field number in the configuration information of each field, the field number of each field is stored
In the Key of described TreeMap;
Obtain the configuration data in the configuration information of each field, using the configuration data of each field as number
Store in the Value of the described TreeMap corresponding to the Key that each field is corresponding according to object;
The described key-value pair according to described TreeMap, generates described target form, including:
According to Key and Value in described TreeMap, generate described target form.
Method the most according to claim 1, it is characterised in that
Also include: pre-set Column Properties configuration interface;
Described S1, including: by the dependent of dead military hero of each field of the outside input of described attribute configuration interface
The configuration information of property;
Described Column Properties includes: field name;
And/or,
Also include: pre-set color configuration interface;
Described S1, including: by the color of each field of the outside input of described color configuration interface
The configuration information of attribute;
Described color attribute, including: it is configured at least one Show Color of the data of field, and often
Plant the scope of data corresponding to Show Color.
5. according to described method arbitrary in claim 1-4, it is characterised in that
Also include: pre-set figure configuration interface;
Described S1, including: by the figure of each field of the described figure outside input of configuration interface
The configuration information of attribute;
Described graphic attribute includes: for presenting the graph style of the data being configured field;
And/or,
Also include: pre-set subreport configuration interface;
Described S1, including: by the son of each field of the described subreport outside input of configuration interface
The configuration information of form attribute;
Described subreport attribute, including: it is configured the link of the subreport of field.
6. the device generating form, it is characterised in that including:
Acquiring unit, for obtaining the configuration information of each field of target form;
Signal generating unit, for resolving the configuration information of each field, generates target form.
Device the most according to claim 6, it is characterised in that
Described signal generating unit, when performing the configuration information of each field of described parsing, for by each word
The configuration information of section is converted into the key-value pair of TreeMap and stores;
Described signal generating unit, when performing described generation target form, for according to described TreeMap's
Key-value pair, generates described target form.
Device the most according to claim 7, it is characterised in that
Also include: first arranges unit, for arranging the field number of each field;
The configuration information of each field includes: field number, configuration data;
Described signal generating unit, is converted into the key of TreeMap at the described configuration information by each field of execution
Value is to when storing, and the field number in the configuration information obtaining each field, by each field
Field number store in the Key of described TreeMap, obtain joining in the configuration information of each field
Put data, the configuration data of each field are stored, as data object, the Key institute that each field is corresponding
In the Value of corresponding described TreeMap;
Described signal generating unit, is performing the described key-value pair according to described TreeMap, is generating described target
During form, for according to Key and Value in described TreeMap, generate described target form.
Device the most according to claim 6, it is characterised in that
Also include: second arranges unit, be used for arranging Column Properties configuration interface;
Described acquiring unit, for each field by the outside input of described attribute configuration interface
The configuration information of Column Properties;
Described Column Properties includes: field name;
And/or,
Also include: the 3rd arranges unit, be used for arranging color configuration interface;
Described acquiring unit, for each field by the outside input of described color configuration interface
The configuration information of color attribute;
Described color attribute, including: it is configured at least one Show Color of the data of field, and often
Plant the scope of data corresponding to Show Color.
10. according to described device arbitrary in claim 6-9, it is characterised in that
Also include: the 4th arranges unit, be used for arranging figure configuration interface;
Described acquiring unit, for each field by the outside input of configuration interface of described figure
The configuration information of graphic attribute;
Described graphic attribute includes: for presenting the graph style of the data being configured field;
And/or,
Also include: the 5th arranges unit, be used for arranging subreport configuration interface;
Described acquiring unit, for each field by the outside input of configuration interface of described subreport
The configuration information of subreport attribute;
Described subreport attribute, including: it is configured the link of the subreport of field.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610194827.XA CN105843788A (en) | 2016-03-31 | 2016-03-31 | Report generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610194827.XA CN105843788A (en) | 2016-03-31 | 2016-03-31 | Report generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105843788A true CN105843788A (en) | 2016-08-10 |
Family
ID=56596341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610194827.XA Pending CN105843788A (en) | 2016-03-31 | 2016-03-31 | Report generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105843788A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598925A (en) * | 2016-11-22 | 2017-04-26 | 广州悦审软件科技有限公司 | Method and system for quickly generating department final statement report data |
CN107766396A (en) * | 2017-03-03 | 2018-03-06 | 平安医疗健康管理股份有限公司 | resource data management method and device |
CN108415994A (en) * | 2018-02-13 | 2018-08-17 | 北京天元创新科技有限公司 | A kind of Network Management System report form generation method, device and equipment |
WO2019134225A1 (en) * | 2018-01-08 | 2019-07-11 | 平安科技(深圳)有限公司 | Excel data import method, apparatus and device, and computer readable storage medium |
CN110825472A (en) * | 2019-10-14 | 2020-02-21 | 东软集团股份有限公司 | Chart color drawing method and device, readable storage medium and electronic equipment |
CN111291543A (en) * | 2018-11-21 | 2020-06-16 | 北京国双科技有限公司 | Data display method and device, storage medium and processor |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339559A (en) * | 2008-07-18 | 2009-01-07 | 北京航空航天大学 | Long lasting implementing method for data |
CN103150298A (en) * | 2013-03-13 | 2013-06-12 | 河海大学 | Customizable complicated form generation method for river basin water diversion business based on Web |
CN104486259A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Switch configuration file storage method, and switch configuration file storage system |
CN104572032A (en) * | 2013-10-09 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Report creation method and electronic equipment |
CN105045775A (en) * | 2015-08-12 | 2015-11-11 | 深圳联友科技有限公司 | Method and apparatus for generating Excel document in designated format |
-
2016
- 2016-03-31 CN CN201610194827.XA patent/CN105843788A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339559A (en) * | 2008-07-18 | 2009-01-07 | 北京航空航天大学 | Long lasting implementing method for data |
CN103150298A (en) * | 2013-03-13 | 2013-06-12 | 河海大学 | Customizable complicated form generation method for river basin water diversion business based on Web |
CN104572032A (en) * | 2013-10-09 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Report creation method and electronic equipment |
CN104486259A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Switch configuration file storage method, and switch configuration file storage system |
CN105045775A (en) * | 2015-08-12 | 2015-11-11 | 深圳联友科技有限公司 | Method and apparatus for generating Excel document in designated format |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598925A (en) * | 2016-11-22 | 2017-04-26 | 广州悦审软件科技有限公司 | Method and system for quickly generating department final statement report data |
CN107766396A (en) * | 2017-03-03 | 2018-03-06 | 平安医疗健康管理股份有限公司 | resource data management method and device |
CN107766396B (en) * | 2017-03-03 | 2020-03-27 | 平安医疗健康管理股份有限公司 | Resource data management method and device |
WO2019134225A1 (en) * | 2018-01-08 | 2019-07-11 | 平安科技(深圳)有限公司 | Excel data import method, apparatus and device, and computer readable storage medium |
CN108415994A (en) * | 2018-02-13 | 2018-08-17 | 北京天元创新科技有限公司 | A kind of Network Management System report form generation method, device and equipment |
CN108415994B (en) * | 2018-02-13 | 2021-03-02 | 北京天元创新科技有限公司 | Network management system report generation method, device and equipment |
CN111291543A (en) * | 2018-11-21 | 2020-06-16 | 北京国双科技有限公司 | Data display method and device, storage medium and processor |
CN111291543B (en) * | 2018-11-21 | 2023-08-25 | 北京国双科技有限公司 | Data display method and device, storage medium and processor |
CN110825472A (en) * | 2019-10-14 | 2020-02-21 | 东软集团股份有限公司 | Chart color drawing method and device, readable storage medium and electronic equipment |
CN110825472B (en) * | 2019-10-14 | 2023-12-29 | 东软集团股份有限公司 | Chart color drawing method, device, readable storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105843788A (en) | Report generation method and device | |
CN107665171B (en) | Automatic regression testing method and device | |
CN111813963B (en) | Knowledge graph construction method and device, electronic equipment and storage medium | |
CN111061733B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
US20150032708A1 (en) | Database analysis apparatus and method | |
CN106557307B (en) | Service data processing method and system | |
CN111897856A (en) | Supervision message generation method and device, electronic equipment and readable storage medium | |
CN115408399A (en) | Blood relationship analysis method, device, equipment and storage medium based on SQL script | |
CN110765750B (en) | Report data input method and terminal equipment | |
CN110019116A (en) | Data traceability method, apparatus, data processing equipment and computer storage medium | |
CN112949278A (en) | Data checking method and device, electronic equipment and readable storage medium | |
CN113159118A (en) | Logistics data index processing method, device, equipment and storage medium | |
CN112131855B (en) | Bank certificate template generation method and device | |
CN114398194A (en) | Data collection method and device, electronic equipment and readable storage medium | |
CN113435944A (en) | Marketing effect post-evaluation system | |
WO2020259155A1 (en) | Method and apparatus for generating alarm data report | |
CN115291856B (en) | Flow establishing method and device and electronic equipment | |
CN107203525B (en) | Database processing method and device | |
CN115357625A (en) | Structured data comparison method and device, electronic equipment and storage medium | |
CN107766519B (en) | Method for visually configuring data structure | |
CN106250390B (en) | Method and device for automatically generating SQL step by step | |
CN112597171A (en) | Table relation visualization method and device, electronic equipment and storage medium | |
CN109032578B (en) | Database SQL (structured query language) -based code generation method and system | |
CN106570004B (en) | Data management method and device | |
CN113434397B (en) | Task system testing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160810 |
|
WD01 | Invention patent application deemed withdrawn after publication |