A kind of special equipment supervising platform report toolTechnical field
The present invention relates to special equipment inspection technology field, specially a kind of special equipment supervising platform report tool.
Background technique
Special equipment supervision and inspection institute needs to provide equipment survey report after completing corresponding inspection work, extraordinaryEquipment report template is varied, and supervising platform needs to provide Reporting Tools and drawn, after template is drawn successfully, according to correspondingInspection data formed survey report.
All it is to buy Integrated Development after ready-made report plug-in unit, but there are many deficiencies in previous project, is drawn in reportWhen, the element of class Excel report tool requires dragging one by one and draws, independently names, and basic drafting amount is huge,It is time-consuming and laborious;
Also there is a deficiency using upper after drawing, as follows:
1, reviewer, auditor can not mark template;
2, multi-page combined operation is not supported;
3, duplication inset operation can not be carried out;
4, low efficiency, encounter it is very slow when a reports of page tens save,
5, compatibility is low, only supports IE8 and can not be compatible with other plug-in units or tool.
Therefore, it is proposed that a kind of special equipment supervising platform report tool, in order to which solve to propose among the above asksTopic.
Summary of the invention
The purpose of the present invention is to provide a kind of special equipment supervising platform report tools, to solve above-mentioned background techniqueThe current special equipment supervising platform report tool proposed is not easy to dragging and draws, and autonomous to name, basic drafting amount is big,And it is time-consuming and laborious, while can not be labeled, and page linkage can not be carried out, duplication inset can not be carried out and operated, low efficiency,The low problem of compatibility simultaneously.
To achieve the above object, the invention provides the following technical scheme: a kind of special equipment supervising platform report tool,It being imported including Word report template, the Word report template carries out Word report template filler automatic identification after importing, andWord report template is carried out after Word report template filler automatic identification from turn web page template, and Word report template is certainlySuccessively carried out after turn web page template webpage report template page table list automatically generates, webpage report template automatically analyzes parsing,Webpage report template auto version managing, webpage report template manual setting, which are drawn molding and inspected, calls report template to fill outIt makes up the number evidence.
Preferably, the Word report template importing specifically includes: providing primary word by special equipment reviewer and reportsSlide former, while report template producer uploads former after filling template basic data (such as template name, flow type)Raw word template is to computer system, and report template producer can also repeat importing, parsing after downloads template fine tuning.
Preferably, the Word report template filler identification specifically includes:
Step 1: computer system can realize mark function by original xml documents such as parsing word/document.xml;
Step 2: computer system using in the primary word report template of docx4j automatic identification the void item in need filled in,Then automatically ruleization name label is carried out;
Step 3: carrying out Word report template from turn web page template after carrying out automatic paging marking operation.
Preferably, concrete operation step of the Word report template from turn web page template are as follows: computer system willLabeled word report template is converted into webpage report template, carries out document conversion, the mould after conversion using docx4j at presentPlate data are stored in memory with String type for parsing in next step.
Preferably, the concrete operation step that the webpage report template page table list automatically generates are as follows: computer system rootWebpage report template is automatically parsed according to the label in primary Word template, generation could fill out list.
Preferably, the concrete operation step of the webpage report template automatic paging parsing are as follows: computer system is according to originalWebpage report template is carried out automatic paging by raw Word template paging label, artificial paging label.
Preferably, the webpage report template auto version managing is to count after being parsed by webpage report template automatic pagingCalculation machine system automatically generated template version relevant information.
Preferably, the webpage report template manual setting is drawn molding and is specifically included: on basic webpage template reportWebpage development is carried out, and can be developed in the webpage layout tool that computer system provides, and can be in external web page workIt is adjusted in tool.
Preferably, described to have inspected the concrete operation step for calling report template filling data are as follows: to report mould in webpageAfter molding is drawn in plate manual setting, and computer system Reporting Tools are opened after having inspected through reviewer, fill in reportPractice examining data, and print stamped signature pdf report.
Preferably, the printing stamped signature pdf report specifically includes: having filled in inspection data through reviewer, has flowed by examiningFor journey after repeatedly examination & approval pass through, computer system automatically generates the report of the pdf with stamped signature, and prints papery by computer systemReport.
Compared with prior art, the beneficial effects of the present invention are: the special equipment supervising platform report tool, quickWhile generating special equipment report template, report template producing efficiency can be significantly promoted, simplifies report and uses, meet and examinePersonnel's various actual functional capability demands in implementation process;
1. the adjustment of font and font size can be carried out when logging data, so that data make a report on more specification, beauty.
2. can be labeled to the content on Report Page.
3. according to the actual situation, supporting more Report Page combined operations.
4. paging is supported to save, improves and save efficiency.
5. dynamic inset operation can be carried out during reporting editor.
6. can carry out reporting the function that collates copies according to the actual situation.
7. after reporting format variation, the data of old form report can be extracted with the report tool of version.
8. flexibly report typing control function.
9. supporting silent, quick, bulk print function.
10. compatible each version browser.
Detailed description of the invention
Fig. 1 is computer system schematic diagram of logic principle of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, the present invention provides a kind of technical solution: a kind of special equipment supervising platform report tool, includingWord report template imports, and Word report template carries out Word report template filler automatic identification after importing, and Word is reportedWord report template is carried out after template filler automatic identification from turn web page template, and Word report template is from turn webpageSuccessively carried out after template webpage report template page table list automatically generates, webpage report template automatically analyzes parsing, webpage reportTemplate auto version managing, webpage report template manual setting, which are drawn molding and inspected, calls report template filling data.
Word report template importing as shown in figure 1 specifically includes: providing primary word by special equipment reviewer and reports mouldPlate, while report template producer uploads primary after filling template basic data (such as template name, flow type)Word template is to computer system, and report template producer can also repeat importing, parsing after downloads template fine tuning, thusThe data of typing can be carried out with the adjustment of font and font size, and then data is enabled to make a report on beauty, Word reportThe identification of template filler specifically includes: step 1: computer system can pass through the original xml text such as parsing word/document.xmlPart realizes mark function;Step 2: computer system is filled out using institute is in need in the primary word report template of docx4j automatic identificationThen the void item write carries out automatically ruleization name label;Step 3: carrying out Word report after carrying out automatic paging marking operationSlide former is able to carry out mark from turn web page template, is convenient for identifying.
Concrete operation step of the Word report template from turn web page template as shown in figure 1 are as follows: computer system will be markedThe word report template crossed is converted into webpage report template, carries out document conversion, the template number after conversion using docx4j at presentThe storage of String type in memory for parsing in next step accordingly, the specific behaviour that webpage report template page table list automatically generatesMake step are as follows: computer system automatically parses webpage report template according to the label in primary Word template, and generation could fill out tableIt is single, the concrete operation step of webpage report template automatic paging parsing are as follows: computer system is according to primary Word template paging markWebpage report template is carried out automatic paging by label, artificial paging label, consequently facilitating carrying out paging preservation, is conducive to improve effectRate, while can support page combined operation according to the actual situation.
Webpage report template auto version managing is computer after being parsed by webpage report template automatic paging as shown in figure 1System automatically generated template version relevant information, it is preferred that webpage report template manual setting is drawn molding and specifically included: in baseWebpage development is carried out in the report of plinth web page template, and can be developed in the webpage layout tool that computer system provides, andIt can be adjusted in external web page tools, so as to carry out reporting the function that collates copies according to the actual situation, and with the report of versionTable tool can extract the data of old form report after reporting format variation.
The concrete operation step for calling report template filling data has been inspected as shown in figure 1 are as follows: in webpage report template handAfter molding is drawn in work adjustment, and computer system Reporting Tools are opened after having inspected through reviewer, it is practical to fill in reportInspection data, and stamped signature pdf report is printed, printing stamped signature pdf report specifically includes: having filled in check number through reviewerAccording to by inspection process after repeatedly examination & approval pass through, computer system automatically generates the report of the pdf with stamped signature, and passes through computerThe report of system print papery, is convenient for providing for report.
Carry out the special equipment supervising platform report tool in use, being provided first by special equipment reviewerPrimary word report template, report template producer after filling template basic data (such as template name, flow type),Upload primary word template.Report template producer can also repeat importing, parsing after downloads template fine tuning;And due to MicrosoftWord 2007 editions provides the new default document format based on Office Open XML later, and computer system can pass through parsingThe original xml document such as word/document.xml realizes that mark function, computer system are primary using docx4j automatic identificationIn word report template the void item in need filled in, then carry out automatically ruleization name label, such as:<w:t>{ id: 'Conclusion_B_1_4 ', type: ' select ', bindtype: ' code ', binddata: ' and [{ id: ' meets ', text: 'Meet ' }, { id: ' is not met ', text: ' do not meet '] '</w:t>, then automatic paging marking operation is carried out, such as:<w:bookmark w:id="2" w:name="RTPAGE__PAGE2"/>;
Then the word report template of marked mistake is converted webpage report template by computer system, at present using docx4j intoShelves of composing a piece of writing are converted, and the template data after conversion is stored with String type in memory for parsing in next step, computer systemWebpage report template is automatically parsed according to the label in primary Word template, generation could fill out list, for example, due to front end frameUsing ligerui, computer system can be as follows by label parsing in step 2: < input id=" conclusion_B_1_4 "Name=" conclusion_B_1_4 " type=" input " ltype=" select " ligerui=" { data: ' [{ id: ' symbolClose ', text: ' meet ', { id: ' is not met ', text: ' do not meet '] "/>
Computer system is divided webpage report template further according to primary Word template paging label, artificial paging label automaticallyPage, simultaneous computer system automatically generated template version relevant information carry out webpage development on basic webpage template report, canIt is developed in the webpage layout tool that computer system provides, can also adjust in external web page tools, be wanted until reaching clientThe standard asked.
Finally, reviewer opens computer system Reporting Tools after having inspected, report practice examining data are filled in,And reviewer has filled in inspection data, by inspection process after repeatedly examination & approval pass through, computer system automatically generates band stamped signaturePdf report, window personnel can by computer system print papery report, here it is the special equipment supervising platform reportsThe entire use process of tool, the content being not described in detail in this specification belong to existing well known to professional and technical personnel in the fieldThere is technology.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field, needsIllustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation withAnother entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realitiesThe relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludabilityContain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also includingOther elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the elementProcess, method, article or equipment in there is also other identical elements.
Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art,It is still possible to modify the technical solutions described in the foregoing embodiments, or part of technical characteristic is carried out etc.With replacement, all within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in thisWithin the protection scope of invention.