CN103778732A - Electronic-invoice issuing method and device - Google Patents

Electronic-invoice issuing method and device Download PDF

Info

Publication number
CN103778732A
CN103778732A CN201210401380.0A CN201210401380A CN103778732A CN 103778732 A CN103778732 A CN 103778732A CN 201210401380 A CN201210401380 A CN 201210401380A CN 103778732 A CN103778732 A CN 103778732A
Authority
CN
China
Prior art keywords
invoice
xml
template
data
printing
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.)
Pending
Application number
CN201210401380.0A
Other languages
Chinese (zh)
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.)
FORESEE TECHNOLOGY Co Ltd
Original Assignee
FORESEE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FORESEE TECHNOLOGY Co Ltd filed Critical FORESEE TECHNOLOGY Co Ltd
Priority to CN201210401380.0A priority Critical patent/CN103778732A/en
Publication of CN103778732A publication Critical patent/CN103778732A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides an electronic-invoice issuing method and device so as to better meet demands for invoice issuing, wherein the electronic-invoice issuing method includes: defining an XML-based invoice template definition file including definition of an input interface and definition of a printing format; according to the XML invoice template definition file, generating an XML invoice template definition file in a visualization manner; dynamically generating the invoice input interface; and according to the definition of the printing format in the XML invoice template definition file, printing invoice data.

Description

