CN105630506B - A kind of generation method and relevant apparatus of document and document template - Google Patents

A kind of generation method and relevant apparatus of document and document template Download PDF

Info

Publication number
CN105630506B
CN105630506B CN201511021126.8A CN201511021126A CN105630506B CN 105630506 B CN105630506 B CN 105630506B CN 201511021126 A CN201511021126 A CN 201511021126A CN 105630506 B CN105630506 B CN 105630506B
Authority
CN
China
Prior art keywords
control
data element
element control
document
data
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.)
Active
Application number
CN201511021126.8A
Other languages
Chinese (zh)
Other versions
CN105630506A (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.)
GOODWILL INFORMATION TECHNOLOGY Co Ltd
Original Assignee
GOODWILL INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GOODWILL INFORMATION TECHNOLOGY Co Ltd filed Critical GOODWILL INFORMATION TECHNOLOGY Co Ltd
Priority to CN201511021126.8A priority Critical patent/CN105630506B/en
Publication of CN105630506A publication Critical patent/CN105630506A/en
Application granted granted Critical
Publication of CN105630506B publication Critical patent/CN105630506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention provides the generation methods and relevant apparatus of a kind of document and document template.The generation method of the document template comprises determining that out that at least one document control, the document control include at least one data element control;It obtains the corresponding attribute of each data element control and obtains data, the corresponding attribute of each data element control, which obtains in data, respectively includes the corresponding attribute reading position of each data element control;Control related information is generated, indicates that the corresponding attribute of each data element control obtains data in the control related information;The document template including the document control is generated, the document template is corresponding with the control related information.It can be seen that the present invention can get the corresponding attribute information of each data element control by general a set of process according to control related information, it does not need for the individually designed process of document template, to simplify operation, and it does not need to safeguard a large amount of computer code, reduce cost and improves system effectiveness.

Description

