CN114281273A - Method and system for batch printing of OFD electronic invoice format files - Google Patents
Method and system for batch printing of OFD electronic invoice format files Download PDFInfo
- Publication number
- CN114281273A CN114281273A CN202111386976.3A CN202111386976A CN114281273A CN 114281273 A CN114281273 A CN 114281273A CN 202111386976 A CN202111386976 A CN 202111386976A CN 114281273 A CN114281273 A CN 114281273A
- Authority
- CN
- China
- Prior art keywords
- ofd
- printing
- module
- request
- downloading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000012795 verification Methods 0.000 claims abstract description 26
- 230000008569 process Effects 0.000 claims abstract description 23
- 238000012545 processing Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000005065 mining Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a method and a system for batch printing of OFD electronic invoice format files, wherein the method comprises the following steps: the service system starts a printing service process through a URL self-defined protocol according to the invoice printing request and calls a printing service module; the printing service module generates an OFD downloading request after the invoice printing request passes the verification and calls an OFD downloading module; the OFD downloading module calls http service to push the encrypted OFD downloading request to the cloud OFD service module; after the cloud OFD service module analyzes and verifies the OFD downloading request message, searching electronic invoice information and generating corresponding OFD format file streams in batches, and assembling and returning data messages to the OFD downloading module; the OFD downloading module analyzes an OFD format file stream from the data message and calls an OFD printing service module; and the OFD printing service module converts the OFD format file stream into a specific printing format, calls a printing interface to print, returns a printing result to the service system, and finishes printing.
Description
Technical Field
The invention relates to the technical field of batch printing, in particular to a method and a system for batch printing of OFD electronic invoice layout files.
Background
The OFD Document is an English abbreviation of an Open Fixed-layout Document (Open Fixed-layout Document), and is a layout Document format standard which is independently researched, developed and established in China, namely GB/T33190-2016 electronic file storage and exchange format-layout Document. On the basis of PDF, a plurality of application scene functions based on the requirements of the national social development are added. The format of the electronic invoice is unified into an OFD format according to the national tax administration in 2020. At present, a plurality of electronic invoice platforms can automatically generate format files in PDF or OFD formats at a cloud end, wherein the format files in the PDF format are relatively mature in WEB browsers and local software application, but the format files in the OFD format have poor adaptability in browsers or service systems, and preview printing is generally performed through local OFD software such as CoOFD and FuXin OFD. When the OFD electronic invoice format file is printed in the prior art, the OFD electronic invoice format file is downloaded to the local by hand and printed through OFD reading software, and the OFD electronic invoice format file cannot be directly printed in batch in a service system.
Disclosure of Invention
The invention is provided for solving the technical problem that the OFD electronic invoice layout file cannot be directly printed in batch in a service system. The embodiment of the invention provides a method and a system for batch printing of OFD electronic invoice layout files.
According to an aspect of an embodiment of the present invention, there is provided a method for batch printing OFD electronic invoice layout files, the method including:
the business system generates a corresponding invoice printing request according to the selection operation of the user, starts a printing business process through a URL self-defined protocol, and calls a printing business module;
the printing service module analyzes and verifies the invoice printing request message, generates an OFD (office file identifier) downloading request after the invoice printing request passes the verification, and calls an OFD downloading module;
the OFD downloading module calls http service to push the encrypted OFD downloading request to the cloud OFD service module;
after receiving the OFD downloading request, the cloud OFD service module analyzes and verifies the OFD downloading request message, searches electronic invoice information according to the OFD downloading request message, generates corresponding OFD format file streams in batches, and assembles and returns a data message to the OFD downloading module;
after receiving the returned data message, the OFD downloading module analyzes an OFD format file stream from the data message and calls an OFD printing service module;
the OFD printing service module analyzes the OFD format file stream, converts the OFD format file stream into a specific printing format and calls a printing interface to print;
and the OFD printing service module returns the printing result to the service system, and the printing is finished.
Optionally, the generating, by the service system, a corresponding invoice printing request according to a selection operation of the user includes:
the business system receives the operation that a user selects one or more invoices to be printed in an electronic invoice display list of the business system;
and the business system generates a corresponding invoice printing request according to the operation of selecting one or more invoices to be printed by the user.
Optionally, the method further comprises: and when the invoice printing request does not pass the verification, the printing service module returns the notification information which does not pass the verification to the service system, and the printing is finished.
Optionally, the method further comprises: and when the OFD downloading request message does not pass the verification, the cloud OFD service module returns notification information which does not pass the verification to the service system, and printing is finished.
Optionally, the printing service module is a main flow of the OFD service processing, the service system of the enterprise is docked through the URL custom protocol, and after receiving an invoice printing request of the service system, the corresponding module is called to perform full-flow management on the OFD request.
Optionally, the OFD downloading module is configured to invoke the http request cloud OFD service module to download the corresponding OFD format file stream according to the generated OFD downloading request message, and the received file stream does not need to be stored locally.
Optionally, the cloud OFD service module is configured to receive and process a request sent by the OFD downloading module, generate an OFD format file stream according to the request after the request passes verification, and assemble and return a data message to the OFD downloading module.
Optionally, the OFD printing service module is configured to parse the OFD format file stream into a specific printing format, call a printing interface, and send the printing interface to a printer, thereby completing printing of the OFD format file.
According to another aspect of the embodiments of the present invention, there is provided a system for batch printing OFD electronic invoice layout files, the apparatus including:
the business process starting module is used for generating a corresponding invoice printing request according to the selection operation of the user, starting a printing business process through a URL self-defined protocol and calling the printing business module;
the printing service module is used for analyzing and verifying the invoice printing request message, generating an OFD (office file identifier) downloading request after the invoice printing request passes the verification, and calling the OFD downloading module;
the OFD downloading module is used for calling http service to push the encrypted OFD downloading request to the cloud OFD service module;
the cloud OFD service module is used for analyzing and verifying an OFD downloading request message after receiving the OFD downloading request, searching electronic invoice information according to the OFD downloading request message, generating corresponding OFD format file streams in batches, and assembling and returning data messages to the OFD downloading module;
the OFD downloading module is used for analyzing an OFD format file stream from the data message after receiving the returned data message and calling the OFD printing service module;
and the OFD printing service module is used for analyzing the OFD format file stream, converting the OFD format file stream into a specific printing format, calling a printing interface to print, returning a printing result to the service system, and finishing printing.
According to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any of the above embodiments of the present invention.
According to yet another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program for executing the method according to any one of the above-mentioned embodiments of the present invention.
Therefore, the interactive method for printing OFD electronic invoice format files in batch can start a printing process in a service system in a URL self-defined protocol mode, the printing process calls a printing service module according to a printing request of the service system, an http interface is called to an electronic invoice cloud end to download OFD format file streams after service messages are analyzed and verified, the file streams do not fall to the ground, and the OFD printing service module is directly called to be converted into a specific printing format for printing. Because the printing request is processed in a URL self-defined protocol mode, the printing operation of the cross-browser can be realized without developing an adapter plug-in, and the business system which depends on development of various browsers such as Chrome, IE, Firefox, Microsoft Edge and the like is compatible. The OFD file printing process does not need to store the file locally, so that the IO times of a disk are reduced, the printing efficiency and the printing safety are improved, and the rapid popularization of the OFD format file of the electronic invoice is facilitated. Therefore, the cross-browser access to various external business systems is realized through a URL self-defined protocol mode, the cloud OFD format file stream downloaded by calling http service is directly converted into a specific data format and sent to the printer for printing, the problem of printing OFD format files in a single piece is solved, the problem of printing in batches is solved, the printing efficiency and expandability are improved, and the OFD file rapid popularization is facilitated.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a schematic flowchart of a method for batch printing an OFD electronic invoice layout file according to an exemplary embodiment of the present invention;
FIG. 2 is a flow chart of printing an OFD electronic invoice layout file provided by an exemplary embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system for batch printing an OFD electronic invoice layout file according to an exemplary embodiment of the present invention;
fig. 4 is a structure of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
Hereinafter, example embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present invention are used merely to distinguish one element, step, device, module, or the like from another element, and do not denote any particular technical or logical order therebetween.
It should also be understood that in embodiments of the present invention, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the invention may be generally understood as one or more, unless explicitly defined otherwise or stated to the contrary hereinafter.
In addition, the term "and/or" in the present invention is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In the present invention, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations, and with numerous other electronic devices, such as terminal devices, computer systems, servers, etc. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Exemplary method
The system comprises a printing service module, an OFD downloading module, a cloud OFD service module, an OFD downloading module and an OFD printing service module.
The printing service module is a main flow of OFD service processing, an enterprise service system is connected in an abutting mode through a URL custom protocol, and after a printing request is received, other modules are called to conduct full-flow management on the OFD request;
the OFD downloading module calls an http request cloud OFD service module to download a corresponding OFD format file stream according to the generated OFD printing request message, and the received file stream does not need to be stored locally;
and the cloud OFD service module is used for receiving and processing the request sent by the OFD downloading module, generating an OFD format file stream according to the request after the request passes verification, and assembling a return data message.
The OFD printing service module is used for analyzing the OFD format file stream into a specific printing format, calling a printing interface and sending the printing interface to a printer to finish printing the OFD format file.
Fig. 1 is a flowchart illustrating a method 100 for batch printing an OFD electronic invoice layout file according to an exemplary embodiment of the present invention. The embodiment can be applied to an electronic device, as shown in fig. 1, and includes the following steps:
Optionally, the generating, by the service system, a corresponding invoice printing request according to a selection operation of the user includes: the business system receives the operation that a user selects one or more invoices to be printed in an electronic invoice display list of the business system; and the business system generates a corresponding invoice printing request according to the operation of selecting one or more invoices to be printed by the user.
In the embodiment of the invention, a user can select one or more invoices to be printed in an electronic invoice display list of a service system, generate an invoice printing request according to the selected electronic invoice information, start a printing service process through a URL (uniform resource locator) custom protocol and call a printing service module.
102, the printing service module analyzes and verifies the invoice printing request message, generates an OFD downloading request after the invoice printing request passes the verification, and calls an OFD downloading module.
In the embodiment of the invention, the OFD printing service module based on the URL self-defined protocol is developed, other plug-ins do not need to be developed, the OFD printing service module is suitable for various browsers such as Chrome, IE, Firefox, Microsoft Edge and the like, and the compatibility of products is improved. In addition, in the printing process, the OFD format file does not fall to the ground, and the OFD format file stream is directly converted into a specific printing format for printing, so that the batch printing efficiency is improved.
Optionally, the printing service module is a main flow of the OFD service processing, the service system of the enterprise is docked through the URL custom protocol, and after receiving an invoice printing request of the service system, the corresponding module is called to perform full-flow management on the OFD request.
And 103, the OFD downloading module calls http service to push the encrypted OFD downloading request to the cloud OFD service module.
Optionally, the OFD downloading module is configured to invoke the http request cloud OFD service module to download the corresponding OFD format file stream according to the generated OFD downloading request message, and the received file stream does not need to be stored locally.
And step 104, after receiving the OFD downloading request, the cloud OFD service module analyzes and verifies the OFD downloading request message, searches electronic invoice information according to the OFD downloading request message, generates corresponding OFD format file streams in batches, and assembles and returns a data message to the OFD downloading module.
Optionally, the cloud OFD service module is configured to receive and process a request sent by the OFD downloading module, generate an OFD format file stream according to the request after the request passes verification, and assemble and return a data message to the OFD downloading module.
Optionally, referring to fig. 2, the method further includes: and when the OFD downloading request message does not pass the verification, the cloud OFD service module returns notification information which does not pass the verification to the service system, and printing is finished.
And 105, after receiving the returned data message, the OFD downloading module analyzes an OFD format file stream from the data message and calls the OFD printing service module.
And step 106, the OFD printing service module analyzes the OFD format file stream, converts the OFD format file stream into a specific printing format, and calls a printing interface to print.
Optionally, the OFD printing service module is configured to parse the OFD format file stream into a specific printing format, call a printing interface, and send the printing interface to a printer, thereby completing printing of the OFD format file.
And step 107, the OFD printing service module returns the printing result to the service system, and the printing is finished.
Therefore, the interactive method for printing OFD electronic invoice format files in batch can start a printing process in a service system in a URL self-defined protocol mode, the printing process calls a printing service module according to a printing request of the service system, an http interface is called to an electronic invoice cloud end to download OFD format file streams after service messages are analyzed and verified, the file streams do not fall to the ground, and the OFD printing service module is directly called to be converted into a specific printing format for printing. Because the printing request is processed in a URL self-defined protocol mode, the printing operation of the cross-browser can be realized without developing an adapter plug-in, and the business system which depends on development of various browsers such as Chrome, IE, Firefox, Microsoft Edge and the like is compatible. The OFD file printing process does not need to store the file locally, so that the IO times of a disk are reduced, the printing efficiency and the printing safety are improved, and the rapid popularization of the OFD format file of the electronic invoice is facilitated. Therefore, the cross-browser access to various external business systems is realized through a URL self-defined protocol mode, the cloud OFD format file stream downloaded by calling http service is directly converted into a specific data format and sent to the printer for printing, the problem of printing OFD format files in a single piece is solved, the problem of printing in batches is solved, the printing efficiency and expandability are improved, and the OFD file rapid popularization is facilitated.
Exemplary devices
Fig. 3 is a schematic structural diagram of a system for batch printing an OFD electronic invoice layout file according to an exemplary embodiment of the present invention. As shown in fig. 3, the system 300 for batch printing OFD electronic invoice layout files according to the present embodiment includes:
a service process starting module 310, configured to generate a corresponding invoice printing request according to a selection operation of a user, start a printing service process through a URL custom protocol, and invoke a printing service module;
the printing service module 320 is configured to parse and verify the invoice printing request message, generate an OFD download request after the invoice printing request passes the verification, and call the OFD download module;
the OFD downloading module 330 is configured to invoke an http service to push the encrypted OFD downloading request to the cloud OFD service module;
the cloud OFD service module 340 is configured to parse and verify an OFD download request message after receiving the OFD download request, search electronic invoice information according to the OFD download request message, generate a corresponding OFD format file stream in batch, and assemble and return a data message to the OFD download module;
the OFD downloading module 350 is configured to, after receiving the returned data packet, parse an OFD format file stream from the data packet, and call an OFD printing service module;
the OFD printing service module 360 is configured to parse the OFD format file stream, convert the OFD format file stream into a specific printing format, call a printing interface to print, return a printing result to the service system, and end printing.
Optionally, the business process starting module 310 is specifically configured to: the business system receives the operation that a user selects one or more invoices to be printed in an electronic invoice display list of the business system; and the business system generates a corresponding invoice printing request according to the operation of selecting one or more invoices to be printed by the user.
Optionally, the printing service module returns notification information that the invoice printing request does not pass the verification to the service system when the invoice printing request does not pass the verification, and printing is finished.
Optionally, when the OFD download request message does not pass the verification, the cloud OFD service module returns notification information that does not pass the verification to the service system, and printing is finished.
Optionally, the printing service module is a main flow of the OFD service processing, the service system of the enterprise is docked through the URL custom protocol, and after receiving an invoice printing request of the service system, the corresponding module is called to perform full-flow management on the OFD request.
Optionally, the OFD downloading module is configured to invoke the http request cloud OFD service module to download the corresponding OFD format file stream according to the generated OFD downloading request message, and the received file stream does not need to be stored locally.
Optionally, the cloud OFD service module is configured to receive and process a request sent by the OFD downloading module, generate an OFD format file stream according to the request after the request passes verification, and assemble and return a data message to the OFD downloading module.
Optionally, the OFD printing service module is configured to parse the OFD format file stream into a specific printing format, call a printing interface, and send the printing interface to a printer, thereby completing printing of the OFD format file.
The system 300 for batch printing OFD electronic invoice format files in the embodiment of the present invention corresponds to the method 100 for batch printing OFD electronic invoice format files in another embodiment of the present invention, and details thereof are not repeated herein.
Exemplary electronic device
Fig. 4 is a structure of an electronic device according to an exemplary embodiment of the present invention. The electronic device may be either or both of the first device and the second device, or a stand-alone device separate from them, which stand-alone device may communicate with the first device and the second device to receive the acquired input signals therefrom. FIG. 4 illustrates a block diagram of an electronic device in accordance with an embodiment of the disclosure. As shown in fig. 4, electronic device 40 includes one or more processors 41 and memory 42.
The processor 41 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
The input device 43 may also include, for example, a keyboard, a mouse, and the like.
The output device 44 can output various kinds of information to the outside. The output devices 44 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 4, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of information mining of historical change records according to various embodiments of the present disclosure described in the "exemplary methods" section above of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in a method of information mining of historical change records according to various embodiments of the present disclosure described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the systems, apparatus and methods of the present disclosure, various components or steps may be decomposed and/or re-combined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (11)
1. A method for printing OFD electronic invoice format files in batches is characterized by comprising the following steps:
the business system generates a corresponding invoice printing request according to the selection operation of the user, starts a printing business process through a URL self-defined protocol, and calls a printing business module;
the printing service module analyzes and verifies the invoice printing request message, generates an OFD (office file identifier) downloading request after the invoice printing request passes the verification, and calls an OFD downloading module;
the OFD downloading module calls http service to push the encrypted OFD downloading request to the cloud OFD service module;
after receiving the OFD downloading request, the cloud OFD service module analyzes and verifies the OFD downloading request message, searches electronic invoice information according to the OFD downloading request message, generates corresponding OFD format file streams in batches, and assembles and returns a data message to the OFD downloading module;
after receiving the returned data message, the OFD downloading module analyzes an OFD format file stream from the data message and calls an OFD printing service module;
the OFD printing service module analyzes the OFD format file stream, converts the OFD format file stream into a specific printing format and calls a printing interface to print;
and the OFD printing service module returns the printing result to the service system, and the printing is finished.
2. The method of claim 1, wherein the business system generates a corresponding invoice print request according to a selection operation of a user, comprising:
the business system receives the operation that a user selects one or more invoices to be printed in an electronic invoice display list of the business system;
and the business system generates a corresponding invoice printing request according to the operation of selecting one or more invoices to be printed by the user.
3. The method of claim 1, further comprising: and when the invoice printing request does not pass the verification, the printing service module returns the notification information which does not pass the verification to the service system, and the printing is finished.
4. The method of claim 1, further comprising: and when the OFD downloading request message does not pass the verification, the cloud OFD service module returns notification information which does not pass the verification to the service system, and printing is finished.
5. The method according to claim 1, wherein the print service module is a main flow of OFD service processing, the service system of the enterprise is docked by using a URL custom protocol, and after receiving an invoice print request from the service system, the corresponding module is invoked to perform full-flow management on the OFD request.
6. The method according to claim 1, wherein the OFD downloading module is configured to invoke an http request cloud OFD service module to download the corresponding OFD format file stream according to the generated OFD downloading request packet, and the received file stream does not need to be stored locally.
7. The method of claim 1, wherein the cloud OFD service module is configured to receive and process a request sent by the OFD download module, generate an OFD format file stream according to the request after the request passes verification, and assemble and return a data message to the OFD download module.
8. The method of claim 1, wherein the OFD print service module is configured to parse the OFD format file stream into a specific print format, and invoke the print interface to send to the printer, thereby completing the printing of the OFD format file.
9. A system for batch printing OFD electronic invoice layout files, comprising:
the business process starting module is used for generating a corresponding invoice printing request according to the selection operation of the user, starting a printing business process through a URL self-defined protocol and calling the printing business module;
the printing service module is used for analyzing and verifying the invoice printing request message, generating an OFD (office file identifier) downloading request after the invoice printing request passes the verification, and calling the OFD downloading module;
the OFD downloading module is used for calling http service to push the encrypted OFD downloading request to the cloud OFD service module;
the cloud OFD service module is used for analyzing and verifying an OFD downloading request message after receiving the OFD downloading request, searching electronic invoice information according to the OFD downloading request message, generating corresponding OFD format file streams in batches, and assembling and returning data messages to the OFD downloading module;
the OFD downloading module is used for analyzing an OFD format file stream from the data message after receiving the returned data message and calling the OFD printing service module;
and the OFD printing service module is used for analyzing the OFD format file stream, converting the OFD format file stream into a specific printing format, calling a printing interface to print, returning a printing result to the service system, and finishing printing.
10. An electronic device, characterized in that the electronic device comprises: a processor and a memory; wherein,
the memory to store the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of any one of claims 1-8.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for performing the method of any of the preceding claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111386976.3A CN114281273B (en) | 2021-11-22 | 2021-11-22 | Method and system for printing OFD electronic invoice format files in batches |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111386976.3A CN114281273B (en) | 2021-11-22 | 2021-11-22 | Method and system for printing OFD electronic invoice format files in batches |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114281273A true CN114281273A (en) | 2022-04-05 |
CN114281273B CN114281273B (en) | 2023-07-25 |
Family
ID=80869552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111386976.3A Active CN114281273B (en) | 2021-11-22 | 2021-11-22 | Method and system for printing OFD electronic invoice format files in batches |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114281273B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0201294D0 (en) * | 2001-01-31 | 2002-03-06 | Hewlett Packard Co | System and method for accessing and using a commercial print service |
US7692807B1 (en) * | 2004-04-01 | 2010-04-06 | Applied Discovery, Inc. | System and method for batch printing high-volume electronic documents from a network |
EP3135460A1 (en) * | 2015-08-28 | 2017-03-01 | Ultimaker B.V. | Print bed levelling system and method for additive manufacturing |
CN107168659A (en) * | 2017-06-21 | 2017-09-15 | 百望电子发票数据服务有限公司 | A kind of method and system of bulk print layout files |
CN107450869A (en) * | 2017-08-21 | 2017-12-08 | 百望电子发票数据服务有限公司 | The online print system and method for a kind of PDF electronic invoices layout files |
US20180101339A1 (en) * | 2016-10-11 | 2018-04-12 | Océ Holding B.V. | Printing system for printing a plurality of images on a web and a method thereof |
EP3376362A1 (en) * | 2017-03-15 | 2018-09-19 | OCE Holding B.V. | Printing system with multiple physical configurations and a method therefor |
CN108921627A (en) * | 2018-06-07 | 2018-11-30 | 国信电子票据平台信息服务有限公司 | A kind of method and system generating electronic invoice OFD layout files |
CN111881651A (en) * | 2020-08-06 | 2020-11-03 | 泰山信息科技有限公司 | Method for converting UOT streaming document into OFD format document |
CN111897777A (en) * | 2020-06-22 | 2020-11-06 | 百望股份有限公司 | Method, device and equipment for processing electronic invoice layout file and storage medium |
CN112486431A (en) * | 2020-12-03 | 2021-03-12 | 江苏中威科技软件系统有限公司 | Method for selectively printing OFD format file content |
-
2021
- 2021-11-22 CN CN202111386976.3A patent/CN114281273B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0201294D0 (en) * | 2001-01-31 | 2002-03-06 | Hewlett Packard Co | System and method for accessing and using a commercial print service |
US7692807B1 (en) * | 2004-04-01 | 2010-04-06 | Applied Discovery, Inc. | System and method for batch printing high-volume electronic documents from a network |
EP3135460A1 (en) * | 2015-08-28 | 2017-03-01 | Ultimaker B.V. | Print bed levelling system and method for additive manufacturing |
US20180101339A1 (en) * | 2016-10-11 | 2018-04-12 | Océ Holding B.V. | Printing system for printing a plurality of images on a web and a method thereof |
EP3376362A1 (en) * | 2017-03-15 | 2018-09-19 | OCE Holding B.V. | Printing system with multiple physical configurations and a method therefor |
CN107168659A (en) * | 2017-06-21 | 2017-09-15 | 百望电子发票数据服务有限公司 | A kind of method and system of bulk print layout files |
CN107450869A (en) * | 2017-08-21 | 2017-12-08 | 百望电子发票数据服务有限公司 | The online print system and method for a kind of PDF electronic invoices layout files |
CN108921627A (en) * | 2018-06-07 | 2018-11-30 | 国信电子票据平台信息服务有限公司 | A kind of method and system generating electronic invoice OFD layout files |
CN111897777A (en) * | 2020-06-22 | 2020-11-06 | 百望股份有限公司 | Method, device and equipment for processing electronic invoice layout file and storage medium |
CN111881651A (en) * | 2020-08-06 | 2020-11-03 | 泰山信息科技有限公司 | Method for converting UOT streaming document into OFD format document |
CN112486431A (en) * | 2020-12-03 | 2021-03-12 | 江苏中威科技软件系统有限公司 | Method for selectively printing OFD format file content |
Also Published As
Publication number | Publication date |
---|---|
CN114281273B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10922158B2 (en) | Method and system for transforming input data streams | |
CN111953709B (en) | Multimedia content transmission method, multimedia content display method and device and electronic equipment | |
KR20080101907A (en) | Edi instance based transaction set definition | |
CN109254739A (en) | file printing method, device and system | |
CN111176756A (en) | Data acquisition method and device, computer readable storage medium and electronic equipment | |
CN112764726A (en) | Data synthesis method and device | |
MX2013014808A (en) | Presentation software automation services. | |
CN114398396A (en) | Data query method, storage medium, and computer program product | |
CN111427630B (en) | Cold start optimization method and device, electronic equipment and storage medium | |
CN114281273B (en) | Method and system for printing OFD electronic invoice format files in batches | |
CN114679458B (en) | Privatized deployment method and device applicable to multiple clouds | |
CN115757490A (en) | Implementation method and device for avoiding repeated invoicing of internet | |
CN110659062B (en) | Front-end scaffold configuration method and device, readable storage medium and electronic equipment | |
CN113407339A (en) | Resource request feedback method and device, readable storage medium and electronic equipment | |
CN114816246A (en) | Proto file processing method and device | |
CN114648775A (en) | Method and device for collecting electronic invoice based on mail | |
CN114253632A (en) | Function call request processing method and device and server | |
CN114253878A (en) | Universal method and device for accessing browser to peripheral | |
CN115310065B (en) | File generation method and device, storage medium and electronic equipment | |
CN114817794A (en) | Webpage content control method, device, equipment and medium | |
CN112905970A (en) | Authority verification method and device, computer readable storage medium and electronic equipment | |
CN111797337A (en) | Method and device for generating export page | |
CN113765868B (en) | Service processing method and device | |
CN114338494B (en) | Service dependency topological relation obtaining method and device, storage medium and electronic equipment | |
CN110753316B (en) | Information sending method and device, computer readable storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |