Travel itinerary batch printing method and related device

Through batch printing methods and template data filling, the problem of low stroke order printing efficiency during peak periods is solved, efficient and accurate stroke order printing is achieved, and manual operation frequency is reduced.

CN119166083APending Publication Date: 2024-12-20TRAVELSKY TECHNOLOGY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411369067.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

During high or peak passenger flow, the printing efficiency and accuracy of itinerary orders are low, and manual repeated configuration and printing steps are required.

Method used

Provide a batch printing method for itinerary orders. By obtaining the setting parameters and template data, it creates a batch printing template for it. According to the correspondence between the reimbursement voucher number and the electronic ticket number, it sends a creation request to the server, receives and fills in the itinerary order data. Implement continuous printing of multiple single interfaces of strokes to be printed.

Benefits of technology

It improves the printing efficiency and accuracy of the itinerary order, reduces the frequency of manual operations, and ensures the accuracy of the printing interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166083A_ABST
    Figure CN119166083A_ABST
Patent Text Reader

Abstract

The invention discloses a travel itinerary batch printing method and a related device, and relates to the field of civil aviation, and the method comprises the steps that setting parameters and multiple groups of template data for batch printing of travel itineraries are obtained, the setting parameters at least comprise a reimbursement voucher number group, and the reimbursement voucher number group comprises multiple reimbursement voucher numbers; sending a travel itinerary creation request to a server, wherein the travel itinerary creation request at least comprises a reimbursement voucher number and an electronic ticket number which have a corresponding relationship; and according to the corresponding relationship between the reimbursement voucher number and the electronic ticket number, filling each group of travel itinerary data returned by the server into the travel itinerary printing template to obtain a plurality of to-be-printed travel itinerary interfaces, and continuously printing the plurality of to-be-printed travel itinerary interfaces. The corresponding relation between the reimbursement voucher number and the electronic ticket number is strictly followed, the multiple to-be-printed travel itinerary interfaces are automatically configured and printed, the accuracy of the to-be-printed travel itinerary interfaces is guaranteed, and the printing efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of civil aviation, and in particular to a method for batch printing of itinerary sheets and related devices. Background Art

[0002] With the continuous improvement of people's living standards and the prosperity of the civil aviation industry, the frequency of passenger travel is also increasing. As an indispensable certificate for passengers' travel, the itinerary contains important content such as flight information and passenger information, providing great convenience and protection for passengers. Therefore, the printing of itinerary is also known as an important business link.

[0003] Currently, printing of itinerary requires manual operation, and a single operation only supports the configuration and printing of one itinerary interface to be printed.

[0004] However, during periods of high passenger flow or peak hours, the configuration and printing steps need to be repeated manually, resulting in low printing efficiency and accuracy of the itinerary. Summary of the invention

[0005] In view of the above problems, the present application provides a method and related device for batch printing of itinerary receipts, in order to improve the printing efficiency and accuracy of itinerary receipts. The specific scheme is as follows:

[0006] The first aspect of the present application provides a method for batch printing of itinerary receipts, comprising:

[0007] Obtaining setting parameters for batch printing of itinerary receipts, wherein the setting parameters at least include a reimbursement voucher number group, wherein the reimbursement voucher number group includes a plurality of reimbursement voucher numbers;

[0008] Obtain multiple sets of template data, each set of template data includes: an electronic ticket number, a passenger reservation record PNR and a price;

[0009] Creating a plurality of itinerary printing templates in batches according to the plurality of sets of template data, each of the itinerary printing templates having been filled with an electronic ticket number, a passenger reservation record (PNR) and a price;

[0010] According to the correspondence between the reimbursement voucher number and the electronic ticket number, sending an itinerary creation request to the server, wherein the itinerary creation request at least includes the reimbursement voucher number and the electronic ticket number having the correspondence;

[0011] Receive at least one set of itinerary data returned by the server, each set of itinerary data including at least: a reimbursement voucher number, a passenger's name, a passenger's ID number, and an electronic ticket number;

[0012] Calling the itinerary printing template, and filling each set of itinerary data into the itinerary printing template according to the correspondence between the reimbursement voucher number and the electronic ticket number, to obtain multiple itinerary interfaces to be printed;

[0013] The multiple itinerary interfaces to be printed are printed continuously.

[0014] A second aspect of the present application provides a device for batch printing of itinerary receipts, comprising:

[0015] A first obtaining unit is used to obtain setting parameters for batch printing of itinerary receipts, wherein the setting parameters at least include a reimbursement voucher number group, and the reimbursement voucher number group includes a plurality of reimbursement voucher numbers;

[0016] The second obtaining unit is used to obtain multiple sets of template data, each set of template data includes: an electronic ticket number, a passenger reservation record PNR and a price;

[0017] A creation unit, used for batch creating a plurality of itinerary printing templates according to the plurality of sets of template data, each of which is filled with an electronic ticket number, a passenger reservation record PNR and a price;

[0018] A sending unit, configured to send an itinerary creation request to a server according to the correspondence between the reimbursement voucher number and the electronic ticket number, wherein the itinerary creation request at least includes the reimbursement voucher number and the electronic ticket number having a corresponding relationship;

[0019] A receiving unit, configured to receive at least one set of itinerary data returned by the server, each set of itinerary data including at least: a reimbursement voucher number, a passenger's name, a passenger's ID number, and an electronic ticket number;

[0020] A third obtaining unit is used to call the itinerary printing template, and fill each group of itinerary data into the itinerary printing template according to the correspondence between the reimbursement voucher number and the electronic ticket number, so as to obtain multiple itinerary interfaces to be printed;

[0021] The printing unit is used to continuously print the multiple itinerary interfaces to be printed.

[0022] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the method for batch printing of itineraries of the first aspect or any implementation method of the first aspect.

[0023] This article introduces a cross-platform itinerary batch automatic printing solution, which speeds up the staff's business processing and improves work efficiency through printing template loading, data configuration and printing self-drawing.

[0024] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0025] The memory is used to store computer programs;

[0026] The processor is used to execute the computer program so that the electronic device can implement the method for batch printing of itinerary receipts of the above-mentioned first aspect or any implementation method of the first aspect.

[0027] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the method for batch printing of itineraries according to the first aspect or any implementation method of the first aspect.

[0028] By means of the above technical scheme, the present application provides a method for batch printing of itineraries and related devices. The setting parameters and multiple sets of template data for batch printing of itineraries are obtained, wherein the setting parameters at least include a reimbursement voucher number group, and the reimbursement voucher number group includes multiple reimbursement voucher numbers; an itinerary creation request is sent to a server, and the itinerary creation request at least includes a reimbursement voucher number and an electronic ticket number with a corresponding relationship; according to the corresponding relationship between the reimbursement voucher number and the electronic ticket number, each set of itinerary data returned by the server (each set of itinerary data includes at least: a reimbursement voucher number, a passenger name, a passenger ID number and an electronic ticket number) is filled into the itinerary printing template (each itinerary printing template has been filled with an electronic ticket number, a passenger reservation record PNR and a price), and multiple itinerary interfaces to be printed are obtained, and the multiple itinerary interfaces to be printed are continuously printed. By strictly following the correspondence between the reimbursement voucher number and the electronic ticket number, multiple itinerary interfaces to be printed are automatically configured and printed, which ensures the accuracy of the itinerary interfaces to be printed and greatly improves printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0030] Figure 1 A schematic diagram of a process for batch printing of itinerary sheets provided in an embodiment of the present application;

[0031] Figure 2 A schematic diagram of setting parameters provided in an embodiment of the present application;

[0032] Figure 3 A schematic diagram of a process of continuously printing a plurality of itinerary interface pages to be printed provided in an embodiment of the present application;

[0033] Figure 4 A schematic diagram of a process of sending an itinerary creation request to a server according to a correspondence between a reimbursement voucher number and an electronic ticket number provided in an embodiment of the present application;

[0034] Figure 5 A schematic diagram of the structure of a batch printing device for itinerary sheets provided in an embodiment of the present application;

[0035] Figure 6 A schematic diagram of the hardware structure of a device for batch printing of itinerary sheets provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0037] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0038] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0039] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0040] In order to improve the printing efficiency and accuracy of itinerary receipts, the present application provides a method for batch printing of itinerary receipts. The following is a further detailed description of the method for batch printing of itinerary receipts provided by the present application in conjunction with the accompanying drawings and specific implementation methods.

[0041] Please see attached Figure 1 , Figure 1 A flow chart of a method for batch printing of itinerary receipts provided in an embodiment of the present application. The method may include the following steps:

[0042] Step S101: obtaining setting parameters for batch printing of itinerary sheets, wherein the setting parameters at least include a reimbursement voucher number group, and the reimbursement voucher number group includes multiple reimbursement voucher numbers.

[0043] It should be noted that the reimbursement voucher number group is a reimbursement voucher number range consisting of a start number and an end number.

[0044] In this application, setting parameters is critical to ensure that the printed itinerary meets specific business needs, financial regulations or user expectations, which can be specific to the setting parameter of "reimbursement voucher number group". The reimbursement voucher number is usually used to uniquely identify each itinerary, and each itinerary requires a corresponding reimbursement voucher number to track, record and manage reimbursement transactions.

[0045] Setting parameters can also include specific format requirements, such as printer parameters and page parameters. Printer parameters include printer paper size and whether to print silently. Page parameters include page row offset, page column offset, and font size.

[0046] For ease of understanding, the following examples are given: the reimbursement voucher number group is: [0000000001, 0000000002, …, 0000000100]; the starting number is 0000000001; the ending number is 0000000100. The printer paper size is 21.00cm*10.15cm; silent printing is turned off. The page row offset is 0 pix; the page column offset is 0 pix; the line spacing is 0.15; the font size is 13. For details, please refer to Figure 2 , Figure 2 A schematic diagram of setting parameters provided in an embodiment of the present application.

[0047] Step S102: obtaining multiple sets of template data, each set of template data including: an electronic ticket number, a passenger reservation record PNR and a price.

[0048] In this application, multiple sets of template data can be obtained from a database, a file (such as CSV, Excel) or a remote application programming interface, and each set of template data contains three key information elements: an electronic ticket number, a passenger reservation record and a price.

[0049] It should be noted that the e-ticket number usually follows a specific coding rule and consists of a series of numbers and letters. It is a unique identifier obtained by passengers after purchasing a ticket, and is used to confirm the passenger's ticket purchase information and flight information. The passenger reservation record is a unique code, which is a record of the airline's reservation of seats for passengers, used to identify and track the passenger's reservation status. Price refers to the amount paid by the passenger to purchase the ticket, which may include the basic price of the ticket, taxes, fuel surcharges and other fees, and is used to indicate the fees paid by the passenger.

[0050] For ease of understanding, an example is given below: 100 pieces of template data are obtained from the database, each piece of template data contains an electronic ticket number (such as 999-1111111112), a passenger reservation record PNR (such as PKGYUN) and a price (such as ¥1468.00).

[0051] Step S103: multiple itinerary printing templates are created in batches according to the multiple sets of template data, each of which is filled with an electronic ticket number, a passenger reservation record PNR and a price.

[0052] It should be noted that each itinerary printing template includes multiple fields, namely, the electronic ticket number, passenger booking record PNR, price, reimbursement voucher, passenger name and passenger ID number.

[0053] In this application, the electronic ticket number, passenger booking record and price of each set of template data can be filled into the corresponding position of each itinerary printing template.

[0054] For ease of understanding, an example is given below: At this point, each itinerary printing template has been filled with an electronic ticket number (such as 999-1111111112), a passenger reservation record PNR (such as PKGYUN) and a price (such as ¥1468.00).

[0055] Step S104: According to the correspondence between the reimbursement voucher number and the electronic ticket number, an itinerary creation request is sent to the server, wherein the itinerary creation request includes at least the reimbursement voucher number and the electronic ticket number having the corresponding relationship.

[0056] It should be noted that there is a one-to-one correspondence between the reimbursement voucher number and the electronic ticket number. Each electronic ticket has a unique electronic ticket number as the identity of the ticket. Similarly, when a passenger needs to be reimbursed, a corresponding reimbursement voucher will be generated, and this voucher will also have a unique reimbursement voucher number. This reimbursement voucher number is usually directly associated with the electronic ticket number to ensure the accuracy and traceability of the reimbursement.

[0057] In this application, an itinerary creation request can be constructed according to the correspondence between the reimbursement voucher number and the electronic ticket number, and the itinerary creation request is sent to a specific API (Application Programming Interface) endpoint of the server to wait for the server's response.

[0058] For ease of understanding, an example is given below: an XML array containing 100 reimbursement voucher numbers and the corresponding electronic ticket numbers is sent to the server via the POST or GET method as the request body of an HTTP request.