A kind of generation method and relevant apparatus of document and document template
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of document and the generation method of document template and related Device.
Background technique
With the development of computer technology, the mode of automation output document is generallyd use at present, instead of traditional craft It fills in.Document it is many kinds of, each document corresponds to a document template, is exported according to corresponding document template.
Currently, the output process of document includes: to get the corresponding document template of the document, by with the document template pair Corresponding data are filled into the document template by a set of process answered, to generate the document and be exported.
However, therefore, it is necessary to separately design for each document template since the pattern of each document template is different from A set of process operates sufficiently complex.And every set process is usually to be realized by way of writing computer code, therefore work as single When more according to template number, need to safeguard a large amount of computer code, increase cost, reduce system effectiveness.
Summary of the invention
Present invention solves the technical problem that be to provide the generation method and relevant apparatus of a kind of document and document template, with It is implemented without and separately designs a set of process for each document template, to simplify operation, reduce cost and improve system System efficiency.
For this purpose, the technical solution that the present invention solves technical problem is:
The present invention provides a kind of generation methods of document template, comprising:
Determine that at least one document control, the document control include at least one data element control;
It obtains the corresponding attribute of each data element control and obtains data, the corresponding attribute of each data element control obtains data In respectively include the corresponding attribute reading position of each data element control;
Control related information is generated, indicates the corresponding attribute of each data element control in the control related information Obtain data;
The document template including the document control is generated, the document template is corresponding with the control related information.
Optionally, the document control further includes at least one layout control, and the attribute of any one data element control obtains Data further include: layout control corresponding with the data element control.
Optionally, the attribute of any one data element control obtains data further include: to the corresponding attribute of data element control The processing of information indicates.
Optionally, any one described data element control is text control or label control, and the data element control is corresponding The processing instruction of attribute information includes: to modify the information type and/or format of attribute information;
Any one described data element control is tendency chart control, and the processing of the corresponding attribute information of data element control indicates It include: that attribute information is converted into graphical information.
The present invention provides a kind of generation methods of document, comprising:
The document template including at least one document control is obtained, the document control includes at least one data element control Part;
The corresponding control related information of the document template is obtained, indicates each data element in the control related information The corresponding attribute of control obtains data, and the corresponding attribute of each data element control, which obtains in data, respectively includes each data element control The corresponding attribute reading position of part;
According to the corresponding attribute reading position of each data element control, the corresponding attribute letter of each data element control is read Breath;
According to the corresponding attribute information of each data element control, attribute assignment is carried out to each data element control, generates institute State the corresponding document of document template.
Optionally, the document control further includes at least one layout control, and the attribute of any one data element control obtains Data further include: the corresponding layout control of data element control;
After carrying out attribute assignment to any one described data element control, the method also includes: by the data element control It is shown in conjunction with layout control corresponding with the data element control.
Optionally, the attribute of any one data element control obtains data further include: to the corresponding attribute of data element control The processing of information indicates;
Before carrying out attribute assignment to any one described data element control, the method also includes: referred to according to the processing Show, data processing is carried out to the corresponding attribute information of the data element control.
The present invention provides a kind of generating means of document template, comprising:
Determination unit, for determining that at least one document control, the document control include at least one data element control Part;
Acquiring unit obtains data for obtaining the corresponding attribute of each data element control, and each data element control is corresponding Attribute obtain data in respectively include the corresponding attribute reading position of each data element control;
First generation unit indicates each data element in the control related information for generating control related information The corresponding attribute of control obtains data;
Second generation unit, for generating the document template including the document control, the document template and the control Part related information is corresponding.
Optionally, the document control further includes at least one layout control, and the attribute of any one data element control obtains Data further include: layout control corresponding with the data element control.
Optionally, the attribute of any one data element control obtains data further include: to the corresponding attribute of data element control The processing of information indicates.
Optionally, any one described data element control is text control or label control, and the data element control is corresponding The processing instruction of attribute information includes: to modify the information type and/or format of attribute information;
Any one described data element control is tendency chart control, and the processing of the corresponding attribute information of data element control indicates It include: that attribute information is converted into graphical information.
The present invention provides a kind of generating means of document, comprising:
First acquisition unit, for obtaining the document template including at least one document control, the document control includes At least one data element control;
Second acquisition unit, for obtaining the corresponding control related information of the document template, the control related information In indicate that the corresponding attribute of each data element control obtains data, the corresponding attribute of each data element control obtains in data point It Bao Kuo not the corresponding attribute reading position of each data element control;
Reading unit, for reading each data element control according to the corresponding attribute reading position of each data element control Corresponding attribute information;
Generation unit, for belonging to each data element control according to the corresponding attribute information of each data element control Property assignment, generates the corresponding document of the document template.
Optionally, the document control further includes at least one layout control, and the attribute of any one data element control obtains Data further include: the corresponding layout control of data element control;
Described device further includes display unit, and the display unit is for the generation unit to any one described data element After control carries out attribute assignment, it will be shown in conjunction with data element control layout control corresponding with the data element control.
Optionally, the attribute of any one data element control obtains data further include: to the corresponding attribute of data element control The processing of information indicates;
Described device further includes processing unit, and the processing unit is for the generation unit to any one described data element It before control carries out attribute assignment, is indicated according to the processing, the corresponding attribute information of the data element control is carried out at data Reason.
According to the above-mentioned technical solution, in the embodiment of the present invention, the document template of generation is opposite with control related information It answers, wherein control related information is able to indicate that the corresponding attribute of each data element control of document template obtains data. Therefore, it when using document template generation document, can be got respectively according to control related information by general a set of process The corresponding attribute information of a data element control, does not need for the individually designed process of document template, thus simplify operation, and It does not need to safeguard a large amount of computer code, reduce cost and improves system effectiveness.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow diagram of embodiment of the method for the generation method of document template provided by the invention;
Fig. 2 is a kind of flow diagram of embodiment of the method for the generation method of document provided by the invention;
Fig. 3 is the flow diagram provided by the invention that assignment and display are carried out to data element control;
Fig. 4 is a kind of structural schematic diagram of Installation practice of the generating means of document template provided by the invention;
Fig. 5 is a kind of structural schematic diagram of Installation practice of the generating means of document provided by the invention.
Specific embodiment
Currently, since the pattern of each document template is different from, such as in the information system of hospital, each department Respectively correspond the document template of different patterns.In the document template of these different patterns, the essential information position of patient is changeable, faces Bed information updates daily, and document typesetting also usually changes because section's chamber service is indefinite.Therefore, it is necessary to distinguish for each document template A set of process is designed, corresponding data are filled into each document template, is operated sufficiently complex.
Since every set process is usually to be realized by way of writing computer code, when document template number is more When, it needs to safeguard a large amount of computer code, increases cost, reduce system effectiveness.
The present invention provides the generation method and relevant apparatus of a kind of document and document template, is directed to each with being implemented without Document template all separately designs a set of process, to simplify operation, reduce cost and improve system effectiveness.
Referring to Fig. 1, the present invention provides a kind of embodiments of the method for the generation method of document template.The institute of the present embodiment The method of stating includes:
S101: at least one document control is determined.
In embodiments of the present invention, document control refers to the control for showing data in document template, in this reality It applies in example, the document control includes at least one data element control.Wherein, data element control refers to needing combined data aobvious The control shown, such as may include label control, text control or tendency chart control etc., wherein tendency chart control may include Straight line control, broken line control or arrow control etc..
It can also include at least one layout control in the document control other than the data element control.Wherein Layout control refers to the control for not needing combined data, directly displaying, such as may include graphical control or picture control, Graphical control may include rectangle control or oval control etc., and picture control is for showing picture.
S102: it obtains the corresponding attribute of each data element control and obtains data.
In embodiments of the present invention, it in order to generate document by general a set of process, needs generating document mould When plate, each data element control in document template is obtained into data with attribute and is associated.Wherein, attribute obtains what data referred to It is the data for obtaining the corresponding attribute information of data element control, each data attribute information being assigned in document template First control produces corresponding document.
Wherein, the corresponding attribute of each data element control, which obtains in data, respectively includes the corresponding category of each data element control Property reading position can read out each attribute member therefore according to the corresponding attribute reading position of each data element control The attribute information of control.
In the present embodiment, if the document control further includes at least one layout control, the category of any one data element control Property obtain data can also include: layout control corresponding with the data element control, allow the data element control with it is corresponding Layout control combine display.
S103: control related information is generated.
Data are obtained according to each data element control and the corresponding attribute of each data element control, control can be generated Related information indicates that the corresponding attribute of each data element control obtains data in the control related information.
S104: the document template of at least one document control described in including is generated.Wherein, the document template packet of generation At least one described document control is included, and is able to indicate that the position that each document control is located in the document template.
In the embodiment of the present invention, the document template is corresponding with the control related information, and control association letter Indicate that the corresponding attribute of each data element control obtains data in breath, thus can according to the control related information, The corresponding attribute information of each data element control in the document template is got, and according to the attribute information to each number Directly or indirectly assignment is carried out according to first control, that is, produces corresponding document.
According to the above-mentioned technical solution, in the embodiment of the present invention, the document template of generation is opposite with control related information It answers, wherein control related information is able to indicate that the corresponding attribute of each data element control of document template obtains data. Therefore, it when using document template generation document, can be got respectively according to control related information by general a set of process The corresponding attribute information of a data element control, does not need for the individually designed process of document template, thus simplify operation, and It does not need to safeguard a large amount of computer code, reduce cost and improves system effectiveness.
For example, the first document template and the second document template are generated by the corresponding embodiment of the method for Fig. 1 respectively, In the first document template and the second document template pattern it is different, such as included data element control number or type not Together, since the first document template is corresponding with the first control related information, the second document template and the second control related information phase It is corresponding, therefore still can be divided by a set of general process using the first control related information and the second control related information The corresponding attribute information of each data element control in the first document template and each in the second document template is not got The corresponding attribute information of data element control, to generate the first document and the second document.And a set of process corresponds to a set of calculating Machine code also only needs a set of computer code even if there are many quantity of document template.
In the present embodiment, after due to reading attributes information, such as attribute is had read by database languages such as sql and is believed After breath, corresponding data element control can be given with indirect assignment, attribute information can also be carried out after certain processing again into Row assignment.Therefore, the attribute of any of at least one described data element control data element control obtains data further include: to this The processing of the corresponding attribute information of data element control indicates.
For example, if any one described data element control is text control or label control, the data element control pair The processing instruction for the attribute information answered may include modifying the information type and/or format of attribute information.Such as reading attributes letter After breath, attribute information is converted into the specific format of document template and then is assigned to corresponding data element control;If described Any one data element control is tendency chart control, and the processing instruction of the corresponding attribute information of data element control may include that will belong to Property information is converted to graphical information.Such as after reading attributes information, tendency chart is converted by attribute information, passes through broken line control Or straight line control is shown.Wherein, the tendency chart is shown generally in conjunction with picture control, such as in the bottom of tendency chart Show picture.
In the embodiment of the present invention, after generating document template, the document template generation document can use, and further The document that output or printing generate, is illustrated below by one embodiment.
Referring to Fig. 2, the present invention provides a kind of embodiments of the method for the generation method of document.The embodiment of the present invention side Method includes:
S201: the document template including at least one document control is obtained, the document control includes at least one data First control.
Wherein, data element control refers to the control for needing combined data to show, such as may include label control, text Perhaps wherein tendency chart control may include straight line control, broken line control or arrow control etc. to tendency chart control etc. to control.Institute It states in document control other than the data element control, can also include at least one layout control.Wherein layout control refers to Be not need combined data, the control directly displayed, such as may include graphical control or picture control, graphical control can To include rectangle control or oval control etc., picture control is for showing picture.
S202: the corresponding control related information of the document template is obtained.
Wherein, indicate that the corresponding attribute of each data element control obtains data, each number in the control related information It is obtained in data according to the corresponding attribute of first control and respectively includes the corresponding attribute reading position of each data element control.
S203: according to the corresponding attribute reading position of each data element control, the corresponding category of each data element control is read Property information.
S204: according to the corresponding attribute information of each data element control, carrying out attribute assignment to each data element control, raw At the corresponding document of the document template.
In the present embodiment, the document control can also include at least one layout control, any one data element control Attribute obtains data further include: the corresponding layout control of data element control;Attribute is carried out to any one described data element control After assignment, the method can also include: that will show in conjunction with data element control layout control corresponding with the data element control Show.
In the present embodiment, after due to reading attributes information, such as attribute is had read by database languages such as sql and is believed After breath, data element control can be given with indirect assignment, attribute information can also be carried out carrying out again after certain data processing Assignment.Therefore, it can also include: to believe the corresponding attribute of the data element control that the attribute of any one data element control, which obtains data, The processing of breath indicates.
For example, the data element control is corresponding if any one described data element control is text control or label control The processing instruction of attribute information may include modifying the information type and/or format of attribute information.Such as reading attributes information it Afterwards, attribute information is converted into the specific format of document template and then is assigned to corresponding data element control;If described any A data element control is tendency chart control, and the processing instruction of the corresponding attribute information of data element control may include believing attribute Breath is converted to graphical information.Such as after reading attributes information, convert tendency chart for attribute information, by broken line control or Straight line control is shown.Wherein, the tendency chart is shown generally in conjunction with picture control, such as is shown in the bottom of tendency chart Picture.
In the present embodiment, after carrying out attribute assignment to each data element control, it can pass through each data element control Part shows the corresponding attribute information of each data element control.For example, can be shown after to label control assignment by label control Show attribute information: " name: Zhang San ".
By the corresponding embodiment of the method for Fig. 2, the corresponding document of document template of different patterns can be generated, such as is distinguished The corresponding document of the first document template and the corresponding document of the second document template are generated, wherein the first document template and the second list It is different according to the pattern of template.
In embodiments of the present invention, according to the difference of data element control type, one or more data element controls can be passed through Part forms " single choice " or " multiselect " mode, i.e., joint shows one or more options.
In embodiments of the present invention, as shown in figure 3, can according to the type of data element control to the attribute information of reading into After row processing, such as acquisition document template, classify to any one the data element control for including in document template, if any A data element control belongs to text control or label control, can after reading the corresponding attribute information of data element control Directly to carry out being assigned to the data element control, the attribute information of reading is shown, or the attribute information is converted into document mould After the display format of plate, it is assigned to the data element control, the attribute information after showing format transformation;If any one data element control Part belongs to tendency chart control, after reading the corresponding attribute information of data element control, by the attribute information be converted to broken line, After the tendency charts such as arrow, it is assigned to the data element control, can be laid out the tendency chart combination picture control etc. after conversion at this time Control is shown, layout control can not also be combined to directly display.
The generation method of corresponding document template shown in FIG. 1, the present invention also provides corresponding Installation practice, lower mask Body explanation.
Referring to Fig. 4, the present invention provides a kind of Installation practices of the generating means of document template.
The embodiment of the present invention device comprises determining that unit 401, acquiring unit 402, the first generation unit 403 and second Generation unit 404.
Determination unit 401 is for determining at least one document control.
In embodiments of the present invention, document control refers to the control for showing data in document template, in this reality It applies in example, the document control includes at least one data element control.Wherein, data element control refers to needing combined data aobvious The control shown, such as may include label control, text control or tendency chart control etc., wherein tendency chart control may include Straight line control, broken line control or arrow control etc..
It can also include at least one layout control in the document control other than the data element control.Wherein Layout control refers to the control for not needing combined data, directly displaying, such as may include graphical control or picture control, Graphical control may include rectangle control or oval control etc., and picture control is for showing picture.
Acquiring unit 402 obtains data for obtaining the corresponding attribute of each data element control.
In embodiments of the present invention, it in order to generate document by general a set of process, needs generating document mould When plate, each data element control in document template is obtained into data with attribute and is associated.Wherein, attribute obtains what data referred to It is the data for obtaining the corresponding attribute information of data element control, each data attribute information being assigned in document template First control produces corresponding document.
Wherein, the corresponding attribute of each data element control, which obtains in data, respectively includes the corresponding category of each data element control Property reading position can read out each attribute member therefore according to the corresponding attribute reading position of each data element control The attribute information of control.
In the present embodiment, if the document control further includes at least one layout control, the category of any one data element control Property obtain data can also include: layout control corresponding with the data element control, allow the data element control with it is corresponding Layout control combine display.
First generation unit 403 is for generating control related information.
Data are obtained according to each data element control and the corresponding attribute of each data element control, control can be generated Related information indicates that the corresponding attribute of each data element control obtains data in the control related information.
Second generation unit 404 is used to generate the document template including at least one document control.Wherein, generation The document template includes at least one described document control, and is able to indicate that each document control in the document template In the position that is located at.
In the embodiment of the present invention, the document template is corresponding with the control related information, and control association letter Indicate that the corresponding attribute of each data element control obtains data in breath, thus can according to the control related information, The corresponding attribute information of each data element control in the document template is got, and according to the attribute information to each number Directly or indirectly assignment is carried out according to first control, that is, produces corresponding document.
According to the above-mentioned technical solution, in the embodiment of the present invention, the document template of generation is opposite with control related information It answers, wherein control related information is able to indicate that the corresponding attribute of each data element control of document template obtains data. Therefore, it when using document template generation document, can be got respectively according to control related information by general a set of process The corresponding attribute information of a data element control, does not need for the individually designed process of document template, thus simplify operation, and It does not need to safeguard a large amount of computer code, reduce cost and improves system effectiveness.
For example, the first document template and the second document template are generated by the corresponding Installation practice of Fig. 4 respectively, In the first document template and the second document template pattern it is different, such as included data element control number or type not Together, since the first document template is corresponding with the first control related information, the second document template and the second control related information phase It is corresponding, therefore still can be divided by a set of general process using the first control related information and the second control related information The corresponding attribute information of each data element control in the first document template and each in the second document template is not got The corresponding attribute information of data element control, to generate the first document and the second document.And a set of process corresponds to a set of calculating Machine code also only needs a set of computer code even if there are many quantity of document template.
In the present embodiment, after due to reading attributes information, such as attribute is had read by database languages such as sql and is believed After breath, corresponding data element control can be given with indirect assignment, attribute information can also be carried out after certain processing again into Row assignment.Therefore, the attribute of any of at least one described data element control data element control obtains data further include: to this The processing of the corresponding attribute information of data element control indicates.Described device can also include processing unit, and the processing unit is used Before generation unit 504 carries out attribute assignment to any one described data element control, indicated according to the processing, to the data The corresponding attribute information of first control carries out data processing.
For example, if any one described data element control is text control or label control, the data element control pair The processing instruction for the attribute information answered may include modifying the information type and/or format of attribute information.Such as reading attributes letter After breath, attribute information is converted into the specific format of document template and then is assigned to corresponding data element control;If described Any one data element control is tendency chart control, and the processing instruction of the corresponding attribute information of data element control may include that will belong to Property information is converted to graphical information.Such as after reading attributes information, tendency chart is converted by attribute information, passes through broken line control Or straight line control is shown.Wherein, the tendency chart is shown generally in conjunction with picture control, such as in the bottom of tendency chart Show picture.
The generation method of corresponding document shown in Fig. 2, the present invention also provides corresponding Installation practices, below specifically It is bright.
Referring to Fig. 5, the present invention provides a kind of Installation practices of the generating means of document.
The embodiment of the present invention device includes: first acquisition unit 501, second acquisition unit 502,503 and of reading unit Generation unit 504.
First acquisition unit 501 is for obtaining the document template including at least one document control, the document control packet Include at least one data element control.
Wherein, data element control refers to the control for needing combined data to show, such as may include label control, text Perhaps wherein tendency chart control may include straight line control, broken line control or arrow control etc. to tendency chart control etc. to control.Institute It states in document control other than the data element control, can also include at least one layout control.Wherein layout control refers to Be not need combined data, the control directly displayed, such as may include graphical control or picture control, graphical control can To include rectangle control or oval control etc., picture control is for showing picture.
Second acquisition unit 502 is for obtaining the corresponding control related information of the document template.
Wherein, indicate that the corresponding attribute of each data element control obtains data, each number in the control related information It is obtained in data according to the corresponding attribute of first control and respectively includes the corresponding attribute reading position of each data element control.
Reading unit 503 is used to read each data element control according to the corresponding attribute reading position of each data element control The corresponding attribute information of part.
Generation unit 504 is used to carry out each data element control according to the corresponding attribute information of each data element control Attribute assignment generates the corresponding document of the document template.
In the present embodiment, the document control can also include at least one layout control, any one data element control Attribute obtains data further include: the corresponding layout control of data element control;Described device can also include display unit, described After display unit carries out attribute assignment to any one described data element control for generation unit 504, by the data element control It is shown in conjunction with layout control corresponding with the data element control.
In the present embodiment, after due to reading attributes information, such as attribute is had read by database languages such as sql and is believed After breath, data element control can be given with indirect assignment, attribute information can also be carried out carrying out again after certain data processing Assignment.Therefore, it can also include: to believe the corresponding attribute of the data element control that the attribute of any one data element control, which obtains data, The processing of breath indicates.
For example, the data element control is corresponding if any one described data element control is text control or label control The processing instruction of attribute information may include modifying the information type and/or format of attribute information.Such as reading attributes information it Afterwards, attribute information is converted into the specific format of document template and then is assigned to corresponding data element control;If described any A data element control is tendency chart control, and the processing instruction of the corresponding attribute information of data element control may include believing attribute Breath is converted to graphical information.Such as after reading attributes information, convert tendency chart for attribute information, by broken line control or Straight line control is shown.Wherein, the tendency chart is shown generally in conjunction with picture control, such as is shown in the bottom of tendency chart Picture.
In the present embodiment, after carrying out attribute assignment to each data element control, it can pass through each data element control Part shows the corresponding attribute information of each data element control.For example, can be shown after to label control assignment by label control Show attribute information: " name: Zhang San ".
By the corresponding embodiment of the method for Fig. 5, the corresponding document of document template of different patterns can be generated, such as is distinguished The corresponding document of the first document template and the corresponding document of the second document template are generated, wherein the first document template and the second list It is different according to the pattern of template.
In embodiments of the present invention, according to the difference of data element control type, one or more data element controls can be passed through Part forms " single choice " or " multiselect " mode, i.e., joint shows one or more options.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (14)

1. a kind of generation method of document template characterized by comprising
Determine that at least one document control, the document control include at least one data element control, the data element control Refer to the control for needing combined data to show;
It obtains the corresponding attribute of each data element control and obtains data, the corresponding attribute of each data element control obtains in data point It Bao Kuo not the corresponding attribute reading position of each data element control;
Control related information is generated, indicates that the corresponding attribute of each data element control obtains in the control related information Data;
The document template including the document control is generated, the document template is corresponding with the control related information.
2. generation method according to claim 1, which is characterized in that the document control further includes at least one layout control The attribute of part, any one data element control obtains data further include: layout control corresponding with the data element control.
3. generation method according to claim 1 or 2, which is characterized in that the attribute of any one data element control obtains number According to further include: the processing of the corresponding attribute information of data element control is indicated.
4. generation method according to claim 3, which is characterized in that any one described data element control be text control or Person's label control, the corresponding attribute information of data element control processing instruction include: modify attribute information information type and/ Or format;
Any one described data element control is tendency chart control, and the processing of the corresponding attribute information of data element control indicates packet It includes: attribute information is converted into graphical information.
5. a kind of generation method of document characterized by comprising
The document template including at least one document control is obtained, the document control includes at least one data element control, institute It states data element control and refers to the control for needing combined data to show;
The corresponding control related information of the document template is obtained, indicates each data element control in the control related information Corresponding attribute obtains data, and the corresponding attribute of each data element control, which obtains in data, respectively includes each data element control pair The attribute reading position answered;
According to the corresponding attribute reading position of each data element control, the corresponding attribute information of each data element control is read;
According to the corresponding attribute information of each data element control, attribute assignment is carried out to each data element control, generates the list According to the corresponding document of template.
6. generation method according to claim 5, which is characterized in that the document control further includes at least one layout control The attribute of part, any one data element control obtains data further include: the corresponding layout control of data element control;
After carrying out attribute assignment to any one described data element control, the method also includes: by the data element control and it is somebody's turn to do The corresponding layout control of data element control combines display.
7. generation method according to claim 5, which is characterized in that the attribute of any one data element control obtains data also It include: the instruction of the processing to the corresponding attribute information of data element control;
Before carrying out attribute assignment to any one described data element control, the method also includes: it is indicated according to the processing, it is right The corresponding attribute information of the data element control carries out data processing.
8. a kind of generating means of document template characterized by comprising
Determination unit, for determining that at least one document control, the document control include at least one data element control, institute It states data element control and refers to the control for needing combined data to show;
Acquiring unit obtains data for obtaining the corresponding attribute of each data element control, the corresponding category of each data element control Property obtain data in respectively include the corresponding attribute reading position of each data element control;
First generation unit indicates each data element control for generating control related information in the control related information Corresponding attribute obtains data;
Second generation unit, for generating the document template including the document control, the document template and the control are closed It is corresponding to join information.
9. generating means according to claim 8, which is characterized in that the document control further includes at least one layout control The attribute of part, any one data element control obtains data further include: layout control corresponding with the data element control.
10. generating means according to claim 8 or claim 9, which is characterized in that the attribute of any one data element control obtains number According to further include: the processing of the corresponding attribute information of data element control is indicated.
11. generating means according to claim 10, which is characterized in that any one described data element control is text control Or label control, the processing instruction of the corresponding attribute information of data element control includes: to modify the information type of attribute information And/or format;
Any one described data element control is tendency chart control, and the processing of the corresponding attribute information of data element control indicates packet It includes: attribute information is converted into graphical information.
12. a kind of generating means of document characterized by comprising
First acquisition unit, for obtaining the document template including at least one document control, the document control includes at least One data element control, the data element control refer to the control for needing combined data to show;
Second acquisition unit, for obtaining the corresponding control related information of the document template, the control related information middle finger The corresponding attribute of each data element control is shown and obtains data, the corresponding attribute of each data element control obtains to be wrapped respectively in data Include the corresponding attribute reading position of each data element control;
Reading unit, for it is corresponding to read each data element control according to the corresponding attribute reading position of each data element control Attribute information;
Generation unit, for carrying out attribute tax to each data element control according to the corresponding attribute information of each data element control Value, generates the corresponding document of the document template.
13. generating means according to claim 12, which is characterized in that the document control further includes at least one layout The attribute of control, any one data element control obtains data further include: the corresponding layout control of data element control;
Described device further includes display unit, and the display unit is for the generation unit to any one described data element control After carrying out attribute assignment, it will be shown in conjunction with data element control layout control corresponding with the data element control.
14. generating means according to claim 12, which is characterized in that the attribute of any one data element control obtains data Further include: the processing of the corresponding attribute information of data element control is indicated;
Described device further includes processing unit, and the processing unit is for the generation unit to any one described data element control It before carrying out attribute assignment, is indicated according to the processing, data processing is carried out to the corresponding attribute information of the data element control.
CN201511021126.8A 2015-12-30 2015-12-30 A kind of generation method and relevant apparatus of document and document template Active CN105630506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511021126.8A CN105630506B (en) 2015-12-30 2015-12-30 A kind of generation method and relevant apparatus of document and document template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511021126.8A CN105630506B (en) 2015-12-30 2015-12-30 A kind of generation method and relevant apparatus of document and document template

