CN103955345A - Data printing method and system - Google Patents

Data printing method and system Download PDF

Info

Publication number
CN103955345A
CN103955345A CN201410165535.4A CN201410165535A CN103955345A CN 103955345 A CN103955345 A CN 103955345A CN 201410165535 A CN201410165535 A CN 201410165535A CN 103955345 A CN103955345 A CN 103955345A
Authority
CN
China
Prior art keywords
data
printing
information
server
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410165535.4A
Other languages
Chinese (zh)
Other versions
CN103955345B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201410165535.4A priority Critical patent/CN103955345B/en
Publication of CN103955345A publication Critical patent/CN103955345A/en
Application granted granted Critical
Publication of CN103955345B publication Critical patent/CN103955345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a data printing method and a data printing system. The data printing method comprises the steps that printing information is configured; template list information capable of being used is obtained according to printing types; a printing template is selected according to the printing types; predefined template basic data, paragraph information and element information are obtained according to the template number; paragraphs conforming to conditions generate paragraph information required to be supplemented and typed in; the paragraph information required to be supplemented and typed in is subjected to type-in operation, and transaction printing supplementary data is generated; the paragraphs conforming to conditions are sequentially subjected to analysis to generate final printing data; the finial printing data is sent to a printer server for printing. The data printing method and the data printing system have the advantages that data is converted into information and elements, a customized data printing method is built through using elements, clauses, templates and transaction, the defects of low-efficiency response to printing requirement change and resource consumption waste in the prior art are overcome, and the precise, efficient and stable data printing is realized.

Description

A kind of data-printing method and system
Technical field
The present invention relates to figure punch technology, particularly about a kind of data-printing method and system.
Background technology
Data-printing is all extremely important operation link in numerous industries, by data-printing, correct data can be printed on paper according to pattern accurately, as voucher or give over to archives etc.In bank finance field, the print application of data is more extensive, almost relates to each business, and the frequency of printing and number of copies are very big.The data-printing method of banking industry system can be summarised as three kinds substantially at present, will respectively existing three kinds of methods be introduced below.
The first: require each operational printing function to design according to current printing, determine all data item that each printing function will be printed, for example, print creditor in loan agreement, borrower, the amount of money, time limit, grace period etc.; And definite each information putting position and font format on paper.Foregoing is just fixed to this design in banking system when banking system realizes after determining.This Method of printing is widely used, but has obvious drawback, because the number of banking kind is huge, for each printing function, all may occur adjusting the situation of print data and print format, this situation that right and wrong are usually shown in banking system.Under this existing Method of printing, only re-start printing function design and development, will inevitably produce the expense of a large amount of manpower and materials, and can not make fast printing function meet new printing requirement, even in of short duration design and development process, can introduce the risk that banking system changes, carry out and bring larger harm with business to banking system is stable.
The second: reduce direct type information, then supplement other information with manual mode.Specific practice: only print basic critical data item in the time of design printing function, other data of adjusting possibly variation are supplemented by artificial hand-written mode.Although this Method of printing provides certain dirigibility aspect data, adopt the bothersome effort of hand-written supplementary mode, affect operating efficiency, also easily because clerical mistake produces mistake, make data inaccurate simultaneously.
The third: cover is beaten mode.First design " printing framework ", print which data item, and the position of data item on paper control and font format etc., its advantage is to design complicated form by the processing capacity of Microsoft Office Word.Then " printing framework " duplicated in advance, obtain " semi-manufacture ", should " semi-manufacture " only have framework, but not containing concrete real data; Finally, in the time of real printing, should " semi-manufacture " put back to printer, then concrete real data complement be printed to " semi-manufacture " upper, form final print result.In practical application, when " semi-manufacture " paper placement location can cause the problem of final print data dislocation or serial to some extent when deviation, affect readability and the accuracy of final print result.In addition, require while changing to some extent running into print, this Method of printing has the drawback identical with above-mentioned the first Method of printing, i.e. consumes resources and can not respond fast and print the variation requiring; Meanwhile, the method easily causes the waste of the resources such as " semi-manufacture " paper of making in advance.
Summary of the invention
The embodiment of the present invention provides a kind of data-printing method and device, prints to overcome the response of prior art poor efficiency the problem that requires variation and the consumption waste to resource, has realized accurate, efficient, the stable printing of data.
To achieve these goals, the invention provides a kind of data-printing method, described data-printing method comprises:
Step 1: by type information configuration server, type information is configured, generates and print configuration information storage;
Step 2: print initiation server and obtain transaction master data from data, services server, and initiate data-printing request according to described transaction master data to printing interface server;
Step 3: described printing interface server receives described transaction master data, obtains operational template list information according to printing type from data storage server, and sends to described printing to initiate server described template list information;
Step 4: described printing is initiated server according to described printing type selecting printing template, and resolve type, described transaction master data and the numbering of described printing template and send to described data-printing resolution server by described printing interface server supplementing paragraph information;
Step 5: described data-printing resolution server receives the numbering of described supplementary paragraph information parsing type, transaction master data and printing template, obtains predefined template master data, paragraph information and element information according to described template numbering from described data storage server;
Step 6: the paragraph that described data-printing resolution server meets condition generates needs and supplements the paragraph information of typing, and sends to described printing to initiate server by described printing interface server the described paragraph information that need to supplement typing;
Step 7: described printing is initiated server the described paragraph information that need to supplement typing is carried out to typing operation, generation transaction is printed supplementary data and is sent to described data server to preserve renewal;
Step 8: described printing is initiated server and received the preservation lastest imformation that described data server feeds back, sends to described Data Analysis server by the numbering of printing paragraph information parsing type, transaction master data and printing template by described printing interface server;
Step 9: described data-printing resolution server receives the numbering of described printing paragraph information parsing type, transaction master data and printing template, and the paragraph that condition is met is resolved successively and generated final print data;
Step 10: described data-printing resolution server sends to printer server to print described final print data.
In one embodiment, in described step 1, by type information configuration server, type information is configured, comprises:
Element arrangements step;
Paragraph configuration step;
Template configuration step;
Print classification of type configuration step; And
Print type and contrast configuration step with template.
In one embodiment, described element arrangements step comprises:
Carry out setting or the editor of element implication, element type, element data source, input domain type, data length, input range, element default value and element remark information;
Be that the element that 1-obtains by transaction data carries out the setting of correspondence database field to Data Source;
Carry out the configuration that element uses dictionary.
In one embodiment, described paragraph configuration step comprises: paragraph essential information and show the setting of form, show that according to data dictionary information element while using the setting of element and data-printing in the setting, paragraph of conditional expression shows the setting of form.
In one embodiment, described template configuration step comprises:
Obtain Template Information and paragraph information, carry out the setting of template essential information and printing type, carry out the selection of paragraph information and the setting of paragraph page order that template need to be used.
In one embodiment, described printing type contrasts configuration step with template and comprises:
Obtain existing printing type information and Template Information and increase operation newly;
Obtain existing printing class section mould plate contrast relationship and carry out attended operation.
In one embodiment, in described step 3, before obtaining operational template list information from data storage server according to printing type, described data-printing method also comprises:
After type information being configured through described step 1, judge in described data storage server whether have operational template list information;
If so, obtain operational template list information according to printing type from data storage server, otherwise, return to information and initiate server to described printing.
In one embodiment, before described step 5, described data-printing method also comprises: obtain transaction data from described data server.
In one embodiment, before the paragraph generation needs that in described step 6, condition met supplement the paragraph information of typing, described data-printing method also comprises: judge whether to exist displaying condition to meet and show the paragraph that conditional expression is set up according to the page order of template definition, if carry out described step 6, displaying condition is met and show that the paragraph generation needs of conditional expression establishment supplement the paragraph information of typing.
In one embodiment, before the paragraph in described step 9, condition being met is resolved the complete print data that generation needs print successively, described data-printing method also comprises: judge whether to exist displaying condition to meet and show the paragraph that conditional expression is set up according to the page order of template definition, if, carry out described step 9, the paragraph that condition is met is resolved successively and is generated final print data.
In one embodiment, before judging whether to exist displaying condition to meet according to the page order of template definition and showing the paragraph of conditional expression establishment, described data-printing method also comprises: obtain and preserve the described transaction printing supplementary data of upgrading from described data server.
In one embodiment, the template that is common printing for printing type, the paragraph that condition is met is resolved successively and is generated final print data, comprise: resolve needs by displaying condition and displaying conditional expression and print the paragraph of showing, generate print data, then the headerfooter information using while printing is set, generates final print data.
In one embodiment, be that WORD overlaps the template of beating for printing type, the paragraph that condition is met is resolved successively and is generated final print data, comprise: resolve needs by displaying condition and displaying conditional expression and print the paragraph of showing, generate print data, first obtain by calling WORD control the word file that cover supporting member uses, adjust the print position of each element by bookmark location in word file, generate final print data.
To achieve these goals, the present invention also provides a kind of data printing system, described data printing system comprises: type information configuration server, data storage server, data-printing resolution server, printing interface server, data server, print and initiate server, described data server connects described type information configuration server, server is initiated in data-printing resolution server and printing, described printing interface server connects described data storage server, server is initiated in data-printing resolution server and printing, described data storage server connects described type information configuration server, data-printing resolution server and printing interface server, described data-printing resolution server connects printer and described printing interface server,
Described type information configuration server is configured type information, generates and prints configuration information;
Described printing is initiated server and is comprised:
Transaction data calls receiving trap, for obtaining transaction master data from described data server and showing;
Print request apparatus for initiating, send data-printing request for the printing interface device to described, the Template Information that described data-printing request comprises described transaction master data, choice for use and parsing type;
Template selecting device, shows for the stencil-chosen list information that receives described printing interface device transmission, and according to printing type selecting printing template;
Supplementary data transmission and reception apparatus is printed in transaction, carries out typing for the typing paragraph information of need to supplementing that receives described printing interface device transmission, and transaction printing supplementary data is sent to data server;
Described printing interface server comprises:
Print request basic data transmission and reception apparatus, initiate the transaction master data of server transmission, Template Information and the parsing type of choice for use for receiving described printing;
Print type association template acquisition device, for obtaining the operational Template Information of this printing type according to the printing type of described basic transaction data from described data storage server; (if do not existed operational Template Information to return to information)
Template selecting, for sending to described printing to initiate server the available Template Information obtaining or information;
Print and supplement paragraph information transmission and reception apparatus, the paragraph information that need to supplement typing sending for receiving described printing resolution server, and send to described printing to initiate server the described paragraph information that need to supplement typing;
Described data-printing resolution server comprises:
Print request basic data receiving trap, for receiving the transaction master data of described printing interface device transmission, Template Information and the parsing type of choice for use;
Transaction data calls receiving trap, obtains transaction data and transaction printing supplementary data for the transaction master data by described from described data server;
Template | paragraph | element resolver, for calling from described transaction data, receiving trap obtains described transaction data and transaction is printed supplementary data and obtained template master data, paragraph information and element information according to the template numbering of described Template Information from described data storage server, carrying out template master data, paragraph information and element information resolves, splice the data after each paragraph is resolved by the paragraph page order of template-setup, generate print data;
WORD control calling device, for WORD cover supporting member, in described template | paragraph | element resolver is resolved and is generated after described print data, first obtain by calling WORD control the word file that described WORD cover supporting member uses, adjust the print position of each element by bookmark location in word file, generate final print data;
Headerfooter treating apparatus, for common printing template, in described template | paragraph | element resolver is resolved and is generated after described print data, and the headerfooter information using while printing is set, and generates final print data;
Print data dispensing device, for sending to printer by described final print data.
In one embodiment, described type information configuration server comprises:
Element setting device, for carrying out setting or the editor of element implication, element type, element data source, input domain type, data length, input range, element default value and element remark information;
Paragraph setting device, for carry out paragraph essential information and show the setting of form, element is shown form while showing the setting of conditional expression, setting that paragraph uses element and data-printing according to data dictionary information setting;
Template-setup device, for obtaining Template Information and paragraph information, carries out the setting of template essential information and printing type, carries out the selection of paragraph information and the setting of paragraph page order that template need to be used;
Print classification of type setting device, print classification of type or read existing printing classification of type information from described data storage server and edit for newly-increased, and the printing categorical data information setting is sent to described data storage server preserving;
Print type and contrast setting device with template, increase operation newly for obtaining existing printing type information and Template Information, and obtain existing printing class section mould plate contrast relationship and carry out attended operation.
In one embodiment, described data storage server comprises:
Element definition memory storage, the element information arranging for storing described element setting device;
The single device of paragraph definition storage, for stored paragraph information;
Template definition memory storage, for storing template master data and paragraph page order information;
Cover is made WORD template memory storage, the WORD template file information of beating for storing cover;
Print class section mould plate contrast memory storage, for storing the class section mould plate contrast information of printing;
Print classification of type memory storage, for storing the classification of type storage information of printing.
In one embodiment, described data server comprises:
Transaction data memory storage, for store transactional data, initiates server calls for described data-printing resolution server and printing;
Supplementary data memory storage is printed in transaction, while printing, need to supplement the element information of typing for storing;
List structure field information memory storage, for storing traffic table and the field information for described element setting device;
Data dictionary information-storing device, for storing data dictionary information.
The beneficial effect of the embodiment of the present invention is; the present invention is by data granulating, element; use element, clause, template and transaction to construct customizable data Method of printing; overcome the response of prior art poor efficiency and printed requirement variation and the consumption waste to resource, accurate, efficient, stable Method of printing is provided.The present invention beats by embedding Word cover, can support abundant print format, meets various printing requirements.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the structural representation of the data printing system of the embodiment of the present invention;
Fig. 2 is the structured flowchart of the element setting device 101 of the embodiment of the present invention;
Fig. 3 is the structured flowchart of the paragraph setting device 102 of the embodiment of the present invention;
Fig. 4 is the structured flowchart of the template-setup device 103 of the embodiment of the present invention;
Fig. 5 is the structured flowchart of the printing classification of type setting device 104 of the embodiment of the present invention;
Fig. 6 is the structured flowchart of the printing class section mould plate contrast setting device 105 of the embodiment of the present invention;
Fig. 7 is the structured flowchart of the data storage server 2 of the embodiment of the present invention;
Fig. 8 is the structured flowchart of the data-printing resolution server 3 of the embodiment of the present invention;
Fig. 9 is the structured flowchart of the printing interface server 4 of the embodiment of the present invention;
Figure 10 is the structured flowchart of the data server 5 of the embodiment of the present invention;
Figure 11 is the structured flowchart that server 6 is initiated in the printing of the embodiment of the present invention;
Figure 12 is the structured flowchart of the printer 7 of the embodiment of the present invention;
Figure 13 is the data-printing method flow diagram of the embodiment of the present invention;
Shown in Figure 14, by type information configuration server, type information is configured
Figure 15 is that after the configuration of the embodiment of the present invention, element information is briefly shown schematic diagram;
Figure 16 and Figure 17 are that schematic diagram is shown in the paragraph configuration of the embodiment of the present invention;
Figure 18 is that the template configuration of the embodiment of the present invention is shown schematic diagram;
Figure 19 is that the embodiment of the present invention arranges rear printing classification of type information schematic diagram;
Figure 20 is that the embodiment of the present invention arranges the configuration schematic diagram that contrasts of printing type and template.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of data printing system, and this data printing system comprises: server 6 is initiated in type information configuration server 1, data storage server 2, data-printing resolution server 3, printing interface server 4, data server 5 and printing.
Data server 5 connects type information configuration server 1, data-printing resolution server 3 and prints and initiate server 6; Server 6 is initiated in printing interface server 4 connection data storage servers 2, data-printing resolution server 3 and printing; Data storage server 2 connects type information configuration server 1, data-printing resolution server 3 and printing interface server 4, and data-printing resolution server 3 connects printer and described printing interface server 4.
Type information configuration server 1 is configured type information, generates and prints configuration information.As shown in Figure 1, type information configuration server 1 comprises: element setting device 101, and paragraph setting device 102, template-setup device 103, prints classification of type setting device 104 and printing type contrasts setting device 105 with template.
Element setting device 101 can be for carrying out setting or the editor of element implication, element type, element data source, input domain type, data length, input range, element default value and element remark information, newly-increased type element information or read existing element information from data storage server 2 and edit, and the information after arranging is sent to data storage server 2 preserve.In addition, when element arranges, need to from data server 5, obtain Database field information and data dictionary information.The element information of preserving in data storage server 2 can be for paragraph setting device 102.
Referring to Fig. 2, element setting device 101 comprises: element information setting unit 11, element database field contrast setting unit 12, element information transmission receiving element 13 and data dictionary information are called receiving element 14, and the additions and deletions that use this element setting device 101 can carry out element change looks into operation.
Element is the fundamental that notebook data is printed, each element can be set for attribute of an element: element numbering, element implication, element English name, (being divided into 1-obtains by transaction data in element data source, the typing of 2-foreground, 3-is to have element as basis), data type (is divided into 1-character string, 2-numerical value, the 3-date), data length, input domain type (is divided into 1-input frame, 2-text box, 3-combobox, 4-radio box, 5-multiselect frame), element typing default value, element span, element uses dictionary, infrastructure elements, remark information and element correspondence database field (are the specific data item of certain kinds business, form with table English name A+ field English name B is preserved) etc. information.
Wherein, element numbering is unique, and when newly-increased element, flowing water generates, and element English name form is p_+ element numbering, is also unique.When in Data Source, " 1-obtains by transaction data " represents to carry out data-printing operation, the value of this element directly obtains from data server, and value object is determined by Database field corresponding to element, printed while use and cannot modify for the value of this element.The value that Data Source represents this element for " typing of 2-foreground " is by foreground typing, some definition of this element while accordingly also needing typing is set, as data type, data length, input domain type, element typing default value, element span, element use the information such as dictionary.When Data Source represents that for " 3-is to have element as basis " this element uses, value is the value of its infrastructure elements, but the attended operation of can modifying in the time that transaction data is printed supplementary typing in the time of data-printing, also needs to arrange the information such as data type, data length, input domain type, element typing default value, element span, element use dictionary for this dvielement.
Be the element that 1-obtains by transaction data for Data Source, when value, obtain from the corresponding field (the element correspondence database field arranging element information) of data server 5 transaction data storage unit 91 (as shown in figure 10) corresponding record according to basis of business data, for other elements (Data Source is that the typing of 2-foreground, 3-are to have element as basis), prints value and print supplementary data storage unit 92 (as shown in figure 10) corresponding content p_ numbering (element English name) acquisition from the transaction of data server 5.Such as, the application can increase the element (the automatic called after p_11 of element English name) that is numbered 11 newly, arrange its implication for whether the automatic extension, element data source obtains by transaction data for 1-, correspondence database field is that A+A1 (represents the A1 field of the A table using, data item is the whether automatic extension in * * * * business), element use dictionary for whether mark 130 (dictionary meanings be 0 no 1 be), data type is 1-character string, newly-increased 12 the element that is numbered simultaneously, it is moon automatic extension number that its implication can be set, element data source 1-obtains by transaction data, correspondence database field is that A+A2 (represents the A2 field of the A table using, data item is the moon automatic extension number in * * * * business), data type is 2-numerical value, if print, the moon automatic extension number arranging in can Update Table storehouse, now can increase again one newly and be numbered 13 type element, implication can be still moon automatic extension number (or we can add in (manual typing) or remark information dated in implication), Data Source is that 3-is to have element as basis, infrastructure elements is 12, data type is 2-numerical value, input domain is input frame, input range is [1, 12], data length is 2, while printing like this, if used this element, can first show at the typing page value of element 12, and allow amendment (integer that typing value scope is 1-12), user can determine whether modify as required.
In the setting up procedure of above type element, element information setting unit 11 is mainly used in arranging implication, element English name, element data source, data type, data length, input domain type, element typing default value, element span and the remark information of element.12 elements that element data source 1-is obtained by transaction data of element database field contrast setting unit are effective, be used for arranging element correspondence database field: by element database field contrast setting unit 12, can obtain table inventory and the field inventory that can contrast use from data server 5, the concrete field of element and database is set up to incidence relation (available tran list inventory, table need be initialised to data server 5 with associated value mode and the field inventory of transaction), as element 11 is set in example, 12 correspondence database field is A+A1, A+A2.
Element information transmission receiving element 13 can call the element information of having preserved from data storage server 2 and edits for element information setting unit 11, element database field contrast setting unit 12 and the element information transmission data storage server 2 setting is preserved, be that 3-is to have element as basic element for Data Source, when being set, infrastructure elements also needs to select to arrange by this unit, as the infrastructure elements of element 13 is set in example.
Data dictionary information is called receiving element 14 for carrying out the setting of element use dictionary.Call receiving element 14 by data dictionary information and can obtain operable data dictionary information from data server 5, the exhibition information of element and data dictionary are set up to incidence relation, use dictionary for whether mark 130 of data dictionary as the element of element 11 is set in example.
Paragraph setting device 102 can be for carrying out paragraph essential information and showing the setting of form, show that according to data dictionary information element while using the setting of element and data-printing in the setting, paragraph of conditional expression shows the setting of form.
As shown in Figure 3, paragraph setting device 102 at least comprises paragraph setting unit 21, displaying condition setting unit 22, element displaying formatting unit 23, paragraph information transmission receiving element 24, element information calls receiving element 25 and data dictionary information is called receiving element 26.
Paragraph setting unit 21 is for arranging numbering, type, paragraph content and the form of paragraph.Wherein paragraph numbering is unique, and when newly-increased paragraph, flowing water generates.Segment type comprises header, footer, common paragraph and WORD paragraph, common paragraph only uses once while printing, header, footer can be in every one page displayings of printing, and this three class is all the template of common printing (as the one or two kind of Method of printing in technical background description) for printing type.WORD paragraph is used in cover and beats (as the third Method of printing in technical background description, using word file template and control), and its form directly arranges on word file.For example, the application can arrange paragraph 1 for common paragraph: paragraph content is for " Article 1 is opened the automatic extension function of * * * * business, moon automatic extension, number was [13] " (what [13] represented that this place uses is to be numbered 13 moon element automatic extension numerical value to fill, " Article 1 is opened the automatic extension function of * * * * business to content of text in paragraph, the moon automatic extension number for " can manual typing or from copying stickup typing, in paragraph, the insertion of type element use is called receiving element 25 by element information and from data storage server 2, is obtained the use that also selection needs of operational element list), while setting, can carry out overstriking to the each several part content in paragraph as required, underscore, the formattings such as italic, the setting of headerfooter paragraph and common paragraph are similar.For WORD paragraph, type element and the corresponding WORD bookmark name that on its WORD template file, each position is used only need to be set, such as WORD paragraph 2 " 1[13] moon automatic extension number ", while representing to print, to be filled into label on word file be the position of moon automatic extension number to the value of element 13, the 1st, sequence field, can arrange the contrast relationship of multiple elements and WORD bookmark as required in a WORD paragraph.
Show that condition setting unit 22 is for editing the displaying condition of paragraph and showing conditional expression, 22 of this displaying condition setting unit are for common paragraph.Displaying condition comprises printing shows, supplements typing displaying, for distinguishing the supplementary typing whether paragraph needs the information of carrying out, such as the paragraph 1 for arranging above, if displaying condition is set shows for printing, this paragraph is not shown in the time supplementing typing, if need before printing to supplement moon typing automatic extension number according to client's actual selection, displaying condition can be set and show for supplementing typing.Show that conditional expression is to showing supplementing of condition: if be provided with displaying conditional expression, need the displaying conditional expression arranging to set up, just can show corresponding paragraph.Show whether the setting of conditional expression becomes Rob Roy realization by the relation of service condition element value and conditional value (relation according to element implication can for being greater than, being less than, being more than or equal to, being less than or equal to, equaling, being not equal to, comprising etc.).The insertion use of displaying conditional expression conditional element is called receiving element 25 by element information and from data storage server 2, is obtained operational element list and select the use needing, conditional value must use according to the data type of the condition element of selecting and element and use dictionary different different with conditional relationship, if have, the condition unit of selecting uses dictionary (element uses dictionary to have setting), can call receiving element 26 by data dictionary information and select one or more concrete conditional values, conditional relationship can use and equal, be not equal to, comprise, if it is numerical value or character string or date that condition element does not use dictionary and data type, conditional value is manual typing actual conditions numerical value, character string or date, and conditional relationship can use and be greater than, is less than, is more than or equal to, is less than or equal to, equals, is not equal to.Equally taking paragraph 1 as example, the displaying condition that the application arranges is shown for printing, show conditional expression for whether automatic extension=be that (backstage saves as " [11]=1 ", what [11] expression was used is that element is numbered 11 element, whether element implication for the automatic extension, 1 represents it is corresponding actual database value, conditional relationship use equal=), represent actual while carrying out data-printing, if obtain the value (being the value of element 11) of the whether automatic extension of this * * * * business and be 0 no, do not meet and show conditional expression, while carrying out data-printing, this paragraph is not shown printing.
Element show formatting unit 23 for the element editing paragraph setting unit 21 and use the displaying form in paragraph, moon automatic extension that for example paragraph 1 uses is counted element 13, its numerical value can be set print time, capitalization is shown or small letter displaying etc., date format can arrange as required that its numerical value shows that form is 20121201,2012-12-01, on Dec 1st, 2012, two 〇 on Dec one, 1 or two etc.
Paragraph information send receiving element 24 for the paragraph information calling reception from data storage server 2 and preserved for paragraph setting unit 21, show that condition setting unit 22, element show that formatting unit 23 is edited and the element information setting is sent to data storage server 2 and preserve.
Element information calls receiving element 25 for calling the element information of having preserved from data storage server 2 for showing condition setting unit 22, shows the choice for use of conditional expression element conditional element 11 as paragraph 1 is set in example.
Data dictionary information is called receiving element 26 and is shown that for paragraph conditional expression conditional value is used the setting of dictionary.Call receiving element 26 by this data dictionary information and can obtain the operable data dictionary information list of condition element from data server 5, select as required one or more values and condition element to set up incidence relation, as in above-mentioned example, arrange condition element 11 conditional values be data dictionary whether in mark 130 1-be.
Template-setup device 103, for obtaining Template Information and paragraph information, carries out the setting of template essential information and printing type, carries out the selection of paragraph information and the setting of paragraph page order that template need to be used.As shown in Figure 4, template-setup device 103 comprises: template master data setting unit 31, paragraph page order setting unit 32, Template Information send receiving element 33 and paragraph information is called receiving element 34.
Wherein, template master data setting unit 31 is for arranging template essential information, the numbering, title, printing type, the cover that comprise template are beaten word file of use etc., wherein template numbering is unique, when newly-increased template, flowing water generates, printing type comprises that common printing and cover print, and cover is beaten the word file using needs typing for printing type for overlapping when printing.
The paragraph that paragraph page order setting unit 32 is used for editing template and the page order of each paragraph, the template that wherein setting of each paragraph page order is only common printing to printing type is effective.
Template Information transmission receiving element 33 for call reception from data storage server 2, edit for template master data setting unit 31 by the template essential information of having preserved and the WORD template file that cover is played use, and the template essential information setting and WORD template file transmission data storage server 2 are preserved; Receive the template paragraph page order information of having preserved and edit for paragraph page order setting unit 32, and the template paragraph page order information transmission data storage server 2 setting is preserved.
Paragraph information call receiving element 34 for call from data storage server 2 paragraph information (being divided into this template has used with untapped) of having preserved for paragraph page order setting unit 32 select these templates need to paragraph information sequence as required.
Print classification of type setting device 104 and print classification of type or read existing printing classification of type information from described data storage server and edit for newly-increased, and the printing categorical data information setting is sent to described data storage server preserve.As shown in Figure 5, printing classification of type setting device 104 comprises: print classification of type setting unit 41 and print classification of type information transmission receiving element 42.
The concrete dimension of printing the classification setting of type can be used and need to carry out refinement division by reality, it can be the class of business that a class is concrete, also can be using some the concrete fields under class of business also as the foundation of dividing, it is unique printing type number, when newly-increased printing type, flowing water generates.As we can arrange, in business A, whether the automatic extension is that the printing type number that is is 1, whether the automatic extension is no printing type number is 2, in business B, whether the automatic extension is that the printing type number that is is 3, and the automatic extension be no printing type number is 4 etc.
Printing classification of type setting unit 41 prints classification of type or existing printing classification of type information is edited for newly-increased.Printing classification of type information sends receiving element 42 and edits and the printing categorical data information setting is sent to data storage server 2 and preserve for printing classification of type setting unit 41 for read existing printing type from data storage server 2.
Printing type contrasts setting device 105 and increases operation newly for obtaining existing printing type information and Template Information with template, and obtains existing printing class section mould plate contrast relationship and carry out attended operation.Referring to Fig. 6, print class section mould plate contrast setting device 105 and comprise: printing class section mould plate contrast setting unit 51, the contrast of printing class section mould plate send receiving element 52, printing type information calls receiving element 53 and Template Information calls receiving element 54.
Wherein, printing class section mould plate contrast setting unit 51 is for increasing or safeguard that (print class section mould plate contrast relationship form is to print classification of type 1=> template numbering 1 to the contrast relationship of the template of printing type and set newly, print classification of type and template number to contrast while setting, allow multi-to-multi setting), so that when subsequent transaction is initiated data-printing request, the application can be by printing type from the operable template list of this contrast acquisition of information.
Print the contrast of class section mould plate and send receiving element 52 and edit for printing class section mould plate contrast setting unit 51 for read existing printing class section mould plate contrast relationship from data storage server 2, and the printing class section mould plate contrast information setting is sent to data storage server 2 preserve.
Print type information and call receiving element 53 for reading existing printing type information from data storage server 2 for printing class section mould plate contrast setting unit 51.
Template Information calls receiving element 54 for reading existing Template Information from data storage server 2 for printing class section mould plate contrast setting unit 51.
As shown in Figure 7, data storage server 2 at least make WORD template memory storage 64, print class section mould plate contrast memory storage 65 and print classification of type memory storage 66 by containing element definition memory storage 61, paragraph definition memory storage 62, template definition memory storage 63, cover.
Wherein, element definition memory storage 61 can be for depositing element information, and element information derives from element setting device 101.
Paragraph definition memory storage 62 can be used for depositing paragraph information, and paragraph information derives from paragraph setting device 102.
Template definition memory storage 63 can be used for depositing template master data and paragraph page order information, cover is made WORD template memory storage 64 and is deposited the WORD template file information that cover is beaten, and the WORD template file information that template master data, paragraph page order information and cover are beaten all derives from template-setup device 103.
Print class section mould plate contrast memory storage 65 and can be used for depositing the class section mould plate contrast information of printing, printing class section mould plate contrast information source is in printing class section mould plate contrast setting device 105.
Print classification of type memory storage 66 and can be used for depositing the classification of type storage information of printing, printing classification of type storage information source is in printing classification of type setting device 104.In data storage server 2, each device canned data can receive the element setting device 101 of type information configuration server 1, paragraph setting device 102, template-setup device 103, printing classification of type setting device 104 preserves with the various information that printing class section mould plate contrast setting device 105 sends, and can be according to the element setting device 101 of type information configuration server 1, paragraph setting device 102, template-setup device 103, print classification of type setting device 104 and print class section mould plate contrast setting device 105, the call request that data-printing resolution server 3 and printing interface server 4 are initiated, returning to as required the information needing uses to these devices.
As shown in Figure 8, data-printing resolution server 3 at least comprises printing request basic data receiving trap 71, template | paragraph | and element resolver 72, transaction data call receiving trap 73, print data dispensing device 74, WORD control calling device 75 and headerfooter treating apparatus 76.
Wherein, print transaction essential information (the unique definite transaction of energy), the template essential information (template numbering) of asking basic data receiving trap 71 to send for reception printing interface server 4 and resolve type (being divided into the supplementary paragraph information parsing of 1-and the parsing of 2-printing paragraph information).
Transaction data calls receiving trap 73 for being obtained transaction data information and conclude the business and print supplementary data information for template from data server 5 by transaction essential information | paragraph | and element resolver 72.
Template | paragraph | element resolver 72 is for asking the template numbering that basic data receiving trap 71 is obtained to obtain template from data storage server 2 according to printing, paragraph and element information and transaction data call receiving trap 73 and obtain transaction data information and transaction printing supplementary data information by transaction essential information from data server 5, carry out template, paragraph, element is resolved, splice the data after each paragraph is resolved by the page order of template-setup, generating print data (is that 1-supplements paragraph information parsing if print the parsing type of asking basic data receiving trap 71 to receive, only resolve the paragraph that need to supplement typing by displaying condition and displaying conditional expression, and by generate the paragraph information anti-pass that need to supplement typing to printing interface server 4.Be that 2-prints paragraph information parsing if print the parsing type of asking basic data receiving trap 71 to receive, only resolve by displaying condition and displaying conditional expression the paragraph that needs printing to show, generation print data.The template that is common printing for printing type, this print data need to send headerfooter treating apparatus 76 and process processing, for WORD cover supporting member, this print data need send WORD control calling device 75 and process processing).
Print data dispensing device 74 is for sending to printer 204 by the final print data generating.
WORD control calling device 75 is that WORD overlaps the template of beating for printing type, for WORD cover supporting member, in template | paragraph | element resolver 72 is resolved and is generated after print data, need first to obtain by calling WORD control the word file that cover supporting member uses, adjust the print position of each element by bookmark location in word file, generate final print data.
The template that headerfooter treating apparatus 76 is common printing for printing type, for common printing template, in template | paragraph | element resolver 72 is resolved and is generated after print data, the headerfooter information using need to first printing be set by headerfooter treating apparatus 76 time, generates final print data.
Referring to Fig. 9, printing interface server 4 at least comprises to be printed request basic data transmission and reception apparatus 81, print type association template acquisition device 82, template selecting 83 and prints supplementary paragraph information transmission and reception apparatus 84.
Wherein, print request basic data transmission and reception apparatus 81 for receiving from printing the transaction master data of initiating server 6 and sending, Template Information and the parsing type of choice for use.
Print type association template acquisition device 82 for obtaining the operational Template Information of this printing type association (if do not existed operational Template Information to return to information) according to printing the printing type of asking basic data transmission and reception apparatus 81 to obtain from data storage server 2.
Template selecting 83 is for sending to printing to initiate server 6 the available Template Information obtaining or information.
Print supplementary paragraph information transmission and reception apparatus 84 and resolve for receiving to print the paragraph information that need to supplement typing that dress server 3 sends, and this information is sent to and prints initiation server 6.
Once in complete printing flow process, printing request basic data transmission and reception apparatus 81 can receive and print request basic data for three times from printing initiation server 6: only have for the first time transaction master data, there is no Template Information and resolve type, printing interface server 4 can use printing type association template acquisition device 82 to obtain operational template list; To print again to send after the template of initiating server 6 choice for uses to print request basic data (now basis of business data, Template Information and resolve type and have value for the second time, wherein resolving type is that 1-supplements paragraph information parsing), now printing interface server 4 is printed request basic data transmission and reception apparatus 81 and information can be sent to data-printing resolution server 3, and supplements the supplementary paragraph information that paragraph information transmission and reception apparatus 84 obtains after parsing and initiate server 6 to printing by printing; To print to initiate server 6 typings and supplement to send for the third time after paragraph information and print request basic data (now basis of business data, Template Information and resolve type and have value for the third time, wherein resolving type is that 2-prints paragraph information parsing), now printing interface server 4 is printed request basic data transmission and reception apparatus 81 and information can be sent to data-printing resolution server 3, is resolved and is generated final print data and send printer by data-printing resolution server 3.
Referring to Figure 10, data server 5 at least comprises transaction data memory storage 91, supplementary data memory storage 92, list structure field information memory storage 93 and data dictionary information-storing device 94 are printed in transaction.
Wherein, the Transaction Information that the main storage service system arm's length transaction of transaction data memory storage 91 produces, call for data-printing resolution server 3 and printing initiation server 6, the element data type element value obtaining by transaction data for 1-of originating just derives from this memory storage, obtains print value according to the element correspondence database field defining in element from corresponding transaction record.
When what transaction printing supplementary data memory storage 92 was stored is printing, need to supplement the element information of typing, preserve by transaction+template numbering, preserve separately one for each template of every transaction and print supplementary data, element save value is to print the information of initiating server 6 typings, deposit, as p_13=5^p_14=6, represent for this template of this transaction by element English name+worth form splicing, the value of element 13 is 5, and the value of element 14 is 6.Element data source all obtains from this printing supplementary data as the value of basic type element in the time generating final print data to have element for the typing of 2-foreground and 3-.Meanwhile, if this transaction is used same template again to initiate to print while request, in the paragraph information that need to supplement typing, the value of typing preservation last time is shown in meeting, resolves the final print data of generation as do not needed click preservation directly to carry out secondary without amendment.
List structure field information memory storage 93 can be for the traffic table of element setting device 101 and field information for depositing, when the element correspondence database field information of element is set.
Data dictionary information-storing device 94 is for the data dictionary information of storage system, while the dictionary information of element, displaying conditional expression that paragraph setting device 102 arranges paragraph being set for element setting device 101, use, while also resolving finally displaying value of element for data-printing resolution server 3 simultaneously.
As shown in figure 11, print and initiate server 6 and comprise transaction data and call receiving trap A1, print request apparatus for initiating A2, template selecting device A3 and supplementary data transmission and reception apparatus A4 is printed in transaction.
Wherein, transaction data calls receiving trap A1 and obtains Transaction Information displaying for calling from data server 5.
Print and initiate request unit A2 for sending to printing interface server 4 request of printing, the packets of information sending is containing Template Information (template selecting device A3 chooses the rear value that just has) and the parsing type of transaction master data, choice for use, and printing interface server 4 carries out different processing according to the difference of the printing request msg receiving.
Template selecting device A3 shows and selects the template of needs use to print for receiving the stencil-chosen list information that printing interface server 4 sends.
Transaction is printed supplementary data transmission and reception apparatus A4 and is carried out typing for the supplementary typing paragraph information that receives printing interface server 4 and send, and transaction printing supplementary data is sent to data server 5 preserves.
Referring to Figure 12, printer 7 is various printer B1, the printing request and the print data information that send for receiving data-printing resolution server 3, and carry out printing.
The data printing system of the embodiment of the present invention is by data granulating, element; use element, clause, template and transaction to construct customizable data Method of printing; overcome the response of prior art poor efficiency and printed requirement variation and the consumption waste to resource, accurate, efficient, stable Method of printing is provided.The present invention beats by embedding Word cover, can support abundant print format, meets various printing requirements.
As shown in figure 13, the embodiment of the present invention provides a kind of data-printing method, and this data-printing method comprises:
S1301: by type information configuration server, type information is configured, generates and print configuration information storage;
S1302: print initiation server and obtain transaction master data from data, services server, and initiate data-printing request according to described transaction master data to printing interface server;
S1303: described printing interface server receives described transaction master data, obtains operational template list information according to printing type from data storage server, and sends to described printing to initiate server described template list information;
S1304: described printing is initiated server according to described printing type selecting printing template, and resolve type, described transaction master data and the numbering of described printing template and send to described data-printing resolution server by described printing interface server supplementing paragraph information;
S1305: described data-printing resolution server receives the numbering of described supplementary paragraph information parsing type, transaction master data and printing template, obtains predefined template master data, paragraph information and element information according to described template numbering from described data storage server;
S1306: the paragraph that described data-printing resolution server meets condition generates needs and supplements the paragraph information of typing, and sends to described printing to initiate server by described printing interface server the described paragraph information that need to supplement typing;
S1307: described printing is initiated server the described paragraph information that need to supplement typing is carried out to typing operation, generation transaction is printed supplementary data and is sent to described data server to preserve renewal;
S1308: described printing is initiated server and received the preservation lastest imformation that described data server feeds back, sends to described Data Analysis server by the numbering of printing paragraph information parsing type, transaction master data and printing template by described printing interface server;
S1309: described data-printing resolution server receives the numbering of described printing paragraph information parsing type, transaction master data and printing template, and the paragraph that condition is met is resolved successively and generated final print data;
S13010: described data-printing resolution server sends to printer server to print described final print data.
Flow process is as shown in Figure 1 known; data-printing method of the present invention is by data granulating, element; use element, clause, template and transaction to construct customizable data printing type; overcome the response of prior art poor efficiency and printed requirement variation and the consumption waste to resource, accurate, efficient, stable Method of printing is provided.
When concrete enforcement, in S1301, as shown in figure 14, by type information configuration server, type information is configured, comprises:
S1401: element arrangements step.
Carry out setting or the editor of element implication, element type, element data source, input domain type, data length, input range, element default value and element remark information by element information setting unit 11, element numbering and element English name generate automatically, can not revise.Carry out the setting of correspondence database field by the complete paired data of element database field contrast setting unit 12 element obtaining by transaction data for 1-of originating.Sending receiving element 13 by element information obtains existing element and edits or arrange infrastructure elements information for element information setting unit 11.Calling receiving element 14 by data dictionary information completes element and uses the configuration of dictionary.
The element 11-13 for example arranging in above-mentioned example, after configuration, element information is concise and to the point shows as shown in figure 15.
S1402: paragraph configuration step.
Carry out the setting of paragraph essential information and displaying form by paragraph setting unit 21, by displaying, the setting that condition is shown in condition unit 22 is set, call receiving element 25 by element information and carry out using in paragraph the setting of element, while showing that by element formatting unit 23 carries out data-printing, element is shown the setting of form, calls receiving element 26 obtain data dictionary information, for showing, the setting that conditional expression is shown in condition unit 22 is set by data dictionary information.
For example, the application can arrange paragraph 1,2, has all used element 13, paragraph content for " Article 1 is opened the automatic extension function of * * * * business, the moon automatic extension number be [13] individual month." (in paragraph content " Article 1 " overstriking show, moon automatic extension is counted actual value and underlines displayings), displaying condition is respectively to supplement typing show and print and show, displaying conditional expression all for whether automatic extension=' being '.Rear displaying is set as shown in FIG. 16 and 17.
S1403: template configuration step.
Template essential information setting unit 31 is carried out the setting of template essential information and printing type, carries out by paragraph page order setting unit 32 selection of paragraph information and the setting of paragraph page order that this template need to be used.During setting, needing to send receiving element 33 and paragraph information by Template Information calls receiving element 34 and obtains Template Information and paragraph information use for you to choose.Herein, the application can increase the template that is numbered 1 newly, and paragraph 1,2 is printed to the paragraph information using as it, and page order is 1,2, and the information after arranging in template as shown in figure 18.
S1404: print classification of type configuration step.
Print classification of type configuration by printing classification of type setting device 104, herein, the application can, using conclude the business area and type of service as class condition, arrange rear printing classification of type information as shown in figure 19.
S1405: print type and contrast configuration step with template.
Print type by printing class section mould plate contrast setting device 105 and contrast configuration with template.Concrete steps are for calling receiving element 53 and Template Information and call that receiving element 54 obtains existing printing type information and Template Information increase operation for printing class section mould plate contrast setting unit 51 by printing type information, contrast transmission receiving element 52 and obtain existing printing class section mould plate contrast relationship and carry out attended operation by printing class section mould plate.For example, the application can arrange printing Class1,2 can use the template that is numbered 1, as shown in figure 20.
After step S1401-S1405 has configured, all can send configuration information to data storage server 2, complete the real-time storage of latest configuration information.
When step S1302 specifically implements, transaction master data can comprise type of service, area, business transaction numbering etc.
When concrete enforcement, in step S1303, before obtaining operational template list information from data storage server according to printing type, data-printing method of the present invention also comprises:
After type information being configured through step S1301, judge in data storage server 2, whether there is operational template list information; If there is operational template list information in data storage server 2, obtain operational template list information according to printing type from data storage server, otherwise, return to information and initiate server to printing.In S1303, the transaction master data that printing interface server receives does not comprise Template Information and resolves type.According to the configuration of example in Figure 14 configuration flow, if initiation printing request is the automatic extension business in A area, prints Class1 according to it and can get 1 automatic extension of template business for printing initiation server 6 choice for uses; If what initiate the request of printing is the automatic extension business in C area, print type 3 according to it and cannot get operable template, return message to automatic extension business for print initiate server 6 point out " do not configure the operable template of this printing type, please first remove to print class section mould plate contrast setting device 105 and arrange! ", flow process finishes.
When step S1304 specifically implements, if there is operational list of templates list, print and initiate server 6 according to described printing type selecting printing template, and will supplement paragraph information and resolve type (being that 1--supplements paragraph information parsing), the numbering of transaction master data and described printing template sends to printing interface server 4, the printing request basic data transmission and reception apparatus 81 of printing interface server 4 receives transaction master data, the template numbering of choice for use and parsing type (1--supplements paragraph information and resolves), and send it to data-printing resolution server 3.
Before step S1305, data-printing resolution server 3 also will ask basic data receiving trap 71 to receive template numbering and the parsing type (1--supplements paragraph information and resolves) of transaction essential information, use by printing, and then calls receiving trap 73 by transaction data and obtain transaction data from transaction data memory storage 91 and the transaction printing supplementary data memory storage 92 of data server 5.
When step S1305 specifically implements, the supplementary paragraph information that in data-printing resolution server 3 receiving step S1304, printing interface server 4 sends is resolved the numbering of type, transaction master data and printing template.According to template numbering, pass through template | paragraph | element resolver 72 obtains predefined template master data, paragraph information and element information from data storage server 2.
In one embodiment, before the paragraph generation needs that in step S1306, condition met supplement the paragraph information of typing, can also judge whether to exist displaying condition to meet and show the paragraph that conditional expression is set up according to the page order of template definition, if execution step S1306 meets displaying condition and shows that the paragraph generation needs of conditional expression establishment supplement the paragraph information of typing.
In step S1306, for example, be numbered the automatic extension business of b for the business transaction of A area, be numbered at above-mentioned choice for use after 1 template, by page order, paragraph 1,2 is carried out to the parsing of paragraph information herein.Conclude the business for b, if its database A1 field value is 1, A2 field is that 8 (expression is the automatic extension, moon automatic extension, number was 8) time, be by resolving the value that can obtain element 11 that the value of 1 (YES), element 12 is 8, the initial value of element 13 is 8 (as used template 1 to print before b transaction, and the value of element 13 is crossed in typing, element 13 initial values are to print use value last time herein).Meet and show conditional expression establishment for paragraph 1 displaying condition, carrying out the parsing (paragraph 2 displaying conditions are not inconsistent, and skip and do not carry out resolving) of paragraph 1 paragraph content herein, the supplementary paragraph content of resolving generation is as follows:
Article 1, the automatic extension function of opening * * * * * business, automatic extension number is 8 months.
When step S1307 and S1308 specifically implement, the printing that printing initiation server 6 is printed supplementary data transmission and reception apparatus A4 reception printing interface server 4 by transaction supplements the paragraph information that need to supplement typing that paragraph information transmission and reception apparatus 84 sends, also preservation after entry information as required.Printing initiation server 6 is printed the complete transaction printing supplementary data of supplementary data transmission and reception apparatus A4 transmission typing by transaction and is preserved renewal to the transaction printing supplementary data memory storage 92 of data server 5.After preserving successfully, print initiation server 6 and ask apparatus for initiating A2 by the template numbering of transaction master data, choice for use and resolve type (2-prints paragraph information parsing) to send to printing interface server 4 by printing.The printing request basic data transmission and reception apparatus 81 of printing interface server 4 receives the template numbering of transaction master data, choice for use and resolves type (2-prints paragraph information and resolves), and sends it to data-printing resolution server 3.For example, for the supplementary paragraph content of returning in step S1306 example, we as required the moon typing automatic extension number be 6, click preserve after, the p_13=6 that in supplementary data memory storage 92, storage information is is printed in the transaction of data server 5, and the print value of element 13 is 6.
In step S1309, before the paragraph that condition is met is resolved the complete print data that generation needs print successively, can also judge whether to exist displaying condition to meet and show the paragraph that conditional expression is set up according to the page order of template definition, if, perform step S1309, the paragraph that condition is met is resolved successively and is generated final print data.
In paragraph information, element information and the transaction data of template, the step of transaction supplementary data before step S1307, obtain, but transaction supplementary data is upgraded because step S1307-S1308 has typing, supplementary data is printed in the transaction that need again obtain preservation renewal from the transaction printing supplementary data memory storage 92 of data server 5 herein.
When step S1309 specifically implements, the template that is common printing for printing type, the paragraph that condition is met is resolved successively and is generated final print data, need to and show that by displaying condition conditional expression parsing needs to print the paragraph of showing, generate print data, then the headerfooter information using while printing is set, generates final print data.
Be that WORD overlaps the template of beating for printing type, the paragraph that condition is met is resolved successively and is generated final print data, need to and show that by displaying condition conditional expression parsing needs to print the paragraph of showing, generate print data, first obtain by calling WORD control the word file that cover supporting member uses, adjust the print position of each element by bookmark location in word file, generate final print data.The present invention beats by embedding Word cover, can support abundant print format, meets various printing requirements.
The automatic extension business that is numbered b taking previously described A area business transaction is as row, for paragraph 1 because displaying condition is not inconsistent, skip herein and do not carry out resolving, meet for paragraph 2 displaying conditions, show that conditional expression " whether automatic extension=be " sets up, resolve, now the value of element 13 is owing to being 6 in step S1307 typing and preserving, therefore resolving and obtaining moon automatic extension number is 6, the print data information finally generating is:
Article 1, the automatic extension function of opening * * * * * business, automatic extension number is 6 months.
Data-printing method of the present invention is by data granulating, element; use element, clause, template and transaction to construct customizable data printing type; overcome the response of prior art poor efficiency and printed requirement variation and the consumption waste to resource, accurate, efficient, stable Method of printing is provided.In addition, the present invention beats by embedding Word cover, can support abundant print format, meets various printing requirements.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computing machine or other programmable data processing device produces the server for realizing the function of specifying at flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises commander server, and this commander server realizes the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame on computing machine or other programmable devices.
In the present invention, applied specific embodiment principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (17)

1. a data-printing method, is characterized in that, described data-printing method comprises:
Step 1: by type information configuration server, type information is configured, generates and print configuration information storage;
Step 2: print initiation server and obtain transaction master data from data, services server, and initiate data-printing request according to described transaction master data to printing interface server;
Step 3: described printing interface server receives described transaction master data, obtains operational template list information according to printing type from data storage server, and sends to described printing to initiate server described template list information;
Step 4: described printing is initiated server according to described printing type selecting printing template, and resolve type, described transaction master data and the numbering of described printing template and send to described data-printing resolution server by described printing interface server supplementing paragraph information;
Step 5: described data-printing resolution server receives the numbering of described supplementary paragraph information parsing type, transaction master data and printing template, obtains predefined template master data, paragraph information and element information according to described template numbering from described data storage server;
Step 6: the paragraph that described data-printing resolution server meets condition generates needs and supplements the paragraph information of typing, and sends to described printing to initiate server by described printing interface server the described paragraph information that need to supplement typing;
Step 7: described printing is initiated server the described paragraph information that need to supplement typing is carried out to typing operation, generation transaction is printed supplementary data and is sent to described data server to preserve renewal;
Step 8: described printing is initiated server and received the preservation lastest imformation that described data server feeds back, sends to described Data Analysis server by the numbering of printing paragraph information parsing type, transaction master data and printing template by described printing interface server;
Step 9: described data-printing resolution server receives the numbering of described printing paragraph information parsing type, transaction master data and printing template, and the paragraph that condition is met is resolved successively and generated final print data;
Step 10: described data-printing resolution server sends to printer server to print described final print data.
2. data-printing method according to claim 1, is characterized in that, in described step 1, by type information configuration server, type information is configured, and comprising:
Element arrangements step;
Paragraph configuration step;
Template configuration step;
Print classification of type configuration step; And
Print type and contrast configuration step with template.
3. data-printing method according to claim 2, is characterized in that, described element arrangements step comprises:
Carry out setting or the editor of element implication, element type, element data source, input domain type, data length, input range, element default value and element remark information;
Be that the element that 1-obtains by transaction data carries out the setting of correspondence database field to Data Source;
Carry out the configuration that element uses dictionary.
4. data-printing method according to claim 2, it is characterized in that, described paragraph configuration step comprises: paragraph essential information and show the setting of form, show that according to data dictionary information element while using the setting of element and data-printing in the setting, paragraph of conditional expression shows the setting of form.
5. data-printing method according to claim 2, is characterized in that, described template configuration step comprises:
Obtain Template Information and paragraph information, carry out the setting of template essential information and printing type, carry out the selection of paragraph information and the setting of paragraph page order that template need to be used.
6. data-printing method according to claim 2, is characterized in that, described printing type contrasts configuration step with template and comprises:
Obtain existing printing type information and Template Information and increase operation newly;
Obtain existing printing class section mould plate contrast relationship and carry out attended operation.
7. data-printing method according to claim 2, is characterized in that, in described step 3, before obtaining operational template list information from data storage server according to printing type, described data-printing method also comprises:
After type information being configured through described step 1, judge in described data storage server whether have operational template list information;
If so, obtain operational template list information according to printing type from data storage server, otherwise, return to information and initiate server to described printing.
8. data-printing method according to claim 2, is characterized in that, before described step 5, also comprises: obtain transaction data from described data server.
9. data-printing method according to claim 2, it is characterized in that, before the paragraph generation needs that in described step 6, condition met supplement the paragraph information of typing, described data-printing method also comprises: judge whether to exist displaying condition to meet and show the paragraph that conditional expression is set up according to the page order of template definition, if carry out described step 6, displaying condition is met and show that the paragraph generation needs of conditional expression establishment supplement the paragraph information of typing.
10. data-printing method according to claim 2, it is characterized in that, before the paragraph in described step 9, condition being met is resolved the complete print data that generation needs print successively, described data-printing method also comprises: judge whether to exist displaying condition to meet and show the paragraph that conditional expression is set up according to the page order of template definition, if, carry out described step 9, the paragraph that condition is met is resolved successively and is generated final print data.
11. data-printing methods according to claim 10, it is characterized in that, before judging whether to exist displaying condition to meet according to the page order of template definition and showing the paragraph of conditional expression establishment, described data-printing method also comprises: obtain and preserve the described transaction printing supplementary data of upgrading from described data server.
12. data-printing methods according to claim 2, it is characterized in that, the template that is common printing for printing type, the paragraph that condition is met is resolved successively and is generated final print data, comprise: resolve needs by displaying condition and displaying conditional expression and print the paragraph of showing, generate print data, then the headerfooter information using while printing is set, generate final print data.
13. data-printing methods according to claim 2, it is characterized in that, be that WORD overlaps the template of beating for printing type, the paragraph that condition is met is resolved successively and is generated final print data, comprise: print by displaying condition and displaying conditional expression parsing needs the paragraph of showing, generate print data, first obtain by calling WORD control the word file that overlaps supporting member use, adjust the print position of each element by bookmark location in word file, generate final print data.
14. 1 kinds of data printing systems, it is characterized in that, described data printing system comprises: type information configuration server, data storage server, data-printing resolution server, printing interface server, data server, print and initiate server, described data server connects described type information configuration server, server is initiated in data-printing resolution server and printing, described printing interface server connects described data storage server, server is initiated in data-printing resolution server and printing, described data storage server connects described type information configuration server, data-printing resolution server and printing interface server, described data-printing resolution server connects printer and described printing interface server,
Described type information configuration server is configured type information, generates and prints configuration information;
Described printing is initiated server and is comprised:
Transaction data calls receiving trap, for obtaining transaction master data from described data server and showing;
Print request apparatus for initiating, send data-printing request for the printing interface device to described, the Template Information that described data-printing request comprises described transaction master data, choice for use and parsing type;
Template selecting device, shows for the stencil-chosen list information that receives described printing interface device transmission, and according to printing type selecting printing template;
Supplementary data transmission and reception apparatus is printed in transaction, carries out typing for the typing paragraph information of need to supplementing that receives described printing interface device transmission, and transaction printing supplementary data is sent to data server;
Described printing interface server comprises:
Print request basic data transmission and reception apparatus, initiate the transaction master data of server transmission, Template Information and the parsing type of choice for use for receiving described printing;
Print type association template acquisition device, for obtaining the operational Template Information of this printing type according to the printing type of described basic transaction data from described data storage server;
Template selecting, for sending to described printing to initiate server the available Template Information obtaining or information;
Print and supplement paragraph information transmission and reception apparatus, the paragraph information that need to supplement typing sending for receiving described printing resolution server, and send to described printing to initiate server the described paragraph information that need to supplement typing;
Described data-printing resolution server comprises:
Print request basic data receiving trap, for receiving the transaction master data of described printing interface device transmission, Template Information and the parsing type of choice for use;
Transaction data calls receiving trap, obtains transaction data and transaction printing supplementary data for the transaction master data by described from described data server;
Template | paragraph | element resolver, for calling from described transaction data, receiving trap obtains described transaction data and transaction is printed supplementary data and obtained template master data, paragraph information and element information according to the template numbering of described Template Information from described data storage server, carrying out template master data, paragraph information and element information resolves, splice the data after each paragraph is resolved by the paragraph page order of template-setup, generate print data;
WORD control calling device, for WORD cover supporting member, in described template | paragraph | element resolver is resolved and is generated after described print data, first obtain by calling WORD control the word file that described WORD cover supporting member uses, adjust the print position of each element by bookmark location in word file, generate final print data;
Headerfooter treating apparatus, for common printing template, in described template | paragraph | element resolver is resolved and is generated after described print data, and the headerfooter information using while printing is set, and generates final print data;
Print data dispensing device, for sending to printer by described final print data.
15. data printing systems according to claim 14, is characterized in that, described type information configuration server comprises:
Element setting device, for carrying out setting or the editor of element implication, element type, element data source, input domain type, data length, input range, element default value and element remark information;
Paragraph setting device, for carry out paragraph essential information and show the setting of form, element is shown form while showing the setting of conditional expression, setting that paragraph uses element and data-printing according to data dictionary information setting;
Template-setup device, for obtaining Template Information and paragraph information, carries out the setting of template essential information and printing type, carries out the selection of paragraph information and the setting of paragraph page order that template need to be used;
Print classification of type setting device, print classification of type or read existing printing classification of type information from described data storage server and edit for newly-increased, and the printing categorical data information setting is sent to described data storage server preserving;
Print type and contrast setting device with template, increase operation newly for obtaining existing printing type information and Template Information, and obtain existing printing class section mould plate contrast relationship and carry out attended operation.
16. data printing systems according to claim 15, is characterized in that, described data storage server comprises:
Element definition memory storage, for storage element information;
The single device of paragraph definition storage, for stored paragraph information;
Template definition memory storage, for storing template master data and paragraph page order information;
Cover is made WORD template memory storage, the WORD template file information of beating for storing cover;
Print class section mould plate contrast memory storage, for storing the class section mould plate contrast information of printing;
Print classification of type memory storage, for storing the classification of type storage information of printing.
17. data printing systems according to claim 16, is characterized in that, described data server comprises:
Transaction data memory storage, for store transactional data, initiates server calls for described data-printing resolution server and printing;
Supplementary data memory storage is printed in transaction, while printing, need to supplement the element information of typing for storing;
List structure field information memory storage, for storing traffic table and the field information for described element setting device;
Data dictionary information-storing device, for storing data dictionary information.
CN201410165535.4A 2014-04-23 2014-04-23 A kind of data-printing method and system Active CN103955345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410165535.4A CN103955345B (en) 2014-04-23 2014-04-23 A kind of data-printing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410165535.4A CN103955345B (en) 2014-04-23 2014-04-23 A kind of data-printing method and system

