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 PDF

Info

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
Application number
CN202111386976.3A
Other languages
Chinese (zh)
Other versions
CN114281273B (en
Inventor
靳石勇
周晚晴
单国军
魏贺生
谢宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN202111386976.3A priority Critical patent/CN114281273B/en
Publication of CN114281273A publication Critical patent/CN114281273A/en
Application granted granted Critical
Publication of CN114281273B publication Critical patent/CN114281273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing 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

Method and system for batch printing of OFD electronic invoice format files
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:
step 101, a service system generates a corresponding invoice printing request according to the selection operation of a user, starts a printing service process through a URL (uniform resource locator) custom protocol, and calls a printing service module.
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.
Memory 42 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by processor 41 to implement the method of information mining of historical change records and/or other desired functionality of the software program of the various embodiments of the present disclosure described above. In one example, the electronic device may further include: an input device 43 and an output device 44, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
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 content of the first and second substances,
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.
CN202111386976.3A 2021-11-22 2021-11-22 Method and system for printing OFD electronic invoice format files in batches Active CN114281273B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (11)

* Cited by examiner, † Cited by third party
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
US20110173253A1 (en) Methods, Apparatus and Systems for Providing Local and Online Data Services
CN111953709B (en) Multimedia content transmission method, multimedia content display method and device and electronic equipment
CN111786948B (en) Cloud game control method, device, system, equipment and medium
KR20080101907A (en) Edi instance based transaction set definition
CN114398396A (en) Data query method, storage medium, and computer program product
CN114281273B (en) Method and system for printing OFD electronic invoice format files in batches
CN111427630A (en) Cold start optimization method and device, electronic equipment and storage medium
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
CN114253878A (en) Universal method and device for accessing browser to peripheral
CN114253632A (en) Function call request processing method and device and server
CN115310065B (en) File generation method and device, storage medium and electronic equipment
CN114817794A (en) Webpage content control method, device, equipment and medium
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
CN113255317B (en) OFD format invoice analysis method, system and equipment based on cloud service
CN114942789A (en) Method and device for calling service application, storage medium and electronic equipment
JP2009223790A (en) Method, program and system for processing transaction
CN115908025A (en) Automatic invoice checking method, device and medium

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