CN105930312B - A kind of printing strip edit methods and device based on POS terminal - Google Patents

A kind of printing strip edit methods and device based on POS terminal Download PDF

Info

Publication number
CN105930312B
CN105930312B CN201510638559.1A CN201510638559A CN105930312B CN 105930312 B CN105930312 B CN 105930312B CN 201510638559 A CN201510638559 A CN 201510638559A CN 105930312 B CN105930312 B CN 105930312B
Authority
CN
China
Prior art keywords
printing strip
template
printing
pos terminal
strip template
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.)
Active
Application number
CN201510638559.1A
Other languages
Chinese (zh)
Other versions
CN105930312A (en
Inventor
严伟锋
李晨
谭颖
孙曦
王兰
吴潇
夏庆凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201510638559.1A priority Critical patent/CN105930312B/en
Publication of CN105930312A publication Critical patent/CN105930312A/en
Priority to PCT/CN2016/098459 priority patent/WO2017054629A1/en
Priority to TW105131228A priority patent/TW201712522A/en
Application granted granted Critical
Publication of CN105930312B publication Critical patent/CN105930312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

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)
  • Record Information Processing For Printing (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The present embodiments relate to information technology fields, more particularly to printing strip edit methods and device of the kind based on POS terminal, to edit by simple method to printing strip.In the embodiment of the present invention, the application code of POS terminal is encapsulated as at least two parts, a part after the application code encapsulation of POS terminal is the corresponding code of format information of the printing strip of POS terminal, in this way, can the format information of the independent printing strip to POS terminal modify.Further as the printing strip template identification according to acquisition, obtain printing strip template, printing strip template is graphic interface, so, then user intuitively can edit the printing strip template on the graphic interface of printing strip template, the editing process for simplifying printing strip reduces the requirement of the user edited to printing strip.

Description

A kind of printing strip edit methods and device based on POS terminal
Technical field
The present embodiments relate to information technology field more particularly to a kind of printing strip editing sides based on POS terminal Method and device.
Background technique
With the development of science and technology, point of sale (Point of sales, abbreviation POS) terminal using more and more common.? In practical application, different regional, different users have different want to the format for the printing strip that POS terminal prints It asks, this allows for POS terminal and must assure that be able to satisfy various applications.
It is general in the prior art to use software generation using by format informations such as character, the typesettings of printing strip of POS terminal The mode of code is worked out, using the corresponding software code of the format information for printing strip as POS terminal entire application program generation A part of code.If necessary to edit the format of printing strip, then need to the printing strip in the entire application program of POS terminal The corresponding code of format edited, this process needs to edit code, complicated for operation, and needs special program Developer is handled, and exploitation and testing time are longer.
Summary of the invention
The embodiment of the present invention provides a kind of printing strip edit methods and device based on POS terminal, to by simple Method realize to the purpose edited of printing strip.
The embodiment of the present invention provides a kind of printing strip edit methods based on point of sale POS terminal, comprising the following steps:
Obtain the printing strip template identification that POS terminal is intended that;Wherein, the application code of POS terminal is encapsulated as At least two parts, a part after the application code encapsulation of POS terminal are the format letter of the printing strip of POS terminal Cease corresponding code;
According to printing strip template identification, the corresponding printing strip template of printing strip template identification is obtained, wherein printing Strip template is graphic interface;
According to edit instruction of the user on the graphic interface of printing strip template, edited printing strip mould is generated Plate;
The corresponding code of edited printing strip template is sent to POS terminal, to replace the printing strip of POS terminal The corresponding code of format information.
Optionally, printing strip template identification includes gang form mark and at least one submodule panel sign;
According to printing strip template identification, the corresponding printing strip template of printing strip template identification is obtained, is specifically included:
It is identified according to gang form, obtains gang form and identify corresponding gang form;
According at least one submodule panel sign, the corresponding son of each submodule panel sign at least one submodule panel sign is obtained Template;
According to the position indication information for being used to indicate subtemplate position in gang form of acquisition, subtemplate is placed in group In shuttering, the corresponding printing strip template of printing strip template identification is obtained.
It optionally, include printing strip framework template in gang form;Wherein, the graphical boundary of strip framework template is printed Face is identical as the printing frame figure of strip;Or
It include printing strip framework template and at least one subtemplate in gang form.
Optionally, any one subtemplate includes any one of the following contents or appoints several combinations:
Word content, picture, character string, format string, newline, call number, the call number of format string, Label, logic judgment sentence.
Optionally, edit instruction include print strip template in include the corresponding location information of each subtemplate and/or Format information;
According to edit instruction of the user on the graphic interface of printing strip template, edited printing strip mould is generated Plate specifically includes:
According to the corresponding location information of each subtemplate for including in edit instruction to the location information of each subtemplate into Edlin;And/or believed according to format of the corresponding format information of each subtemplate for including in edit instruction to each subtemplate Breath is edited;
Obtain edited printing strip template.
Optionally, after the edited printing strip template of generation, further includes:
Edited printing strip template is emulated, the printing strip template after being emulated is checked for user;
Wherein, the location information and format information of the graphic interface of the printing strip template after emulation, with POS terminal root Location information according to the printing strip of edited printing strip stencil marking out is identical with format information.
Optionally, after generating edited printing strip template, edited printing strip template is carried out emulating it Before, further includes:
If edited printing strip template includes logic judgment sentence, the parameter in logic judgment sentence is assigned Value, so as to which the implementing result of logic judgment sentence is presented in the graphic interface of the printing strip template after emulation;Or
If edited printing strip template includes label, assignment is carried out to label, so that the printing strip after emulation Label institute assigned value is rendered as in the graphic interface of template.
Optionally, the corresponding code of edited printing strip template is sent to POS terminal, to replace POS terminal Print the corresponding code of strip format information, comprising:
The corresponding code of edited printing strip template is compiled, the generation of the printing strip template after being compiled Code;
The code of printing strip template after compiling is sent to POS terminal, to replace the printing strip format of POS terminal The corresponding code of information.
The embodiment of the present invention provides a kind of printing strip editing device based on point of sale POS terminal, comprising:
First acquisition unit, the printing strip template identification being intended that for obtaining POS terminal;Wherein, POS terminal is answered At least two parts are encapsulated as with program code, a part after the application code encapsulation of POS terminal is POS terminal Print the corresponding code of format information of strip;
Second acquisition unit, for obtaining the corresponding printing of printing strip template identification according to printing strip template identification Strip template, wherein printing strip template is graphic interface;
Processing unit generates editor for the edit instruction according to user on the graphic interface of printing strip template Printing strip template afterwards;
Transmission unit, for the corresponding code of edited printing strip template to be sent to POS terminal, to replace POS The corresponding code of printing strip format information of terminal.
Optionally, printing strip template identification includes gang form mark and at least one submodule panel sign;
Second acquisition unit is specifically used for:
It is identified according to gang form, obtains gang form and identify corresponding gang form;
According at least one submodule panel sign, the corresponding son of each submodule panel sign at least one submodule panel sign is obtained Template;
According to the position indication information for being used to indicate subtemplate position in gang form of acquisition, subtemplate is placed in group In shuttering, the corresponding printing strip template of printing strip template identification is obtained.
It optionally, include printing strip framework template in gang form;Wherein, the graphical boundary of strip framework template is printed Face is identical as the printing frame figure of strip;Or
It include printing strip framework template and at least one subtemplate in gang form.
Optionally, any one subtemplate includes any one of the following contents or appoints several combinations:
Word content, picture, character string, format string, newline, call number, the call number of format string, Label, logic judgment sentence.
Optionally, edit instruction include print strip template in include the corresponding location information of each subtemplate and/or Format information;
Processing unit is specifically used for:
According to the corresponding location information of each subtemplate for including in edit instruction to the location information of each subtemplate into Edlin;And/or believed according to format of the corresponding format information of each subtemplate for including in edit instruction to each subtemplate Breath is edited;
Obtain edited printing strip template.
Optionally, further include that simulation unit is used for:
Edited printing strip template is emulated, the printing strip template after being emulated is checked for user;
Wherein, the location information and format information of the graphic interface of the printing strip template after emulation, with POS terminal root Location information according to the printing strip of edited printing strip stencil marking out is identical with format information.
Optionally, simulation unit is also used to:
If edited printing strip template includes logic judgment sentence, the parameter in logic judgment sentence is assigned Value, so as to which the implementing result of logic judgment sentence is presented in the graphic interface of the printing strip template after emulation;Or
If edited printing strip template includes label, assignment is carried out to label, so that the printing strip after emulation Label institute assigned value is rendered as in the graphic interface of template.
Optionally, processing unit is also used to:
The corresponding code of edited printing strip template is compiled, the generation of the printing strip template after being compiled Code;
Transmission unit is specifically used for:
The code of printing strip template after compiling is sent to POS terminal, to replace the printing strip format of POS terminal The corresponding code of information.
In the embodiment of the present invention, since the application code of POS terminal is encapsulated as at least two parts, POS terminal A part after application code encapsulation is that the corresponding code of format information of the printing strip of POS terminal therefore can be single It solely modifies to the format information of the printing strip of POS terminal, and then can realize and individually the printing strip of POS terminal is carried out Editor, is sent to POS terminal for the corresponding code of edited printing strip template, to replace the printing strip lattice of POS terminal The corresponding code of formula information, and then avoid and needed in the prior art to the printing strip in the entire application program of POS terminal The case where corresponding code of format is edited simplifies the process that the printing strip to POS terminal is edited.Another party Face, the printing strip template identification being intended that due to obtaining POS terminal obtain printing strip according to printing strip template identification The corresponding printing strip template of template identification, printing strip template are graphic interface, according to user in printing strip template Edit instruction on graphic interface generates edited printing strip template, and edited printing strip template is corresponding Code is sent to POS terminal, to replace the corresponding code of printing strip format information of POS terminal.In this way, then user can beat It prints and intuitively the printing strip template is edited on the graphic interface of strip template, so as to avoid right in the prior art The mode that the code of printing strip is edited, simplifies the editing process of printing strip, and improves the editor of printing strip Efficiency reduces the requirement of the user edited to printing strip.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of system architecture schematic diagram of the printing strip editor based on POS terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of printing strip edit methods flow diagram based on POS terminal provided in an embodiment of the present invention;
Fig. 2 a is the schematic diagram of subtemplate provided in an embodiment of the present invention;
Fig. 2 b is the schematic diagram of the graphic interface of gang form provided in an embodiment of the present invention;
Fig. 2 c is the printing strip mould after the emulation after gang form B02 is emulated in Fig. 2 b in the embodiment of the present invention The schematic diagram of the graphic interface of plate C02;
Fig. 3 is a kind of structural schematic diagram of the printing strip editing device based on POS terminal provided in an embodiment of the present invention.
Specific embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair It is bright, it is not intended to limit the present invention.
As shown in Figure 1, the system architecture schematic diagram that the embodiment of the present invention is applicable.It include one or more in the system architecture POS terminal, such as POS terminal 103, POS terminal 104, POS terminal 105, and printing strip editing device 102, printing strip is compiled Collecting device 102 can be computer, personal digital assistant (Personal Digital Assistant, abbreviation PDA) etc..It can also wrap Include one or more network equipments 101 connecting with printing strip editing device 102.
Optionally, multiple printing strip templates, printing strip editor dress are stored in the embodiment of the present invention in the network equipment 101 Printing strip template can be obtained according to the template identification of printing strip from the network equipment 101 by setting 102.It is said in the embodiment of the present invention Label in bright book attached drawing on each attached drawing is general in all the appended drawings.
Based on system architecture shown in FIG. 1, Fig. 2 shows a kind of beating based on POS terminal provided in an embodiment of the present invention Print strip edit methods, comprising the following steps:
Step 201, the printing strip template identification that POS terminal is intended that is obtained;Wherein, the application program generation of POS terminal Code is encapsulated as at least two parts, and a part after the application code encapsulation of POS terminal is the printing strip of POS terminal The corresponding code of format information;
Step 202, according to printing strip template identification, the corresponding printing strip template of printing strip template identification is obtained, Wherein, printing strip template is graphic interface;
Step 203, the edit instruction according to user on the graphic interface of printing strip template generates edited beat Print strip template;
Step 204, the corresponding code of edited printing strip template is sent to POS terminal, to replace POS terminal Print the corresponding code of strip format information.
Optionally, in above-mentioned steps 201, the entire application code of POS terminal is sealed in the embodiment of the present invention It fills, independent at least two part of formation, in the embodiment of the present invention, the code of various pieces individually can be replaced or edit Deng operation.Optionally, the code of each independent sector formed after POS terminal is packaged is encoded using scripting language 's.The corresponding code of format information of printing strip based on POS terminal, to the format information pair of the printing strip of POS terminal The code answered is packaged, and generates multiple printing strip templates, printing strip template is graphic interface.
In above-mentioned steps 202, optionally, printing strip template identification includes gang form mark and at least one subtemplate Mark obtains the corresponding printing strip template of printing strip template identification, specifically includes according to printing strip template identification:
It is identified according to gang form, obtains gang form and identify corresponding gang form, according at least one subtemplate mark Know, obtains the corresponding subtemplate of each submodule panel sign at least one submodule panel sign, submodule is used to indicate according to acquisition Subtemplate is placed in gang form by the position indication information of plate position in gang form, obtains printing strip template identification Corresponding printing strip template.
It optionally, include printing strip framework template in gang form;Wherein, the graphical boundary of strip framework template is printed Face is identical as the printing frame figure of strip;It or include printing strip framework template and at least one submodule in gang form Plate.
Optionally, any one subtemplate includes any one of the following contents or appoints several combinations:
Word content, picture, character string, format string, newline, call number, the call number of format string, Label, logic judgment sentence.
Specifically, the printing strip template in the embodiment of the present invention includes gang form and subtemplate.Fig. 2 a is exemplary Show the schematic diagram of several seed patterns, as shown in Figure 2 a, the template identification of subtemplate be respectively B01, B02, B03, B04 and B05。
Subtemplate B01 includes word content, and default setting has the font, font size, word of word content in subtemplate B01 The information such as body spacing, line-spacing, for example, the word content for including in subtemplate B01 be the Song typeface, No. 5 words, 2.5 times of line-spacing, subtemplate B01 is for printing the word content for including in subtemplate B01, for example, can the middle input on the graphic interface of subtemplate B01 Word content " trade company's first prints strip ", then the printing strip printed will print text in the corresponding position of subtemplate B01 " trade company's first prints strip ".It can be directly on the graphic interface of subtemplate B01, to the text filled in subtemplate B01 Format information edited, for example the text in subtemplate B01 can be set to imitation Song-Dynasty-style typeface, No. 10 words.It can also be wrapped in subtemplate Other word contents, such as " project, quantity, total amount, POS terminal coding, trade company's first telephone number, date " are included, can will be wrapped The subtemplate for including different literals content is placed in different location in gang form.
Subtemplate B02 includes character string.Specifically, subtemplate includes character string or formatting in the embodiment of the present invention Character string is for printing Chinese or western character, and when difference is in subtemplate including format string, this includes The format string that the subtemplate of format string is printed has detailed layout information.For example, it wraps The character string " 12345678 " in the subtemplate of character string including telephone number is included, then the printing strip printed is in the subtemplate Corresponding position shows " 12345678 ";It include the format string of telephone number in subtemplate including character string " 12345678 ", the Song typeface, No. 5, then the printing strip printed show in the subtemplate corresponding position " 12345678, the Song typeface, 5 Number ".
Subtemplate B03 includes call number.Specifically, subtemplate includes call number or formatting in the embodiment of the present invention Community string index community number, be some common character strings are stored in index resource script in, and be each index resource script In character string distribute a call number, and to printing strip template edit when, directly printing strip template figure Shape fills in call number on interface, and the purpose for calling the corresponding character string of the call number can be realized.Difference is, including format The corresponding format string of call number that the subtemplate of change community string index community number is printed is believed with detailed layout Breath.It for example, include call number " 222 " that call number " 222 " is right in index resource script in the subtemplate including call number The character string answered is " 112233 ", then when filling in call number " 222 " in subtemplate, being somebody's turn to do in the printing strip printed Subtemplate corresponding position shows " 112233 ";It include format string in subtemplate including format string call number Call number " 222 ", call number " 222 " character string corresponding in index resource script are " 112233 ", word on the subtemplate According with string format is the Song typeface, No. 5, then son when filling in call number " 222 " in subtemplate, in the printing strip printed Template corresponding position shows " 112233, the Song typeface, No. 5 ".
Subtemplate B04 includes label.In the embodiment of the present invention, label specifically refers to a character or character string assigning one A label value is directly edited using label when editing to printing strip template, in POS terminal printing, that is, is beaten Print off character corresponding to the label or character string.It for example, is the label value of current date in the subtemplate including label It is then that " 322 " this label value can be used directly in the printing enterprising edlin of strip template, POS terminal prints for " 322 " Printing strip at position corresponding to the subtemplate correspondence be shown as current date, for example, date today is 2015-9- 29, then correspondence is shown as " 2015-9-29 " at position corresponding to the subtemplate in the printing strip that POS terminal prints.
Subtemplate B05 includes logic judgment sentence.In the embodiment of the present invention, logic judgment sentence is specially some simple Sentence.For example, the subtemplate progress including logic judgment sentence " when spending amount is less than 100 yuan, is then beaten as defined below Position output character ' small amount corresponding to the subtemplate is exempted to input password in the printing strip printed off ', when spending amount is not less than At 100 yuan, then position output character ' password payment corresponding to the subtemplate in the printing strip that prints '.
Above content is merely illustrative to describe several common subtemplates, exemplary in above-mentioned subtemplate to describe only Only include the subtemplate of a content, in subtemplate can also simultaneously include multinomial content, such as a son in the embodiment of the present invention It include simultaneously text and picture or text and character string etc. in template, this is no longer going to repeat them.It is wrapped in the embodiment of the present invention The subtemplate included further includes some other sentences, such as the sentence including simple computation other than including logic judgment sentence. In specific implementation, the total amount usually exported in printing strip is obtained value that unit price is multiplied with quantity.
It further include gang form in the embodiment of the present invention.It optionally, include printing strip framework template in gang form, or It include printing strip framework template and at least one subtemplate in person's gang form.Wherein, the figure of strip framework template is printed It is identical as the printing frame figure of strip to change interface.
The schematic diagram of the exemplary graphic interface for describing the gang form in several embodiment of the present invention of Fig. 2 b.Such as figure Shown in 2b, in gang form A01 include printing strip framework template, print strip framework template graphic interface and printing with The frame figure of item is identical.For example, the rectangle that printing strip framework template is one long 80, wide 50, then from POS terminal The rectangle that the figure of the external frame of the printing strip printed is long 80, wide 50.It may include a variety of for printing strip framework template Specification, the embodiment of the present invention is with no restrictions.Those skilled in the art oneself can also create the printing of some other shapes and size Strip framework template, such as creation multiply the printing strip framework template of 50 square for one 50.
Optionally, the edit instruction includes the corresponding position letter of each subtemplate for including in the printing strip template Breath and/or format information;User can be on the graphic interface of printing strip template to the corresponding format information of each subtemplate It is edited, specifically, the printing strip editing device based on POS terminal is according to user in the figure for printing strip template Edit instruction on shape interface generates edited printing strip template, specifically includes:
Believed according to position of the corresponding location information of each subtemplate for including in the edit instruction to each subtemplate Breath is edited;And/or according to the corresponding format information of each subtemplate for including in the edit instruction to each subtemplate Format information edited;
Obtain the edited printing strip template.
It specifically, include printing strip framework template and multiple subtemplates in gang form A02.User is in gang form Graphic interface on edit instruction include print strip template in include the corresponding location information of each subtemplate, according to Location information edits the position of each subtemplate, so that each subtemplate is placed on the position of user's needs.Specifically In implementation, user can directly move the position of each subtemplate on the graphic interface of printing strip template.Specifically, lattice Formula information can be font, font size, the line-spacing etc. of text.
It include printing strip frame shown in gang form A02 and gang form A03 as shown in figure 2b, in gang form Template and multiple subtemplates.It may include word content in gang form A02 and gang form A03 in the subtemplate B01 for including, It in gang form A02, is added " trade company's first prints strip " for subtemplate B01, and the template is placed in printing strip frame The top middle position of template.
As shown in Figure 2 a and 2 b, in the embodiment of the present invention, user can be in patterned interface to subtemplate or combination Template is edited, specifically can location information to them and format information edit, need to change compared to the prior art When the font of one text, the correspondence code for the font for finding the text from the code of entire application program is needed to be repaired Change, it is convenient and simple and more efficient.
Optionally, after the edited printing strip template of generation, further includes:
Edited printing strip template is emulated, the printing strip template after being emulated is checked for user; Wherein, the location information and format information of the graphic interface of the printing strip template after emulation, with POS terminal according to editor after Printing strip stencil marking go out printing strip location information it is identical with format information.
Edited printing strip template is printed using POS terminal in the prior art in this way, then avoiding, to realize to volume The purpose of printing strip template test after volume, saves print paper, is good for the environment.
It optionally,, can be to parameter therein when being emulated to edited printing strip template in the embodiment of the present invention Carry out assignment.Optionally, after generating edited printing strip template, edited printing strip template is carried out emulating it Before, further includes:
If edited printing strip template includes logic judgment sentence, the parameter in logic judgment sentence is assigned Value, so as to which the implementing result of logic judgment sentence is presented in the graphic interface of the printing strip template after emulation;Or
If edited printing strip template includes label, assignment is carried out to label, so that the printing strip after emulation Label institute assigned value is rendered as in the graphic interface of template.
Another implementation is, can not also be to parameter therein when emulating to edited printing strip template Assignment is carried out, the printing strip editing device based on POS terminal can be automatically edited printing strip template using default value In include parameter carry out assignment.
After Fig. 2 c illustrates the emulation after gang form B02 is emulated in Fig. 2 b in the embodiment of the present invention Print strip template C02.As shown in Figure 2 c, in Fig. 2 b the subtemplate including logic judgment sentence, including the submodule of label The equal assignment of parameter in plate, and the subtemplate including other contents, at this point, the printing strip template after the emulation shown The position for the printing strip that C02 location information and format information and POS terminal go out according to edited printing strip stencil marking Information is identical with format information.
User check emulation after printing strip template, if meeting the requirement of user, to this it is edited printing with Template is saved, and in the embodiment of the present invention, after user saves edited printing strip template, the present invention is real Applying in example to be edited printing one new mark of strip template generation, and the edited printing strip template is deposited Storage is into the network equipment of storage printing strip template, for other people uses.
Optionally, the corresponding code of edited printing strip template is sent to POS terminal, to replace POS terminal Print the corresponding code of strip format information, comprising:
The corresponding code of edited printing strip template is compiled, the generation of the printing strip template after being compiled Code;The code of printing strip template after compiling is sent to POS terminal, to replace the printing strip format information of POS terminal Corresponding code.
Specifically, judge coded format and the POS terminal of edited printing strip template coded format whether phase Together, if it is different, being then compiled the corresponding code of edited printing strip template, so that the printing strip template after compiling Coded format it is consistent with coded format used in POS terminal;If they are the same, then not corresponding to edited printing strip template Code be compiled.Later, the code of the printing strip template after compiling is sent to POS terminal, to replace POS terminal Print the corresponding code of strip format information.It, can be by the technologies such as wired, wireless, bluetooth by beating after compiling in specific implementation The code of print strip template is sent to POS terminal, since the application code of POS terminal is encapsulated as at least two parts, POS A part after the application code encapsulation of terminal is the corresponding code of format information of the printing strip of POS terminal, because This, can the format information of the independent printing strip to POS terminal modify, and then can realize the individually printing to POS terminal Strip is edited, and the corresponding code of edited printing strip template is sent to POS terminal, to replace beating for POS terminal The corresponding code of strip format information is printed, and then avoids and is needed in the prior art to beating in the entire application program of POS terminal The case where corresponding code of format of print strip is edited, simplifies the process that the printing strip to POS terminal is edited.
It can be seen from the above: in the embodiment of the present invention, since the application code of POS terminal is encapsulated as at least Two parts, a part after the application code encapsulation of POS terminal are the format information pair of the printing strip of POS terminal The code answered, therefore, can the format information of the independent printing strip to POS terminal modify, and then can realize individually to POS The printing strip of terminal is edited, and the corresponding code of edited printing strip template is sent to POS terminal, with replacement The corresponding code of printing strip format information of POS terminal, and then avoid and need entirely to apply POS terminal in the prior art The case where corresponding code of format of printing strip in program is edited simplifies the printing strip to POS terminal and carries out The process of editor.On the other hand, the printing strip template identification being intended that due to obtaining POS terminal, according to printing strip template Mark obtains the corresponding printing strip template of printing strip template identification, and printing strip template is graphic interface, according to user Edit instruction on the graphic interface of printing strip template generates edited printing strip template, beats edited The corresponding code of print strip template is sent to POS terminal, to replace the corresponding code of printing strip format information of POS terminal. In this way, then user intuitively can edit the printing strip template on the graphic interface of printing strip template, thus The mode edited in the prior art to the code of printing strip is avoided, the editing process of printing strip is simplified, and is mentioned The high editorial efficiency of printing strip, reduces the requirement of the user edited to printing strip.
Fig. 3 illustrates a kind of printing strip editing device based on POS terminal provided in an embodiment of the present invention Structural schematic diagram.
Based on same idea, as shown in figure 3, the embodiment of the present invention provides a kind of printing strip editor based on POS terminal Device, comprising: first acquisition unit 301, second acquisition unit 302, processing unit 303, transmission unit 304 optionally also wrap Include simulation unit 305:
First acquisition unit, the printing strip template identification being intended that for obtaining POS terminal;Wherein, POS terminal is answered At least two parts are encapsulated as with program code, a part after the application code encapsulation of POS terminal is POS terminal Print the corresponding code of format information of strip;
Second acquisition unit, for obtaining the corresponding printing of printing strip template identification according to printing strip template identification Strip template, wherein printing strip template is graphic interface;
Processing unit generates editor for the edit instruction according to user on the graphic interface of printing strip template Printing strip template afterwards;
Transmission unit, for the corresponding code of edited printing strip template to be sent to POS terminal, to replace POS The corresponding code of printing strip format information of terminal.
Optionally, printing strip template identification includes gang form mark and at least one submodule panel sign;
Second acquisition unit is specifically used for:
It is identified according to gang form, obtains gang form and identify corresponding gang form;
According at least one submodule panel sign, the corresponding son of each submodule panel sign at least one submodule panel sign is obtained Template;
According to the position indication information for being used to indicate subtemplate position in gang form of acquisition, subtemplate is placed in group In shuttering, the corresponding printing strip template of printing strip template identification is obtained.
It optionally, include printing strip framework template in gang form;Wherein, the graphical boundary of strip framework template is printed Face is identical as the printing frame figure of strip;Or
It include printing strip framework template and at least one subtemplate in gang form.
Optionally, any one subtemplate includes any one of the following contents or appoints several combinations:
Word content, picture, character string, format string, newline, call number, the call number of format string, Label, logic judgment sentence.
Optionally, edit instruction include print strip template in include the corresponding location information of each subtemplate and/or Format information;
Processing unit is specifically used for:
According to the corresponding location information of each subtemplate for including in edit instruction to the location information of each subtemplate into Edlin;And/or believed according to format of the corresponding format information of each subtemplate for including in edit instruction to each subtemplate Breath is edited;
Obtain edited printing strip template.
Optionally, further include that simulation unit is used for:
Edited printing strip template is emulated, the printing strip template after being emulated is checked for user;
Wherein, the location information and format information of the graphic interface of the printing strip template after emulation, with POS terminal root Location information according to the printing strip of edited printing strip stencil marking out is identical with format information.
Optionally, simulation unit is also used to:
If edited printing strip template includes logic judgment sentence, the parameter in logic judgment sentence is assigned Value, so as to which the implementing result of logic judgment sentence is presented in the graphic interface of the printing strip template after emulation;Or
If edited printing strip template includes label, assignment is carried out to label, so that the printing strip after emulation Label institute assigned value is rendered as in the graphic interface of template.
Optionally, processing unit is also used to:
The corresponding code of edited printing strip template is compiled, the generation of the printing strip template after being compiled Code;
Transmission unit is specifically used for:
The code of printing strip template after compiling is sent to POS terminal, to replace the printing strip format of POS terminal The corresponding code of information.
It can be seen from the above: in the embodiment of the present invention, since the application code of POS terminal is encapsulated as at least Two parts, a part after the application code encapsulation of POS terminal are the format information pair of the printing strip of POS terminal The code answered, therefore, can the format information of the independent printing strip to POS terminal modify, and then can realize individually to POS The printing strip of terminal is edited, and the corresponding code of edited printing strip template is sent to POS terminal, with replacement The corresponding code of printing strip format information of POS terminal, and then avoid and need entirely to apply POS terminal in the prior art The case where corresponding code of format of printing strip in program is edited simplifies the printing strip to POS terminal and carries out The process of editor.On the other hand, the printing strip template identification being intended that due to obtaining POS terminal, according to printing strip template Mark obtains the corresponding printing strip template of printing strip template identification, and printing strip template is graphic interface, according to user Edit instruction on the graphic interface of printing strip template generates edited printing strip template, beats edited The corresponding code of print strip template is sent to POS terminal, to replace the corresponding code of printing strip format information of POS terminal. In this way, then user intuitively can edit the printing strip template on the graphic interface of printing strip template, thus The mode edited in the prior art to the code of printing strip is avoided, the editing process of printing strip is simplified, and is mentioned The high editorial efficiency of printing strip, reduces the requirement of the user edited to printing strip.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of printing strip edit methods based on point of sale POS terminal, which comprises the following steps:
Obtain the printing strip template identification that POS terminal is intended that;Wherein, the application code of the POS terminal is encapsulated as At least two parts, a part after the application code encapsulation of the POS terminal are the printing strip of the POS terminal The corresponding code of format information;
According to the printing strip template identification, the corresponding printing strip template of the printing strip template identification is obtained, wherein The printing strip template is graphic interface;
According to edit instruction of the user on the graphic interface of the printing strip template, edited printing strip mould is generated Plate;
The corresponding code of the edited printing strip template is sent to POS terminal, to replace the printing of the POS terminal The corresponding code of strip format information;
The printing strip template identification includes gang form mark and at least one submodule panel sign;
It is described that the corresponding printing strip template of the printing strip template identification is obtained according to the printing strip template identification, It specifically includes:
It is identified according to the gang form, obtains the gang form and identify corresponding gang form;
According at least one described submodule panel sign, it is corresponding to obtain each submodule panel sign at least one described submodule panel sign Subtemplate;
According to the position indication information for being used to indicate subtemplate position in gang form of acquisition, the subtemplate is placed in institute It states in gang form, obtains the corresponding printing strip template of the printing strip template identification;
After the edited printing strip template of generation, further includes:
The edited printing strip template is emulated, the printing strip template after being emulated is checked for user;
Wherein, the location information and format information of the graphic interface of the printing strip template after the emulation, it is whole with the POS End is identical with format information according to the location information for the printing strip that the edited printing strip stencil marking goes out.
2. the method as described in claim 1, which is characterized in that include printing strip framework template in the gang form;Its In, the graphic interface of the printing strip framework template is identical as the printing frame figure of strip;Or
It include printing strip framework template and at least one subtemplate in the gang form.
3. method according to claim 1 or 2, which is characterized in that any one subtemplate includes any one of the following contents Or appoint several combinations:
Word content, picture, character string, format string, newline, call number, the call number of format string, mark Label, logic judgment sentence.
4. method according to claim 1 or 2, which is characterized in that the edit instruction includes in the printing strip template Including the corresponding location information of each subtemplate and/or format information;
It is described according to user it is described printing strip template graphic interface on edit instruction, generate it is edited printing with Template, specifically includes:
According to the corresponding location information of each subtemplate for including in the edit instruction to the location information of each subtemplate into Edlin;And/or according to the corresponding format information of each subtemplate for including in the edit instruction to the lattice of each subtemplate Formula information is edited;
Obtain the edited printing strip template.
5. the method as described in claim 1, which is characterized in that described after the edited printing strip template of generation Before being emulated to the edited printing strip template, further includes:
If the edited printing strip template includes logic judgment sentence, to the parameter in the logic judgment sentence into Row assignment, so as to which the execution knot of the logic judgment sentence is presented in the graphic interface of the printing strip template after the emulation Fruit;Or
If the edited printing strip template includes label, assignment is carried out to the label, so that after the emulation It prints in the graphic interface of strip template and is rendered as label institute assigned value.
6. the method as described in claim 1, which is characterized in that described by the edited printing strip template corresponding generation Code is sent to POS terminal, to replace the corresponding code of printing strip format information of the POS terminal, comprising:
The corresponding code of the edited printing strip template is compiled, the generation of the printing strip template after being compiled Code;
The code of printing strip template after compiling is sent to POS terminal, to replace the printing strip format of the POS terminal The corresponding code of information.
7. a kind of printing strip editing device based on point of sale POS terminal characterized by comprising
First acquisition unit, the printing strip template identification being intended that for obtaining POS terminal;Wherein, the POS terminal is answered At least two parts are encapsulated as with program code, a part after the application code encapsulation of the POS terminal is described The corresponding code of format information of the printing strip of POS terminal;
Second acquisition unit, for it is corresponding to obtain the printing strip template identification according to the printing strip template identification Print strip template, wherein the printing strip template is graphic interface;
Processing unit generates editor for the edit instruction according to user on the graphic interface of the printing strip template Printing strip template afterwards;
Transmission unit, for the corresponding code of the edited printing strip template to be sent to POS terminal, described in replacement The corresponding code of printing strip format information of POS terminal;
The printing strip template identification includes gang form mark and at least one submodule panel sign;
The second acquisition unit, is specifically used for:
It is identified according to the gang form, obtains the gang form and identify corresponding gang form;
According at least one described submodule panel sign, it is corresponding to obtain each submodule panel sign at least one described submodule panel sign Subtemplate;
According to the position indication information for being used to indicate subtemplate position in gang form of acquisition, the subtemplate is placed in institute It states in gang form, obtains the corresponding printing strip template of the printing strip template identification;
Further include that simulation unit is used for:
The edited printing strip template is emulated, the printing strip template after being emulated is checked for user;
Wherein, the location information and format information of the graphic interface of the printing strip template after the emulation, it is whole with the POS End is identical with format information according to the location information for the printing strip that the edited printing strip stencil marking goes out.
8. device as claimed in claim 7, which is characterized in that include printing strip framework template in the gang form;Its In, the graphic interface of the printing strip framework template is identical as the printing frame figure of strip;Or
It include printing strip framework template and at least one subtemplate in the gang form.
9. device as claimed in claim 7 or 8, which is characterized in that any one subtemplate includes any one of the following contents Or appoint several combinations:
Word content, picture, character string, format string, newline, call number, the call number of format string, mark Label, logic judgment sentence.
10. device as claimed in claim 7 or 8, which is characterized in that the edit instruction includes in the printing strip template Including the corresponding location information of each subtemplate and/or format information;
The processing unit, is specifically used for:
According to the corresponding location information of each subtemplate for including in the edit instruction to the location information of each subtemplate into Edlin;And/or according to the corresponding format information of each subtemplate for including in the edit instruction to the lattice of each subtemplate Formula information is edited;
Obtain the edited printing strip template.
11. device as claimed in claim 7, which is characterized in that the simulation unit is also used to:
If the edited printing strip template includes logic judgment sentence, to the parameter in the logic judgment sentence into Row assignment, so as to which the execution knot of the logic judgment sentence is presented in the graphic interface of the printing strip template after the emulation Fruit;Or
If the edited printing strip template includes label, assignment is carried out to the label, so that after the emulation It prints in the graphic interface of strip template and is rendered as label institute assigned value.
12. device as claimed in claim 7, which is characterized in that the processing unit is also used to:
The corresponding code of the edited printing strip template is compiled, the generation of the printing strip template after being compiled Code;
The transmission unit, is specifically used for:
The code of printing strip template after compiling is sent to POS terminal, to replace the printing strip format of the POS terminal The corresponding code of information.
CN201510638559.1A 2015-09-29 2015-09-29 A kind of printing strip edit methods and device based on POS terminal Active CN105930312B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201510638559.1A CN105930312B (en) 2015-09-29 2015-09-29 A kind of printing strip edit methods and device based on POS terminal
PCT/CN2016/098459 WO2017054629A1 (en) 2015-09-29 2016-09-08 Method and device for editing printed receipt based on pos terminal
TW105131228A TW201712522A (en) 2015-09-29 2016-09-29 Method and apparatus for editing printed receipt based on POS terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510638559.1A CN105930312B (en) 2015-09-29 2015-09-29 A kind of printing strip edit methods and device based on POS terminal

Publications (2)

Publication Number Publication Date
CN105930312A CN105930312A (en) 2016-09-07
CN105930312B true CN105930312B (en) 2019-06-07

Family

ID=56840319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510638559.1A Active CN105930312B (en) 2015-09-29 2015-09-29 A kind of printing strip edit methods and device based on POS terminal

Country Status (3)

Country Link
CN (1) CN105930312B (en)
TW (1) TW201712522A (en)
WO (1) WO2017054629A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930312B (en) * 2015-09-29 2019-06-07 中国银联股份有限公司 A kind of printing strip edit methods and device based on POS terminal
CN106406783B (en) * 2016-11-29 2019-06-07 北京慧眼智行科技有限公司 Label printing method and label print plug-in unit
CN106610804A (en) * 2016-12-27 2017-05-03 上海极途信息技术有限公司 Ticket printing method and system
CN106934958A (en) * 2017-03-10 2017-07-07 东软集团股份有限公司 The method to set up and device of POS printing
CN107423004B (en) * 2017-06-20 2021-03-30 上海慧银信息科技有限公司 Method for printing bill by POS terminal and POS terminal
CN108964889B (en) * 2018-05-30 2021-11-16 广州江南科友科技股份有限公司 Key envelope format graphical editing method and device
CN109491622B (en) * 2018-10-25 2022-03-08 百富计算机技术(深圳)有限公司 Printing method applied to transaction terminal and transaction terminal
CN110045933B (en) * 2019-03-21 2022-08-05 新会江裕信息产业有限公司 Print data generation method, device, equipment and storage medium
CN110457657B (en) * 2019-08-15 2023-08-22 中国银行股份有限公司 Method and device for formatting sum field
CN112596689A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Method, device and equipment for generating service certificate

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320365A (en) * 2008-07-09 2008-12-10 金蝶软件(中国)有限公司 Method and apparatus for dynamic layout of document page
CN101989366A (en) * 2009-07-30 2011-03-23 中国工商银行股份有限公司 Point of sale (POS) terminal-based script processing device and data processing method thereof
KR20110111101A (en) * 2010-04-02 2011-10-10 주식회사 포스토피아 Hybrid-mail receipt and editing system using network
CN102467380A (en) * 2010-11-16 2012-05-23 金蝶软件(中国)有限公司 Method, device and communication terminal for opening graphic user interface document
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN104391830A (en) * 2014-10-24 2015-03-04 华迪计算机集团有限公司 Method and device for dynamic layout of bill page

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7342689B2 (en) * 2003-11-12 2008-03-11 Transact Technologies Incorporated Methods and apparatus for converting full color images to two-color images for printing at a two-color printer
US20070168251A1 (en) * 2005-08-10 2007-07-19 Hilbert John J Method and apparatus for a promotional couponing system
US20100241516A1 (en) * 2009-03-18 2010-09-23 Google Inc. Editing interface
CN102982624B (en) * 2012-11-19 2015-07-08 深圳市新国都技术股份有限公司 Printing method for point-of-sale (POS) machine trading center based on threshold limit value (TLV) format data
CN102968282A (en) * 2012-11-29 2013-03-13 北京风驰韦尔科技有限公司 Method for achieving electronization of any bill and receipt by intercepting print data
CN105930312B (en) * 2015-09-29 2019-06-07 中国银联股份有限公司 A kind of printing strip edit methods and device based on POS terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320365A (en) * 2008-07-09 2008-12-10 金蝶软件(中国)有限公司 Method and apparatus for dynamic layout of document page
CN101989366A (en) * 2009-07-30 2011-03-23 中国工商银行股份有限公司 Point of sale (POS) terminal-based script processing device and data processing method thereof
KR20110111101A (en) * 2010-04-02 2011-10-10 주식회사 포스토피아 Hybrid-mail receipt and editing system using network
CN102467380A (en) * 2010-11-16 2012-05-23 金蝶软件(中国)有限公司 Method, device and communication terminal for opening graphic user interface document
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN104391830A (en) * 2014-10-24 2015-03-04 华迪计算机集团有限公司 Method and device for dynamic layout of bill page

Also Published As

Publication number Publication date
CN105930312A (en) 2016-09-07
WO2017054629A1 (en) 2017-04-06
TW201712522A (en) 2017-04-01

Similar Documents

Publication Publication Date Title
CN105930312B (en) A kind of printing strip edit methods and device based on POS terminal
CN106371825B (en) A kind of mobile terminal application interface list dynamic creation method and device
US11216253B2 (en) Application prototyping tool
CN108984172B (en) Interface file generation method and device
CN111290778B (en) AI model packaging method, platform and electronic equipment
CN106250104B (en) A kind of remote operating system for server, method and device
CN105739963B (en) The method and apparatus for generating webpage
CN109062567A (en) Information management system quick development platform based on B/S structure
KR20210060585A (en) Font rendering method, device and computer-readable storage medium
CN109101304A (en) Automatic generation method, device, electronic equipment and the computer-readable medium at interface
CN106681726B (en) Python model conversion is the method for Modelica model
CN106502896A (en) A kind of generation method of function test code and device
CN107632833A (en) Generation method, equipment and the electronic equipment gently applied
CN110096275A (en) A kind of page processing method and device
CN107301046A (en) Treating method and apparatus, computer equipment and the storage medium of icon
CN106874250A (en) A kind of automatic operation method and system based on word domains
CN109710258A (en) WeChat applet interface generation method and device
CN101631262A (en) VoiceXML business integrated development system and realizing method thereof
CN108305053A (en) Implementation method, device, electronic equipment and the storage medium of approval process
CN104063231B (en) Test resource rapid access method based on HIT-TENA
CN109543125A (en) The method for drafting and device of network element in power dispatch data network
CN108399156B (en) The composition method and device of formula in a kind of pdf document
Schneider et al. Abstract user interfaces: A model and notation to support plasticity in interactive systems
CN105488052B (en) Structural data is switched to the method and system of format formfile
CN112306622B (en) Construction method and device of VNF template

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1225120

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant