CN102541829B - Multiuser concurrent electronic document generation device and method - Google Patents

Multiuser concurrent electronic document generation device and method Download PDF

Info

Publication number
CN102541829B
CN102541829B CN201210014694.5A CN201210014694A CN102541829B CN 102541829 B CN102541829 B CN 102541829B CN 201210014694 A CN201210014694 A CN 201210014694A CN 102541829 B CN102541829 B CN 102541829B
Authority
CN
China
Prior art keywords
electronic document
field code
data
document template
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210014694.5A
Other languages
Chinese (zh)
Other versions
CN102541829A (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 CN201210014694.5A priority Critical patent/CN102541829B/en
Publication of CN102541829A publication Critical patent/CN102541829A/en
Application granted granted Critical
Publication of CN102541829B publication Critical patent/CN102541829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a multiuser concurrent electronic document generation device and a method for generating the electronic document. The method comprises the steps of converting an electronic document template in DOC (Document) format into an electronic document in XML (Extensive Markup Language) form; scanning each node in the electronic document according to an XML manner; finding the content of a field code and reassembling into the field code; then sequentially replacing the field codes by corresponding practical data; and finally generating the electronic document in XML form. As the electronic document in DOC format can be converted into the electronic document in XML format for processing, API (Application Program Interface) calling of Word is avoided and operation is carried out on the electronic document by starting a WINWORD.EXE process. Therefore, the efficiency and stability of electronic document generation under multiuser concurrent condition can be greatly improved, and the problems of efficiency and stability of the electronic document generation under the multiuser concurrent condition are solved.

Description

A kind of electronic document generating apparatus and method of multi-user concurrent
Technical field
The present invention relates to the electronic document processing technology field, especially a kind of electronic document generating apparatus and method of multi-user concurrent.
Background technology
Along with the development of computing machine, the Office Word of Microsoft is increasingly universal, and the document of Word form becomes the mainstream standard of electronic document class.The appearance of Word document, promoted the mileage that people march toward and handle official business with no paper at all greatly.Particularly use Word document to make various format files, and by the XML technology, corresponding relation is set up in the unit to be filled in document template and the field information in data source, generate the electronic document of standard system, can greatly reduce document and repeat the authorized strength work amount.
For example: bank needs to provide to a kind of formal confirmation of client or receipt text in the international clearing business procession, is called the face letter.In the face letter, form, new line, rule description are fixed, and its particular content of difference processing stage of residing according to difference, the identical services of business is different separately again.Adopt the Word mode to generate face letters and cables subdocument, need not design every a face letter by program coding, only need set the face letter template that contains field code, just can real data be substituted in face letter template quickly and easily, generate corresponding face letters and cables subdocument.
And for example: in the banking industry bond is consigned issuing working, need the set form of establishment a multitude of names electronic document (as the invitation letter of forming a team, ginseng group letter in reply, an applying to purchase explanation, apply to purchase offer, the placing confirmation and demand letter, China Inter-Bank Bond Market bond distribution agreement, bond registration key element table, bond consign the Quota distribution table, issue money and arrive account letter of confirmation, distribution situation bulletin, basic data MSDS etc.), the method generated by standard document by this kind, can reach disposable logging data information, repeatedly generate the standard document of different content and form.This kind of new-type face letters and cables subdocument has great use value at the bank field.
But find in actual applications, (for example: the data processing pressure of banking system is large in the multi-user concurrent situation for this kind of processing mode, need to process considerable electronic document simultaneously and generate affairs), can produce serious efficiency and stability problem, affect the normal output of document.This is because be that the API that calls Word with the form of dynamic base (DLL) carries out the processing of system will control Word document the time; but when the API that calls Word is controlled Word; must start a WINWORD.EXE process on the backstage of server; this will take a large amount of system resource; if same server has a plurality of WINWORD.EXE process operations simultaneously; can cause system exception slow; under the applicable cases that needs multi-user concurrent processing document; there will be various uncontrollable extremely, finally can't normally generate electronic document.
Summary of the invention
(1) technical matters that will solve
In view of this, fundamental purpose of the present invention is to provide a kind of electronic document generating apparatus and method of multi-user concurrent, controlled by the mode of XML with the electronic document to the Word form, solved efficiency and stability problem that the electronic document under multi-user concurrent generates.
(2) technical scheme
For achieving the above object, the invention provides a kind of electronic document generating apparatus of multi-user concurrent, this device comprises: electronic document template generating apparatus 1 generates DOC format electronic document template for the instruction according to being received from the user, and stores in data storage device 5; Format conversion apparatus 2, obtain the electronic document template of this DOC form for visit data memory storage 5, the electronic document template that is the XML form by the electronic document template switch of this DOC form, store back in data storage device 5; Data device for loading 3, obtain the business datum file of XML form for access external data system 7, and the business datum file of this XML form is carried out to the effect of data legitimacy, for electronic document generating apparatus 4, use these business datums to carry out assignment to the field code in the electronic document template; Simultaneously, data device for loading 3 visit data memory storages 5, the electronic document template of the XML form that selection conforms to current business is written into internal memory, and is resolved and control; Electronic document generating apparatus 4, business datum file and the electronic document template of for access memory, through data device for loading 3, resolving, each node of traversal electronic document template, required content assembling is generated to field code, then according to the business datum file, by the field code assignment, be corresponding business datum, the electronic document that generation comprises True Data and corresponding format, store in data storage device 5; Data storage device 5, the DOC format electronic document template generated for store electronic documents template generating apparatus 1, the electronic document after electronic document generating apparatus 4 carries out the real data assignment, and the corresponding relation of XML node and parameter; And electronic document output unit 6, obtain the electronic document after electronic document generating apparatus 4 carries out assignment for visit data memory storage 5, and the electronic document of XML form is converted to the electronic document of DOC form, deposit again in all time data storage device 5, select to be exported with email face letter, papery face letter or fax electronics face letter mode for the user.
For achieving the above object, the present invention also provides a kind of electronic document producing method of multi-user concurrent, comprising: electronic document template generating apparatus generates DOC format electronic document template according to the instruction that is received from the user; The electronic document template that format conversion apparatus is the XML form by the electronic document template switch of this DOC form; The electronic document template of the XML form that the selection of data device for loading conforms to current business is written into internal memory, and is resolved and control; Business datum file and the electronic document template of in electronic document generating apparatus access memory, through the data device for loading, resolving, each node of traversal electronic document template, required content assembling is generated to field code, then be corresponding business datum according to the business datum file by the field code assignment, generate the electronic document that comprises True Data and corresponding format; The electronic document output unit is converted to the electronic document of the XML form after assignment the electronic document of DOC form, for the user, selects to be exported with email face letter, papery face letter or fax electronics face letter mode.
(3) beneficial effect
From technique scheme, can find out, the present invention has following beneficial effect:
1, electronic document generating apparatus and the method for multi-user concurrent provided by the invention, because its electronic document that the electronic document of DOC form can be converted to the XML form is processed, avoided calling the API of Word, the mode that starts the WINWORD.EXE process is operated electronic document, the efficiency and the stability that generate electronic document in the multi-user concurrent situation be can greatly improve, efficiency and stability problem that the electronic document under the multi-user concurrent generates solved.
2, electronic document generating apparatus and the method for multi-user concurrent provided by the invention, support to adjust the corresponding relation of parameter and XML node, when each nodename change of XML format file, only needs to change parameter list and get final product, and has dirigibility and adaptability.
3, electronic document generating apparatus and the method for multi-user concurrent provided by the invention, can be automatically according to the number of real data, use dynamic multi-value data assignment unit automatically to adjust the table format of electronic document, make it to adapt to the actual conditions of data, there is powerful adaptation function.
The accompanying drawing explanation
Fig. 1 is the schematic diagram according to the electronic document generating apparatus of embodiment of the present invention multi-user concurrent;
Fig. 2 is the schematic diagram according to the electronic document generating apparatus of the embodiment of the present invention;
Fig. 3 is the schematic diagram according to the data storage device of the embodiment of the present invention;
Fig. 4 is the process flow diagram according to the electronic document producing method of embodiment of the present invention multi-user concurrent;
Fig. 5 is the process flow diagram according to the import letter of credit face letter generation method of embodiment of the present invention multi-user concurrent.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and, with reference to accompanying drawing, the present invention is described in more detail.
Start in order to solve efficiency and the instability problem that Word process WINWORD.EXE brings, the electronic document that the present invention is the XML form by the electronic document template switch of DOC form, and press each node in the mode scanning electron document of XML, the content of field code is found and is reassembled into field code, then replacing successively domain node is corresponding real data, finally generates the Word electronic document of XML form.Because the electronic document that the electronic document of DOC form can be converted to the XML form is processed, avoided calling the API of Word, the mode that starts the WINWORD.EXE process is operated electronic document, the efficiency and the stability that generate electronic document in the multi-user concurrent situation be can greatly improve, efficiency and stability problem that the electronic document under the multi-user concurrent generates solved.
As shown in Figure 1, Fig. 1 is that this device comprises according to the schematic diagram of the electronic document generating apparatus of embodiment of the present invention multi-user concurrent: electronic document template generating apparatus 1, format conversion apparatus 2, data device for loading 3, electronic document generating apparatus 4, data storage device 5 and electronic document output unit 6.Wherein, electronic document template generating apparatus 1, format conversion apparatus 2, data device for loading 3 and electronic document generating apparatus 4 are connected successively, and data storage device 5 is connected to format conversion apparatus 2, data device for loading 3, electronic document generating apparatus 4 and electronic document output unit 6.The present invention is also connecting external data systems 7.
Electronic document template generating apparatus 1, for receiving user instruction, generate original DOC format electronic document template, and store in data storage device 5, for format conversion apparatus 2 access.At first, the instruction that receives the user arranges required electronic document template content, and the attribute that each content is set is: multidate information item or static information item.Multidate information is for replacing with the information of real data, identifies simply describing, as: customer name is described as Name, the business amount of money is described as Amount, etc.; Static information is convention, as form, electronic document title, explanation etc.; Then, electronic document template generating apparatus 1 is enabled field code function (for example field code function of Microsoft Word), for the multidate information item in the electronic document template, increase respectively two field codes before and after its text description, the ,Gai path, value path of specifying a dynamic variable to mean this in previous field code is consistent with the path of corresponding actual data item in the business datum file of the XML form of external data systems 7 generations; In next generation code territory, specify a string special character (as # X #) to mean the end mark of this dynamic item.For the static information Xiang Ze in the electronic document template, remain unchanged.Electronic document template generating apparatus 1 is stored in the DOC format electronic document template of generation in data storage device 5.Preferably, but in electronic document template choice for use external data systems 7, corresponding business processing code adds sequence number and shows to name and store as principal mark.
Format conversion apparatus 2, obtain the electronic document template of the DOC form of electronic document template generating apparatus 1 generation for visit data memory storage 5, the electronic document template that is the XML form by the electronic document template switch of this DOC form, then store back in data storage device 5 for 3 access of data device for loading.During electronic document template that format conversion apparatus 2 is the XML form at the electronic document template switch by this DOC form, remove the XML node of document the inside<? mso-applicationprogid=" Word.Document "?, effect is: the form with XML after making the document that is stored as the XML form open represents, and finally generates the Word electronic document template of XML form.
Data device for loading 3, for access external data system 7, obtain the business datum file of XML form, and the business datum file of this XML form is carried out to the effect of data legitimacy, for electronic document generating apparatus 4, use this business datum to carry out assignment to the field code in the electronic document template; Simultaneously, the electronic document template storage unit 51 of data device for loading 3 visit data memory storages 5, the electronic document template that selection conforms to current business (for example, can add sequence number by the business processing code identifies) be written into internal memory, resolved and control, and supplied for electronic document generating apparatus 4 conducts interviews.
Electronic document generating apparatus 4, business datum file and the electronic document template of for access memory, through data device for loading 3, resolving, each node of traversal electronic document template, required content assembling is generated to field code, then according to the business datum file, by the field code assignment, be corresponding business datum, finally generate the electronic document that comprises True Data and corresponding format, store in the electronic document storage unit 53 of data storage device 5, by electronic document output unit 6, carry out electronic document output.
Data storage device 5, the electronic document template generated for store electronic documents template generating apparatus 1, the electronic document after electronic document generating apparatus 4 carries out the real data assignment, and the corresponding relation of XML node and parameter, conduct interviews for each device.
Electronic document output unit 6, obtain the electronic document after electronic document generating apparatus 4 carries out assignment for visit data memory storage 5, and the electronic document of XML form is converted to the electronic document of DOC form, deposit again in the electronic document storage unit 53 of all time data storage device 5, select to be exported in modes such as email face letter, papery face letter, fax electronics face letters for the user.
As shown in Figure 2, Fig. 2 is the schematic diagram according to the electronic document generating apparatus of the embodiment of the present invention, this electronic document generating apparatus comprises: field code module units 41, field code resolution unit 42, static single-value data assignment unit 43, dynamic multi-value data assignment unit 44, condition judgment logical block 45 and automatically hiding processing unit 46.Wherein, field code module units 41 is connected in field code resolution unit 42, and field code resolution unit 42 is connected to static single-value data assignment unit 43, dynamically multi-value data assignment unit 44, condition judgment logical block 45 and automatically hiding processing unit 46.
Field code module units 41, for analyzing internal memory through each node in the XML format electronic document template of data device for loading 3 parsings, obtain corresponding contents, be assembled into complete field code, then be forwarded to field code resolution unit 42 and carry out the field code analysis.
The data handling procedure of this field code module units 41 is as follows: at first, the parameter memory 52 of field code module units 41 visit data memory storages 5 obtains node corresponding to all parameters of A1-A13, is kept in internal memory; Then, the electronic document template of resolving through data device for loading 3 in access memory, just travel through in order the electronic document template of XML form: as find<w:r > during node, if find under its child node<w:fldChar w:fldCharType=" begin "/node, mean it is the beginning of field code herein; Continuation travels through back<w:r in order > node, by they child node<w:instrText > content take out, be stitched together in order, until find a child node for<w:fldChar w:fldCharType=" end "/<w:r during node, represent that field code finishes.Finally, the content found is stitched together in the mode of character sequentially, obtains complete field code.Then field code module units 41 is supspended traversal processing, turns by 42 pairs of field code contents of field code resolution unit and is analyzed.After treating that other unit carry out assignment or processing to this field code, continue traversal electronic document template, carry out the assembling of the next field code.In the ergodic process of the electronic document every template node of using recursive algorithm, when traveling through to node<w:docGrid > time, the representative traversal finishes, and no longer the electronic document template is traveled through.
Field code resolution unit 42, for the field code content through 41 assemblings of field code module units to the electronic document template, analyze its data value path; And according to the difference of field code form, determine the classification of field code, thereby determine to call static single-value data assignment unit 43, dynamic multi-value data assignment unit 44, condition judgment logical block 45 or automatically hide processing unit 46 and respectively field code is carried out to the assignment processing.After the complete field code of assignment, go back to field code module units 41 and continue assembling the next field code.
Showing that field code starts with " # " if field code resolution unit 42 is analyzed, is static monodrome type field code, forwards static single-value data assignment unit 43 to and is processed.For example:
#DATA FSDGRP DRE NAM, C, %U& C&=" " %#} character type { #@X@#}
#DATA TODAY, D, %YYYY/MM/DD%#} date type { #@X@#}
#DATA FSDGRP REC INTRAT, N, %6& , & .%#} numeric type { #@X@#}
#DATA FSDGRP CBS DOC1 AMT, A, %CA& , & .%#} amount of money type { #@X@#}
Showing that field code is to start with " #table# " if field code resolution unit 42 is analyzed, is dynamic many-valued type field code, forwards dynamic multi-value data assignment unit 44 to and is processed.For example: #table#TABLE SETFEG LINE#DOCFEETXT, C, %U& C%#CUR, C, %U& C%#AMT, A, %A& , & .%#}Charges Table{#@X@#}
Show that field code starts with " #IF=T# " or " #IF=F# " if field code resolution unit 42 is analyzed,, for logic judgement formula type field code, forward condition judgment logical block 45 to and processed.For example:
#IF=T#DATA SETMOD SETFOLXFLG=" X " #} be true displaying contents { #@ENDIF@#}
#IF=F#DOCLST BETSET1 AUTHORISE=" X " #} be false displaying contents { #@ENDIF@#}
If analyzing, field code resolution unit 42 draws the automatically hiding format setting existed in static monodrome or dynamic multi-domain code:;=" ", forward automatically hiding processing unit 46 to and processed.
Static single-value data assignment unit 43, for resolve the data value path of the static monodrome type field code obtained according to field code resolution unit 42, the node of correspondence in the business datum file of XML form in access memory, and take out its data content, according to the data type of stipulating in field code, (D means the date type again, C means character type, N means data type, A means amount of money type) and corresponding format regulation, business datum is formatd to processing, and then assignment is to field code corresponding in the electronic document template in internal memory.During assignment, the next one<the w:r of traversal position is supspended from field code module units 41 in static single-value data assignment unit 43 > node, travel through in order back<w:r node, until find the field code (as #@X@#) that representative finishes; By between this pair of field code first<w:r child node<w:t under node the business datum of content assignment after for format, finally by remaining<w:r child node<w:t under node content all empty.So far complete the assignment work of a static monodrome, forwarded field code module units 41 assembling the next field codes to.
Dynamic multi-value data assignment unit 44, for resolve the data value path of the dynamic many-valued type field code obtained according to field code resolution unit 42, in access memory, the node of correspondence in the business datum file of XML form, obtain its data content assignment to the electronic document template in internal memory.Dynamic many-valued type is to be formed by a plurality of static monodrome type combination, dynamically multi-value data assignment unit 44 can according to business datum the number, carry out the assignment with multinomial business datum that automatically increases or decreases of line number.During assignment: at first according to dynamic multi-domain code analysis, go out many static monodrome field codes, thereby obtain a plurality of data values path, according to the business datum of the corresponding node in value path searching business datum file, the business datum content of many groups found is carried out to the pop down processing; Then, by travel through in passing the electronic document template<w:Pbl node, calculate its child node<w:tr > number; If the line number of form is node<w:tr > number fewer than the group number of business datum, replica node<w:tr > and all the elements of following child node, repeat to paste at its end, until<w:tr number and the group number of business datum equate; If node<w:tr > number more than the group number of business datum, the node<w:tr of Delete superfluous >.After the line number additions and deletions have operated, then to travel through every a line<w:tr > node, to travel through each the row<w:tc under every row simultaneously > node, get the child node<w:r under content replacement in storehouse row by the principle that last in, first out > child node<w:t in content, until the row under all row in form have all completed assign operation, forward field code module units 41 assembling the next field codes to.
Condition judgment logical block 45, for resolve the data value path of the logic judgement formula type field code obtained according to field code resolution unit 42, the business datum content of corresponding node in the business datum file in access memory, with the conditional content in the current field code of electronic document template, compare, for example: #IF=T#DATA SETMOD SETFOLXFLG=" X " #} be that { X in #@ENDIF@#} field code is the conditional content for relatively to true displaying contents.If the business datum content does not meet with working as precondition X, all the elements in this pair of condition field code (between IF and ENDIF) in the electronic document template are deleted.Concrete processing is as follows: condition judgment logical block 45 judges whether the conditional content of the current field code in business datum content and electronic document template meets, if do not meet with current conditional content, travel through in order electronic document template back<w:r the child node<w:t of node, it is carried out to deletion action, until traverse the field code (as@ENDIF@) that assembling field code out means that condition judgment finishes, forward field code module units 41 assembling the next field codes to; If business datum content and current conditional content meet, do not make deletion action, simultaneously to the field code in condition and range, calling field code resolution unit 42 analyzes again, divide into static monodrome and dynamic many-valued type, forward to static single-value data assignment unit 43 or dynamically multi-value data assignment unit 44 processed.
Automatically hide processing unit 46, for according to field code resolution unit 42, resolve obtain that static monodrome type or dynamic many-valued type field code exist automatically hide format setting, the business datum content that obtains and the hiding content in the electronic document template are made comparisons, if content is identical, the processing of content of this field code being hidden.Hide for judging to do the field code of processing, travel through in order back<w:r node, at its child node<w:pPr > in increase child node<w:vanish, until arrive the field code (as #@X@#) that representative finishes, thereby realized the hidden function of content between this pair of field code, then forwarded field code module units 41 assembling the next field codes to.
As shown in Figure 3, Fig. 3 is the schematic diagram according to the data storage device of the embodiment of the present invention, and this data storage device comprises: electronic document template storage unit 51, parameter storage unit 52 and electronic document storage unit 53.
Electronic document template storage unit 51, the electronic document template generated for store electronic documents template generating apparatus 1, and the electronic document template of the XML form generated after electronic file form conversion equipment 3 is accessed and changed.Preferably, but in a plurality of different electronic document template choice for use external data systems 7, corresponding business processing code adds sequence number and shows to store as principal mark.
Parameter storage unit 52, for the corresponding relation of storing X ML node and parameter, so that electronic document generating apparatus 4 obtains the required node searched out in the XML format module, carry out respective handling.When each nodename change of XML format file, only need a change parameter list to get final product, make native system there is dirigibility and adaptability.It thes contents are as follows:
Figure BDA0000131491600000091
Figure BDA0000131491600000101
Electronic document storage unit 53, carry out assignment electronic document afterwards for store electronic documents generating apparatus 4 use real data, for 6 access of face electronic document output unit, carries out the output of electronic document.
The electronic document generating apparatus of the multi-user concurrent based on shown in Fig. 1 to Fig. 3, Fig. 4 shows the process flow diagram according to the electronic document producing method of embodiment of the present invention multi-user concurrent, and the method comprises the following steps:
Step 1: electronic document template generating apparatus generates DOC format electronic document template according to the instruction that is received from the user;
Step 2: the electronic document template that format conversion apparatus is the XML form by the electronic document template switch of this DOC form;
Step 3: the electronic document template of the XML form that the selection of data device for loading conforms to current business is written into internal memory, and is resolved and control;
Step 4: business datum file and the electronic document template of resolving through the data device for loading in electronic document generating apparatus access memory, each node of traversal electronic document template, required content assembling is generated to field code, then be corresponding business datum according to the business datum file by the field code assignment, generate the electronic document that comprises True Data and corresponding format;
Step 5: the electronic document output unit is converted to the electronic document of the XML form after assignment the electronic document of DOC form, for the user, selects to be exported with email face letter, papery face letter or fax electronics face letter mode.
Wherein, the template of electronic document described in step 1 generating apparatus generates DOC format electronic document template according to the instruction that is received from the user, , according to the instruction that is received from the user, required electronic document template content is set, and the attribute that each content is set is multidate information item or static information item, then enable the field code function of Microsoft Word, for the multidate information item in the electronic document template, increase respectively two field codes before and after its text description, for the static information Xiang Ze in the electronic document template, remain unchanged, the final DOC format electronic document template that generates.Described multidate information is for replacing with the information of real data, identifies simply describing, and comprises that customer name is described as Name and the business amount of money is described as Amount; Described static information is convention, comprises form, electronic document title and explanation.Described electronic document template generating apparatus is for increasing respectively two field codes before and after the multidate information Xiang Qi text description in the electronic document template, the ,Gai path, value path of specifying a dynamic variable to mean this in previous field code consistent with the path of corresponding actual data item in the business datum file of the XML form of external data systems generation; Specify the end mark of a string special this dynamic item of character representation in next generation code territory.
The template of electronic document described in step 1 generating apparatus also comprises: this DOC format electronic document template is stored in data storage device after generating DOC format electronic document template according to the instruction that is received from the user.
During electronic document template that format conversion apparatus described in step 2 is the XML form by the electronic document template switch of this DOC form, remove the XML node of document the inside<? mso-application progid=" Word.Document "?, effect is: the form with XML after making the document that is stored as the XML form open represents, and finally generates the Word electronic document template of XML form.
After the electronic document template that format conversion apparatus described in step 2 is the XML form by the electronic document template switch of this DOC form, also comprise: the electronic document template of this XML form is stored in data storage device.
The electronic document template of the XML form that the selection of the device for loading of data described in step 3 conforms to current business is written into internal memory, and in the step of being resolved and controlling, described data device for loading is the business datum file of access external data system acquisition XML form also, and the business datum file of this XML form is carried out to the effect of data legitimacy, for the electronic document generating apparatus, use this business datum to carry out assignment to the field code in the electronic document template.
The output unit of electronic document described in step 5 is converted to the electronic document of the XML form after assignment the electronic document of DOC form, for the user, select with email face letter, papery face letter or fax electronics face letter mode are exported, comprise: described electronic document output unit visit data memory storage obtains the electronic document after the electronic document generating apparatus carries out assignment, and the electronic document of XML form is converted to the electronic document of DOC form, deposit again in all time data storage device, for the user, select with email face letter, papery face letter or fax electronics face letter mode are exported.
The opening as the electronic document producing method (as Fig. 5) of example to multi-user concurrent provided by the invention of import letter of credit face letter of below take is described in detail, and it specifically comprises the following steps:
Step 1: electronic document template generating apparatus 1 receives user instruction, generates the import letter of credit face letter template of DOC form, and " CONFIRMATION OF LC ISSUANCE " is as follows for called after:
Figure BDA0000131491600000121
Step 2: format conversion apparatus 2 is converted to the face letter template of DOC form " CONFIRMATION OF LC ISSUANCE " the face letter template of XML form.
At first, format conversion apparatus 2 use Word open the face letter template of DOC form, save as the XML formatted file; Then, then open the XML formatted file with notepad, by the second row in file "<? mso-application progid=" Word.Document "? > " remove.Finally preserve and generate XML form face letter template in the electronic document template storage unit 51 of data storage device 5, as follows:
Figure BDA0000131491600000122
Step 3: data device for loading 3 access external data systems 7 (international clearing transaction processing system), obtain the import letter of credit business datum file of XML form, and this XML file is carried out to the effect of data legitimacy; Simultaneously, the electronic document template storage unit 51 of visit data memory storage 5, select " CONFIRMATION OF LC ISSUANCE " face letter template to be written into internal memory, utilize CMarkup XML resolver this XML to be resolved and controls (CMarkup is based on " compression " DOM Document Object Model EDOM: " Encapsulated " Document Object Model, without any need for outside XML assembly, analyzer can the quickish array of indexes of setting up.The EDOM method makes to create, navigation and revise incomparable simple of XML.Can certainly use other XML resolver).The import letter of credit business datum file of the XML form obtained is as follows:
Step 4: the field code module units 41 in electronic document generating apparatus 4 analyzes face letter template and assembling generates field code.At first, " CONFIRMATION OF LC ISSUANCE " the face letter template in field code module units 41 traversal internal memories, file fragment as follows is the face letter template fragment that has removed some useless nodes:
Figure BDA0000131491600000132
Figure BDA0000131491600000141
As shown in top boldface letter; field code module units 41 traversal to first<w:r during node; find child node<w:fldChar w:fldCharType=" begin "/; represent the beginning of field code; by ensuing three<w:r > child node<w:instrText in node #DATA LIDGRP REC OWNREF; C, %U& C</w:instrText >,<w:instrText>&=" "</w:instrText,<w:instrText > %#</w:instrText in content be stitched together, be assembled into a complete field code content " #DATA LIDGRP REC OWNREF, C, %U& C&=" " %# ", the 5th<w:r > child node in node<w:fldChar w:fldCharType=" end "/represent the end of field code.So far, the assembly working of a field code completes, forwards step 5 to.If travel through to node<w:docGrid >, forward step 10 to.
Step 5: 42 pairs of assemblings of field code resolution unit field code content is out analyzed, and the Format Type according to analyzing out, enter respectively the different-format processing unit.If static monodrome type field code forwards step 6 to; If dynamic many-valued type field code forwards step 7 to; If logic judgement type field code forwards step 8 to.
For example above-mentioned " #DATA LIDGRP REC OWNREF, C, %U& C&=" " %# " field code, analyzing this field code through field code resolution unit 42 is to start with #, type is static monodrome type, forwards step 6 to and is processed.
Step 6: static single-value data assignment unit 43 according to the data value path in the field code content " DATA LIDGRP REC OWNREF ", search the node of the correspondence in import letter of credit business datum file from internal memory, as the business datum segment in following:
Figure BDA0000131491600000151
Finding its node data in business datum according to the value path is " LC123451100004 ", again according to the data type of stipulating in field code (C means character type) and corresponding format regulation, after business datum is formatd to processing, assignment is in the field code of face letter template.The processing of assignment: by the XML face letter template file segment shown in step 4; by the 6th<w:r > child node<w:t of node OWNREF</w:t content replacement be " LC123451100004 "; next search the 7th to the 9th node; assembling field code content out is " #@X@# "; represent the end of this assignment, so far, completed a static single-value data assignment: #DATA LIDGRP REC OWNREF; C, %U& C&=" " %#}C123451100004{#@X@#}.Forward step 4 to and continue assembling the next field code.
Step 7: if field code out of assembling is to start with " #table# ", as #table#TABLE SETFEG LINE#DOCFEETXT, C, %U& C%#CUR, C, %U& C%#AMT, A, %A& , & .%#}Charges Table{#@X@#} is processed by dynamic many-valued processing unit 54.
For example: when the face letter of DOC form comprises form when following, when front template only has a line three row:
Figure BDA0000131491600000161
After being converted to the face letter of XML form, it thes contents are as follows:
Figure BDA0000131491600000162
Wherein<w:tr > node represents a line,<w:tc > node represents row, when front template only has a line three row, so one<w:tr > three<w:tc is arranged under node > child node.
But according to the value path, (method of looking into and above monodrome similar) obtains six values in internal memory during the query traffic data file, also just says that two row should be arranged, and every row three is listed as, and totally six values will be filled.Therefore copy this<w:tr > all the elements below node, and paste so far<w:tr > the node back, form two row, then six values are filled into to six<w:tc in order son joint<w:t in node in.
(this step is, according to the number of real data, form is carried out to accommodation, after this step, finally by face letter output unit 6, is converted to the face letter after the DOC form, and the table content represented is as follows:
Figure BDA0000131491600000171
)
Forward step 4 to and continue assembling the next field code.
Step 8: if assembling field code out is to start with " #IF=T# " or " #IF=F# ", processed by condition judgment logical block 45.
For example: the processing of the field code that is " #IF=F# " for condition:
The face letter template fragment of XML form is as follows:
Figure BDA0000131491600000172
Field code that its assembling generates be #IF=F#DOCLST LITAPL1 AUTHORISE=" X " #}THIS IS A COMPUTER GENERATED LETTER, NO SIGNATURE REQUIRED.{#@ENDIF@#}
According to the value path in field code, search the value of business datum corresponding node in internal memory for empty, be not equal to " X ", so be judged as vacation, continue the value " THIS IS A COMPUTER GENERATED LETTER, NO SIGNATURE REQUIRED. " in the field code condition in display surface letter template; Equal " X " if search the value of business datum corresponding node in internal memory, by field code #IF=F# DOCLST LITAPL1 AUTHORISE=" X " #} and field code for { all nodes between #@ENDIF@#} are all deleted.
The processing that condition is " #IF=T# ", contrary with the processing logic of " #IF=F# ".If the value of business datum is not equal to " X ", be judged as vacation, all nodes between field code are all deleted; If the value of business datum equals " X ", be judged as very, continue the value in display field code condition.
Be disposed, forward step 4 to and continue assembling the next field code.
Step 9: if static monodrome or dynamically many-valued with automatically hiding formatting enters and automatically hides processing unit 46.
For example: field code #DATA LIDGRP REC OWNREF, C, %U& C& Have in=" " %#} and automatically hide formatting;=" ", if representative value from the business data file is empty, in opposite letter template, the content of this field code is hidden, method be this between field code all<w:r the child node<w:pPr of node in increase child node<w:vanish, face letter template fragment is as follows:
Figure BDA0000131491600000181
So just can realize hiding function, as right<w:vanish > node is while being deleted, and hiding content can display again.Forward step 4 to and continue assembling the next field code.
Step 10: the XML form face letter template of electronic document output unit 6 after will the value of tax, the face letter shelves that save as the DOC form are saved in the electronic document storage unit 53 of data storage device 5, and can select to send the modes such as email, printing papery face letter, fax electronics face letter for the user and be exported.The face letter finally generated is as follows:
Figure BDA0000131491600000191
Below for using the present invention to generate face letters and cables subdocument, with the existing API that calls Word of use, the technical scheme that starts the WINWORD.EXE process generates the pressure test result contrast of face letters and cables subdocument, and (left is test data of the present invention, referred to as newly, the right side is the prior art test data, referred to as old):
Figure BDA0000131491600000192
Wherein: the highest concurrent user number: the concurrent user number that refers to synchronization.
Consuming time: as to refer to the time that final generation face letter is on average used.
From the table data can observe out following situation:
1, adopt technical scheme provided by the invention to adopt the prior art scheme, significantly reduced processing consuming time, improved efficiency.As when 20 user concurrents, the prior art scheme generates 20 parts simultaneously, and the average consuming time of every portion is 147.1 seconds, and technical solution of the present invention is only 2.66 seconds.
2, the stability that generates of face letter that adopted technical scheme provided by the invention to improve, reduced the face letter number of makeing mistakes.Employing prior art scheme is along with concurrent user number increases progressively, and the face letter umber of makeing mistakes also significantly increases, and the situation that the face letter is made mistakes does not appear in technical solution of the present invention.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (29)

1. the electronic document generating apparatus of a multi-user concurrent, is characterized in that, this device comprises:
Electronic document template generating apparatus (1), generate the electronic document template of DOC form, and store in data storage device (5) for the instruction according to being received from the user;
Format conversion apparatus (2), obtain the electronic document template of this DOC form for visit data memory storage (5), the electronic document template that is the XML form by the electronic document template switch of this DOC form, store back in data storage device (5);
Data device for loading (3), obtain the business datum file of XML form for access external data system (7), and the business datum file of this XML form is carried out to the effect of data legitimacy, for electronic document generating apparatus (4), use this business datum to carry out assignment to the field code in the electronic document template of XML form; Simultaneously, data device for loading (3) visit data memory storage (5), the electronic document template of the XML form that selection conforms to current business is written into internal memory, and is resolved and control;
Electronic document generating apparatus (4), the business datum file of resolving through data device for loading (3) for access memory and the electronic document template of XML form, each node of electronic document template of traversal XML form, required content assembling is generated to field code, then according to the business datum file, by the field code assignment, be corresponding business datum, the electronic document that generation comprises True Data and XML form, store in data storage device (5);
Data storage device (5), the electronic document template of the DOC form generated for store electronic documents template generating apparatus (1), the electronic document of the XML form after electronic document generating apparatus (4) carries out the real data assignment, and the corresponding relation of XML node and parameter; And
Electronic document output unit (6), obtain for visit data memory storage (5) electronic document that electronic document generating apparatus (4) carries out the XML form after assignment, and the electronic document of XML form is converted to the electronic document of DOC form, store back again in data storage device (5), select to be exported with email face letter, papery face letter or fax electronics face letter mode for the user.
2. the electronic document generating apparatus of multi-user concurrent according to claim 1, it is characterized in that, described electronic document template generating apparatus (1) generates the electronic document template of DOC form according to the instruction that is received from the user, that the electronic document template content of required DOC form is set according to the instruction that is received from the user, and the attribute that each content is set is multidate information item or static information item, then enable the field code function, for the multidate information item in the electronic document template of DOC form, increase respectively two field codes before and after its text description, for the static information Xiang Ze in the electronic document template of DOC form, remain unchanged, the final electronic document template that generates the DOC form.
3. the electronic document generating apparatus of multi-user concurrent according to claim 2, is characterized in that, described multidate information is for replacing with the information of real data; Described static information is convention, comprises form, electronic document title and explanation.
4. the electronic document generating apparatus of multi-user concurrent according to claim 2, it is characterized in that, described electronic document template generating apparatus (1) is for increasing respectively two field codes before and after the multidate information Xiang Qi text description in the electronic document template of DOC form, the ,Gai path, value path of specifying a dynamic variable to mean this in previous field code consistent with the path of corresponding actual data item in the business datum file of the XML form of external data systems (7) generation; Specify the end mark of a string special this dynamic item of character representation in next generation code territory.
5. the electronic document generating apparatus of multi-user concurrent according to claim 1, it is characterized in that, during electronic document template that described format conversion apparatus (2) is the XML form at the electronic document template switch by this DOC form, remove the XML node of document the inside<? mso-application progid=" Word.Document "?, effect is: the form with XML after making the document that is stored as the XML form open represents, and finally generates the electronic document template of XML form.
6. the electronic document generating apparatus of multi-user concurrent according to claim 1, it is characterized in that, described electronic document generating apparatus (4) comprises field code module units (41), field code resolution unit (42), static single-value data assignment unit (43), dynamic multi-value data assignment unit (44), condition judgment logical block (45) and automatically hiding processing unit (46), wherein field code module units (41) is connected in field code resolution unit (42), field code resolution unit (42) is connected to static single-value data assignment unit (43), dynamic multi-value data assignment unit (44), condition judgment logical block (45) and automatically hiding processing unit (46).
7. the electronic document generating apparatus of multi-user concurrent according to claim 6, it is characterized in that, described field code module units (41) is for analyzing internal memory through each node in the electronic document template of the XML form of data device for loading (3) parsing, obtain corresponding contents, be assembled into complete field code, then be forwarded to field code resolution unit (42) and carry out the field code analysis.
8. the electronic document generating apparatus of multi-user concurrent according to claim 7, is characterized in that, the data handling procedure of described field code module units (41) is as follows:
At first, field code module units (41) visit data memory storage (5) obtains node corresponding to all parameters of A1-A13, is kept in internal memory; Then, the electronic document template of the XML form of resolving through data device for loading (3) in access memory, just travel through in order the electronic document template of XML form: as find<w:r > during node, if find under its child node<w:fldChar w:fldCharType=" begin "/node, mean it is the beginning of field code herein; Continuation travels through back<w:r in order > node, by their child nodes<w:instr Text > content take out, be stitched together in order, until find a child node for<w:fldChar w:fldChar Type=" end "/<w:r during node, represent that field code finishes; Then, the content found is stitched together in the mode of character sequentially, obtains complete field code; Then, field code module units (41) is supspended traversal processing, turns by field code resolution unit (42) the field code content is analyzed; After treating that other unit carry out assignment or processing to this field code, continue the electronic document template of traversal XML form, carry out the assembling of the next field code; In the ergodic process of the electronic document every template node of the XML form that uses recursive algorithm, when traveling through to node<w:docGrid > time, the representative traversal finishes, and no longer the electronic document template of XML form is traveled through.
9. the electronic document generating apparatus of multi-user concurrent according to claim 6, it is characterized in that, described field code resolution unit (42) is the field code content through field code module units (41) assembling for the electronic document template to the XML form, analyze its data value path, and according to the difference of field code form, determine the classification of field code, thereby determine to call static single-value data assignment unit (43), dynamic multi-value data assignment unit (44), condition judgment logical block (45) or automatically hide processing unit (46) and respectively field code is carried out to the assignment processing, after the complete field code of assignment, go back to field code module units (41) and continue assembling the next field code.
10. the electronic document generating apparatus of multi-user concurrent according to claim 9, is characterized in that,
If described field code resolution unit (42) analysis show that field code starts with " # ", is static monodrome type field code, forward static single-value data assignment unit (43) to and processed;
If it is to start with " #table# " that described field code resolution unit (42) analysis draws field code, is dynamic many-valued type field code, forwards dynamic multi-value data assignment unit (44) to and processed;
If described field code resolution unit (42) analysis draws field code and starts with " #IF=T# " or " #IF=F# ",, for logic judgement formula type field code, forward condition judgment logical block (45) to and processed;
If described field code resolution unit (42) analysis draws the automatically hiding format setting existed in static monodrome or dynamic multi-domain code: " " forwards the automatic processing unit (46) of hiding to and processed.
11. the electronic document generating apparatus of multi-user concurrent according to claim 6, it is characterized in that, described static single-value data assignment unit (43) is for resolving the data value path of the static monodrome type field code obtained according to field code resolution unit (42), the node of correspondence in the business datum file of XML form in access memory, and take out its data content, again according to the data type of stipulating in field code and corresponding format regulation, business datum is formatd to processing, then assignment is to field code corresponding in the electronic document template of the XML form in internal memory.
12. the electronic document generating apparatus of multi-user concurrent according to claim 11, is characterized in that, the data type of stipulating in described field code comprises: D means the date type, and C means character type, and N means data type, and A means amount of money type.
13. the electronic document generating apparatus of multi-user concurrent according to claim 11, it is characterized in that, described static single-value data assignment unit (43) assignment is during to field code corresponding in the electronic document template of the XML form in internal memory, to supspend the next one<w:r of traversal position from field code module units (41) > node, travel through in order back<w:r node, until find the field code that representative finishes; By between this pair of field code first<w:r child node<w:t under node the business datum of content assignment after for format, finally by remaining<w:r child node<w:t under node content all empty; So far complete the assignment work of a static monodrome, forwarded field code module units (41) assembling the next field code to.
14. the electronic document generating apparatus of multi-user concurrent according to claim 6, it is characterized in that, described dynamic multi-value data assignment unit (44) is for resolving the data value path of the dynamic many-valued type field code obtained according to field code resolution unit (42), in access memory, the node of correspondence in the business datum file of XML form, obtain its data content the assignment electronic document template to the XML form in internal memory.
15. the electronic document generating apparatus of multi-user concurrent according to claim 14, it is characterized in that, described dynamic multi-value data assignment unit (44) is in assignment during to the electronic document template of the XML form in internal memory, at first go out many static monodrome field codes according to dynamic multi-domain code analysis, thereby obtain a plurality of data values path, according to the business datum of the corresponding node in value path searching business datum file, the business datum content of many groups found is carried out to the pop down processing; Then, travel through in order the XML form the electronic document template<w:tbl node, calculate its child node<w:tr > number; If the line number of form is node<w:tr > number fewer than the group number of business datum, replica node<w:tr > and all the elements of following child node, repeat to paste at its end, until<w:tr number and the group number of business datum equate; If node<w:tr > number more than the group number of business datum, the node<w:tr of Delete superfluous >; After the line number additions and deletions have operated, then to travel through every a line<w:tr > node, to travel through each the row<w:tc under every row simultaneously > node, get the child node<w:r under content replacement in storehouse row by the principle that last in, first out > child node<w:t in content, until the row under all row in form have all completed assign operation, forward field code module units (41) assembling the next field code to.
16. the electronic document generating apparatus of multi-user concurrent according to claim 6, it is characterized in that, described condition judgment logical block (45) is for resolving the data value path of the logic judgement formula type field code obtained according to field code resolution unit (42), the business datum content of corresponding node in the business datum file in access memory, with the conditional content in the current field code of the electronic document template of XML form, compare, if the business datum content with do not meet when precondition, the all the elements in this pair of condition field code in the electronic document template of XML form are deleted, if the conditional content in business datum content and the current field code meets, do not make deletion action, simultaneously to the field code in condition and range, calling field code resolution unit (42) analyzes again, divide into static monodrome and dynamic many-valued type, forward to static single-value data assignment unit (43) or dynamically multi-value data assignment unit (44) processed.
17. the electronic document generating apparatus of multi-user concurrent according to claim 16, it is characterized in that, described condition judgment logical block (45) is deleted all the elements in this pair of condition field code in the electronic document template of XML form, comprising:
Described condition judgment logical block (45) judges whether the conditional content of the current field code in the electronic document template of business datum content and XML form meets, if do not meet with current conditional content, travel through in order the XML form electronic document template back<w:r the child node<w:t of node, it is carried out to deletion action, until traverse the field code that assembling field code out means that condition judgment finishes, forward field code module units (41) assembling the next field code to.
18. the electronic document generating apparatus of multi-user concurrent according to claim 6, it is characterized in that, described automatically hide processing unit (46) for according to field code resolution unit (42), resolve obtain that static monodrome type or dynamic many-valued type field code exist automatically hide format setting, hiding content in the electronic document template of the business datum content that obtains and XML form is made comparisons, if content is identical, the processing of content of this field code being hidden.
19. the electronic document generating apparatus of multi-user concurrent according to claim 18, it is characterized in that, hide for judging to do the field code of processing, travel through in order back<w:r node, at its child node<w:pPr > in increase child node<w:vanish, until arrive the field code that representative finishes, thus realize the hidden function of content between this pair of field code, then forward field code module units (41) assembling the next field code to.
20. the electronic document generating apparatus of multi-user concurrent according to claim 1, is characterized in that, described data storage device (5) comprising:
Electronic document template storage unit (51), the electronic document template of the DOC form generated for store electronic documents template generating apparatus (1), and the electronic document template of storage XML form of generation after electronic file form conversion equipment (3) is accessed and changed;
Parameter storage unit (52), for the corresponding relation of storing X ML node and parameter, so that electronic document generating apparatus (4) obtains the required node searched out in the XML format module, carry out respective handling; And
Electronic document storage unit (53), carry out the electronic document of assignment XML form afterwards for store electronic documents generating apparatus (4) by real data, for face electronic document output unit (6) access, carry out the output of the electronic document of XML form.
21. the electronic document generating apparatus of multi-user concurrent according to claim 1, it is characterized in that, described electronic document template generating apparatus (1), format conversion apparatus (2), data device for loading (3) and electronic document generating apparatus (4) are connected successively, and data storage device (5) is connected to format conversion apparatus (2), data device for loading (3), electronic document generating apparatus (4) and electronic document output unit (6).
22. the electronic document producing method of a multi-user concurrent, be applied to the described device of any one in claim 1 to 21, it is characterized in that, comprising:
Electronic document template generating apparatus generates the electronic document template of DOC form according to the instruction that is received from the user;
The electronic document template that format conversion apparatus is the XML form by the electronic document template switch of this DOC form;
The electronic document template of the XML form that the selection of data device for loading conforms to current business is written into internal memory, and is resolved and control;
The business datum file of resolving through the data device for loading in electronic document generating apparatus access memory and the electronic document template of XML form, each node of electronic document template of traversal XML form, required content assembling is generated to field code, then be corresponding business datum according to the business datum file by the field code assignment, generate the electronic document that comprises True Data and XML form; And
The electronic document output unit is converted to the electronic document of the XML form after assignment the electronic document of DOC form, for the user, selects to be exported with email face letter, papery face letter or fax electronics face letter mode.
23. the electronic document producing method of multi-user concurrent according to claim 22, it is characterized in that, described electronic document template generating apparatus generates the electronic document template of DOC form according to the instruction that is received from the user, that the electronic document template content of required DOC form is set according to the instruction that is received from the user, and the attribute that each content is set is multidate information item or static information item, then enable the field code function, for the multidate information item in the electronic document template of DOC form, increase respectively two field codes before and after its text description, for the static information Xiang Ze in the electronic document template of DOC form, remain unchanged, the final electronic document template that generates the DOC form.
24. the electronic document producing method of multi-user concurrent according to claim 23, is characterized in that, described multidate information is for replacing with the information of real data; Described static information is convention, comprises form, electronic document title and explanation.
25. the electronic document producing method of multi-user concurrent according to claim 23, it is characterized in that, described electronic document template generating apparatus is for increasing respectively two field codes before and after the multidate information Xiang Qi text description in the electronic document template of DOC form, the ,Gai path, value path of specifying a dynamic variable to mean this in previous field code consistent with the path of corresponding actual data item in the business datum file of the XML form of external data systems generation; Specify the end mark of a string special this dynamic item of character representation in next generation code territory.
26. the electronic document producing method of multi-user concurrent according to claim 22, it is characterized in that, during electronic document template that described format conversion apparatus is the XML form by the electronic document template switch of this DOC form, remove the XML node of document the inside<? mso-application progid=" Word.Document "?, effect is: the form with XML after making the document that is stored as the XML form open represents, and finally generates the electronic document template of XML form.
27. the electronic document producing method of multi-user concurrent according to claim 22, is characterized in that,
Described electronic document template generating apparatus also comprises: the electronic document template of this DOC form is stored in data storage device after generating the electronic document template of DOC form according to the instruction that is received from the user;
After the electronic document template that described format conversion apparatus is the XML form by the electronic document template switch of this DOC form, also comprise: the electronic document template of this XML form is stored in data storage device.
28. the electronic document producing method of multi-user concurrent according to claim 22, it is characterized in that, the electronic document template of the XML form that described data device for loading selection conforms to current business is written into internal memory, and in the step of being resolved and controlling, described data device for loading is the business datum file of access external data system acquisition XML form also, and the business datum file of this XML form is carried out to the effect of data legitimacy, for the electronic document generating apparatus, use this business datum to carry out assignment to the field code in the electronic document template of XML form.
29. the electronic document producing method of multi-user concurrent according to claim 22, it is characterized in that, described electronic document output unit is converted to the electronic document of the XML form after assignment the electronic document of DOC form, select to be exported with email face letter, papery face letter or fax electronics face letter mode for the user, comprising:
Described electronic document output unit visit data memory storage obtains the electronic document that the electronic document generating apparatus carries out the XML form after assignment, and the electronic document of XML form is converted to the electronic document of DOC form, store back again in data storage device, select to be exported with email face letter, papery face letter or fax electronics face letter mode for the user.
CN201210014694.5A 2012-01-17 2012-01-17 Multiuser concurrent electronic document generation device and method Active CN102541829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210014694.5A CN102541829B (en) 2012-01-17 2012-01-17 Multiuser concurrent electronic document generation device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210014694.5A CN102541829B (en) 2012-01-17 2012-01-17 Multiuser concurrent electronic document generation device and method

Publications (2)

Publication Number Publication Date
CN102541829A CN102541829A (en) 2012-07-04
CN102541829B true CN102541829B (en) 2014-01-01

Family

ID=46348755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210014694.5A Active CN102541829B (en) 2012-01-17 2012-01-17 Multiuser concurrent electronic document generation device and method

Country Status (1)

Country Link
CN (1) CN102541829B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298652A (en) * 2013-07-19 2015-01-21 深圳习习网络科技有限公司 Electronic test paper format conversion method and device
CN105630754A (en) * 2015-12-31 2016-06-01 上海精学锐信息科技有限公司 Method and device for controlling document conversion
CN106874019A (en) * 2017-03-17 2017-06-20 微梦创科网络科技(中国)有限公司 The generation method and skeletal code maker of a kind of skeletal code
CN110196965B (en) * 2018-02-26 2021-04-09 北大方正集团有限公司 Method and device for converting XML (extensive Makeup language) file into Word file
CN108763171B (en) * 2018-04-20 2021-12-07 中国船舶重工集团公司第七一九研究所 Automatic document generation method based on format template
CN109710902A (en) * 2018-08-17 2019-05-03 深圳壹账通智能科技有限公司 Generation method, device, equipment and the computer readable storage medium of PDF document
CN110737629A (en) * 2019-08-30 2020-01-31 华迪计算机集团有限公司 method and system for archiving electronic files
CN110580330B (en) * 2019-09-03 2023-04-07 中建易通科技股份有限公司 File processing method for filling electronic form
CN111399900B (en) * 2020-03-10 2023-04-07 山东汇贸电子口岸有限公司 API document automatic generation method and system based on python and regular expression
CN117077650B (en) * 2023-10-18 2024-02-06 金现代信息产业股份有限公司 Document generation system, method, equipment and medium based on dynamic template configuration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196886A (en) * 2006-12-08 2008-06-11 鸿富锦精密工业(深圳)有限公司 System and method for converting word files into XML files
CN101706772A (en) * 2009-12-14 2010-05-12 中国移动通信集团山西有限公司 Method and device for operating Word document
CN101963955A (en) * 2010-09-17 2011-02-02 深圳市万兴软件有限公司 System and method for converting XML format document into Word format document

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2000264369A1 (en) * 2000-07-22 2002-02-05 Abb Research Ltd System and method for generating an xml-based error model
US7313917B2 (en) * 2004-07-01 2008-01-01 Cornell Research Foundation, Inc. Volume phase transition to induce gel movement
US7440967B2 (en) * 2004-11-10 2008-10-21 Xerox Corporation System and method for transforming legacy documents into XML documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196886A (en) * 2006-12-08 2008-06-11 鸿富锦精密工业(深圳)有限公司 System and method for converting word files into XML files
CN101706772A (en) * 2009-12-14 2010-05-12 中国移动通信集团山西有限公司 Method and device for operating Word document
CN101963955A (en) * 2010-09-17 2011-02-02 深圳市万兴软件有限公司 System and method for converting XML format document into Word format document

Also Published As

Publication number Publication date
CN102541829A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541829B (en) Multiuser concurrent electronic document generation device and method
CN101174240B (en) Software testing management method and system thereof
CN106775770B (en) Search method for constructing query statement based on class information
US7698634B2 (en) System and method for data manipulation
US6996589B1 (en) System and method for database conversion
US7103835B1 (en) Process builder for a routable electronic document system and method for using the same
US7840895B2 (en) System and method for data manipulation
US7904418B2 (en) On-demand incremental update of data structures using edit list
CN101908015B (en) Device and method for creating test case based on components
CN107423061A (en) A kind of list generation method based on ISON data
US8326864B2 (en) Method, system, and computer program product for implementing automated worklists
WO2016060547A1 (en) Emulating manual system of filing using electronic document and electronic file
CN107273117A (en) A kind of quick Code automatic build system for programming friendly
CN107273122A (en) Based on decoupling mechanism can iteration set up operation system method and its terminal
US20170228356A1 (en) System Generator Module for Electronic Document and Electronic File
WO2006102512A2 (en) Change control management of xml documents
WO2006096667A1 (en) System and method for providing data manipulation as a web service
JP2003532173A (en) Method and system for applying an XML schema
JP2003529829A (en) Methods and systems for modeling legacy computer systems
US20050120014A1 (en) System and method for generating SQL using templates
CN111694547A (en) Automatic coding data processing application design tool based on data state change
CN1492355A (en) Automatically forming system and method for patent analysis report
CN105808772A (en) Data defining file generation method and device
CN104717082A (en) Service model adaptation method and system
CN115905353A (en) Associated data export and import method, device, equipment and storage medium

Legal Events

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