A kind of electronic invoice is opened method and device
Technical field
The present invention relates to e-commerce technology, particularly a kind of electronic invoice is opened method and device.
Technical background
Along with deepening constantly of China's economic development and the taxation reform, the work of managing bill is also constantly improving, in this process, the construction of online invoice system is a very important step, and each provinces and cities of the whole nation have started to build online invoice system in succession in recent years.Although managing bill method in all parts of the country is similar, but the concrete business demand of various places still has certain otherness, especially the input interface of invoice issuing and the diversity ratio of print format are larger, even in same place, along with the development of business, the input interface of invoice issuing and print format also can often change.Like this, online invoice system must carry out customization fast for the business demand in somewhere to be implemented, and the variation of response service fast.
Invoice issuing and data acquisition have technically certain similarity, all need to customize input interface according to business form, all need to support various typing types and data layout, all need the function such as supported data validity check, user's prompting, and all need printing function.In the past in the enterprise information system evolution of more than ten years, data acquisition system (DAS) has a great development, occurred a lot of outstanding products, these products have generally all adopted the technology of custom built forms, have realized customizing fast and have implemented and the energy system of response change fast.
But traditional data acquisition technology still has certain difference compared with invoice issuing technology:
1) business of invoice issuing is stronger, and it is stronger that input interface is deferred to the requirement of actual invoice pattern;
2) printing invoice need to use cover to beat technology, and accurately print position and the form of control data item and lines, need to support the printing of the complex contents such as Quick Response Code;
3) frequency of utilization of invoice issuing is very high, and ease for use requires higher;
4) usable range of invoice data is very wide, except billing system, other application systems of tax authority systems such as (as:) core expropriation and management, the online tax bureau, a family formula inquiry, the paying taxes services even business management system of enterprise also need to use, necessary supporting technology platform-neutral.
Traditional data acquisition and invoice issuing method can not meet these requirements of invoice issuing completely, so need to provide a kind of new electronic invoice to open method and system.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of electronic invoice to open method and device, to meet better the requirement of invoice issuing.
In order to achieve the above object, a kind of electronic invoice that the embodiment of the present invention provides is opened method, comprising:
The invoice template definition file of definition based on XML, comprises the definition of input interface and the definition of print format;
Generate visually XML invoice template definition file;
According to XML invoice template definition file, dynamically generate invoice entering interface;
According to the print format definition of XML invoice template definition file the inside, printed invoice data.
In order to achieve the above object, a kind of electronic invoice that the embodiment of the present invention provides is opened device, comprising:
Model customization device, for generating visually XML invoice template definition file;
Invoice typing module, for according to XML invoice template definition file, dynamically generates invoice entering interface;
Printing invoice module, for defining according to the print format of XML invoice template definition file the inside, printed invoice data.
Modules of the present invention all only depends on the structure of XML invoice template definition, between do not have direct dependence, can separately realize, this has improved componentization degree and the reusability of each module
Accompanying drawing explanation
Fig. 1 is the process flow diagram that in the embodiment of the present invention, a kind of electronic invoice is opened method.
Fig. 2 is the structural representation that in the embodiment of the present invention, a kind of electronic invoice is opened device.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
The object of the invention is to solve the business otherness and the changeableness problem that in invoice on-line system implementation process, run into, provide a kind of electronic invoice based on XML custom built forms to open method and apparatus, flexibly, rapidly according to input interface and the print format of business demand customization invoice issuing, effectively promote the efficiency that invoice on-line system is implemented, improving the tax bureau provides the quality of service to taxpayer.
In an embodiment of the present invention, electronic invoice is opened method and is comprised:
Step 101: the invoice formwork structure of definition based on XML, comprises the definition of input interface and the definition of print format.In this step, utilize XML invoice masterplate defined file to define invoice stencil structure.
The following content of described XML invoice template definition file including: template definition node, wherein comprise the base attributes such as template name, template height, template width, background picture, under it, comprise items(project), printer(setting of printing), printing(prints configuration), data(data) etc. node.
Below items node, be the whole template elements (template elements comprises: invoice master project, invoice order of magnitude, invoice background picture, form etc.) that define in template, and the position relationship of these elements.The position relationship of template elements is divided into two kinds, form location and absolute fix.The grammer of form position reference HTML, table represents form, and tr represents the row of form, and td represents the cell of table row the inside, and cell generally corresponds to a template elements; The template elements of absolute fix, not in form, directly defines it laterally and along slope coordinate.The attribute definition of template elements comprises: base attribute (code, title, title, explanation, item types), display properties (word lateral alignment mode, the longitudinal alignment thereof of word, font name, font size, font color, frame shows to be controlled, frame size, background color), whether title attribute (shows title, title block is wide, caption position, word lateral alignment mode, the longitudinal alignment thereof of word, font name, font size, font color, frame shows to be controlled, background color), (the whether absolute fix of position and size attribute, left side distance, rightmargin, highly, width, places, hurdle, row span, row span), whether print attribution (prints project, whether print header, frame is printed and is controlled, title frame is printed and is controlled, print lateral excursion, print vertical misalignment), whether data attribute (must be filled out, minimum length, maximum length, data type, decimal digits, minimum value, maximal value, whether read-only, display format, edit format, coupling expression formula, correspondence database field, default value, drop-down selective listing, value is carried out Source Type, value is carried out source name), intelligence typing attribute (column code, whether automatically preserve, associated item).
The basic setup that printer node comprises printing: transversal displacement, vertical misalignment amount, whether overlap beat, type face is high, print page width, Print direction etc.
Below printing node, comprise the printing configuration of the template elements of all needs printings, this is that template configures generation automatically according to template elements in preserving, without human configuration.
The invoice data of having inputted when data node has been preserved preview can use these data in template preview, test printing, adjustment print parameters.
Step 102: generate visually XML invoice template definition file; Can, according to the requirement of invoice typing and printing, generate and meet XML invoice template definition file defined above.This step can realize by masterplate customizer.
Model customization device merotomizes: 1) basic function menu, comprises: open template file, preserve template file, save as template file, checking data, empty data, the function menu such as the preview of making out an invoice, Print Preview, printing; 2) invoice basic setup, refers to the basic setup of whole XML template, mainly comprises background picture attribute, master project form attributes, setting of printing etc.; 2) invoice master project arranges, and lists the master project of invoice template, can increase, delete, revises master project, and can adjust the DISPLAY ORDER of master project; 3) order of magnitude setting, lists the order of magnitude of invoice template, can increase, delete, revises order of magnitude, and can adjust the DISPLAY ORDER of order of magnitude; 4) preview of making out an invoice, arranges the interface of dynamic generation invoice typing according to basic setup, the setting of main body project, order of magnitude; 5) Print Preview, the print format of preview invoice.
Step 103: according to XML invoice template definition file, dynamically generate invoice entering interface, the inside embeds and uses in invoice on-line system, and this step can be assembled into the invoice information of user's typing invoice data XML message;
Input interface can provide the typing modes such as conventional single-line text boxes, multiline text frame, formatted data frame, date choice box, multiselect frame, radio box, drop-down choice box, also supports in addition the demonstration of read-only text and picture.This input interface possesses friendly user and experiences, to each template elements that needs typing, can dynamically generate input requirements prompt text according to configuration, can limit invalid character typing, can carry out verification to the scope of data, can make verification and prompting to invalid data, also support intelligent input function (data of recording user input automatically, when input next time, Auto-matching is taken out of).
Step 104: according to the print format definition of XML invoice template definition file the inside, printed invoice data.
Described printing invoice process is according to the description of the data node of XML template the inside, the process by the data-printing of required printing to printer.Print What is supported word, lines, picture (for example Quick Response Code).Printing invoice module externally provides printing interface, and interface has XML to print configuration file content and two parameters of invoice data XML message.
Fig. 2 is the structural representation that in the embodiment of the present invention, a kind of electronic invoice is opened device.As shown in Figure 2, this device comprises:
Model customization device, for generating visually XML invoice template definition file, it is a kind of visual XML invoice template definition file generated instrument; Invoice typing module, for according to XML invoice template definition file, dynamically generates invoice entering interface; Printing invoice module, for defining according to the print format of XML invoice template definition file the inside, printed invoice data.
Compared with prior art, electronic invoice provided by the invention is opened method and apparatus and is had following advantage: XML invoice template definition possesses extraordinary dirigibility, is enough to the otherness of the business of tackling and the frequent variations of business; XML invoice template can accurately be controlled the printing of each data item and lines, supports cover to beat; XML invoice template definition the unified irrelevant standard of technology platform, make modules of the present invention in different systems, to adopt different technology to realize; Invoice typing module is carried out user for invoice issuing process specially and is experienced optimal design, supports real time data verification and prompting, and supports intelligent typing efficiently; Modules of the present invention all only depends on the structure of XML invoice template definition, between do not have direct dependence, can separately realize, this has improved componentization degree and the reusability of each module.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement etc., within all should being included in protection scope of the present invention.