Publications (2)

Publication Number Publication Date
CN105630506A CN105630506A (en) 2016-06-01
CN105630506B true CN105630506B (en) 2019-04-16

Family

ID=56045496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511021126.8A Active CN105630506B (en) 2015-12-30 2015-12-30 A kind of generation method and relevant apparatus of document and document template

Country Status (1)

Country Link
CN (1) CN105630506B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325870B (en) * 2016-08-25 2020-03-10 金蝶软件(中国)有限公司 Method and device for realizing dynamic form API (application program interface)
CN109002334B (en) * 2017-06-05 2021-09-17 阿里巴巴集团控股有限公司 Operation and maintenance platform and data processing method thereof
CN109542408B (en) * 2018-11-27 2022-04-26 深圳市关运通科技有限公司 Intelligent template configuration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067786A (en) * 2007-07-02 2007-11-07 华为技术有限公司 Generation method and apparatus for report condition inputting interface
CN102207854A (en) * 2009-12-28 2011-10-05 海洋王照明科技股份有限公司 Method, device and system for generating monitoring interfaces of equipment
CN103197925A (en) * 2013-02-25 2013-07-10 用友软件股份有限公司 Bill displaying device and bill displaying method
CN104267964B (en) * 2014-10-10 2017-10-24 北京嘉和美康信息技术有限公司 A kind of template generation device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5183150B2 (en) * 2007-10-30 2013-04-17 アズビル株式会社 Information linkage window system and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067786A (en) * 2007-07-02 2007-11-07 华为技术有限公司 Generation method and apparatus for report condition inputting interface
CN102207854A (en) * 2009-12-28 2011-10-05 海洋王照明科技股份有限公司 Method, device and system for generating monitoring interfaces of equipment
CN103197925A (en) * 2013-02-25 2013-07-10 用友软件股份有限公司 Bill displaying device and bill displaying method
CN104267964B (en) * 2014-10-10 2017-10-24 北京嘉和美康信息技术有限公司 A kind of template generation device

