A kind of method and system of invoice bulk printTechnical field
The present invention relates to tax control counting field, more particularly, to a kind of method and system of invoice bulk print.
Background technology
At present, for tax control counting, certain enterprises are usually present with multiple operation branches, and these are managed and dividePortion's a good distance off is simultaneously arranged into distributing, and such as water, electricity, gas industry, this occasion point-of-transaction is mostly but distributed very scattered, and the amount of making out an invoice is also veryGreatly, the client printing invoice processing method of present network billing system is:In the invoice that any client typing need to printInformation is retrieved, is exported to billing server.Billing server retrieves information according to invoice, is searched from billing server databaseCorresponding data of making out an invoice.Qualified data of making out an invoice are judged whether there is, if there is data of making out an invoice, the data of making out an invoice that will be retrievedIt is read from database and it is encrypted, generate data ciphertext data packet of making out an invoice, be then sent to this flow hairThe source client risen, client are decrypted after receiving data ciphertext data packet of making out an invoice, make out an invoice what is generated after decryptionReceipt printer is output to after the arrangement that data clear text is arranged into row format to be printed;Otherwise print result message is generated as mistakeAccidentally prompt.
There are following defects for the client printing invoice processing method of existing network billing system:Client printing invoiceSpeed is excessively slow, and compared with standalone version billing system, standalone version billing system is per minute can to print 12 parts or so, and network is made out an invoiceThe client of system is per minute can only to print 6-7 parts, it is sometimes found that printer can be 20-30 seconds or so standby, beaten without anyPrint acts.The reason is that, when the multiple terminals of appearance print parallel, print routine is excessively frequent to the operation of network data base,The efficiency of the concurrent access network database of network billing system processing is low, leads to increase of the print speed with concurrent terminal quantityAnd it is too fast to decay.
Therefore, it is necessary to a kind of technology, to solve the problems, such as that high-volume printing invoice speed is slow, efficiency is low.
Invention content
The present invention provides a kind of method and system of invoice bulk print, with solve high-volume printing invoice speed it is slow,The problem of efficiency is low.
To solve the above-mentioned problems, the present invention provides a kind of method of bulk print invoice, the method includes:
Client identity is verified by server, allows to log in the service by the client of authenticationDevice;
The print parameters of invoice and invoice data retrieval request are set by the client for logging in the server, by described inPrint parameters and retrieval request are encrypted and will be encapsulated as request data package by encrypted print parameters and retrieval request;
The request data package is received by server and is parsed to obtain by encrypted print parameters and retrievalRequest, to being decrypted by encrypted retrieval request to obtain the retrieval request by decryption, according to the retrieval by decryptionRequest is retrieved and the invoice data retrieved is encrypted, and encrypted invoice data is sent to the clientEnd;And
The encrypted invoice data of reception is decrypted by the client, to the invoice after the decryptionData are printed.
Preferably, wherein being carried out using trade name, purchaser's title, time buying range, invoice type as search conditionRetrieval.
Preferably, it is described to client identity carry out verification include:The server is by reading the clientCipher-text information in UKEY verifies the client identity.
Preferably, the print parameters of the setting invoice include:Setting invoice individual print or setting invoice batch are beatenPrint.
Preferably, the encrypted invoice data is parsed by the client, to the hair after the parsingTicket data carries out printing and further includes:
The encrypted invoice data is parsed by the client, is set out when the client successfully parsesDuring ticket data, the invoice data after the parsing is printed;
Otherwise when the client is not resolved to invoice data, continue to set printing invoice parameter and invoice data inspectionRope is asked.
Based on another aspect of the present invention, the present invention provides a kind of system of invoice bulk print, and the system comprises visitorsFamily end and server:
The client, please by the parameter and retrieval for setting printing invoice parameter and invoice data retrieval requestIt asks and is encrypted as request data package;For receiving the encrypted invoice data by the client and being parsed, to instituteThe invoice data after parsing is stated to be printed;
The server, for being verified to client identity;For receiving the request data that the client is sentIt wraps and is parsed, the invoice data retrieved is encrypted, and encrypted invoice data is sent according to retrieval requestTo the client.
Preferably, the server is using trade name, purchaser's title, time buying range, invoice type as retrieval itemPart is retrieved.
Preferably, the server is additionally operable to:Ciphertext in UKEY of the server end by reading the clientInformation verifies the client identity.
Preferably, the client is used to that printing invoice parameter to be set to include:For setting invoice individual print, Huo ZheshePut invoice bulk print.
Preferably, the client is additionally operable to:The encrypted invoice data is parsed by the client,When the client successfully parses invoice data, the invoice data after the parsing is printed;
Otherwise when the client is not resolved to invoice data, continue to set printing invoice parameter and invoice data inspectionRope is asked.
Preferably, the server is additionally operable to:Client identity is verified, allows the client by authenticationLog in the server.
Technical solution provided by the invention, the invoice data letter at the search rule retrieval server end that client passes through settingBreath, and the invoice data retrieved can be subjected to bulk print automatically.Printing invoice process does not need to user's manual intervention, forFamily provides a kind of fast and efficiently paper invoice printing solution.
Description of the drawings
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the method flow diagram according to a kind of invoice bulk print of embodiment of the present invention;
Fig. 2 is the system construction drawing according to a kind of invoice bulk print of embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to attached drawing, however, the present invention can use many different shapesFormula is implemented, and be not limited to the embodiment described herein, and to provide these embodiments be to disclose at large and fullyThe present invention, and fully convey the scope of the present invention to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawingsTerm in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attachedIcon is remembered.
Unless otherwise indicated, term used herein has person of ordinary skill in the field (including scientific and technical terminology)It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and itsThe linguistic context of related field has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is the method flow diagram according to a kind of invoice bulk print of embodiment of the present invention.A kind of hair of the present inventionThe method of ticket bulk print can be used for multiple client that invoice data is sent asynchronously with server end progress invoice issuing, lead toThe print parameters of client setting are crossed such as individual printing invoice or batch printing invoice and search rule retrieval server endInvoice data information, and the invoice data retrieved can be subjected to individual or bulk print by the parameter of setting.Printing invoice mistakeJourney does not need to user's manual intervention, provides a kind of fast and efficiently paper invoice printing solution to the user.As shown in Figure 1, method100 since step 101.
Preferably, in step 101:Client identity is verified by server, allows the visitor by authenticationFamily end login service device.In embodiments of the present invention, Printing login service device carries out authentication, and input first is openedThe address of ticket server, the cipher-text information that then reading is encrypted in UKEY are sent to billing server and are verified, server endThe cipher-text information sent by Printing verifies the identity for client of making out an invoice, if Printing is tested by identityCard, then enter and prepare in next step, otherwise terminates and logs in.In embodiments of the present invention, Printing and billing server canTo be based on the realization of C/S frameworks, encryption UKEY can be connect by USB forms interface with client of making out an invoice.
Preferably, in step 102:The print parameters of invoice and invoice data is set to examine by the client of login service deviceRope is asked, and print parameters and retrieval request are encrypted and will be encapsulated as asking by encrypted print parameters and retrieval requestSeek data packet.The print parameters of Printing setting invoice include:Setting invoice individual print or setting invoice batch are beatenPrint.Meanwhile Printing setting invoice data retrieval request, such as can by trade name, purchaser's title, purchase whenBetween range, invoice type retrieved for search condition.Client of making out an invoice print parameters and retrieval request are encrypted andEncrypted print parameters will be passed through and retrieval request is encapsulated as request data package, request data package is sent to clothes by client of making out an invoiceBusiness device, to obtain the invoice data for needing to print.
Preferably, in step 103:It receives request data package by server and is parsed and beaten with obtaining by encryptedParameter and retrieval request are printed, to being decrypted by encrypted retrieval request to obtain the retrieval request by decryption, according to warpThe retrieval request for crossing decryption is retrieved and the invoice data retrieved is encrypted, and encrypted invoice data is sent outGive client.Received server-side is made out an invoice the request data package of client, and is parsed, and is obtained and is joined by encrypted printingNumber and retrieval request, to being decrypted by encrypted retrieval request to obtain the retrieval request by decryption, if server endBy the retrieval request for client of making out an invoice, the data of making out an invoice of request are retrieved, the invoice data retrieved is encrypted, and will addedInvoice data after close is sent to client of making out an invoice.
Preferably, if the retrieval request that server is sent by client of making out an invoice, the invoice data retrieved is empty data packet,Then prompting client of making out an invoice does not retrieve request data of making out an invoice.
Preferably, in step 104:The encrypted invoice data of reception is decrypted by client, after decryptionInvoice data printed.If client of making out an invoice receives the data of making out an invoice of server return, after client is to the encryption of receiptsInvoice data be decrypted, the invoice data after decryption is printed.Printing type presses the print parameters that step 102 is setIt carries out, can be invoice form printing or setting invoice bulk print.Printing invoice operation, Zhi Daosuo are carried out by printerThe request invoice to be printed is completed to print.
Preferably, encrypted invoice data is parsed by client, when client successfully parses invoice numberAccording to when, the invoice data after parsing is printed.Otherwise when client is not resolved to invoice data, continue to set invoicePrint parameters and invoice data retrieval request.
Embodiment of the present invention is made out an invoice client invoice individual print and artificial dry after massively billing is carried out for enterpriseThe problems such as pre- more, it is proposed that a kind of method of batch automatic printing invoice, quantity big enterprise fast suitable for invoicing speed.Individual print can either be carried out, and can batch automatic printing according to the print parameters of user setting.The program improves enterprise and opensTicket efficiency, it is easy to operate, there is very high practical value.
Fig. 2 is the system construction drawing according to a kind of invoice bulk print of embodiment of the present invention.A kind of hair of the present inventionThe system of ticket bulk print can be used for multiple client that invoice data is sent asynchronously with server end progress invoice issuing, lead toThe print parameters of client setting are crossed such as individual printing invoice or batch printing invoice and search rule retrieval server endInvoice data information, and the invoice data retrieved can be subjected to individual or bulk print by the parameter of setting.Printing invoice mistakeJourney does not need to user's manual intervention, provides a kind of fast and efficiently paper invoice printing solution to the user.As shown in Fig. 2, system200 include printer, Printing and billing server.
For setting printing invoice parameter and invoice data retrieval request, parameter and retrieval request are encrypted as clientRequest data package;For receiving encrypted invoice data by client and being parsed, to the invoice data after parsing intoRow printing.
Server, for being verified to client identity;For receiving the request data package of client transmission and progressParsing, the invoice data retrieved is encrypted, and encrypted invoice data is sent to client according to retrieval request.
Preferably, server using trade name, purchaser's title, time buying range, invoice type as search condition intoRow retrieval.
Preferably, server is additionally operable to:Cipher-text information in the UKEY that server end passes through reading client is to clientIdentity is verified.
Preferably, client is used to that printing invoice parameter to be set to include:For setting invoice individual print or setting hairTicket bulk print.
Preferably, client is additionally operable to:Encrypted invoice data is parsed by client, when client successWhen parsing invoice data, the invoice data after parsing is printed;
Otherwise when client is not resolved to invoice data, continue to set printing invoice parameter and invoice data retrieval pleaseIt asks.
Preferably, server is additionally operable to:Client identity is verified, allows to log in by the client of authenticationServer.
A kind of system 200 of invoice bulk print of embodiment of the present invention and a kind of invoice of embodiment of the present invention batchThe method 100 for measuring printing is corresponding, is no longer repeated herein.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, asWhat subsidiary Patent right requirement was limited, in addition to the present invention other embodiments disclosed above are equally fallen the present invention'sIn the range of.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical fieldIt releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened groundAt least one of described device, component etc. example is construed to, unless otherwise expressly specified.Any method disclosed hereinStep need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.