Claims (6)

1. electronic invoice is opened a method, it is characterized in that, comprising:
The invoice template definition file of definition based on XML, comprises the definition of input interface and the definition of print format;
Generate visually XML invoice template definition file;
According to XML invoice template definition file, dynamically generate invoice entering interface;
According to the print format definition of XML invoice template definition file the inside, printed invoice data.
2. the method for claim 1, is characterized in that, described XML invoice template definition file comprises template definition node, and described masterplate defined node comprises items, data, printer, printing.
3. method as claimed in claim 2, is characterized in that, items node comprises whole template elements of defining in template and the position relationship of masterplate element described in this;
Printer node comprises the basic setup of printing;
Printing node comprises the printing configuration of the template elements of all needs printings;
Data node comprises the invoice data of input.
4. the method for claim 1, is characterized in that, described Visual Production XML invoice masterplate defined file comprises:
Visual Production function menu, basic setup, master project setting, order of magnitude setting, the preview of making out an invoice, Print Preview.
5. method as claimed in claim 2, is characterized in that, described according to the print format definition of XML invoice template definition file the inside, printed invoice data comprise:
According to the description of the data node of XML template the inside, by the data-printing of required printing to printer.
6. electronic invoice is opened a device, comprising:
Model customization device, for generating visually XML invoice template definition file;
Invoice typing module, for according to XML invoice template definition file, dynamically generates invoice entering interface;
Printing invoice module, for defining according to the print format of XML invoice template definition file the inside, printed invoice data.
CN201210401380.0A 2012-10-19 2012-10-19 Electronic-invoice issuing method and device Pending CN103778732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210401380.0A CN103778732A (en) 2012-10-19 2012-10-19 Electronic-invoice issuing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210401380.0A CN103778732A (en) 2012-10-19 2012-10-19 Electronic-invoice issuing method and device

Publications (1)

Publication Number Publication Date
CN103778732A true CN103778732A (en) 2014-05-07

Family

ID=50570919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210401380.0A Pending CN103778732A (en) 2012-10-19 2012-10-19 Electronic-invoice issuing method and device

Country Status (1)

Country Link
CN (1) CN103778732A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503715A (en) * 2014-12-26 2015-04-08 北京首钢自动化信息技术有限公司 Dynamic warranty book management system of iron and steel industry
CN105590241A (en) * 2015-05-20 2016-05-18 中国银联股份有限公司 Self-adaptive electronic bill implementation method and system
CN105718431A (en) * 2016-01-14 2016-06-29 浪潮软件集团有限公司 Method for formatting Webservice message
CN106504039A (en) * 2016-10-21 2017-03-15 百望股份有限公司 A kind of aid system for being to issue electronic invoice from the software house that makes out an invoice
CN107423004A (en) * 2017-06-20 2017-12-01 上海慧银信息科技有限公司 The method and POS terminal of POS terminal printed tickets
CN107526556A (en) * 2017-08-29 2017-12-29 武汉数元网络技术有限公司 Print from the definition system and method
CN108764861A (en) * 2018-05-17 2018-11-06 阿里巴巴集团控股有限公司 Information acquisition method and device and electronic equipment
CN109389786A (en) * 2017-08-14 2019-02-26 航天信息股份有限公司 A kind of printing invoice method and device
CN111666745A (en) * 2020-06-03 2020-09-15 中国建设银行股份有限公司 File downloading method, device, server and medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503715A (en) * 2014-12-26 2015-04-08 北京首钢自动化信息技术有限公司 Dynamic warranty book management system of iron and steel industry
CN105590241A (en) * 2015-05-20 2016-05-18 中国银联股份有限公司 Self-adaptive electronic bill implementation method and system
WO2016184292A1 (en) * 2015-05-20 2016-11-24 中国银联股份有限公司 Self-adaptive electronic bill implementation method and system
CN105718431A (en) * 2016-01-14 2016-06-29 浪潮软件集团有限公司 Method for formatting Webservice message
CN105718431B (en) * 2016-01-14 2018-10-23 浪潮软件集团有限公司 Method for formatting Webservice message
CN106504039A (en) * 2016-10-21 2017-03-15 百望股份有限公司 A kind of aid system for being to issue electronic invoice from the software house that makes out an invoice
CN107423004A (en) * 2017-06-20 2017-12-01 上海慧银信息科技有限公司 The method and POS terminal of POS terminal printed tickets
CN109389786A (en) * 2017-08-14 2019-02-26 航天信息股份有限公司 A kind of printing invoice method and device
CN107526556A (en) * 2017-08-29 2017-12-29 武汉数元网络技术有限公司 Print from the definition system and method
CN108764861A (en) * 2018-05-17 2018-11-06 阿里巴巴集团控股有限公司 Information acquisition method and device and electronic equipment
CN108764861B (en) * 2018-05-17 2020-09-15 阿里巴巴集团控股有限公司 Information acquisition method and device and electronic equipment
CN111666745A (en) * 2020-06-03 2020-09-15 中国建设银行股份有限公司 File downloading method, device, server and medium

Similar Documents

Publication Publication Date Title
CN103778732A (en) Electronic-invoice issuing method and device
CN101561826B (en) Method and application for sharing and cooperating online non-structural file based on node granularity semantics
CN101174350A (en) Bill processing equipment and method
CN101751382B (en) Data acquisition method based on labels and system thereof
CN103365855A (en) Method and server for generating web pages
CN103136317A (en) Implement method of on-line examination and approval informatization of engineering contracts in engineering management system
CN109919259A (en) A kind of universal bar code printer system and method for industrial products retrospect
CN103324731A (en) Method and device for converting spreadsheet file into web format file
CN101964119B (en) Anti-fake invoice machine, verification network system and method
US6882441B1 (en) Automated typesetting system
CN101650711A (en) Method for generating report
MXPA04005656A (en) Xml printer system.
CN105868962A (en) Intelligent product specification management system based on Internet
CN105631738A (en) Standard inputting and storing system for accountant document template
CN103838740A (en) Report engine method
CN103914933B (en) A kind of printing invoice method and apparatus based on XML technology
CN101334730B (en) Report printing method
CN102270224A (en) Information system data output device and method
US20070055925A1 (en) Themes for variable data printing
CN110413954A (en) Standard file printout method for previewing, device, equipment and storage medium
CN111046046A (en) Customizable automatic driving daily newspaper generation system and method
CN102651000A (en) XML (extensible markup language)-based financial data display method and system
CN111767698A (en) Electronic form system based on OFD format file technology
CN111208956A (en) Method and system for realizing electronic official document form printing according to printing template
CN1328687C (en) Centralized broad spectrum report generation method based on expandable sign language

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140507