[0059] Step S105: Receive at least one set of itinerary data returned by the server, each set of itinerary data including at least: a reimbursement voucher number, a passenger's name, a passenger's ID number and an electronic ticket number.

[0060] In the present application, after the server processes the request and returns an HTTP response containing detailed information of the itinerary, the receiving server returns the response and can parse the response content to extract at least one set of itinerary data.

[0061] For ease of understanding, an example is given below: an HTTP response body containing an XML array of 100 sets of itinerary data is received, i.e. itinerary data. Each set of itinerary data contains a reimbursement voucher number (such as 0000000001), a passenger name (such as Zhang San), a passenger ID number (such as 123456789012345678) and an electronic ticket number (such as 999-1111111112).

[0062] In order to ensure the accuracy and reliability of the data, the extracted itinerary data can also be checked for legality. If any problems are found during the legality check, an error message should be returned to the user, an exception should be thrown, or other appropriate error handling operations should be performed.

[0063] Specifically, the legitimacy check can include field integrity check: check whether each set of itinerary data contains all necessary fields. For example, if the reimbursement voucher number, passenger name, passenger ID number and electronic ticket number are required, then it must be ensured that these data exist in each set of itinerary.

[0064] Data type verification: Verify that the data type of each field meets expectations. For example, the reimbursement voucher number and e-ticket number should be string types, the passenger ID number should be a string that conforms to a specific format (such as 18 digits plus possible letter X), and the passenger name should be a non-empty string.

[0065] Data format verification: For fields that require a specific format (such as ID card number), format verification is performed. Tools such as regular expressions can be used to check whether the data conforms to the expected format.

[0066] Logical verification: Perform some logical verification to ensure that the relationship between the data is correct. For example, you can check whether the reimbursement voucher number and the electronic ticket number are unique.

[0067] Step S106: call the itinerary printing template, and fill each set of itinerary data into the itinerary printing template according to the correspondence between the reimbursement voucher number and the electronic ticket number, to obtain multiple itinerary interfaces to be printed.

[0068] In this application, for the correspondence between each reimbursement voucher number and electronic ticket number, the corresponding itinerary printing template and itinerary data can be found, and then the itinerary data can be filled in the blank fields corresponding to the itinerary printing template, namely the reimbursement voucher, passenger's name and passenger's ID number, and then the itinerary interface to be printed is generated.

[0069] To make it easier to understand, an example is given below: At this point, each itinerary printing template has been filled with an electronic ticket number (such as 999-1111111112), a passenger reservation record PNR (such as PKGYUN), a price (such as ¥1468.00), a reimbursement voucher number (such as 0000000001), a passenger name (such as Zhang San) and a passenger ID number (such as 123456789012345678).

[0070] Step S107: Continuously print multiple itinerary interfaces to be printed.

[0071] In this application, you can first initialize QPainter, then use QPainter to create a printing device; then call QPainter::begin to allocate resources for multiple itinerary interfaces to be printed; set the printing mode to batch printing mode through QPainter::setCompositionMode; call QPainter::drawText to print and draw multiple itinerary interfaces to be printed; call QPainter::end to release the resources allocated for multiple itinerary interfaces to be printed. The printer API is called through the QPrinter component, and the printing function is realized by self-drawing. At the same time, the format control of various data printing (passenger tickets, reimbursement vouchers, etc.) is realized to complete the printing process.

[0072] For details, please refer to Figure 3 , Figure 3A process diagram of a method for continuously printing multiple itinerary interfaces to be printed provided in an embodiment of the present application. First, initialize QPainter, initialize the printing device QPainter, initialize the preview device QLabel, and load the background image QImage. Then start this printing, allocate resources, call QPainter::begin(); set the printing mode, call QPainter::setCompositionMode(CompositionMode_Sourceln); set the font information, call QPainter::setFont(); start printing and drawing, call QPainter::drawText(); end this printing, release resources, and call QPainter::end.