Publications (2)

Publication Number Publication Date
CN103955345A true CN103955345A (en) 2014-07-30
CN103955345B CN103955345B (en) 2017-06-20

Family

ID=51332622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410165535.4A Active CN103955345B (en) 2014-04-23 2014-04-23 A kind of data-printing method and system

Country Status (1)

Country Link
CN (1) CN103955345B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598177A (en) * 2014-12-25 2015-05-06 重庆森鑫炬科技有限公司 Bill print platform
CN105204790A (en) * 2015-08-27 2015-12-30 许继集团有限公司 Printing control method of embedded type relaying protection device
CN106934958A (en) * 2017-03-10 2017-07-07 东软集团股份有限公司 The method to set up and device of POS printing
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN107391057A (en) * 2017-07-06 2017-11-24 北京三快在线科技有限公司 A kind of billing information management method, device and equipment
CN107402729A (en) * 2016-05-20 2017-11-28 航天信息软件技术有限公司 Printing template construction method and stencil marking method
CN108021340A (en) * 2016-10-31 2018-05-11 北京京东尚科信息技术有限公司 A kind of label printing method and system
CN108563408A (en) * 2018-04-13 2018-09-21 上海宝尊电子商务有限公司 Flexible print service based on the configuration of custom condition & template & physical machines
CN108762693A (en) * 2018-04-03 2018-11-06 四川九阵科技股份有限公司 A kind of print from the definition design system and method
CN108875853A (en) * 2017-05-10 2018-11-23 北大方正集团有限公司 The processing method and processing device of data label printing
CN109615803A (en) * 2018-10-09 2019-04-12 北京辰森世纪科技股份有限公司 A kind of data-printing method and device
CN110929813A (en) * 2019-11-20 2020-03-27 紫光展讯通信(惠州)有限公司 Label printing method and system, industrial personal computer and computer readable storage medium
CN112000302A (en) * 2020-08-25 2020-11-27 上海合阔信息技术有限公司 Label generation method, template configuration method, device and storage medium
CN114356252A (en) * 2021-12-27 2022-04-15 金蝶软件(中国)有限公司 Dynamic field printing method, system and related device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100590650C (en) * 2005-11-09 2010-02-17 中国工商银行股份有限公司 Compatible universal payment system and method
CN103019636B (en) * 2012-12-21 2016-01-27 中国农业银行股份有限公司 Voucher design Method of printing and system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598177A (en) * 2014-12-25 2015-05-06 重庆森鑫炬科技有限公司 Bill print platform
CN105204790A (en) * 2015-08-27 2015-12-30 许继集团有限公司 Printing control method of embedded type relaying protection device
CN105204790B (en) * 2015-08-27 2018-06-19 许继集团有限公司 A kind of Embedded Relay Protector print control program
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN106940628B (en) * 2016-01-04 2020-09-18 平安科技(深圳)有限公司 Document printing method and device
CN107402729A (en) * 2016-05-20 2017-11-28 航天信息软件技术有限公司 Printing template construction method and stencil marking method
CN107402729B (en) * 2016-05-20 2020-02-14 航天信息软件技术有限公司 Printing template construction method and template printing method
CN108021340B (en) * 2016-10-31 2021-08-17 北京京东振世信息技术有限公司 Label printing method and system
CN108021340A (en) * 2016-10-31 2018-05-11 北京京东尚科信息技术有限公司 A kind of label printing method and system
CN106934958A (en) * 2017-03-10 2017-07-07 东软集团股份有限公司 The method to set up and device of POS printing
CN108875853A (en) * 2017-05-10 2018-11-23 北大方正集团有限公司 The processing method and processing device of data label printing
CN107391057A (en) * 2017-07-06 2017-11-24 北京三快在线科技有限公司 A kind of billing information management method, device and equipment
CN108762693A (en) * 2018-04-03 2018-11-06 四川九阵科技股份有限公司 A kind of print from the definition design system and method
CN108563408A (en) * 2018-04-13 2018-09-21 上海宝尊电子商务有限公司 Flexible print service based on the configuration of custom condition & template & physical machines
CN109615803A (en) * 2018-10-09 2019-04-12 北京辰森世纪科技股份有限公司 A kind of data-printing method and device
CN110929813A (en) * 2019-11-20 2020-03-27 紫光展讯通信(惠州)有限公司 Label printing method and system, industrial personal computer and computer readable storage medium
CN110929813B (en) * 2019-11-20 2022-08-26 紫光展讯通信(惠州)有限公司 Label printing method and system, industrial personal computer and computer readable storage medium
CN112000302A (en) * 2020-08-25 2020-11-27 上海合阔信息技术有限公司 Label generation method, template configuration method, device and storage medium
CN112000302B (en) * 2020-08-25 2021-08-17 上海合阔信息技术有限公司 Label generation method, template configuration method, device and storage medium
CN114356252A (en) * 2021-12-27 2022-04-15 金蝶软件(中国)有限公司 Dynamic field printing method, system and related device
CN114356252B (en) * 2021-12-27 2024-03-19 金蝶软件(中国)有限公司 Dynamic field printing method, system and related device

