WO2017054629A1 - 一种基于pos终端的打印凭条编辑方法和装置 - Google Patents
一种基于pos终端的打印凭条编辑方法和装置 Download PDFInfo
- Publication number
- WO2017054629A1 WO2017054629A1 PCT/CN2016/098459 CN2016098459W WO2017054629A1 WO 2017054629 A1 WO2017054629 A1 WO 2017054629A1 CN 2016098459 W CN2016098459 W CN 2016098459W WO 2017054629 A1 WO2017054629 A1 WO 2017054629A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- template
- print receipt
- sub
- pos terminal
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Definitions
- the embodiments of the present invention relate to the field of information technology, and in particular, to a POS (Point of Sales) terminal-based printing receipt editing method and apparatus.
- POS Point of Sales
- the format information such as characters and layouts of the print receipt of the POS terminal is generally compiled by using a software code, and the software code corresponding to the format information of the print receipt is used as a part of the entire application code of the POS terminal. If you need to edit the format of the print receipt, you need to edit the code corresponding to the format of the print receipt in the entire application of the POS terminal. This process requires editing the code, the operation is complicated, and requires a special program developer. Processing, development and testing take longer.
- the embodiment of the invention provides a printing receipt editing method and device based on a POS terminal, which is used for the purpose of editing a printing receipt by a simple method.
- Embodiments of the present invention provide a print receipt editing method based on a point-of-sale POS terminal, including the following steps:
- the code corresponding to the edited print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the print receipt template identifier includes a combined template identifier and at least one sub-template identifier
- the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, and specifically includes:
- the sub-template is placed in the combined template to obtain a print receipt template corresponding to the printed receipt template identifier.
- the combined template includes a print receipt template; wherein the graphical interface of the print receipt template is the same as the frame graphic of the printed receipt; or
- the combined template includes a print receipt template and at least one sub-template.
- any of the sub-templates includes any one or a combination of the following:
- Text content images, strings, formatted strings, newline characters, index numbers, index numbers of formatted strings, labels, and logical judgment statements.
- the editing instruction includes printing location information and/or format information corresponding to each sub-template included in the receipt template;
- the edited print receipt template is generated according to the editing instruction of the user on the graphical interface of the print receipt template, and specifically includes:
- Editing position information of each sub-template according to position information corresponding to each sub-template included in the editing instruction; and/or according to format information corresponding to each sub-template included in the editing instruction The format information of the sub-templates is edited;
- the method further includes:
- the edited print receipt template is simulated, and the simulated print receipt template is obtained for the user to review;
- the position information and the format information of the graphical interface of the printed receipt template are the same as the position information and the format information of the print receipt printed by the POS terminal according to the edited print receipt template.
- the method further includes:
- the edited print receipt template includes a logic judgment statement, assigning a parameter in the logic determination statement to cause the execution result of the logic judgment statement to be presented in the graphical interface of the simulated print receipt template;
- the label is assigned such that the graphical interface of the simulated print receipt template is rendered as the value assigned to the label.
- the code corresponding to the edited print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal, including:
- the code of the compiled print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the embodiment of the invention provides a printing receipt editing device based on a point-of-sale POS terminal, comprising:
- a first obtaining unit configured to obtain a print receipt template identifier to be used by the POS terminal; wherein the application code of the POS terminal is encapsulated into at least two parts, and a part of the application code encapsulated by the POS terminal is printed by the POS terminal The code corresponding to the format information of the receipt;
- a second obtaining unit configured to obtain a print receipt template corresponding to the print receipt template identifier according to the print receipt template identifier, wherein the print receipt template is a graphical interface
- a processing unit configured to generate an edited print receipt template according to an editing instruction of the user on the graphical interface of the print receipt template
- the sending unit is configured to send the code corresponding to the edited print receipt template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the print receipt template identifier includes a combined template identifier and at least one sub-template identifier
- the second obtaining unit is specifically configured to:
- the sub-template is placed in the combined template to obtain a print receipt template corresponding to the printed receipt template identifier.
- the combined template includes a print receipt template; wherein the graphical interface of the print receipt template is the same as the frame graphic of the printed receipt; or
- the combined template includes a print receipt template and at least one sub-template.
- any of the sub-templates includes any one or a combination of the following:
- Text content images, strings, formatted strings, newline characters, index numbers, index numbers of formatted strings, labels, and logical judgment statements.
- the editing instruction includes printing location information and/or format information corresponding to each sub-template included in the receipt template;
- Processing unit specifically for:
- the method further includes: a simulation unit, configured to:
- the edited print receipt template is simulated, and the simulated print receipt template is obtained for the user to review;
- the position information and the format information of the graphical interface of the printed receipt template are the same as the position information and the format information of the print receipt printed by the POS terminal according to the edited print receipt template.
- the simulation unit is further configured to:
- the edited print receipt template includes a logic judgment statement, assigning a parameter in the logic determination statement to cause the execution result of the logic judgment statement to be presented in the graphical interface of the simulated print receipt template;
- the label is assigned such that the graphical interface of the simulated print receipt template is rendered as the value assigned to the label.
- processing unit is further configured to:
- Sending unit specifically for:
- the code of the compiled print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- Embodiments of the present invention provide a print receipt editing device based on a POS terminal, the device comprising: a processor, a memory, and a transceiver.
- the memory is for storing a program implementing the above method embodiment
- a transceiver configured to obtain a print receipt template identifier to be used by the POS terminal; wherein the application code of the POS terminal is encapsulated into at least two parts, and a part of the application code of the POS terminal is encapsulated a code corresponding to the format information of the print receipt of the POS terminal; the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, wherein the print receipt template is a graphical interface;
- the processor calls the program and does the following:
- the transceiver is configured to send a code corresponding to the edited print receipt template to a POS a terminal to replace a code corresponding to the print receipt format information of the POS terminal.
- a part of the application code encapsulated by the POS terminal is a code corresponding to the format information of the print receipt of the POS terminal, and therefore, may be separately
- the format information of the print receipt of the POS terminal is modified, so that the print receipt of the POS terminal can be edited separately, and the code corresponding to the edited print receipt template is sent to the POS terminal to replace the print receipt of the POS terminal.
- the code corresponding to the format information further avoids the need to edit the code corresponding to the format of the print receipt in the entire application of the POS terminal in the prior art, and simplifies the process of editing the print receipt of the POS terminal.
- the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, and the print receipt template is a graphical interface, and the print is performed according to the user.
- the editing instruction on the graphical interface of the template template generates an edited print receipt template, and sends the code corresponding to the edited print receipt template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal. .
- the user can intuitively edit the print receipt template on the graphical interface of the print receipt template, thereby avoiding the way of editing the code of the print receipt in the prior art, and simplifying the printing of the receipt.
- the editing process improves the editing efficiency of the print receipts and reduces the requirements for users who edit the print receipts.
- FIG. 1 is a schematic diagram of a system architecture of a print receipt editing based on a POS terminal according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a method for editing a print receipt based on a POS terminal according to an embodiment of the present invention
- FIG. 2a is a schematic diagram of a sub-template provided by an embodiment of the present invention.
- 2b is a schematic diagram of a graphical interface of a combined template according to an embodiment of the present invention.
- 2c is a schematic diagram of a graphical interface of the printed receipt template C02 after the simulation of the combined template B02 in FIG. 2b in the embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a print receipt editing device based on a POS terminal according to an embodiment of the present invention
- FIG. 4 is a schematic structural diagram of a print receipt editing device based on a POS terminal according to an embodiment of the present invention.
- FIG. 1 is a schematic diagram of a system architecture applicable to an embodiment of the present invention.
- the system architecture includes one or more POS terminals, such as a POS terminal 103, a POS terminal 104, a POS terminal 105, and a print receipt editing device 102.
- the print receipt editing device 102 can be a computer or a personal digital assistant (Personal Digital Assistant). , referred to as PDA) and so on.
- PDA Personal Digital Assistant
- One or more network devices 101 connected to the print receipt editing device 102 may also be included.
- the network device 101 stores a plurality of print receipt templates
- the print receipt editing device 102 can obtain the print receipt template from the network device 101 according to the template identifier of the printed receipt.
- FIG. 2 illustrates a POS terminal-based print receipt editing method provided by an embodiment of the present invention, which includes the following steps:
- Step 201 Obtain a print receipt template identifier to be used by the POS terminal.
- the application code of the POS terminal is encapsulated into at least two parts, and a part of the application code encapsulated by the POS terminal is a format of a print receipt of the POS terminal.
- Step 202 Acquire a print receipt template corresponding to the print receipt template identifier according to the print receipt template identifier, where the print receipt template is a graphical interface;
- Step 203 Generate an edited print receipt template according to an editing instruction of the user on the graphical interface of the print receipt template.
- Step 204 Send the code corresponding to the edited print receipt template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the entire application code of the POS terminal is encapsulated to form at least two independent parts.
- the code of each part may be separately replaced or edited. operating.
- the code of each independent part formed by the POS terminal after being encapsulated is encoded in a scripting language.
- the code corresponding to the format information of the print receipt of the POS terminal is encapsulated according to the code corresponding to the format information of the print receipt of the POS terminal, and multiple print receipt templates are generated, and the print receipt template is a graphical interface.
- the print receipt template identifier includes a combination template identifier and at least one sub-template identifier, and the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, which specifically includes:
- the position indication information is set into the combination template, and the print receipt template corresponding to the print receipt template identifier is obtained.
- the combined template includes a print receipt frame template; wherein the graphical interface of the print receipt template is the same as the frame graphic of the printed receipt; or the combination template includes a print receipt template and at least one sub-template.
- any of the sub-templates includes any one or a combination of the following:
- Text content images, strings, formatted strings, newline characters, index numbers, index numbers of formatted strings, labels, and logical judgment statements.
- the print receipt template in the embodiment of the present invention includes a combination template and a sub template.
- FIG. 2a exemplarily shows a schematic diagram of several sub-templates, as shown in FIG. 2a, the template identifiers of the sub-templates are B01, B02, B03, B04 and B05, respectively.
- the sub-template B01 includes text content, and the font of the text content is set by default in the sub-template B01.
- the text content included in the sub-template B01 is Song, the fifth character, and the line spacing is 2.5 times.
- the sub-template B01 is used to print the text content included in the sub-template B01, for example, When the text content "Business A print receipt" is input on the graphical interface of the sub-template B01, the printed print receipt will print the text "Business A print receipt" at the corresponding position of the sub-template B01.
- the format information of the filled text in the sub-template B01 can be edited directly on the graphical interface of the sub-template B01.
- the text in the sub-template B01 can be set to imitation Song, the 10th word.
- the sub-template may also include other text content, such as "item, quantity, total amount, POS terminal code, merchant A phone number, date", etc., and sub-templates including different text content may be placed in different positions in the combined template.
- Sub-template B02 includes a string.
- the sub-template includes a string or a format string, which are used to print Chinese or Western characters, and the difference is that when the sub-template includes a format string, the format string is included.
- the formatted string printed by the child template has detailed print format information. For example, if the sub-template including the string includes the string "12345678" of the phone number, the printed print slip displays “12345678" in the corresponding position of the sub-template; the sub-template including the string includes the phone number. Formatting the string "12345678", Song, No. 5, the printed print receipt displays "12345678, Times New Roman, No. 5" in the corresponding position of the sub-template.
- the sub-template B03 includes an index number.
- the sub-template includes an index number or a formatted string index number, and all the commonly used strings are saved in the index resource script, and one string is allocated for each index resource script.
- the index number and when editing the print receipt template, directly fill in the index number on the graphical interface of the print receipt template to achieve the purpose of calling the string corresponding to the index number.
- the difference is that the format string corresponding to the index number printed by the sub-template including the formatted string index number has detailed print format information.
- the sub-template including the index number includes the index number "222", and the index number "222" in the index resource script corresponds to the string "112233", and when the sub-template fills in the index number "222” Displaying "112233" at the corresponding position of the sub-template on the printed print receipt; the sub-template including the formatted string index number includes the formatted string index number "222", and the index number "222" is indexed
- the corresponding character string in the resource script is "112233”, and the string format on the sub-template is: Song, No. 5, when the index number "222" is filled in the sub-template, the printed receipt is printed on the printed receipt. "112233, Times New Roman, No. 5" is displayed at the corresponding position of the sub-template.
- Sub-template B04 includes a tag.
- the label specifically refers to assigning a label value to a character or a character string.
- the label is directly edited, and when the POS terminal prints, the label is printed.
- the corresponding character or string For example, if the label value of the current template in the sub-template of the label is "322", then editing on the print receipt template can directly use the label value of "322", and the print receipt printed by the POS terminal.
- the position corresponding to the sub-template is displayed as the current date. For example, if today's date is 2015-9-29, the corresponding position of the sub-template on the printed receipt printed by the POS terminal is displayed as “2015- 9-29”.
- Sub-template B05 includes a logical decision statement.
- the logical judgment statement is specifically a simple statement.
- the sub-template including the logical judgment statement is defined as follows: “When the consumption amount is less than 100 yuan, the printed print receipt prints the position corresponding to the sub-template to output the text 'small free password', when consumption When the amount is not less than 100 yuan, the printed print receipt prints the text 'password payment' at the position corresponding to the sub-template.
- the above-mentioned content only exemplarily introduces several commonly used sub-templates, and the sub-templates exemplarily include a sub-template that includes only one content.
- the sub-template may also include multiple contents, such as a
- the sub-template includes both text and images, or text and strings, and will not be repeated here.
- the sub-template included in the embodiment of the present invention includes some other statements, such as a statement including a simple calculation, in addition to the logical judgment statement.
- the total amount that is usually output on the print receipt is a value obtained by multiplying the unit price by the quantity.
- a combination template is also included in the embodiment of the present invention.
- the combination template includes a print receipt template, or the combination template includes a print receipt template and at least one sub-template.
- the graphical interface of the print receipt template is the same as the frame graphic of the print receipt.
- Figure 2b exemplarily illustrates a schematic diagram of several graphical interfaces of a combined template in an embodiment of the present invention.
- the combination template A01 includes a print receipt frame template, and a print receipt frame template.
- the graphical interface of the board is the same as the frame graphic of the printed receipt.
- the print receipt frame template is a rectangle of length 80 and width 50
- the pattern of the outer frame of the print receipt printed from the POS terminal is a rectangle of length 80 and width 50.
- the print coupon frame template may include various specifications, which are not limited in the embodiment of the present invention. Those skilled in the art can also create some print receipt frame templates of other shapes and sizes, such as creating a 50 by 50 square print receipt frame template.
- the editing instruction includes location information and/or format information corresponding to each sub-template included in the print receipt template; a format corresponding to each sub-template on a graphical interface of the print receipt template
- the information is edited.
- the print receipt editing device based on the POS terminal generates an edited print receipt template according to an editing instruction of the user on the graphical interface of the print receipt template, which specifically includes:
- the edited print receipt template is obtained.
- the combined template A02 includes a print receipt template and a plurality of sub-templates.
- the editing instruction of the user on the graphical interface of the combined template includes printing position information corresponding to each sub-template included in the voucher template, and editing the position of each sub-template according to the position information, so that each sub-template is placed in the user's needs The location.
- the user can directly move the position of each sub-template on the graphical interface of the print receipt template.
- the format information may be a font, a font size, a line spacing, and the like of the text.
- the combined template includes a printed receipt frame template and a plurality of sub-templates.
- the sub-template B01 included in the combination template A02 and the combination template A03 may include text content, and in the combination template A02, a "merchant A print receipt" is added for the sub-template B01, and the template is placed in the print receipt template. Centered at the top.
- a user may edit a sub-template or a combined template in a graphical interface, and specifically edit their location information and format information, compared to the prior art. Need to change the font of a text when needed from the code of the entire application It is convenient, simpler and more efficient to find the corresponding code of the font of the text.
- the method further includes:
- the edited print receipt template is simulated, and the simulated print receipt template is obtained for the user to review; wherein, the position information and format information of the graphical interface of the simulated print receipt template are compared with the POS terminal according to the edit
- the position information and format information of the print receipt printed by the print receipt template are the same.
- the parameters when the edited print receipt template is simulated, the parameters may be assigned.
- the method further includes:
- the edited print receipt template includes a logic judgment statement, assigning a parameter in the logic determination statement to cause the execution result of the logic judgment statement to be presented in the graphical interface of the simulated print receipt template;
- the label is assigned such that the graphical interface of the simulated print receipt template is rendered as the value assigned to the label.
- Another implementation manner is that when the edited print receipt template is simulated, the parameters may not be assigned, and the print receipt editing device based on the POS terminal automatically uses the default value as the edited print receipt template. The included parameters are assigned.
- FIG. 2c exemplarily shows the simulated print receipt template C02 after the simulation of the combined template B02 in FIG. 2b in the embodiment of the present invention.
- the sub-templates including the logic judgment statement in FIG. 2b, the sub-templates including the labels, and the parameters in the sub-templates including other contents are assigned values, and at this time, the simulated print receipts are displayed.
- the template C02 location information and format information are the same as the location information and format information of the print receipt printed by the POS terminal according to the edited print receipt template.
- the present invention After the user saves the edited print receipt template, the present invention
- a new one can be generated for the edited print receipt template. Identify and store the edited print receipt template in a network device that stores a print receipt template for use by others.
- the code corresponding to the edited print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal, including:
- the encoded format of the edited print receipt template is the same as the encoding format of the POS terminal. If different, the code corresponding to the edited print receipt template is compiled to make the compiled print receipt.
- the encoding format of the template is the same as the encoding format used by the POS terminal; if the same, the code corresponding to the edited print receipt template is not compiled. After that, the code of the compiled print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the code of the compiled print receipt template can be sent to the POS terminal through a wired, wireless, Bluetooth, etc., because the application code of the POS terminal is encapsulated into at least two parts, and the application code of the POS terminal is encapsulated.
- One part is the code corresponding to the format information of the print receipt of the POS terminal. Therefore, the format information of the print receipt of the POS terminal can be separately modified, thereby separately editing the print receipt of the POS terminal, and editing
- the code corresponding to the print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal, thereby avoiding the need for the format correspondence of the print receipt in the entire application of the POS terminal in the prior art.
- the editing of the code simplifies the process of editing the print receipt of the POS terminal.
- the application code of the POS terminal is encapsulated into at least two parts, a part of the application code encapsulated by the POS terminal is corresponding to the format information of the print receipt of the POS terminal.
- the code therefore, can separately modify the format information of the print receipt of the POS terminal, thereby separately editing the print receipt of the POS terminal, and transmitting the code corresponding to the edited print receipt template to the POS terminal, Replacing the code corresponding to the print receipt format information of the POS terminal, thereby avoiding the need for the entire POS terminal in the prior art
- the process of editing with the code corresponding to the format of the print receipt in the program simplifies the process of editing the print receipt of the POS terminal.
- the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, and the print receipt template is a graphical interface, and the print is performed according to the user.
- the editing instruction on the graphical interface of the template template generates an edited print receipt template, and sends the code corresponding to the edited print receipt template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal. .
- the user can intuitively edit the print receipt template on the graphical interface of the print receipt template, thereby avoiding the way of editing the code of the print receipt in the prior art, and simplifying the printing of the receipt.
- the editing process improves the editing efficiency of the print receipts and reduces the requirements for users who edit the print receipts.
- FIG. 3 is a schematic structural diagram of a POS terminal-based print receipt editing apparatus according to an embodiment of the present invention.
- an embodiment of the present invention provides a print receipt editing apparatus based on a POS terminal, including: a first obtaining unit 301, a second obtaining unit 302, a processing unit 303, and a sending unit 304.
- the simulation unit 305 is also included:
- the first obtaining unit 301 is configured to obtain a print receipt template identifier to be used by the POS terminal.
- the application code of the POS terminal is encapsulated into at least two parts, and a part of the application code encapsulated by the POS terminal is a POS terminal.
- the second obtaining unit 302 is configured to obtain a print receipt template corresponding to the print receipt template identifier according to the print receipt template identifier, wherein the print receipt template is a graphical interface;
- the processing unit 303 is configured to generate an edited print receipt template according to an editing instruction of the user on the graphical interface of the print receipt template;
- the sending unit 304 is configured to send the code corresponding to the edited print coupon template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the print receipt template identifier includes a combined template identifier and at least one sub-template identifier
- the second obtaining unit 302 is specifically configured to:
- the sub-template is placed in the combined template to obtain a print receipt template corresponding to the printed receipt template identifier.
- the combined template includes a print receipt template; wherein the graphical interface of the print receipt template is the same as the frame graphic of the printed receipt; or
- the combined template includes a print receipt template and at least one sub-template.
- any of the sub-templates includes any one or a combination of the following:
- Text content images, strings, formatted strings, newline characters, index numbers, index numbers of formatted strings, labels, and logical judgment statements.
- the editing instruction includes printing location information and/or format information corresponding to each sub-template included in the receipt template;
- the processing unit 303 is specifically configured to:
- the method further includes: a simulation unit 305, configured to:
- the edited print receipt template is simulated, and the simulated print receipt template is obtained for the user to review;
- the position information and the format information of the graphical interface of the printed receipt template are the same as the position information and the format information of the print receipt printed by the POS terminal according to the edited print receipt template.
- the simulation unit 305 is further configured to:
- the edited print receipt template includes a logic judgment statement, assigning a parameter in the logic determination statement to cause the execution result of the logic judgment statement to be presented in the graphical interface of the simulated print receipt template;
- the label is assigned such that the graphical interface of the simulated print receipt template is rendered as the value assigned to the label.
- processing unit 303 is further configured to:
- the sending unit 304 is specifically configured to:
- the code of the compiled print receipt template is sent to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- an embodiment of the present invention provides a print receipt editing device based on a POS terminal, which can execute the above method flow.
- the method includes: a processor 410, a memory 420, and a transceiver 430.
- the memory 420 is configured to store a program implementing the above method embodiments
- the transceiver 430 is configured to obtain a print receipt template identifier to be used by the POS terminal, where the application code of the POS terminal is encapsulated into at least two parts, and a part of the application code of the POS terminal is encapsulated a code corresponding to the format information of the print receipt of the POS terminal; and the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, wherein the print receipt template is a graphical interface ;
- the processor 410 is configured to generate an edited print receipt template according to an editing instruction of the user on the graphical interface of the print receipt template;
- the transceiver 430 is configured to send a code corresponding to the edited print coupon template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal.
- the print receipt template identifier includes a combined template identifier and at least one sub-template identifier
- the transceiver 430 is specifically configured to:
- the combined template includes a print receipt frame template; wherein the graphical interface of the print receipt template is the same as the frame graphic of the printed receipt; or
- the combined template includes a print receipt frame template and at least one sub-template.
- any of the sub-templates includes any one or a combination of the following:
- Text content images, strings, formatted strings, newline characters, index numbers, index numbers of formatted strings, labels, and logical judgment statements.
- the editing instruction includes location information and/or format information corresponding to each sub-template included in the print receipt template.
- the processor 410 is specifically configured to:
- the edited print receipt template is obtained.
- the processor 410 is further configured to:
- the position information and the format information of the graphical interface of the simulated print receipt template are the same as the position information and the format information of the print receipt printed by the POS terminal according to the edited print receipt template. .
- the processor 410 is further configured to:
- the edited print coupon template includes a logic determination statement, assigning a parameter in the logic determination statement to render the logic determination statement in a graphical interface of the simulated print receipt template The result of the execution; or
- the edited print receipt template includes a label
- assign the label to enable The value assigned to the label is presented in the graphical interface of the simulated print receipt template.
- the processor 410 is further configured to:
- the transceiver 430 is specifically configured to:
- the application code of the POS terminal is encapsulated into at least two parts, a part of the application code encapsulated by the POS terminal is corresponding to the format information of the print receipt of the POS terminal.
- the code therefore, can separately modify the format information of the print receipt of the POS terminal, thereby separately editing the print receipt of the POS terminal, and transmitting the code corresponding to the edited print receipt template to the POS terminal,
- the code corresponding to the print receipt format information of the POS terminal is replaced, thereby avoiding the need to edit the code corresponding to the format of the print receipt in the entire application of the POS terminal in the prior art, and simplifying the printing on the POS terminal.
- the process of editing is encapsulated into at least two parts, a part of the application code encapsulated by the POS terminal is corresponding to the format information of the print receipt of the POS terminal.
- the print receipt template corresponding to the print receipt template identifier is obtained according to the print receipt template identifier, and the print receipt template is a graphical interface, and the print is performed according to the user.
- the editing instruction on the graphical interface of the template template generates an edited print receipt template, and sends the code corresponding to the edited print receipt template to the POS terminal to replace the code corresponding to the print receipt format information of the POS terminal. .
- the user can intuitively edit the print receipt template on the graphical interface of the print receipt template, thereby avoiding the way of editing the code of the print receipt in the prior art, and simplifying the printing of the receipt.
- the editing process improves the editing efficiency of the print receipts and reduces the requirements for users who edit the print receipts.
- embodiments of the present invention can be provided as a method, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present invention may employ computer-usable storage media (including but not limited to disk storage, in one or more of the computer-usable program code embodied therein. The form of a computer program product implemented on a CD-ROM, optical memory, or the like.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Cash Registers Or Receiving Machines (AREA)
- Record Information Processing For Printing (AREA)
Abstract
一种基于POS终端(103,104,105)的打印凭条编辑方法和装置,用以通过简单的方法对打印凭条进行编辑。POS终端(103,104,105)的应用程序代码封装为至少两个部分,POS终端(103,104,105)的应用程序代码封装后的一个部分为POS终端(103,104,105)的打印凭条的格式信息对应的代码,如此,可单独对POS终端(103,104,105)的打印凭条的格式信息进行修改。进一步由于根据获取的打印凭条模板标识,获取打印凭条模板,打印凭条模板为图形化界面,如此,则用户可在打印凭条模板的图形化界面上直观的对该打印凭条模板进行编辑,简化了打印凭条的编辑过程,降低了对打印凭条进行编辑的用户的要求。
Description
本申请要求在2015年9月29日提交中国专利局、申请号为201510638559.1、发明名称为“一种基于POS终端的打印凭条编辑方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明实施例涉及信息技术领域,尤其涉及一种基于POS(Point of sales,销售点)终端的打印凭条编辑方法和装置。
随着科技的发展,POS终端的使用越来越普遍。在实际应用中,不同的地区、不同的用户对POS终端打印出的打印凭条的格式都有不同的要求,这就使得POS终端必须保证能满足各种应用场合。
现有技术中一般采用将POS终端的打印凭条的字符、排版等格式信息使用软件代码的方式进行编制,将打印凭条的格式信息对应的软件代码作为POS终端整个应用程序代码的一部分。如果需要编辑打印凭条的格式,则需要对POS终端整个应用程序中的打印凭条的格式对应的代码进行编辑,这一过程需要对代码进行编辑,操作复杂,且需要专门的程序开发人员来处理,开发和测试时间较长。
发明内容
本发明实施例提供一种基于POS终端的打印凭条编辑方法和装置,用以通过简单的方法实现对打印凭条进行编辑的目的。
本发明实施例提供一种基于销售点POS终端的打印凭条编辑方法,包括以下步骤:
获取POS终端拟使用的打印凭条模板标识;其中,POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为
POS终端的打印凭条的格式信息对应的代码;
根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,其中,打印凭条模板为图形化界面;
根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;
将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
可选地,打印凭条模板标识包括组合模板标识和至少一个子模板标识;
根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,具体包括:
根据组合模板标识,获取组合模板标识对应的组合模板;
根据至少一个子模板标识,获取至少一个子模板标识中每个子模板标识对应的子模板;
根据获取的用于指示子模板在组合模板中位置的位置指示信息,将子模板置入组合模板中,得到打印凭条模板标识对应的打印凭条模板。
可选地,组合模板中包括打印凭条框架模板;其中,打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者
组合模板中包括打印凭条框架模板和至少一个子模板。
可选地,任一个子模板包括以下内容中的任一项或任几项的组合:
文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
可选地,编辑指令包括打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;
根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板,具体包括:
根据编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据编辑指令中包括的每个子模板对应的格式信息对每
个子模板的格式信息进行编辑;
得到编辑后的打印凭条模板。
可选地,生成编辑后的打印凭条模板之后,还包括:
对编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;
其中,仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与POS终端根据编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
可选地,生成编辑后的打印凭条模板之后,对编辑后的打印凭条模板进行仿真之前,还包括:
若编辑后的打印凭条模板包括逻辑判断语句,则对逻辑判断语句中的参数进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现逻辑判断语句的执行结果;或者
若编辑后的打印凭条模板包括标签,则对标签进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现为标签所赋的值。
可选地,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码,包括:
将编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;
将编译后的打印凭条模板的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
本发明实施例提供一种基于销售点POS终端的打印凭条编辑装置,包括:
第一获取单元,用于获取POS终端拟使用的打印凭条模板标识;其中,POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码;
第二获取单元,用于根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,其中,打印凭条模板为图形化界面;
处理单元,用于根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;
发送单元,用于将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
可选地,打印凭条模板标识包括组合模板标识和至少一个子模板标识;
第二获取单元,具体用于:
根据组合模板标识,获取组合模板标识对应的组合模板;
根据至少一个子模板标识,获取至少一个子模板标识中每个子模板标识对应的子模板;
根据获取的用于指示子模板在组合模板中位置的位置指示信息,将子模板置入组合模板中,得到打印凭条模板标识对应的打印凭条模板。
可选地,组合模板中包括打印凭条框架模板;其中,打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者
组合模板中包括打印凭条框架模板和至少一个子模板。
可选地,任一个子模板包括以下内容中的任一项或任几项的组合:
文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
可选地,编辑指令包括打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;
处理单元,具体用于:
根据编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;
得到编辑后的打印凭条模板。
可选地,还包括,仿真单元,用于:
对编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;
其中,仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与POS终端根据编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
可选地,仿真单元,还用于:
若编辑后的打印凭条模板包括逻辑判断语句,则对逻辑判断语句中的参数进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现逻辑判断语句的执行结果;或者
若编辑后的打印凭条模板包括标签,则对标签进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现为标签所赋的值。
可选地,处理单元,还用于:
将编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;
发送单元,具体用于:
将编译后的打印凭条模板的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
本发明实施例提供一种基于POS终端的打印凭条编辑装置,该装置包括:处理器、存储器、收发器。
存储器用于存储实现以上方法实施例的程序;
收发器,用于获取POS终端拟使用的打印凭条模板标识;其中,所述POS终端的应用程序代码封装为至少两个部分,所述POS终端的应用程序代码封装后的一个部分为所述POS终端的打印凭条的格式信息对应的代码;根据所述打印凭条模板标识,获取所述打印凭条模板标识对应的打印凭条模板,其中,所述打印凭条模板为图形化界面;
处理器调用该程序,执行以下操作:
根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;
所述收发器,用于将所述编辑后的打印凭条模板对应的代码发送给POS
终端,以替换所述POS终端的打印凭条格式信息对应的代码。
本发明实施例中,由于POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码,因此,可单独对POS终端的打印凭条的格式信息进行修改,进而可实现单独对POS终端的打印凭条进行编辑,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码,进而避免了现有技术中需要对POS终端整个应用程序中的打印凭条的格式对应的代码进行编辑的情况,简化了对POS终端的打印凭条进行编辑的过程。另一方面,由于获取POS终端拟使用的打印凭条模板标识,根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,打印凭条模板为图形化界面,根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。如此,则用户可在打印凭条模板的图形化界面上直观的对该打印凭条模板进行编辑,从而避免了现有技术中对打印凭条的代码进行编辑的方式,简化了打印凭条的编辑过程,且提高了打印凭条的编辑效率,降低了对打印凭条进行编辑的用户的要求。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种基于POS终端的打印凭条编辑的系统架构示意图;
图2为本发明实施例提供的一种基于POS终端的打印凭条编辑方法流程示意图;
图2a为本发明实施例提供的子模板的示意图;
图2b为本发明实施例提供的组合模板的图形化界面的示意图;
图2c为本发明实施例中图2b中组合模板B02进行仿真之后的仿真后的打印凭条模板C02的图形化界面的示意图;
图3为本发明实施例提供的一种基于POS终端的打印凭条编辑装置的结构示意图;
图4为本发明实施例提供的一种基于POS终端的打印凭条编辑装置的结构示意图。
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
如图1所示,本发明实施例适用的系统架构示意图。该系统架构中包括一个或多个POS终端,如POS终端103、POS终端104、POS终端105,以及打印凭条编辑装置102,打印凭条编辑装置102可为计算机、个人数字助理(Personal Digital Assistant,简称PDA)等。还可包括一个或多个与打印凭条编辑装置102连接的网络设备101。
可选地,本发明实施例中网络设备101中储存多个打印凭条模板,打印凭条编辑装置102可根据打印凭条的模板标识从网络设备101中获取打印凭条模板。本发明实施例中说明书附图中各个附图上的标号在所有附图中通用。
基于图1所示的系统架构,图2示出了本发明实施例提供的一种基于POS终端的打印凭条编辑方法,包括以下步骤:
步骤201,获取POS终端拟使用的打印凭条模板标识;其中,POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码;
步骤202,根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,其中,打印凭条模板为图形化界面;
步骤203,根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;
步骤204,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
可选地,上述步骤201中,本发明实施例中对POS终端的整个应用程序代码进行封装,形成独立的至少两个部分,本发明实施例中,各个部分的代码可以单独进行替换或编辑等操作。可选地,POS终端进行封装后形成的各个独立部分的代码是采用脚本语言进行编码的。基于POS终端的打印凭条的格式信息对应的代码,对POS终端的打印凭条的格式信息对应的代码进行封装,产生多个打印凭条模板,打印凭条模板均为图形化界面。
上述步骤202中,可选地,打印凭条模板标识包括组合模板标识和至少一个子模板标识,根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,具体包括:
根据组合模板标识,获取组合模板标识对应的组合模板,根据至少一个子模板标识,获取至少一个子模板标识中每个子模板标识对应的子模板,根据获取的用于指示子模板在组合模板中位置的位置指示信息,将子模板置入组合模板中,得到打印凭条模板标识对应的打印凭条模板。
可选地,组合模板中包括打印凭条框架模板;其中,打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者组合模板中包括打印凭条框架模板和至少一个子模板。
可选地,任一个子模板包括以下内容中的任一项或任几项的组合:
文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
具体来说,本发明实施例中的打印凭条模板包括组合模板和子模板。图2a示例性示出了几种子模板的示意图,如图2a所示,子模板的模板标识分别为B01、B02、B03、B04和B05。
子模板B01包括文字内容,子模板B01中默认设置有文字内容的字体、
字体大小、字体间距、行距等信息,比如,子模板B01中包括的文字内容为宋体,5号字,行距2.5倍,子模板B01用于打印出子模板B01中包括的文字内容,比如,可在子模板B01的图形化界面上中输入文字内容“商户甲打印凭条”,则打印出的打印凭条在子模板B01的相应位置将打印出文字“商户甲打印凭条”。可直接在子模板B01的图形化界面上,对子模板B01中的所填充的文字的格式信息进行编辑,比如可将子模板B01中的文字设置为仿宋,10号字。子模板中还可包括其它文字内容,如“项目、数量、总金额、POS终端编码、商户甲电话号码、日期”等,可将包括不同文字内容的子模板放置于组合模板中的不同位置。
子模板B02包括字符串。具体来说,本发明实施例中子模板包括字符串或者格式化字符串,均是用于打印中文或是西文字符,区别在于子模板中包括格式化字符串时,该包括格式化字符串的子模板所打印出的格式化字符串带有详细的打印格式信息。举个例子,包括字符串的子模板中包括电话号码的字符串“12345678”,则打印出的打印凭条在该子模板对应位置显示“12345678”;包括字符串的子模板中包括电话号码的格式化字符串“12345678”,宋体,5号,则打印出的打印凭条在该子模板对应位置显示“12345678,宋体,5号”。
子模板B03包括索引号。具体来说,本发明实施例中子模板包括索引号或者格式化字符串索引号,均是将一些常用的字符串保存在索引资源脚本中,并为每个索引资源脚本中的字符串分配一个索引号,并在对打印凭条模板进行编辑时,直接在打印凭条模板的图形化界面上填写索引号,即可实现调用该索引号对应的字符串的目的。区别在于,包括格式化字符串索引号的子模板所打印出的索引号对应的格式化字符串带有详细的打印格式信息。举个例子,包括索引号的子模板中包括索引号“222”,索引号“222”在索引资源脚本中对应的的字符串为“112233”,则在子模板中填写索引号“222”时,在打印出的打印凭条上的该子模板对应位置处显示“112233”;包括格式化字符串索引号的子模板中包括格式化字符串索引号“222”,索引号“222”在索引
资源脚本中对应的的字符串为“112233”,该子模板上字符串格式为,宋体,5号,则在子模板中填写索引号“222”时,在打印出的打印凭条上的该子模板对应位置处显示“112233,宋体,5号”。
子模板B04包括标签。本发明实施例中,标签具体是指为将一个字符或字符串赋一个标签值,在对打印凭条模板进行编辑时,直接使用标签进行编辑,在POS终端打印时,即打印出该标签所对应的字符或字符串。举个例子,包括标签的子模板中为当前日期的标签值为“322”,则在打印凭条模板上进行编辑是,可直接使用“322”这个标签值,POS终端打印出的打印凭条上该子模板所对应的位置处对应显示为当前日期,比如,今天日期为2015-9-29,则POS终端打印出的打印凭条上该子模板所对应的位置处对应显示为“2015-9-29”。
子模板B05包括逻辑判断语句。本发明实施例中,逻辑判断语句具体为一些简单的语句。举个例子,包括逻辑判断语句的子模板进行如下限定“当消费金额小于100元时,则打印出的打印凭条上该子模板所对应的位置输出文字‘小额免输密码’,当消费金额不小于100元时,则打印出的打印凭条上该子模板所对应的位置输出文字‘密码支付’。
上述内容仅仅示例性介绍了几种常用的子模板,上述子模板中均示例性介绍了仅仅包括一项内容的子模板,本发明实施例中子模板中还可同时包括多项内容,比如一个子模板中同时包括文字和图片,或者文字和字符串等,在此不再一一赘述。本发明实施例中包括的子模板除了包括逻辑判断语句之外,还包括一些其它语句,比如包括简单计算的语句。具体实施中,通常在打印凭条上输出的总金额是将单价与数量相乘所得到的值。
本发明实施例中还包括组合模板。可选地,组合模板中包括打印凭条框架模板,或者组合模板中包括打印凭条框架模板和至少一个子模板。其中,打印凭条框架模板的图形化界面与打印凭条的框架图形相同。
图2b示例性介绍了几种本发明实施例中的组合模板的图形化界面的示意图。如图2b所示,组合模板A01中包括打印凭条框架模板,打印凭条框架模
板的图形化界面与打印凭条的框架图形相同。举例来说,打印凭条框架模板为一个长80、宽50的矩形,则从POS终端上打印出的打印凭条的外部框架的图形为长80、宽50的矩形。打印凭条框架模板可包括多种规格,本发明实施例不做限制。本领域技术人员也可自己创建一些其它形状和尺寸的打印凭条框架模板,比如创建一个50乘50的正方形的打印凭条框架模板。
可选地,所述编辑指令包括所述打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;用户可在打印凭条模板的图形化界面上对各个子模板对应的格式信息进行编辑,具体来说,基于POS终端的打印凭条编辑装置根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板,具体包括:
根据所述编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据所述编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;
得到所述编辑后的打印凭条模板。
具体来说,组合模板A02中包括打印凭条框架模板和多个子模板。用户在组合模板的图形化界面上的编辑指令包括打印凭条模板中包括的每个子模板对应的位置信息,根据位置信息,对每个子模板的位置进行编辑,以使每个子模板放置在用户需要的位置上。具体实施中,用户可直接在打印凭条模板的图形化界面上移动各个子模板的位置。具体来说,格式信息可为文字的字体、字号、行距等。
如图2b中所示的组合模板A02和组合模板A03所示,组合模板中包括打印凭条框架模板和多个子模板。组合模板A02和组合模板A03中包括的子模板B01中可包括文字内容,在组合模板A02中,为子模板B01添加“商户甲打印凭条”,并且将该模板放置于打印凭条框架模板的最上方居中位置。
如图2a和图2b所示,本发明实施例中,用户可在图形化的界面中对子模板或组合模板进行编辑,具体可对它们的位置信息和格式信息进行编辑,相比现有技术中需要更改一个文字的字体时,需要从整个应用程序的代码中
找到该文字的字体的对应代码进行修改,方便简单,且效率更高。
可选地,生成编辑后的打印凭条模板之后,还包括:
对编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;其中,仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与POS终端根据编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
如此,则避免了现有技术中使用POS终端打印编辑后的打印凭条模板,以实现对编辑后的打印凭条模板测试的目的,节省了打印纸张,有利于环保。
可选地,本发明实施例中,对编辑后的打印凭条模板进行仿真时,可对其中的参数进行赋值。可选地,生成编辑后的打印凭条模板之后,对编辑后的打印凭条模板进行仿真之前,还包括:
若编辑后的打印凭条模板包括逻辑判断语句,则对逻辑判断语句中的参数进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现逻辑判断语句的执行结果;或者
若编辑后的打印凭条模板包括标签,则对标签进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现为标签所赋的值。
另一种实现方式为,对编辑后的打印凭条模板进行仿真时,也可不对其中的参数进行赋值,基于POS终端的打印凭条编辑装置会自动使用默认值为编辑后的打印凭条模板中的包括的参数进行赋值。
图2c示例性示出了本发明实施例中图2b中组合模板B02进行仿真之后的仿真后的打印凭条模板C02。如图2c所示,对图2b中的包括逻辑判断语句的子模板、包括标签的子模板,以及包括其它内容的子模板中的参数均赋值,此时,显示出的仿真后的打印凭条模板C02位置信息和格式信息与POS终端根据编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
用户审阅仿真后的打印凭条模板,如果符合用户的要求,则对该编辑后的打印凭条模板进行保存,本发明实施例中,用户将编辑后的打印凭条模板进行保存之后,本发明实施例中可为该编辑后的打印凭条模板生成一个新的
标识,并将该编辑后的打印凭条模板存储至存储打印凭条模板的网络设备中,以供其他人使用。
可选地,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码,包括:
将编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;将编译后的打印凭条模板的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
具体来说,判断编辑后的打印凭条模板的编码格式与POS终端的编码格式是否相同,若不同,则将编辑后的打印凭条模板对应的代码进行编译,以使编译后的打印凭条模板的编码格式与POS终端所使用的编码格式一致;若相同,则不对编辑后的打印凭条模板对应的代码进行编译。之后,将编译后的打印凭条模板的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。具体实施中,可通过有线、无线、蓝牙等技术将编译后的打印凭条模板的代码发送给POS终端,由于POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码,因此,可单独对POS终端的打印凭条的格式信息进行修改,进而可实现单独对POS终端的打印凭条进行编辑,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码,进而避免了现有技术中需要对POS终端整个应用程序中的打印凭条的格式对应的代码进行编辑的情况,简化了对POS终端的打印凭条进行编辑的过程。
从上述内容可以看出:本发明实施例中,由于POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码,因此,可单独对POS终端的打印凭条的格式信息进行修改,进而可实现单独对POS终端的打印凭条进行编辑,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码,进而避免了现有技术中需要对POS终端整个应
用程序中的打印凭条的格式对应的代码进行编辑的情况,简化了对POS终端的打印凭条进行编辑的过程。另一方面,由于获取POS终端拟使用的打印凭条模板标识,根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,打印凭条模板为图形化界面,根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。如此,则用户可在打印凭条模板的图形化界面上直观的对该打印凭条模板进行编辑,从而避免了现有技术中对打印凭条的代码进行编辑的方式,简化了打印凭条的编辑过程,且提高了打印凭条的编辑效率,降低了对打印凭条进行编辑的用户的要求。
图3示例性示出了本发明实施例提供的一种基于POS终端的打印凭条编辑装置的结构示意图。
基于相同构思,如图3所示,本发明实施例提供一种基于POS终端的打印凭条编辑装置,包括:第一获取单元301、第二获取单元302、处理单元303、发送单元304,可选地,还包括仿真单元305:
第一获取单元301,用于获取POS终端拟使用的打印凭条模板标识;其中,POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码;
第二获取单元302,用于根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,其中,打印凭条模板为图形化界面;
处理单元303,用于根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;
发送单元304,用于将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
可选地,打印凭条模板标识包括组合模板标识和至少一个子模板标识;
第二获取单元302,具体用于:
根据组合模板标识,获取组合模板标识对应的组合模板;
根据至少一个子模板标识,获取至少一个子模板标识中每个子模板标识对应的子模板;
根据获取的用于指示子模板在组合模板中位置的位置指示信息,将子模板置入组合模板中,得到打印凭条模板标识对应的打印凭条模板。
可选地,组合模板中包括打印凭条框架模板;其中,打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者
组合模板中包括打印凭条框架模板和至少一个子模板。
可选地,任一个子模板包括以下内容中的任一项或任几项的组合:
文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
可选地,编辑指令包括打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;
处理单元303,具体用于:
根据编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;
得到编辑后的打印凭条模板。
可选地,还包括,仿真单元305,用于:
对编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;
其中,仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与POS终端根据编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
可选地,仿真单元305,还用于:
若编辑后的打印凭条模板包括逻辑判断语句,则对逻辑判断语句中的参数进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现逻辑判断语句的执行结果;或者
若编辑后的打印凭条模板包括标签,则对标签进行赋值,以使仿真后的打印凭条模板的图形化界面中呈现为标签所赋的值。
可选地,处理单元303,还用于:
将编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;
发送单元304,具体用于:
将编译后的打印凭条模板的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。
基于相同构思,如图4所示,本发明实施例提供一种基于POS终端的打印凭条编辑装置,该装置可以执行上述方法流程。
参见图4,该方法包括:处理器410、存储器420、收发器430。
存储器420用于存储实现以上方法实施例的程序;
收发器430,用于获取POS终端拟使用的打印凭条模板标识;其中,所述POS终端的应用程序代码封装为至少两个部分,所述POS终端的应用程序代码封装后的一个部分为所述POS终端的打印凭条的格式信息对应的代码;根据所述打印凭条模板标识,获取所述打印凭条模板标识对应的打印凭条模板,其中,所述打印凭条模板为图形化界面;
处理器410,用于根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;
所述收发器430,用于将所述编辑后的打印凭条模板对应的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
可选的,所述打印凭条模板标识包括组合模板标识和至少一个子模板标识;
所述收发器430具体用于:
根据所述组合模板标识,获取所述组合模板标识对应的组合模板;
根据所述至少一个子模板标识,获取所述至少一个子模板标识中每个子模板标识对应的子模板;
根据获取的用于指示子模板在组合模板中位置的位置指示信息,将所述子模板置入所述组合模板中,得到所述打印凭条模板标识对应的打印凭条模板。
可选的,所述组合模板中包括打印凭条框架模板;其中,所述打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者
所述组合模板中包括打印凭条框架模板和至少一个子模板。
可选的,任一个子模板包括以下内容中的任一项或任几项的组合:
文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
可选的,所述编辑指令包括所述打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;
所述处理器410具体用于:
根据所述编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据所述编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;
得到所述编辑后的打印凭条模板。
可选的,所述处理器410还用于:
对所述编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;
其中,所述仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与所述POS终端根据所述编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
可选的,所述处理器410还用于:
若所述编辑后的打印凭条模板包括逻辑判断语句,则对所述逻辑判断语句中的参数进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现所述逻辑判断语句的执行结果;或者
若所述编辑后的打印凭条模板包括标签,则对所述标签进行赋值,以使
所述仿真后的打印凭条模板的图形化界面中呈现为所述标签所赋的值。
可选的,所述处理器410还用于:
将所述编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;
所述收发器430具体用于:
将编译后的打印凭条模板的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
从上述内容可以看出:本发明实施例中,由于POS终端的应用程序代码封装为至少两个部分,POS终端的应用程序代码封装后的一个部分为POS终端的打印凭条的格式信息对应的代码,因此,可单独对POS终端的打印凭条的格式信息进行修改,进而可实现单独对POS终端的打印凭条进行编辑,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码,进而避免了现有技术中需要对POS终端整个应用程序中的打印凭条的格式对应的代码进行编辑的情况,简化了对POS终端的打印凭条进行编辑的过程。另一方面,由于获取POS终端拟使用的打印凭条模板标识,根据打印凭条模板标识,获取打印凭条模板标识对应的打印凭条模板,打印凭条模板为图形化界面,根据用户在打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板,将编辑后的打印凭条模板对应的代码发送给POS终端,以替换POS终端的打印凭条格式信息对应的代码。如此,则用户可在打印凭条模板的图形化界面上直观的对该打印凭条模板进行编辑,从而避免了现有技术中对打印凭条的代码进行编辑的方式,简化了打印凭条的编辑过程,且提高了打印凭条的编辑效率,降低了对打印凭条进行编辑的用户的要求。
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、
CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
Claims (24)
- 一种基于销售点POS终端的打印凭条编辑方法,其特征在于,包括以下步骤:获取POS终端拟使用的打印凭条模板标识;其中,所述POS终端的应用程序代码封装为至少两个部分,所述POS终端的应用程序代码封装后的一个部分为所述POS终端的打印凭条的格式信息对应的代码;根据所述打印凭条模板标识,获取所述打印凭条模板标识对应的打印凭条模板,其中,所述打印凭条模板为图形化界面;根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;将所述编辑后的打印凭条模板对应的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
- 如权利要求1所述的方法,其特征在于,所述打印凭条模板标识包括组合模板标识和至少一个子模板标识;所述根据所述打印凭条模板标识,获取所述打印凭条模板标识对应的打印凭条模板,具体包括:根据所述组合模板标识,获取所述组合模板标识对应的组合模板;根据所述至少一个子模板标识,获取所述至少一个子模板标识中每个子模板标识对应的子模板;根据获取的用于指示子模板在组合模板中位置的位置指示信息,将所述子模板置入所述组合模板中,得到所述打印凭条模板标识对应的打印凭条模板。
- 如权利要求2所述的方法,其特征在于,所述组合模板中包括打印凭条框架模板;其中,所述打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者所述组合模板中包括打印凭条框架模板和至少一个子模板。
- 如权利要求2或3所述的方法,其特征在于,任一个子模板包括以下内容中的任一项或任几项的组合:文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
- 如权利要求2或3所述的方法,其特征在于,所述编辑指令包括所述打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;所述根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板,具体包括:根据所述编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据所述编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;得到所述编辑后的打印凭条模板。
- 如权利要求1所述的方法,其特征在于,所述生成编辑后的打印凭条模板之后,还包括:对所述编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;其中,所述仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与所述POS终端根据所述编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
- 如权利要求6所述的方法,其特征在于,所述生成编辑后的打印凭条模板之后,所述对所述编辑后的打印凭条模板进行仿真之前,还包括:若所述编辑后的打印凭条模板包括逻辑判断语句,则对所述逻辑判断语句中的参数进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现所述逻辑判断语句的执行结果;或者若所述编辑后的打印凭条模板包括标签,则对所述标签进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现为所述标签所赋的值。
- 如权利要求1所述的方法,其特征在于,所述将所述编辑后的打印凭 条模板对应的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码,包括:将所述编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;将编译后的打印凭条模板的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
- 一种基于销售点POS终端的打印凭条编辑装置,其特征在于,包括:第一获取单元,用于获取POS终端拟使用的打印凭条模板标识;其中,所述POS终端的应用程序代码封装为至少两个部分,所述POS终端的应用程序代码封装后的一个部分为所述POS终端的打印凭条的格式信息对应的代码;第二获取单元,用于根据所述打印凭条模板标识,获取所述打印凭条模板标识对应的打印凭条模板,其中,所述打印凭条模板为图形化界面;处理单元,用于根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;发送单元,用于将所述编辑后的打印凭条模板对应的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
- 如权利要求9所述的装置,其特征在于,所述打印凭条模板标识包括组合模板标识和至少一个子模板标识;所述第二获取单元,具体用于:根据所述组合模板标识,获取所述组合模板标识对应的组合模板;根据所述至少一个子模板标识,获取所述至少一个子模板标识中每个子模板标识对应的子模板;根据获取的用于指示子模板在组合模板中位置的位置指示信息,将所述子模板置入所述组合模板中,得到所述打印凭条模板标识对应的打印凭条模板。
- 如权利要求10所述的装置,其特征在于,所述组合模板中包括打印 凭条框架模板;其中,所述打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者所述组合模板中包括打印凭条框架模板和至少一个子模板。
- 如权利要求10或11所述的装置,其特征在于,任一个子模板包括以下内容中的任一项或任几项的组合:文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
- 如权利要求10或11所述的装置,其特征在于,所述编辑指令包括所述打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;所述处理单元,具体用于:根据所述编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据所述编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;得到所述编辑后的打印凭条模板。
- 如权利要求9所述的装置,其特征在于,还包括,仿真单元,用于:对所述编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;其中,所述仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与所述POS终端根据所述编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
- 如权利要求14所述的装置,其特征在于,所述仿真单元,还用于:若所述编辑后的打印凭条模板包括逻辑判断语句,则对所述逻辑判断语句中的参数进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现所述逻辑判断语句的执行结果;或者若所述编辑后的打印凭条模板包括标签,则对所述标签进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现为所述标签所赋的值。
- 如权利要求9所述的装置,其特征在于,所述处理单元,还用于:将所述编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;所述发送单元,具体用于:将编译后的打印凭条模板的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
- 一种基于销售点POS终端的打印凭条编辑装置,其特征在于,包括:收发器,用于获取POS终端拟使用的打印凭条模板标识;其中,所述POS终端的应用程序代码封装为至少两个部分,所述POS终端的应用程序代码封装后的一个部分为所述POS终端的打印凭条的格式信息对应的代码;根据所述打印凭条模板标识,获取所述打印凭条模板标识对应的打印凭条模板,其中,所述打印凭条模板为图形化界面;处理器,用于根据用户在所述打印凭条模板的图形化界面上的编辑指令,生成编辑后的打印凭条模板;所述收发器,用于将所述编辑后的打印凭条模板对应的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
- 如权利要求17所述的装置,其特征在于,所述打印凭条模板标识包括组合模板标识和至少一个子模板标识;所述收发器具体用于:根据所述组合模板标识,获取所述组合模板标识对应的组合模板;根据所述至少一个子模板标识,获取所述至少一个子模板标识中每个子模板标识对应的子模板;根据获取的用于指示子模板在组合模板中位置的位置指示信息,将所述子模板置入所述组合模板中,得到所述打印凭条模板标识对应的打印凭条模板。
- 如权利要求18所述的装置,其特征在于,所述组合模板中包括打印凭条框架模板;其中,所述打印凭条框架模板的图形化界面与打印凭条的框架图形相同;或者所述组合模板中包括打印凭条框架模板和至少一个子模板。
- 如权利要求18或19所述的装置,其特征在于,任一个子模板包括以下内容中的任一项或任几项的组合:文字内容、图片、字符串、格式化字符串、换行符、索引号、格式化字符串的索引号、标签、逻辑判断语句。
- 如权利要求18或19所述的装置,其特征在于,所述编辑指令包括所述打印凭条模板中包括的每个子模板对应的位置信息和/或格式信息;所述处理器具体用于:根据所述编辑指令中包括的每个子模板对应的位置信息对每个子模板的位置信息进行编辑;和/或根据所述编辑指令中包括的每个子模板对应的格式信息对每个子模板的格式信息进行编辑;得到所述编辑后的打印凭条模板。
- 如权利要求17所述的装置,其特征在于,所述处理器还用于:对所述编辑后的打印凭条模板进行仿真,得到仿真后的打印凭条模板以供用户审阅;其中,所述仿真后的打印凭条模板的图形化界面的位置信息和格式信息,与所述POS终端根据所述编辑后的打印凭条模板打印出的打印凭条的位置信息和格式信息相同。
- 如权利要求22所述的装置,其特征在于,所述处理器还用于:若所述编辑后的打印凭条模板包括逻辑判断语句,则对所述逻辑判断语句中的参数进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现所述逻辑判断语句的执行结果;或者若所述编辑后的打印凭条模板包括标签,则对所述标签进行赋值,以使所述仿真后的打印凭条模板的图形化界面中呈现为所述标签所赋的值。
- 如权利要求17所述的装置,其特征在于,所述处理器还用于:将所述编辑后的打印凭条模板对应的代码进行编译,得到编译后的打印凭条模板的代码;所述收发器具体用于:将编译后的打印凭条模板的代码发送给POS终端,以替换所述POS终端的打印凭条格式信息对应的代码。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510638559.1A CN105930312B (zh) | 2015-09-29 | 2015-09-29 | 一种基于pos终端的打印凭条编辑方法和装置 |
| CN201510638559.1 | 2015-09-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017054629A1 true WO2017054629A1 (zh) | 2017-04-06 |
Family
ID=56840319
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/098459 Ceased WO2017054629A1 (zh) | 2015-09-29 | 2016-09-08 | 一种基于pos终端的打印凭条编辑方法和装置 |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN105930312B (zh) |
| TW (1) | TW201712522A (zh) |
| WO (1) | WO2017054629A1 (zh) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105930312B (zh) * | 2015-09-29 | 2019-06-07 | 中国银联股份有限公司 | 一种基于pos终端的打印凭条编辑方法和装置 |
| CN106406783B (zh) * | 2016-11-29 | 2019-06-07 | 北京慧眼智行科技有限公司 | 标签打印方法和标签打印插件 |
| CN106610804A (zh) * | 2016-12-27 | 2017-05-03 | 上海极途信息技术有限公司 | 票据打印方法及系统 |
| CN106934958A (zh) * | 2017-03-10 | 2017-07-07 | 东软集团股份有限公司 | Pos机打印的设置方法及装置 |
| CN107423004B (zh) * | 2017-06-20 | 2021-03-30 | 上海慧银信息科技有限公司 | Pos终端打印票据的方法及pos终端 |
| CN108964889B (zh) * | 2018-05-30 | 2021-11-16 | 广州江南科友科技股份有限公司 | 一种密钥信封格式图形化编辑方法及装置 |
| CN109491622B (zh) * | 2018-10-25 | 2022-03-08 | 百富计算机技术(深圳)有限公司 | 一种应用于交易终端的打印方法和交易终端 |
| CN110045933B (zh) * | 2019-03-21 | 2022-08-05 | 新会江裕信息产业有限公司 | 一种打印数据生成方法、装置、设备和存储介质 |
| CN110457657B (zh) * | 2019-08-15 | 2023-08-22 | 中国银行股份有限公司 | 金额字段格式化的方法及装置 |
| CN112596689A (zh) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | 一种业务凭证的生成方法、装置及设备 |
| CN118982602A (zh) * | 2024-07-22 | 2024-11-19 | 珠海奔图电子有限公司 | 图文内容编辑方法、装置、电子设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007021995A2 (en) * | 2005-08-10 | 2007-02-22 | Futurelogic, Inc. | Method and apparatus for a promotional couponing system |
| CN101052973A (zh) * | 2003-11-12 | 2007-10-10 | 交易技术公司 | 具有可配置模板的打印机和配置打印机模板的方法 |
| CN102968282A (zh) * | 2012-11-29 | 2013-03-13 | 北京风驰韦尔科技有限公司 | 靠截获打印数据实现任意账单与小票电子化的方法 |
| CN102982624A (zh) * | 2012-11-19 | 2013-03-20 | 深圳市新国都技术股份有限公司 | 一种pos机交易中心基于tlv格式数据的打印方法 |
| CN105930312A (zh) * | 2015-09-29 | 2016-09-07 | 中国银联股份有限公司 | 一种基于pos终端的打印凭条编辑方法和装置 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101320365A (zh) * | 2008-07-09 | 2008-12-10 | 金蝶软件(中国)有限公司 | 一种单据页面动态布局的方法及装置 |
| US20100241516A1 (en) * | 2009-03-18 | 2010-09-23 | Google Inc. | Editing interface |
| CN101989366B (zh) * | 2009-07-30 | 2015-11-25 | 中国工商银行股份有限公司 | 基于pos端机的脚本处理装置及其数据处理方法 |
| KR20110111101A (ko) * | 2010-04-02 | 2011-10-10 | 주식회사 포스토피아 | 네트워크를 이용한 우편 접수 및 편집 시스템과 편집 방법 |
| CN102467380A (zh) * | 2010-11-16 | 2012-05-23 | 金蝶软件(中国)有限公司 | 一种图形用户界面单据打开方法、装置及通信终端 |
| CN104391830A (zh) * | 2014-10-24 | 2015-03-04 | 华迪计算机集团有限公司 | 单据页面动态布局的方法及装置 |
-
2015
- 2015-09-29 CN CN201510638559.1A patent/CN105930312B/zh active Active
-
2016
- 2016-09-08 WO PCT/CN2016/098459 patent/WO2017054629A1/zh not_active Ceased
- 2016-09-29 TW TW105131228A patent/TW201712522A/zh unknown
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101052973A (zh) * | 2003-11-12 | 2007-10-10 | 交易技术公司 | 具有可配置模板的打印机和配置打印机模板的方法 |
| WO2007021995A2 (en) * | 2005-08-10 | 2007-02-22 | Futurelogic, Inc. | Method and apparatus for a promotional couponing system |
| CN102982624A (zh) * | 2012-11-19 | 2013-03-20 | 深圳市新国都技术股份有限公司 | 一种pos机交易中心基于tlv格式数据的打印方法 |
| CN102968282A (zh) * | 2012-11-29 | 2013-03-13 | 北京风驰韦尔科技有限公司 | 靠截获打印数据实现任意账单与小票电子化的方法 |
| CN105930312A (zh) * | 2015-09-29 | 2016-09-07 | 中国银联股份有限公司 | 一种基于pos终端的打印凭条编辑方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201712522A (zh) | 2017-04-01 |
| CN105930312B (zh) | 2019-06-07 |
| CN105930312A (zh) | 2016-09-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017054629A1 (zh) | 一种基于pos终端的打印凭条编辑方法和装置 | |
| CN111259644B (zh) | 富文本处理方法与编辑器、设备及存储介质 | |
| CN100565601C (zh) | 一种票据处理装置及方法 | |
| CN110244921B (zh) | 标签打印方法、装置、电子设备及系统 | |
| CN105204860B (zh) | 一种快速生成自定义静态Web页面的方法及装置 | |
| CN107886439A (zh) | 保险产品开发方法、装置、设备及计算机可读存储介质 | |
| CN109062567A (zh) | 基于b/s结构的信息管理系统快速开发平台 | |
| CN105607880A (zh) | 一种审批单据的打印方法和装置 | |
| CN111062195A (zh) | 一种文件处理的方法、文件处理装置、设备及存储介质 | |
| CN113742530A (zh) | 基于svg实现数字化海报图片生成处理的系统、方法、装置、处理器及其存储介质 | |
| CN102023869A (zh) | 一种控件输入值校验方法及系统 | |
| CN107301046A (zh) | 图标的处理方法和装置、计算机设备和存储介质 | |
| CN112068911A (zh) | 电子表单的生成方法、装置、系统、设备以及介质 | |
| CN108875853A (zh) | 数据标签打印的处理方法及装置 | |
| CN106933518A (zh) | 一种打印装置及打印方法 | |
| CN107423004A (zh) | Pos终端打印票据的方法及pos终端 | |
| JP2016522464A (ja) | 印刷可能文書ビューア最適化のためのシステムおよび方法 | |
| CN112068828A (zh) | 标题控件的生成方法、装置、系统、设备以及介质 | |
| CN107665204A (zh) | 一种提供表单的方法和装置 | |
| CN111240676A (zh) | 一种生成骨架屏的代码的方法及装置 | |
| CN101542585A (zh) | 图像生成系统、投影机、程序、信息存储介质及图像生成方法 | |
| CN113703699B (zh) | 电子文件的实时输出方法和装置 | |
| JP2010282200A (ja) | アニメーションフォントファイルの構造及び携帯用端末のテキスト出力方法 | |
| CN120669934A (zh) | 一种自定义表单多打印模板处理方法、系统及介质 | |
| CN114356761A (zh) | 测试用例文档的生成方法、装置、存储介质及计算机设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16850253 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16850253 Country of ref document: EP Kind code of ref document: A1 |