[0073] In summary, the present application provides a method for batch printing of itineraries. The setting parameters and multiple sets of template data for batch printing of itineraries are obtained, wherein the setting parameters at least include a reimbursement voucher number group, and the reimbursement voucher number group includes multiple reimbursement voucher numbers; an itinerary creation request is sent to a server, and the itinerary creation request at least includes a reimbursement voucher number and an electronic ticket number with a corresponding relationship; according to the corresponding relationship between the reimbursement voucher number and the electronic ticket number, each set of itinerary data returned by the server (each set of itinerary data includes at least: a reimbursement voucher number, a passenger name, a passenger ID number and an electronic ticket number) is filled into the itinerary printing template (each itinerary printing template has been filled with an electronic ticket number, a passenger reservation record PNR and a price), and multiple itinerary interfaces to be printed are obtained, and the multiple itinerary interfaces to be printed are continuously printed. By strictly following the corresponding relationship between the reimbursement voucher number and the electronic ticket number, multiple itinerary interfaces to be printed are automatically configured and printed, the accuracy of the itinerary interfaces to be printed is guaranteed, and the printing efficiency is greatly improved.

[0074] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0075] On the basis of the above-mentioned embodiment disclosed in the present application, in another embodiment of the present application, a specific implementation method of sending an itinerary creation request to a server according to the correspondence between the reimbursement voucher number and the electronic ticket number is described in detail.

[0076] As an example of an implementation method, please refer to the attached Figure 4 , is a schematic diagram of a method for sending an itinerary creation request to a server according to the correspondence between a reimbursement voucher number and an electronic ticket number provided in an embodiment of the present application. The method may include the following steps:

[0077] Step S201: Concatenate the corresponding reimbursement voucher numbers and electronic ticket numbers into request data in a preset XML format.

[0078] In this application, after the user successfully logs in by entering the login credentials through the application interface, the SessionId is obtained from the server response for session authentication of subsequent requests. The SessionId is saved in a cookie to maintain the current session. If it is batch processing, all requests can use the same cookie. The start and end numbers of the reimbursement voucher number are obtained from the user input.

[0079] The starting number can be used as the current number. Then the current number and the electronic ticket number with a corresponding relationship are spliced ​​into the preset XML format request data. Finally, the next reimbursement voucher number of the current number is used as the current number, and the step of splicing the current number and the electronic ticket number with a corresponding relationship into the preset XML format request data is returned until the current number is the end number. Among them, the itinerary creation request can carry multiple request data.

[0080] Step S202: Encrypt the request data using a preset encryption method to obtain encrypted information.

[0081] In this application, in order to protect the confidentiality of the request data and prevent it from being intercepted and read by unauthorized parties during transmission, a suitable encryption algorithm (such as AES, RSA, etc.) can be selected and a key (such as a symmetric key or a private key in an asymmetric key pair) can be used to encrypt the request data.

[0082] It should be noted that if symmetric encryption is used, it is necessary to ensure that the key is securely shared between the client and the server; if asymmetric encryption is used, a private key is usually used for encryption and a public key for decryption.

[0083] Step S203: Generate digital signature information according to the timestamp.

[0084] In this application, in order to verify the integrity and source of the request data, ensure that the data has not been tampered with during transmission and is sent by the authorized sender, you can select a suitable digital signature algorithm (such as RSA, ECDSA, etc.), sign the digest of the timestamp (using a hash function such as SHA-256), and generate digital signature information.

[0085] It should be noted that the addition of timestamps can prevent replay attacks because each request will have a unique timestamp.

[0086] Step S204: Assemble the encrypted information and digital signature information according to the preset communication format, generate an itinerary creation request and send it to the server.

[0087] In this application, encrypted information is used as the main content of the request body. If required by the communication protocol, other metadata (such as request ID, timestamp, etc.) can also be embedded in the request body in a specific format. Digital signature information can be placed in the request header, especially when the server needs to verify the signature without decrypting the request body. If the digital signature is not placed in the request header, it needs to be attached to the request in some way. This can be achieved by including a signature field in the request body or by modifying the HTTP request method (such as using HTTP's Digest authentication header). After generating the itinerary creation request, you can use HTTP, HTTPS, WebSocket or other protocols to send it to the server and wait for the server's response.

[0088] It should be noted that the itinerary creation request includes a domestic itinerary creation request and an international itinerary creation request. There may also be an itinerary cancellation request, which includes a domestic itinerary cancellation request and an international itinerary cancellation request.

[0089] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0090] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0091] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0092] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The above introduces a method for batch printing of itinerary receipts provided in an embodiment of the present application. The following will introduce a device for executing the above-mentioned method for batch printing of itinerary receipts.

[0094] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a batch printing device for itinerary sheets provided in an embodiment of the present application. Figure 5 As shown, the itinerary batch printing device includes:

[0095] A first obtaining unit 11 is used to obtain setting parameters for batch printing of itinerary receipts, wherein the setting parameters at least include a reimbursement voucher number group, and the reimbursement voucher number group includes multiple reimbursement voucher numbers;

[0096] The second obtaining unit 12 is used to obtain multiple sets of template data, each set of template data includes: an electronic ticket number, a passenger reservation record PNR and a price;

[0097] A creation unit 13, configured to batch create a plurality of itinerary printing templates according to the plurality of sets of template data, each of which is filled with an electronic ticket number, a passenger reservation record PNR and a price;

[0098] The sending unit 14 is used to send an itinerary creation request to the server according to the correspondence between the reimbursement voucher number and the electronic ticket number, wherein the itinerary creation request at least includes the reimbursement voucher number and the electronic ticket number having a corresponding relationship;

[0099] The receiving unit 15 is used to receive at least one set of itinerary data returned by the server, each set of itinerary data at least including: a reimbursement voucher number, a passenger name, a passenger ID number and an electronic ticket number;

[0100] The third obtaining unit 16 is used to call the itinerary printing template, and fill each group of itinerary data into the itinerary printing template according to the correspondence between the reimbursement voucher number and the electronic ticket number, so as to obtain multiple itinerary interfaces to be printed;

[0101] The printing unit 17 is used to continuously print the multiple itinerary interfaces to be printed.

[0102] In a possible implementation, the printing unit 17 includes:

[0103] Initialization subunit, used to initialize QPainter.

[0104] The first calling subunit is used to create a printing device using the QPainter.

[0105] The second calling subunit is used to call QPainter::begin to allocate resources for the multiple itinerary interfaces to be printed.

[0106] The third calling subunit is used to set the printing mode to batch printing mode through QPainter::setCompositionMode.

[0107] The fourth calling subunit is used to call QPainter::drawText to print and draw the multiple itinerary interfaces to be printed.

[0108] The fifth calling subunit is used to call QPainter::end to release the resources allocated for the multiple itinerary interfaces to be printed.

[0109] In a possible implementation, the sending unit 14 includes:

[0110] The first splicing subunit is used to splice the corresponding reimbursement voucher number and the electronic ticket number into request data in a preset XML format.

[0111] The encryption subunit is used to encrypt the request data using a preset encryption method to obtain encrypted information.

[0112] The generation subunit is used to generate digital signature information according to the timestamp.

[0113] The assembly subunit is used to assemble the encrypted information and the digital signature information according to a preset communication format, generate an itinerary creation request and send it to the server.

[0114] In a possible implementation, the reimbursement voucher number group is a reimbursement voucher number range consisting of a start number and an end number, and the first splicing subunit includes:

[0115] The first determining subunit is used to use the starting number as the current number.

[0116] The second splicing subunit is used to splice the current number and the electronic ticket number that have a corresponding relationship into request data in a preset XML format.

[0117] The second determination subunit takes the next reimbursement voucher number of the current number as the current number, and returns to execute the step of splicing the corresponding current number and the electronic ticket number into request data in a preset XML format until the current number is the end number.

[0118] In a possible implementation, the itinerary creation request carries a plurality of the request data.

[0119] The present application also provides an electronic device in an embodiment. Figure 6 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0120] like Figure 6As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0121] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0122] Also provided in an embodiment of the present application is a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the itinerary batch printing methods provided in the embodiments of the present application.

[0123] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When one or more computer programs are executed by an electronic device, the electronic device can implement any one of the itinerary batch printing methods provided in the embodiment of the present application.

[0124] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0125] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0126] Through the description of the above implementation methods, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0127] In summary, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

[0128] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for batch printing of itinerary sheets, characterized in that: include: Obtaining setting parameters for batch printing of itinerary receipts, wherein the setting parameters at least include a reimbursement voucher number group, wherein the reimbursement voucher number group includes a plurality of reimbursement voucher numbers; Obtain multiple sets of template data, each set of template data includes: an electronic ticket number, a passenger reservation record PNR and a price; Creating a plurality of itinerary printing templates in batches according to the plurality of sets of template data, each of the itinerary printing templates having been filled with an electronic ticket number, a passenger reservation record (PNR) and a price; According to the correspondence between the reimbursement voucher number and the electronic ticket number, sending an itinerary creation request to the server, wherein the itinerary creation request at least includes the reimbursement voucher number and the electronic ticket number having the correspondence; Receive at least one set of itinerary data returned by the server, each set of itinerary data including at least: a reimbursement voucher number, a passenger's name, a passenger's ID number, and an electronic ticket number; Calling the itinerary printing template, and filling each set of itinerary data into the itinerary printing template according to the correspondence between the reimbursement voucher number and the electronic ticket number, to obtain multiple itinerary interfaces to be printed; The multiple itinerary interfaces to be printed are printed continuously.