Also Published As

Publication number Publication date
CN103955345B (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN103955345A (en) Data printing method and system
CN105487864B (en) The method and apparatus of Code automatic build
CN102096588B (en) Control-containing page establishing method
CN105511873B (en) User interface control display method and device
CN110058856A (en) Page configuration method and device
CN109933752A (en) A kind of method and apparatus exporting electronic document
US20160098250A1 (en) Application prototyping tool
CN107463418B (en) Configuration file generation method and device for server middleware
US10248647B2 (en) Style extensibility applied to a group of shapes by editing text files
CN114035773A (en) Configuration-based low-code form development method, system and device
US9697037B2 (en) Tagging virtual machine instances based on commands
WO2011009387A1 (en) Method and equipment for generating widget
CN102110102A (en) Data processing method and device, and file identifying method and tool
CN110705237A (en) Automatic document generation method, data processing device, and storage medium
AU2021270749B2 (en) Generating and modifying content using data structures
US20150199346A1 (en) Hierarchical database report generation with automated query generation for placeholders
CN106933518A (en) A kind of printing equipment and Method of printing
US20230222286A1 (en) Dynamically generating documents using natural language processing and dynamic user interface
US20070061349A1 (en) Hierarchically describing shapes
CN110007994B (en) Software internationalization method and system
US11113253B2 (en) Template-based synchronized customization deployment on database systems
CN104331288B (en) A kind of configurationization shows the method and system of dynamic page
JP2001125855A (en) Dynamic web page generation program
CN115291869A (en) Zero-code form generation method and system based on vue custom component
CN114281461A (en) Management method, equipment and medium for configurable data source attributes

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