Also Published As

Publication number Publication date
CN105630506A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN104572096B (en) A kind of multimodal data visual development method and platform based on WEB
CN105339889B (en) The technology that language translation for computer application localizes
CN105487864A (en) Method and device for automatically generating code
CN106936871A (en) The method and device of showing interface data
CN107886439A (en) Insurance products development approach, device, equipment and computer-readable recording medium
JP2009518748A5 (en)
CN105630506B (en) A kind of generation method and relevant apparatus of document and document template
CN107273122A (en) Based on decoupling mechanism can iteration set up operation system method and its terminal
US9977655B2 (en) System and method for automatic extraction of software design from requirements
CN109375901A (en) Interface message management method, device, computer equipment and storage medium
CN104850027B (en) A kind of CAN data-interfaces modeling automatic generation method and system
CN104063361A (en) Report design method and system
CN105786921B (en) A kind of the data module method for transformation and device of non-structured document
CN104572577B (en) Mathematical formulae processing method and processing device
CN107992275A (en) Document Method of printing, device, computer equipment and storage medium
CN101908093A (en) Electronic medical record and method and system for controlling medical process on the basis of same
CN108984499A (en) Method for processing report data and device, electronic equipment and readable storage medium storing program for executing
CN109710258A (en) WeChat applet interface generation method and device
CN110532041A (en) Regulation engine method for parameter configuration, device, computer equipment and storage medium
CN109213485A (en) A kind of text folds implementation method, terminal device and storage medium
CN105589686A (en) Template-based information input and printing method and device under WinCE (Windows Embedded Compact) platform
CN112750529A (en) Intelligent medical inquiry device, equipment and medium
CN109542878A (en) A kind of list creation techniques and device
CN105912723B (en) A kind of storage method of custom field
CN102867067A (en) Device and method for data integration processing for heterogenous system

Legal Events

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