2. The method according to claim 1, characterized in that The method of continuously printing the multiple itinerary order interfaces to be printed includes: Initialize QPainter; Create a printing device using the QPainter; Call QPainter::begin to allocate resources for the multiple itinerary interfaces to be printed; Set the printing mode to batch printing mode through QPainter::setCompositionMode; Call QPainter::drawText to print and draw the multiple itinerary interfaces to be printed; Call QPainter::end to release the resources allocated for the multiple itinerary interfaces to be printed.

3. The method according to claim 1, characterized in that The sending of an itinerary creation request to a server according to the correspondence between the reimbursement voucher number and the electronic ticket number comprises: The reimbursement voucher number and the electronic ticket number having a corresponding relationship are spliced ​​into request data in a preset XML format; Encrypt the request data using a preset encryption method to obtain encrypted information; Generate digital signature information based on the timestamp; According to the preset communication format, the encrypted information and the digital signature information are assembled to generate an itinerary creation request and send it to the server.

4. The method according to claim 3, characterized in that The reimbursement voucher number group is a reimbursement voucher number range consisting of a start number and an end number, and the reimbursement voucher number and the electronic ticket number having a corresponding relationship are spliced ​​into a preset XML format request data, including: Taking the starting number as the current number; splicing the current number and the electronic ticket number having a corresponding relationship into request data in a preset XML format; The next reimbursement voucher number of the current number is used as the current number, and the step of concatenating the corresponding current number and the electronic ticket number into request data in a preset XML format is returned until the current number becomes the end number.

5. The method according to claim 4, characterized in that The itinerary creation request carries a plurality of the request data.

6. A batch printing device for itinerary sheets, characterized in that: include: A first obtaining unit is used to obtain setting parameters for batch printing of itinerary receipts, wherein the setting parameters at least include a reimbursement voucher number group, and the reimbursement voucher number group includes a plurality of reimbursement voucher numbers; The second obtaining unit is used to obtain multiple sets of template data, each set of template data includes: an electronic ticket number, a passenger reservation record PNR and a price; A creation unit, used for batch creating a plurality of itinerary printing templates according to the plurality of sets of template data, each of which is filled with an electronic ticket number, a passenger reservation record PNR and a price; A sending unit, configured to send an itinerary creation request to a server according to the correspondence between the reimbursement voucher number and the electronic ticket number, wherein the itinerary creation request at least includes the reimbursement voucher number and the electronic ticket number having a corresponding relationship; A receiving unit, configured to receive at least one set of itinerary data returned by the server, each set of itinerary data including at least: a reimbursement voucher number, a passenger's name, a passenger's ID number, and an electronic ticket number; A third obtaining unit is used to call the itinerary printing template, and fill each group of itinerary data into the itinerary printing template according to the correspondence between the reimbursement voucher number and the electronic ticket number, so as to obtain multiple itinerary interfaces to be printed; The printing unit is used to continuously print the multiple itinerary interfaces to be printed.

7. The device according to claim 6, characterized in that The printing unit comprises: Initialize the subunit, used to initialize QPainter; The first calling subunit is used to create a printing device using the QPainter; The second calling subunit is used to call QPainter::begin to allocate resources for the multiple itinerary interfaces to be printed; The third calling subunit is used to set the printing mode to batch printing mode through QPainter::setCompositionMode; The fourth calling subunit is used to call QPainter::drawText to print and draw the multiple itinerary interfaces to be printed; The fifth calling subunit is used to call QPainter::end to release the resources allocated for the multiple itinerary interfaces to be printed.

8. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the method for batch printing of itineraries as described in any one of claims 1 to 5.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the method for batch printing of itinerary receipts as described in any one of claims 1 to 5.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the method for batch printing of itineraries as described in any one of claims 1 to 5.