CN101794280A - Form automatic generation method and system based on form template set - Google Patents

Form automatic generation method and system based on form template set Download PDF

Info

Publication number
CN101794280A
CN101794280A CN 201010123032 CN201010123032A CN101794280A CN 101794280 A CN101794280 A CN 101794280A CN 201010123032 CN201010123032 CN 201010123032 CN 201010123032 A CN201010123032 A CN 201010123032A CN 101794280 A CN101794280 A CN 101794280A
Authority
CN
China
Prior art keywords
template
data
rule
form template
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010123032
Other languages
Chinese (zh)
Other versions
CN101794280B (en
Inventor
唐卫清
石念峰
李士才
何涛
周肖彬
黄晓剑
林志丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongke Fulong Intelligent Technology Co., Ltd
Original Assignee
Beijing Zhongke Fulong Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhongke Fulong Computer Technology Co Ltd filed Critical Beijing Zhongke Fulong Computer Technology Co Ltd
Priority to CN2010101230322A priority Critical patent/CN101794280B/en
Publication of CN101794280A publication Critical patent/CN101794280A/en
Application granted granted Critical
Publication of CN101794280B publication Critical patent/CN101794280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a form automatic generation method based on form template set, including drawing basic elements in form template to form a form template; identifying and analyzing the basic elements in the form template to form a form template set; acquiring data organization regulations of data source of form to be generated, wherein the data organization regulations are organized in tree-like hierarchy structure; setting graph association rule between form templates in the form template set according to the data source structure; setting text rule between form templates in the form template set according to the data source structure; selecting a template set and acquiring form generation data from the data source according to the graph association rule and text rule in the selected template set; automatically generating a form according to the basic elements of the form template set, graph association rule and text rule in the template set and the form generation data. The invention reduces form template making complexity and improves form generation automation degree and working efficiency.

Description

A kind of form automatic generation method and system based on form template set
Technical field
The present invention relates to the Computer-aided Design Technology field, particularly a kind of form automatic generation method and system based on template set.
Background technology
Form is all used at industry-by-industry widely as a kind of height refining, concentrated information representation form., utilize computing machine to make form and day by day rise along with popularizing with the IT application in enterprises degree of computing machine improved at the CAD design field.In actual applications, because industry and application is different, the content of form and form difference are very big, are difficult to satisfy various application demands with several specific table style.From disclosed technology, the technology of utilizing the computer manufacture form at present mainly is that form is made into form template, the user calls different form templates as required, generating the form that needs then, is CN1841362, open date to be that 2006-10-04, name are called the application for a patent for invention of " method and system that is used to handle electrical form " as publication number; Publication number is CN101158938, open date to be that 2008-04-09, name are called the application for a patent for invention of " a kind of form quick-speed generation system and method based on moulding plate node ".Foregoing invention patent CN1841362 provides a kind of method of making form according to installed form template, creates composite shuttering by adding action element to form template, and the user is handled and be shown to form according to above-mentioned composite shuttering; Patent of invention CN101158938 provides a kind of form quick-speed generation system based on moulding plate node, can realize the quick splicing of form by this system, and related by moulding plate node with the reflection between form joint, the cell typesetting data, realize that table format is reused and generation fast.But above-mentioned two patents are particularly suitable for the computer composition print field, the user clearly knows table content and pattern when the structure form template, so emphasis is composing, text style and the table style etc. of form, do not need to consider that relevance between data is to the influence of table format.But in the CAD design field, with importing data with contextual different, the form of its form, filling content and pattern etc. can change, so the form template technology of CAD design field must have the fill rule of definition tables cell and the correlation function of pattern description rule.Obviously, above-mentioned patent is not suitable for the electrical form of CAD design field from doing.
Mainly comprise " CAD and figure journal " 11 phases of the 16th volume disclosed " Table Template Design with Rule of object oriented data model " of " CAD and figure journal " 9 phases of the 12nd volume disclosed " the nested tables stencil design technology of Object-Oriented Design " of publishing in September, 2000, " CAD and figure journal " 2 phases of the 13rd volume disclosed " the level mould plate technique in the automatic generation system of ENGINEERING CAD tab material " that publish February calendar year 2001, in November, 2004 publication and " computer engineering " 2 phases of the 34th volume disclosed " form template Visualization Study " of in February, 2008 publication etc. in the present disclosed form template technology of CAD design field. Above-mentioned document " the level mould plate technique in the ENGINEERING CAD tab material automatic creation system ", according to CAD design field form characteristics, the gauge outfit 101, list area 102 and the table tail 103 that form are divided into Fig. 1 are formed, form is imported data and form variable objectization, stratification, thereby different table objects can be made the form of complicated pattern because level difference and nesting relation.But the shortcoming of above-mentioned technology is the rule description complexity, and level shape nest relation makes the data referencing between different levels to realize, the fill rule of textual description is more abstract, not directly perceived simultaneously, is difficult to use.Document " the nested tables stencil design technology of Object-Oriented Design " is on the basis of document " the level mould plate technique in the ENGINEERING CAD tab material automatic creation system ", add OO variable method for expressing, further improved the function and the readability of form template design.But the design of this method template is single, can only carry out simple correspondence between the filling content of form and data object.Document " the form template Rule Design of object oriented data model " and " form template Visualization Study " have been introduced visualized elements on the basis of above-mentioned research, make the form template design become visual, reduced form template and designed the particularly level of abstraction of fill rule design.Though but the form template technology of above-mentioned all literature research is very flexible, efficient, but still the deficiency of two aspects below existing:
1, the generation table style is single, and the form that is generated can only not supported the multilist form assembly there being gauge outfit 101 to grow on the tail 102 formed linear directions with showing, and is difficult to generate Fig. 2 and complicate list form shown in Figure 3;
2, the fill rule of figure and textual description separates, and lack to merge, and the filling design is abstract, and the shortage intuitive requires height to the user's abstracting power and the thinking of programming when generating complicate list form, be difficult to use.
Because the diversity and the complicacy of form are utilized the computer manufacture form, at first need to set up form template.Shortcomings such as existing disclosed form template technology ubiquity table style is single, the fill rule design is abstract, need a kind of easily, What You See Is What You Get but the form template method for making of malfunctioning activity not, and then realize the fast automatic generation of form.
Summary of the invention
(1) technical matters that will solve
The purpose of this invention is to provide a kind of form automatic generation method and system based on form template set, existing form template technology ubiquity table style is single to solve, fill rule designs shortcomings such as abstract.
(2) technical scheme
A kind of form automatic generation method based on form template set may further comprise the steps:
S1: the fundamental element in the drafting form template is to form form template; Described fundamental element comprises: graphical information and text message, and described graphical information comprises: straight-line segment, segment of curve and picture;
S2: the fundamental element in identification and the parsing form template forms form template set;
S3: obtain the data organization stipulations of the data source of form to be generated, described data source is that project data designs a model or the list data of man-machine interaction is gathered, and described data organization stipulations are organized according to tree-like hierarchical structure;
S4: according to data source structure form template is set and concentrates graph association rule between form template, described graph association rule to define form template to generate position relation, alignment relation, offset relationship and cell location relation on direction or its vertical direction at form;
S5: the text rule that form template is concentrated the form template element is set according to data source structure, described text rule has defined the fill rule of form variable and the incidence relation between the form variable, described form variable is the cell text messages that change with form padding data difference in the form template, and the incidence relation between the fill rule of described form variable and the form variable comprises: form create-rule, form generate the ordering rule and the filtering rule of data;
S6: select template set, from data source, obtain form generation data according to graph association rule in the selected template set and text rule;
S7: generate data according to the fundamental element of form template set, graph association rule, text rule in the template set and form and generate form automatically.
Wherein, described form template comprises: non-lists table template and lists table template, and described lists table template is for changing according to row integral body in form generative process Chinese version information and graphical information, and the graphical information of described non-lists table template does not change.
Wherein, described step S2 comprises:
S21: the fundamental element that reads form template;
S22: text message and the graphics frame information of discerning each form template profile and this template of composition according to the connectedness of graphic element;
S23: write down the position relation between described non-lists table template and the lists table template;
S24: form form template set according to form template profile, the text message of forming this template and described position relation.
Wherein, among the described step S5
Described form create-rule comprises: form line number, cell shape, statistics row rule change when form generates automatically;
Described ordering rule is according to the difference of when ordering fiducial value, can be divided into by data value with by the ordering of data organization relation, the homogeneous data attribute sorts according to numerical relation in the described data value sorting representationb data recording, and data organization relation table registration sorts according to hierarchical relationship on the described data organization hierarchical tree of data according to record;
Described form generates the data filter rule generates data organization according to form tree-shaped hierarchical structure definition.
Wherein, the priority of data value ordering and the data organization relation of described ordering rule ordering can dispose, and presses ascending order, descending or acquiescence higher level rank order when priority is identical.
Wherein, described step S7 comprises:
S71: read a form and generate data, finish form according to the text rule of described form template set and generate data sorting and filtration;
S72: the form generation data according to ordering and after filtering are finished cell automatically and are filled, and generation comprises the statistics row of form and the table style graphical information of cell shape;
S73: judge that form generates data and whether reads and finish, finish if read, execution in step S74 then, otherwise, forward step S71 to and continue to read next bar form and generate data;
S74: concentrate the correlation rule between form template to finish the form combination, set type according to form template, finish after the tabular matter confirmation request generation form automatically user interactions.
A kind of form automatic creation system based on form template set comprises:
The form template design module is used for drawing the fundamental element of form template to form form template; Described fundamental element comprises: graphical information and text message, and described graphical information comprises: straight-line segment, segment of curve and picture;
The form template identification module is used for discerning and resolving the fundamental element of form template, forms form template set;
List data source acquisition module is used to obtain the data organization stipulations of the data source of form to be generated, and described data source is that project data designs a model or the list data set of man-machine interaction, and described data organization stipulations are organized according to tree-like hierarchical structure;
The graph association rule administration module, being used for according to data source structure form template being set concentrates graph association rule between form template, described graph association rule to define form template to generate position relation, alignment relation, offset relationship and cell location relation on direction or its vertical direction at form;
The text rule administration module, be used for the text rule that form template is concentrated the form template element being set according to data source structure, described text rule has defined the fill rule of form variable and the incidence relation between the form variable, described form variable is the cell text messages that change with form padding data difference in the form template, and the incidence relation between the fill rule of described form variable and the form variable comprises: form create-rule, form generate the ordering rule and the filtering rule of data;
Form generates data acquisition module, is used to select template set, obtains form generation data according to graph association rule in the selected template set and text rule from data source;
The form generation module, the graph association rule, text rule and the form that are used for fundamental element, template set according to form template set generate data and generate form automatically.
Wherein, described form template identification module comprises:
The form template read module is used to read the fundamental element of form template;
Template contours and text message identification module are used for discerning each form template profile and the text message of forming this template according to the connectedness of graphic element;
Relation recognition module in position between template is used to write down the position relation between described non-lists table template and the lists table template;
The form template set generation module is used for forming form template set according to form template profile, the text message of forming this template and described position relation.
Wherein, described form generation module comprises:
Form generates data preprocessing module, is used to read a form and generates data, finishes form according to the text rule of described form template set and generates data sorting and filtration;
The cell generation module, the form generation data that are used for according to ordering and after filtering are finished the cell filling automatically, and generation comprises the statistics row of form and the table style graphical information of cell shape;
Form generates the data judge module, is used to judge that form generates data and whether reads and finish, finish if read, and executive table automatically-generating module then, otherwise, forward form to and generate data preprocessing module and continue to read next bar form and generate data;
The form automatically-generating module is used for concentrating the correlation rule between form template to finish the form combination, set type according to form template, finishes after the tabular matter confirmation request generation form automatically user interactions.
(3) beneficial effect
The present invention has following beneficial effect:
1, when form template generates, adopts the form of form template set, utilize incidence relation between form template set and the form template set can make the form of various complicated patterns, reduced the complexity of form template customization;
2, when the pattern rule of form template set is set form being generated data organizes according to objectification, tree-shaped stratification, reduced re-defining of form template rule by OO succession and covering notion, reduce the workload that form template is made, improved efficient;
3, the incidence relation between the form template element is by the figure rule description, adopt text rule to describe with prior art and become more direct visual, and text rule is mainly used to describe the filling content and the form of form variable, lowered the abstractness that the form rule is made, and is easier to the user and uses;
4, form template Chinese version rule definition form generate filtering rule and every attribute that generates data recording of data, thereby just can know which data message is a useful information at first in the form generation, thereby improve the speed and the data-handling efficiency of data acquisition;
5, form generates the data sorting mode to template set flexibly, lingeringly form is cut apart and set type and based on the automatic generation technique of template set form, guarantee to generate user's forms that need, various patterns and generated, improved automaticity and work efficiency that form generates.
Description of drawings
Fig. 1 is that a kind of form constitutes synoptic diagram;
Fig. 2 is a kind of form synoptic diagram of complicated pattern;
Fig. 3 is a kind of form synoptic diagram of complicated pattern;
Fig. 4 is the form automatic generation method schematic flow sheet based on form template set of the present invention;
Fig. 5 is the particular flow sheet of step S407 among Fig. 4;
Fig. 6 is that form template set constitutes synoptic diagram;
Fig. 7 is the tree-shaped level synoptic diagram that form generates data;
Fig. 8 is the fill rule synoptic diagram;
Fig. 9 is the assembling synoptic diagram between concentrated template elements of form template and the table element that generates form.
Embodiment
Form automatic generation method and system based on form template set that the present invention proposes are described as follows in conjunction with the accompanying drawings and embodiments.
The present invention proposes a kind of form automatic generation method based on form template set, its flow process as shown in Figure 4, step S401, fundamental element in the drafting form template is to form form template, the fundamental element that the user draws form template by mapping software also can be compiled the form template that meets customer requirements with existing form template.Wherein, the fundamental element of form template comprises graphical information and text message, and graphical information comprises straight-line segment, segment of curve and picture etc., and text message mainly refers to the Word message in the form.Each form template has the feature of form.
Step S402, fundamental element in identification and the parsing form template, form form template set, form template set described in this example can be made up of m form template, m is the natural number more than or equal to 1, and form template set as shown in Figure 6 is made up of form template 601, form template 602, form template 603 and form template 604.It is capable that described form template can be divided into n, and n is the natural number more than or equal to 1; Every row can be divided into r cell, and r is the natural number more than or equal to 1.Form by 1 row and 15 cells as form template 602.The graphical information of described form template is meant straight-line segment, segment of curve or the picture etc. that constitute the form template element, as straight-line segment 608, straight-line segment 609 etc.; Described text message is meant the Word message that constitutes the form template element, Word message 606, Word message 611 etc.The variation characteristic of fundamental element when form generates according to forming form template is divided into two big classes, promptly non-lists table template and lists table template with each form template element.Except that text message, graphical information can not change described non-lists table template in the form generative process, as form template 601 and form template 603 etc.Described lists table template changes according to row integral body in form generative process Chinese version information and graphical information, as form template 602 and form template 604 etc.When carrying out form template identification, at first read the fundamental element in each form template; Discern the text message of each form template profile and this template of composition then according to the connectedness of graphic element; Write down the position relation between non-lists table template of each form template element and the lists table template, promptly the required non-lists table template and the position connecting relation of lists table template in generating the form process are 0 as the lower left corner of form template 601 and the upper left corner distance of form template 602; And for example the upper left corner of the lower left corner of form template 602 and form template 603 distance is 0; Form form template set according to form template profile, the text message of forming this template and described position relation at last.
Step S403, obtain the data organization stipulations of the data source of form to be generated, wherein, data source normally project data designs a model or the set of the list data of man-machine interaction, the data organization stipulations are by tree-shaped hierarchical structure tissue, every the data recording that is the list data source is organized into tree structure by physical meaning, and as shown in Figure 7, this data organizational structure is respectively ground floor tubing 701, valve 704, pipe fitting 705, annex 706, flange 707 and instrument 708 by two-layer the composition; The second layer is by the subclass of ground floor, as the steel pipe 702 and the cast carbon steel 703 of tubing 701.
Step S404, according to data source structure form template being set concentrates graph association rule between form template, described graph association rule to define form template to generate position relation, alignment relation, offset relationship and cell location relation on direction or its vertical direction at form.Wherein, the position of form template is closed and is meant that each form template (comprising non-lists table template and lists table template) concerns that up and down alignment relation refers generally to left-justify or Right Aligns, and offset relationship refers to the distance between each form.Position relation between each cell of form template comprises two kinds, a kind of is that same class data recording is put in the same row in the form generation data, as article one data of the data of valve 704 filler cells lattice 611, cell 612, cell 613 and cell 614 successively, the second data are also newly added delegation, fill filler cells lattice 611, cell 612, cell 613 and cell 614 then successively, finish until the whole processing of data message successively; Another kind is that not of a sort data recording is placed on same row in the form generation data, all answers filler cells lattice 615, cell 616, cell 617, cell 618 and cell 619 as the data of annex 706 and instrument 708.
Step S405, according to data source structure form template is set and concentrates text rule between form template, text rule has defined the fill rule of form variable and the incidence relation between the form variable, described form variable is with the different cell text messages that change of form padding data in the form template, as the text message in the form template among Fig. 6 601 606, text message 610, text message 605 in the form template 602 etc. and for example.The cell fill rule is filling content and the form with the finger form variable of textual description, retrained the content that cell is filled, according to tree structure tissue shown in Figure 7, with instrument 708 different fill rules can be set respectively for annex 706 as form variable 615, form variable 616 etc.Described text rule adopts the design of if-else if-else visualization structure, as shown in Figure 8, rule 801 have ready conditions 804 and fill rule 803 constitute, the filling condition of rule 802 be a sky, fill rule is 805.According to if-else if-else rule, the condition 804 when regular 801 is that true time adopts fill rule 803 to fill the form variablees, otherwise adopts rule 802, promptly adopts fill rule 805 filling form variablees.Incidence relation between described form variable is filled comprises: form create-rule, form generate the ordering rule and the filtering rule of data.The form create-rule comprises: form line number, cell shape, statistics row rule change when form generates automatically; Described ordering rule is according to the difference of when ordering fiducial value, can be divided into by data value with by the ordering of data organization relation, the homogeneous data attribute sorts according to numerical relation in the described data value sorting representationb data recording, data organization relation table registration sorts according to hierarchical relationship on the described data organization hierarchical tree of data according to record, as the order of tubing among Fig. 7 701, valve 704, pipe fitting 705, annex 706, flange 707 and instrument 708 formations.Priority during ordering is that the data value ordering is higher than the ordering of data organization relation, presses ascending order, descending or acquiescence higher level rank order when priority is identical.Described form generates the data filter rule generates data organization according to form tree-shaped hierarchical structure definition.
Step S406 selects template set, obtains form generation data according to graph association rule in the selected template set and text rule from data source.Be commonly referred to as extracted data information from the ENGINEERING CAD model file, and generate data according to data structure organization form shown in Figure 7.The set of the engineering attribute of each ENGINEERING CAD solid model constitutes one or more of data recording, and each attribute is referred to as key word.Therefore, the title of above-mentioned key word has embodied certain specific engineering attribute of model entity, as type, title, nominal diameter etc.; The numerical value of above-mentioned key word is from the concrete engineering quantity of this attribute.
Step S407 generates data according to the fundamental element of form template set, graph association rule, text rule in the template set and form and generates form automatically.Concrete steps as shown in Figure 5, step S501 generates the data pre-service to form, promptly reads a form and generates data recording, finishes form according to the text rule of described form template set and generates data sorting and filtration.Step S502, form generation data according to ordering and after filtering are finished cell automatically and are filled, and generation comprises the statistics row of form and the table style graphical information of cell shape, replace with the numerical value that corresponding form generates the key word in the data for the field in the fill rule of each form variable of form template, judge then whether the filling condition is set up, select suitable fill rule to generate list cell (as the cell among Fig. 9 910) according to the if-elseif-else principle, finish the list cell shape, statistics row (as row among Fig. 9 916 and row 917) figures information generates, and comprises when generating the table cell shape that cell merges, constitute the operations such as frame observability control of cell.The corresponding relation that form variable and being used for is filled the form literal of this variable is meant that the form variable is at the position coordinates that generates table element with fill content and text formatting, as the form variable 909 corresponding form literal 910 that generate forms 905 of the form template 901 of Fig. 9, form variable 911 corresponding form literal 912, form literal 913, form literal 914 and the form literal 915 that generate in the table elements 906 in the form template 904.Step S503 judges that form generates data and whether reads and finish, finishes if read, and execution in step S504 then, otherwise, forward step S501 to and continue to read next bar form and generate data.Step S504, concentrate the correlation rule between form template to finish the form combination according to form template, set type, automatically generate form after finishing the tabular matter confirmation request user interactions, concentrate the graph association rule between form template to finish the form combination according to form template, set type and generate form, be meant according to step S404 position conversion and the composing that form template element graph association rule is finished form is set, as shown in Figure 9, form template 901, form template 902, the corresponding respectively form 905 that generates of form template 903 and form template 904, form 906, form 907 and form 908.Wherein, finish the tabular matter requirement described user interactions, the form generation module is finished form and is generated automatically then, be meant the line number of every form of user interactions ground definition, every page form number, whether generate control such as common form above table is carried out paging processing, line number control etc., generate and satisfy the customer requirements pattern and form typesetting format.
The invention allows for a kind of form automatic creation system based on form template set, comprising: the form template design module is used for drawing the fundamental element of form template to form form template; Described fundamental element comprises: graphical information and text message, and described graphical information comprises: straight-line segment, segment of curve and picture; The form template identification module is used for discerning and resolving the fundamental element of form template, forms form template set; List data source acquisition module is used to obtain the data organization stipulations of the data source of form to be generated, and described data source is that project data designs a model or the list data set of man-machine interaction, and described data organization stipulations are organized according to tree-like hierarchical structure; The graph association rule administration module, being used for according to data source structure form template being set concentrates graph association rule between form template, described graph association rule to define form template to generate position relation, alignment relation, offset relationship and cell location relation on direction or its vertical direction at form; The text rule administration module, be used for the text rule that form template is concentrated the form template element being set according to data source structure, described text rule has defined the fill rule of form variable and the incidence relation between the form variable, the fill rule of described form variable is with the different cell text messages that change of form padding data in the form template with the form variable, incidence relation between the fill rule of described form variable and the form variable comprises: the form create-rule, ordering rule and filtering rule form that form generates data generate data acquisition module, be used to select template set, from data source, obtain form generation data according to graph association rule in the selected template set and text rule; The form generation module, the graph association rule, text rule and the form that are used for fundamental element, template set according to form template set generate data and generate form automatically.
Wherein, described form template identification module comprises: the form template read module is used to read the fundamental element of form template; Template contours and text message identification module are used for discerning each form template profile and the text message of forming this template according to the connectedness of graphic element;
Relation recognition module in position between template is used to write down the position relation between described non-lists table template and the lists table template; The form template set generation module is used for forming form template set according to form template profile, the text message of forming this template and described position relation.
Wherein, described form generation module comprises: form generates data preprocessing module, is used to read a form and generates data, finishes form according to the text rule of described form template set and generates data sorting and filtration; The cell generation module, the form generation data that are used for according to ordering and after filtering are finished the cell filling automatically, and generation comprises the statistics row of form and the table style graphical information of cell shape; Form generates the data judge module, is used to judge that form generates data and whether reads and finish, finish if read, and executive table automatically-generating module then, otherwise, forward form to and generate data preprocessing module and continue to read next bar form and generate data; The form automatically-generating module is used for concentrating the correlation rule between form template to finish the form combination, set type according to form template, finishes after the tabular matter confirmation request generation form automatically user interactions.
Above embodiment only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (9)

1. the form automatic generation method based on form template set is characterized in that, may further comprise the steps:
S1: the fundamental element in the drafting form template is to form form template; Described fundamental element comprises: graphical information and text message, and described graphical information comprises: straight-line segment, segment of curve and picture;
S2: the fundamental element in identification and the parsing form template forms form template set;
S3: obtain the data organization stipulations of the data source of form to be generated, described data source is that project data designs a model or the list data of man-machine interaction is gathered, and described data organization stipulations are organized according to tree-like hierarchical structure;
S4: according to data source structure form template is set and concentrates graph association rule between form template, described graph association rule to define form template to generate position relation, alignment relation, offset relationship and cell location relation on direction or its vertical direction at form;
S5: the text rule that form template is concentrated the form template element is set according to data source structure, described text rule has defined the fill rule of form variable and the incidence relation between the form variable, described form variable is the cell text messages that change with form padding data difference in the form template, and the incidence relation between the fill rule of described form variable and the form variable comprises: form create-rule, form generate the ordering rule and the filtering rule of data;
S6: select template set, from data source, obtain form generation data according to graph association rule in the selected template set and text rule;
S7: generate data according to the fundamental element of form template set, graph association rule, text rule in the template set and form and generate form automatically.
2. the form automatic generation method based on form template set as claimed in claim 1, it is characterized in that, described form template comprises: non-lists table template and lists table template, described lists table template is for changing according to row integral body in form generative process Chinese version information and graphical information, and the graphical information of described non-lists table template does not change.
3. the form automatic generation method based on form template set as claimed in claim 2 is characterized in that, described step S2 comprises:
S21: the fundamental element that reads form template;
S22: text message and the graphics frame information of discerning each form template profile and this template of composition according to the connectedness of graphic element;
S23: write down the position relation between described non-lists table template and the lists table template;
S24: form form template set according to form template profile, the text message of forming this template and described position relation.
4. the form automatic generation method based on form template set as claimed in claim 2 is characterized in that, among the described step S5
Described form create-rule comprises: form line number, cell shape, statistics row rule change when form generates automatically;
Described ordering rule is according to the difference of when ordering fiducial value, can be divided into by data value with by the ordering of data organization relation, the homogeneous data attribute sorts according to numerical relation in the described data value sorting representationb data recording, and data organization relation table registration sorts according to hierarchical relationship on the described data organization hierarchical tree of data according to record;
Described form generates the data filter rule generates data organization according to form tree-shaped hierarchical structure definition.
5. the form automatic generation method based on form template set as claimed in claim 4, it is characterized in that, the priority of data value ordering and the data organization relation ordering of described ordering rule can dispose, and presses ascending order, descending or acquiescence higher level rank order when priority is identical.
6. the form automatic generation method based on form template set as claimed in claim 1 is characterized in that, described step S7 comprises:
S71: read a form and generate data, finish form according to the text rule of described form template set and generate data sorting and filtration;
S72: the form generation data according to ordering and after filtering are finished cell automatically and are filled, and generation comprises the statistics row of form and the table style graphical information of cell shape;
S73: judge that form generates data and whether reads and finish, finish if read, execution in step S74 then, otherwise, forward step S71 to and continue to read next bar form and generate data;
S74: concentrate the correlation rule between form template to finish the form combination, set type according to form template, finish after the tabular matter confirmation request generation form automatically user interactions.
7. the form automatic creation system based on form template set is characterized in that, comprising:
The form template design module is used for drawing the fundamental element of form template to form form template; Described fundamental element comprises: graphical information and text message, and described graphical information comprises: straight-line segment, segment of curve and picture;
The form template identification module is used for discerning and resolving the fundamental element of form template, forms form template set;
List data source acquisition module is used to obtain the data organization stipulations of the data source of form to be generated, and described data source is that project data designs a model or the list data set of man-machine interaction, and described data organization stipulations are organized according to tree-like hierarchical structure;
The graph association rule administration module, being used for according to data source structure form template being set concentrates graph association rule between form template, described graph association rule to define form template to generate position relation, alignment relation, offset relationship and cell location relation on direction or its vertical direction at form;
The text rule administration module, be used for the text rule that form template is concentrated the form template element being set according to data source structure, described text rule has defined the fill rule of form variable and the incidence relation between the form variable, described form variable is the cell text messages that change with form padding data difference in the form template, and the incidence relation between the fill rule of described form variable and the form variable comprises: form create-rule, form generate the ordering rule and the filtering rule of data;
Form generates data acquisition module, is used to select template set, obtains form generation data according to graph association rule in the selected template set and text rule from data source;
The form generation module, the graph association rule, text rule and the form that are used for fundamental element, template set according to form template set generate data and generate form automatically.
8. the form automatic creation system based on form template set as claimed in claim 7 is characterized in that, described form template identification module comprises:
The form template read module is used to read the fundamental element of form template;
Template contours and text message identification module are used for discerning each form template profile and the text message of forming this template according to the connectedness of graphic element;
Relation recognition module in position between template is used to write down the position relation between described non-lists table template and the lists table template;
The form template set generation module is used for forming form template set according to form template profile, the text message of forming this template and described position relation.
9. the form automatic creation system based on form template set as claimed in claim 7 is characterized in that, described form generation module comprises:
Form generates data preprocessing module, is used to read a form and generates data, finishes form according to the text rule of described form template set and generates data sorting and filtration;
The cell generation module, the form generation data that are used for according to ordering and after filtering are finished the cell filling automatically, and generation comprises the statistics row of form and the table style graphical information of cell shape;
Form generates the data judge module, is used to judge that form generates data and whether reads and finish, finish if read, and executive table automatically-generating module then, otherwise, forward form to and generate data preprocessing module and continue to read next bar form and generate data;
The form automatically-generating module is used for concentrating the correlation rule between form template to finish the form combination, set type according to form template, finishes after the tabular matter confirmation request generation form automatically user interactions.
CN2010101230322A 2010-03-11 2010-03-11 Form automatic generation method and system based on form template set Active CN101794280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101230322A CN101794280B (en) 2010-03-11 2010-03-11 Form automatic generation method and system based on form template set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101230322A CN101794280B (en) 2010-03-11 2010-03-11 Form automatic generation method and system based on form template set

Publications (2)

Publication Number Publication Date
CN101794280A true CN101794280A (en) 2010-08-04
CN101794280B CN101794280B (en) 2011-07-27

Family

ID=42586984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101230322A Active CN101794280B (en) 2010-03-11 2010-03-11 Form automatic generation method and system based on form template set

Country Status (1)

Country Link
CN (1) CN101794280B (en)

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944021A (en) * 2010-08-30 2011-01-12 创野至易网络技术(北京)有限公司 Method and system for realizing graphical user interface
CN101976234A (en) * 2010-09-21 2011-02-16 用友软件股份有限公司 Table data display device and method
CN102024039A (en) * 2010-12-01 2011-04-20 北京神州泰岳软件股份有限公司 Form generating method based on electric operation maintenance system (EOMS)
CN102214244A (en) * 2011-07-07 2011-10-12 深圳市万兴软件有限公司 Analytic method and system for docx file information
CN102479175A (en) * 2010-11-25 2012-05-30 三菱电机株式会社 Test table generating device and method of generating test table
CN102880620A (en) * 2011-07-15 2013-01-16 深圳市金蝶友商电子商务服务有限公司 Method for creating spreadsheet
CN103699374A (en) * 2013-12-02 2014-04-02 厦门雅迅网络股份有限公司 Method for flexibly customizing table widgets based on Android platform
CN104123270A (en) * 2014-07-29 2014-10-29 广东能龙教育股份有限公司 Reverse table arrangement method based on content
CN104182382A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Method and system for achieving table standardization
CN104462048A (en) * 2013-09-18 2015-03-25 北大方正集团有限公司 Table layout method and table layout device
CN104808980A (en) * 2014-01-27 2015-07-29 Ls产电株式会社 Data display apparatus and method for energy management system
CN105868310A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Data processing method and device and electronic device
CN106156239A (en) * 2015-04-27 2016-11-23 中国移动通信集团公司 A kind of form abstracting method and device
CN106250359A (en) * 2015-06-15 2016-12-21 中国石油化工股份有限公司 A kind of system and method for layout oil and gas reserves dependent vector figure
CN106537372A (en) * 2014-07-18 2017-03-22 微软技术许可有限责任公司 Entity recognition for enhanced document productivity
CN106649452A (en) * 2016-09-22 2017-05-10 广东电网有限责任公司电力调度控制中心 Method of generating template graphics
CN106796585A (en) * 2014-09-10 2017-05-31 起元技术有限责任公司 Condition verification rule
CN103778234B (en) * 2014-01-26 2017-06-27 北京恒华伟业科技股份有限公司 The generation method and device of form
CN107025214A (en) * 2017-04-27 2017-08-08 珠海格力电器股份有限公司 Data processing method and device
CN107085565A (en) * 2016-12-22 2017-08-22 武汉智博创享科技有限公司 A kind of thematic map form method of adjustment and system
CN107357902A (en) * 2017-07-14 2017-11-17 电子科技大学 A kind of tables of data categorizing system and method based on correlation rule
CN107729304A (en) * 2012-07-17 2018-02-23 微软技术许可有限责任公司 Interacted with the document as application
CN108197216A (en) * 2017-12-28 2018-06-22 深圳市巨鼎医疗设备有限公司 A kind of method of information processing
CN108388466A (en) * 2018-03-16 2018-08-10 北京小度信息科技有限公司 Information displaying method and device
CN108647196A (en) * 2018-04-16 2018-10-12 北京航空航天大学 The artificial intelligence generation method and device of table in digital aircraft simulation report
CN109492031A (en) * 2018-09-13 2019-03-19 广州虎牙信息科技有限公司 Display methods, server and the computer storage medium of list data
CN110210470A (en) * 2019-06-05 2019-09-06 复旦大学 Merchandise news image identification system
CN110347982A (en) * 2018-04-03 2019-10-18 鼎复数据科技(北京)有限公司 Tableau format extracting method based on domain knowledge template
CN110717322A (en) * 2019-10-10 2020-01-21 湖南舞龙软件开发有限公司 Universal generation method for quality monitoring analysis original record table
CN110738037A (en) * 2019-10-15 2020-01-31 深圳逻辑汇科技有限公司 Method, apparatus, device and storage medium for automatically generating electronic form
CN111159862A (en) * 2019-12-17 2020-05-15 核工业二四三大队 Electronic design and compiling method for uranium ore drilling design instruction
CN111221289A (en) * 2019-04-09 2020-06-02 国网福建省电力有限公司 Ammeter data interaction system and method
CN111368387A (en) * 2018-12-25 2020-07-03 中国电力科学研究院有限公司 Electric power system simulation data textualization method
CN111427973A (en) * 2020-04-21 2020-07-17 贵州新致普惠信息技术有限公司 Planning table data analysis method
CN111435365A (en) * 2018-12-25 2020-07-21 中国电力科学研究院有限公司 Data textualization task execution method
CN111737685A (en) * 2020-06-22 2020-10-02 中国银行股份有限公司 Text service processing system, method and device
CN112528613A (en) * 2020-12-21 2021-03-19 金蝶软件(中国)有限公司 Data table generation method and related equipment thereof
CN113191128A (en) * 2021-05-24 2021-07-30 中国工商银行股份有限公司 Report form checking tool generation method and device and electronic equipment
CN114282501A (en) * 2021-12-28 2022-04-05 北京天融信网络安全技术有限公司 Method and device for creating table in document, electronic equipment and storage medium
CN116580415A (en) * 2023-05-17 2023-08-11 深圳市四方智源科技有限公司 Electronic form identification method, electronic form identification device, electronic equipment and storage medium
CN117454862A (en) * 2023-12-25 2024-01-26 青岛民航凯亚系统集成有限公司 Report generation method based on engine mode and self-service BI system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892642A (en) * 2005-07-06 2007-01-10 国际商业机器公司 Method and system for processing forms
CN101149737A (en) * 2007-05-10 2008-03-26 廖义洪 Method for quickly establishing web form and automatically establishing corresponding data table in database through Microsoft Word

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892642A (en) * 2005-07-06 2007-01-10 国际商业机器公司 Method and system for processing forms
CN101149737A (en) * 2007-05-10 2008-03-26 廖义洪 Method for quickly establishing web form and automatically establishing corresponding data table in database through Microsoft Word

Cited By (58)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012027946A1 (en) * 2010-08-30 2012-03-08 创野至易网络技术(北京)有限公司 Method and system for realizing graphical user interface
CN101944021A (en) * 2010-08-30 2011-01-12 创野至易网络技术(北京)有限公司 Method and system for realizing graphical user interface
CN101944021B (en) * 2010-08-30 2014-01-08 田文清 Method and system for realizing graphical user interface
CN101976234B (en) * 2010-09-21 2015-09-02 用友软件股份有限公司 table data display device and method
CN101976234A (en) * 2010-09-21 2011-02-16 用友软件股份有限公司 Table data display device and method
CN102479175A (en) * 2010-11-25 2012-05-30 三菱电机株式会社 Test table generating device and method of generating test table
CN102479175B (en) * 2010-11-25 2014-09-03 三菱电机株式会社 Test table generating device and method of generating test table
CN102024039B (en) * 2010-12-01 2012-09-05 北京神州泰岳软件股份有限公司 Form generating method based on electric operation maintenance system (EOMS)
CN102024039A (en) * 2010-12-01 2011-04-20 北京神州泰岳软件股份有限公司 Form generating method based on electric operation maintenance system (EOMS)
CN102214244A (en) * 2011-07-07 2011-10-12 深圳市万兴软件有限公司 Analytic method and system for docx file information
CN102880620B (en) * 2011-07-15 2015-07-15 深圳市金蝶友商电子商务服务有限公司 Method for creating spreadsheet
CN102880620A (en) * 2011-07-15 2013-01-16 深圳市金蝶友商电子商务服务有限公司 Method for creating spreadsheet
CN107729304A (en) * 2012-07-17 2018-02-23 微软技术许可有限责任公司 Interacted with the document as application
CN104182382A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Method and system for achieving table standardization
CN104462048A (en) * 2013-09-18 2015-03-25 北大方正集团有限公司 Table layout method and table layout device
CN104462048B (en) * 2013-09-18 2017-10-27 北大方正集团有限公司 Tabular matter method and apparatus
CN103699374B (en) * 2013-12-02 2019-07-02 厦门雅迅网络股份有限公司 A method of the flexible customed grid control based on Android platform
CN103699374A (en) * 2013-12-02 2014-04-02 厦门雅迅网络股份有限公司 Method for flexibly customizing table widgets based on Android platform
CN103778234B (en) * 2014-01-26 2017-06-27 北京恒华伟业科技股份有限公司 The generation method and device of form
CN104808980A (en) * 2014-01-27 2015-07-29 Ls产电株式会社 Data display apparatus and method for energy management system
US11120210B2 (en) 2014-07-18 2021-09-14 Microsoft Technology Licensing, Llc Entity recognition for enhanced document productivity
CN106537372A (en) * 2014-07-18 2017-03-22 微软技术许可有限责任公司 Entity recognition for enhanced document productivity
CN104123270A (en) * 2014-07-29 2014-10-29 广东能龙教育股份有限公司 Reverse table arrangement method based on content
CN106796585A (en) * 2014-09-10 2017-05-31 起元技术有限责任公司 Condition verification rule
CN106156239A (en) * 2015-04-27 2016-11-23 中国移动通信集团公司 A kind of form abstracting method and device
CN106156239B (en) * 2015-04-27 2020-06-30 中国移动通信集团公司 Table extraction method and device
CN106250359A (en) * 2015-06-15 2016-12-21 中国石油化工股份有限公司 A kind of system and method for layout oil and gas reserves dependent vector figure
CN105868310B (en) * 2016-03-25 2020-05-26 联想(北京)有限公司 Data processing method and device and electronic equipment
CN105868310A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Data processing method and device and electronic device
CN106649452A (en) * 2016-09-22 2017-05-10 广东电网有限责任公司电力调度控制中心 Method of generating template graphics
CN107085565A (en) * 2016-12-22 2017-08-22 武汉智博创享科技有限公司 A kind of thematic map form method of adjustment and system
CN107025214A (en) * 2017-04-27 2017-08-08 珠海格力电器股份有限公司 Data processing method and device
CN107025214B (en) * 2017-04-27 2019-08-30 珠海格力电器股份有限公司 Data processing method and device
CN107357902A (en) * 2017-07-14 2017-11-17 电子科技大学 A kind of tables of data categorizing system and method based on correlation rule
CN107357902B (en) * 2017-07-14 2021-05-28 电子科技大学 Data table classification system and method based on association rule
CN108197216A (en) * 2017-12-28 2018-06-22 深圳市巨鼎医疗设备有限公司 A kind of method of information processing
CN108388466A (en) * 2018-03-16 2018-08-10 北京小度信息科技有限公司 Information displaying method and device
CN110347982A (en) * 2018-04-03 2019-10-18 鼎复数据科技(北京)有限公司 Tableau format extracting method based on domain knowledge template
CN108647196A (en) * 2018-04-16 2018-10-12 北京航空航天大学 The artificial intelligence generation method and device of table in digital aircraft simulation report
CN109492031A (en) * 2018-09-13 2019-03-19 广州虎牙信息科技有限公司 Display methods, server and the computer storage medium of list data
CN111368387A (en) * 2018-12-25 2020-07-03 中国电力科学研究院有限公司 Electric power system simulation data textualization method
CN111435365A (en) * 2018-12-25 2020-07-21 中国电力科学研究院有限公司 Data textualization task execution method
CN111221289A (en) * 2019-04-09 2020-06-02 国网福建省电力有限公司 Ammeter data interaction system and method
CN111221289B (en) * 2019-04-09 2021-07-27 国网福建省电力有限公司 Ammeter data interaction system and method
CN110210470A (en) * 2019-06-05 2019-09-06 复旦大学 Merchandise news image identification system
CN110717322A (en) * 2019-10-10 2020-01-21 湖南舞龙软件开发有限公司 Universal generation method for quality monitoring analysis original record table
CN110738037A (en) * 2019-10-15 2020-01-31 深圳逻辑汇科技有限公司 Method, apparatus, device and storage medium for automatically generating electronic form
CN111159862A (en) * 2019-12-17 2020-05-15 核工业二四三大队 Electronic design and compiling method for uranium ore drilling design instruction
CN111159862B (en) * 2019-12-17 2023-09-08 核工业二四三大队 Electronic design and programming method for uranium mine drilling design instruction book
CN111427973A (en) * 2020-04-21 2020-07-17 贵州新致普惠信息技术有限公司 Planning table data analysis method
CN111737685A (en) * 2020-06-22 2020-10-02 中国银行股份有限公司 Text service processing system, method and device
CN112528613A (en) * 2020-12-21 2021-03-19 金蝶软件(中国)有限公司 Data table generation method and related equipment thereof
CN113191128A (en) * 2021-05-24 2021-07-30 中国工商银行股份有限公司 Report form checking tool generation method and device and electronic equipment
CN113191128B (en) * 2021-05-24 2024-03-19 中国工商银行股份有限公司 Report checking tool generation method and device and electronic equipment
CN114282501A (en) * 2021-12-28 2022-04-05 北京天融信网络安全技术有限公司 Method and device for creating table in document, electronic equipment and storage medium
CN116580415A (en) * 2023-05-17 2023-08-11 深圳市四方智源科技有限公司 Electronic form identification method, electronic form identification device, electronic equipment and storage medium
CN116580415B (en) * 2023-05-17 2023-11-28 深圳市四方智源科技有限公司 Electronic form identification method, electronic form identification device, electronic equipment and storage medium
CN117454862A (en) * 2023-12-25 2024-01-26 青岛民航凯亚系统集成有限公司 Report generation method based on engine mode and self-service BI system

Also Published As

Publication number Publication date
CN101794280B (en) 2011-07-27

Similar Documents

Publication Publication Date Title
CN101794280B (en) Form automatic generation method and system based on form template set
CN107480374B (en) Bridge BIM model creation method based on CATIA
CN105631113B (en) Nuclear power engineering pipeline ISO (International standards organization) diagram customizing method
CN105242538B (en) Part multi-processing process MBD models and implementation method based on figure layer
US9053082B2 (en) Spreadsheet data processing method and system
CN106844885B (en) BIM technology-based drawing frame and drawing label design method
CN101882225A (en) Engineering drawing material information extraction method based on template
CN111708531A (en) Data processing method and device
CN102129464A (en) Method for dynamically constructing online thematic map
CN106202292A (en) A kind of standard information based on structural data model analyzes method
CN103268390A (en) Computer-aided process planning method with graphic function
CN201867789U (en) Self-adaptive graphical user interface building device
CN105279301A (en) Customizable-output plan design method
CN103473216A (en) Excel-based product process planning method
CN110309553B (en) Drawing rapid drawing system and method based on standardized bridge universal gallery
CN108170855A (en) A kind of CityGML and IFC data unified query and data pick-up method
CN101739498B (en) Method for accurately designing and manufacturing ArcGIS symbol library
CN106127863A (en) A kind of refrigerator foaming die series design system and method thereof
CN113761859B (en) Electronic report definition method and device and electronic equipment
CN102479257A (en) Design and implementation method of intelligent numerical control machine tool
CN111401023B (en) Report generation method, report generation device, server and storage medium
CN101452383A (en) Interface antetype design method and design system
KR20070097231A (en) Automatic design method with ms excel
CN107229687B (en) Dft file is converted to the system and method for DWG file by a kind of batch
CN112241411B (en) Spreadsheet structured identification and extraction method based on CAD basic elements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200113

Address after: 100085, Beijing, Haidian District information road, No. 28, information building, block A, nine

Patentee after: Beijing Zhongke Fulong Intelligent Technology Co., Ltd

Address before: 100085, Beijing, Haidian District information road, No. 28, information building, block A, nine

Patentee before: Beijing Zhongke Fulong Computer Technology Co., Ltd.