CN108319435A - Method of printing, device and the electronic equipment of bill - Google Patents

Method of printing, device and the electronic equipment of bill Download PDF

Info

Publication number
CN108319435A
CN108319435A CN201810068346.3A CN201810068346A CN108319435A CN 108319435 A CN108319435 A CN 108319435A CN 201810068346 A CN201810068346 A CN 201810068346A CN 108319435 A CN108319435 A CN 108319435A
Authority
CN
China
Prior art keywords
bill
masterplate
target
printed
printing
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.)
Pending
Application number
CN201810068346.3A
Other languages
Chinese (zh)
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810068346.3A priority Critical patent/CN108319435A/en
Publication of CN108319435A publication Critical patent/CN108319435A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The application provides a kind of Method of printing of bill, device and electronic equipment, a specific implementation mode of the method:Default processing is carried out to the business datum received, obtains the target data for printed tickets;Determine the type style of bill;Target masterplate is obtained based on the type style;Based on the target data and the target masterplate printed tickets.The embodiment can realize the purpose for printing different bills using different type styles according to actual demand in printed tickets.

Description

Method of printing, device and the electronic equipment of bill
Technical field
This application involves technical field of internet application, more particularly to a kind of Method of printing of bill, device and electronics are set It is standby.
Background technology
With the continuous development of Internet technology, many services Internet-based are come into being.With immediate distribution service For, support the businessman of immediate distribution that the order business for customer is needed to print various types of bills.Wherein, for instant Different objects (for example, customer, dispatching person, cook etc.) during delivery service can print different types of bill.It is beating When printing different types of bill, there is the demand printed using different type styles.For at present, in print procedure, only Can a variety of different bills be printed using single type style.
Invention content
In order to solve the above-mentioned technical problem one of, the application provides a kind of Method of printing of bill, device and electronic equipment.
According to the embodiment of the present application in a first aspect, provide a kind of Method of printing of bill, including:
Default processing is carried out to the business datum received, obtains the target data for printed tickets;
Determine the type style of bill;
Target masterplate is obtained based on the type style;
Based on the target data and the target masterplate printed tickets.
Optionally, the type style of the determining bill, including:
The type style of bill is determined according to preset instructions or the Service Period being presently in.
Optionally, described that target masterplate is obtained based on the type style, including:
It is searched and the matched bill masterplate of the type style from the bill masterplate data to prestore;
If the matched bill masterplate is not damaged, the matched bill masterplate is extracted as the target mould Version.
Optionally, the method further includes:
If the matched bill masterplate is damaged, the alternative bill masterplate to prestore is extracted as the target masterplate.
Optionally, the method further includes:
The bill masterplate data to prestore are updated.
Optionally, described based on the target data and the target masterplate printed tickets, including:
The target data is rendered using the target masterplate, obtains file to be printed;
The print command for printed tickets is generated based on the file to be printed;
Export the print command.
Optionally, the print command generated based on the file to be printed for printed tickets, including:
The file to be printed is parsed, multiple sub-instructions are obtained, each sub-instructions correspond to one or more Print processing function;
The multiple sub-instructions structure is generated to the print command for being used for printed tickets according to preset rules.
According to the second aspect of the embodiment of the present application, a kind of printing equipment of bill is provided, including:
Processing module obtains the number of targets for printed tickets for carrying out default processing to the business datum received According to;
Determining module, the type style for determining bill;
Acquisition module, for obtaining target masterplate based on the type style;
Print module, for being based on the target data and the target masterplate printed tickets.
According to the third aspect of the embodiment of the present application, a kind of computer readable storage medium is provided, the storage medium is deposited Computer program is contained, the computer program realizes the bill described in any one of above-mentioned first aspect when being executed by processor Method of printing.
According to the fourth aspect of the embodiment of the present application, a kind of electronic equipment is provided, including memory, processor and be stored in On memory and the computer program that can run on a processor, the processor realize above-mentioned first party when executing described program The Method of printing of bill described in any one of face.
The technical solution that embodiments herein provides can include the following benefits:
The Method of printing and device for the bill that embodiments herein provides, it is pre- by being carried out to the business datum received If processing, obtains the target data for printed tickets, determine the type style of bill, target is obtained based on above-mentioned type style Masterplate, and it is based on target data and target masterplate printed tickets.So as to which in printed tickets, realization is adopted according to actual demand The purpose of different bills is printed with different type styles.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The application can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and the principle together with specification for explaining the application.
Fig. 1 is a kind of flow chart of the Method of printing of bill of the application shown according to an exemplary embodiment;
Fig. 2 is the flow chart of the Method of printing of another bill of the application shown according to an exemplary embodiment;
Fig. 3 is the flow chart of the Method of printing of another bill of the application shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the printing equipment of bill of the application shown according to an exemplary embodiment;
Fig. 5 is the block diagram of the printing equipment of another bill of the application shown according to an exemplary embodiment;
Fig. 6 is the block diagram of the printing equipment of another bill of the application shown according to an exemplary embodiment;
Fig. 7 is the block diagram of the printing equipment of another bill of the application shown according to an exemplary embodiment;
Fig. 8 is structural schematic diagram of the application according to a kind of electronic equipment shown in an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of consistent device and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, is not intended to be limiting the application. It is also intended to including majority in the application and "an" of singulative used in the attached claims, " described " and "the" Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
As shown in Figure 1, Fig. 1 is a kind of flow chart of the Method of printing of bill shown according to an exemplary embodiment, it should Method can be applied in terminal device, which can be the terminal device that businessman holds, and be equipped with businessman side client End.The terminal device can be established with printing device and be communicated to connect, to control printing device printed tickets.People in the art Member is it is appreciated that the terminal device can include but is not limited to the mobile terminal device, tablet computer, intelligence of such as smart mobile phone Wearable device, personal digital assistant, laptop and desktop computer etc..This approach includes the following steps:
In a step 101, default processing is carried out to the business datum received, obtains the number of targets for printed tickets According to.
In the present embodiment, involved service can be immediate distribution service Internet-based, and business can be quotient The responsible order business for being related to immediate distribution of family.Business datum may include various types of data of order business.It is involved And bill can be the corresponding various types of bills of order business, for example, for customer bill, for the ticket of dispatching person According to, or for the bill etc. of cook.
It in the present embodiment, can after the businessman side client for being installed on terminal device receives the business datum of customer To carry out default processing to the business datum, to obtain can be used in the target data of printed tickets.Wherein, to business datum It can to business datum handle for the suitability of bill to carry out default processing so that obtained after default processing Target data can support bill printing, the compatible various masterplates for printed tickets.It is appreciated that default processing can be appointed Meaning is rational to be handled, and is not limited in terms of concrete mode of the application to presetting processing.
In a step 102, the type style of bill is determined.
In general, in immediate distribution service process, different objects may be related to, for example, the object may include But it is not limited to customer, dispatching person, cook, sorter, businessman etc..It in the present embodiment, can be with not for different objects Same type style prints different types of bill (each type of bill corresponds to a kind of type style).With different printing samples The different types of bill of formula printing, content and typesetting may be different.For example, different types of bill may include different field Word, the word of same field can also be included.Wherein, including same field word position, font, size, change Row etc. can be different.
Specifically, in one implementation, the type style of bill can be determined according to preset instructions.Wherein, in advance If instruction can be in response to the instruction generated in the operation of user, which can be used in determining the type style of bill.Example Such as, during instant delivery service, the user of businessman side can select the bill type for needing to print in printed tickets (for example, customer's bill, dispatching person's bill, cook's bill, sorter's bill or businessman's bill etc.).Due to different types of Bill corresponds to different type styles, and therefore, the bill type that can be selected according to the user of businessman side determines corresponding printing Pattern.
In another example during instant delivery service, businessman side client can export type style selection to user The user at interface, businessman side can directly be browsed by the selection interface and select type style.It therefore, can be according to businessman side Selection operation of the user on the selection interface, determine corresponding type style.
In another implementation, the type style of bill can also be determined according to the Service Period being presently in.One As for, may be different to the printing demand of bill in different Service Periods.For example, when businessman side client is just connected to industry When data of being engaged in, it may need to print dispatching person's ticket firstly the need of printing cook's bill or sorter's bill, when dispatching person's picking According to this and customer's bill etc..Therefore, the bill type for needing to print can be determined according to the Service Period being presently in, so as to Further to determine the type style of bill according to bill type.
It is appreciated that the type style of bill can also be determined by other arbitrary reasonable manners, the application is to determination It is not limited in terms of the concrete mode of the type style of bill.
In step 103, it is based on above-mentioned type style and obtains target masterplate.
In one implementation, businessman side client can obtain multiple bill moulds from immediate distribution service platform in advance Version, each bill masterplate match with a kind of type style.Businessman side client can deposit the multiple bill masterplates got In storage to bill masterplate data.After determining the type style of bill, it can search and beat from the bill masterplate data to prestore The matched bill masterplate of pull formula.Then, which can be verified, to determine the matched bill mould Whether version is not damaged.If verified successfully, it can determine that the matched bill masterplate is not damaged;If verification failure, It can then determine that the matched bill masterplate has been damaged.Finally, it if the matched bill masterplate is not damaged, can carry Take the matched bill masterplate as target masterplate.
In another implementation, businessman side client can also generate and carry after determining the type style of bill The masterplate of the type style obtains request.And directly send the masterplate to immediate distribution service platform and obtain request, it is with request When delivery service platform search with the matched bill masterplate of the type style.It is flat returning with the printing to obtain immediate distribution service The bill masterplate of pattern matching is as target masterplate.
It is appreciated that can also be based on above-mentioned type style by other arbitrary reasonable manners obtains target masterplate, this Apply not limiting the concrete mode aspect for obtaining target masterplate.
At step 104, target data and target masterplate printed tickets are based on.
In the present embodiment, target data and target masterplate printed tickets can be based on.Specifically, in a kind of realization side In formula, it is possible, firstly, to be rendered to the target data using the target masterplate, file to be printed is obtained.Then, it can be based on File to be printed generates the print command for printed tickets, and exports the print command to the printing device for establishing connection, with It controls the printing device and prints required bill.
In another implementation, it is also based on target data and target masterplate generates print request, which asks It asks and carries target data and target masterplate.The print request can be sent to printing device or other arbitrary and printing devices The target device for establishing connection, to ask, printing device or target device are based on target data and target masterplate generates printing and refers to It enables, and required bill is printed using print command control printing device.
It is appreciated that target data and target masterplate printed tickets can also be based on by other arbitrary reasonable manners, The application to not limiting in this respect.
Although should be noted that in the embodiment of above-mentioned Fig. 1, the operation of the application method is described with particular order, It is that this, which does not require that or implies, to execute these operations according to the particular order, or has to carry out shown in whole Operation could realize desired result.On the contrary, the step of describing in flow chart, which can change, executes sequence.For example, step 101 can It to be executed before step 102, can also execute, can also be executed after step 103 between step 102 and step 103, It can also be performed simultaneously with step 102, or be performed simultaneously with step 103.Additionally or alternatively, it is convenient to omit Mou Xiebu Suddenly, multiple steps are merged into a step to execute, and/or a step is decomposed into execution of multiple steps.
The Method of printing for the bill that above-described embodiment of the application provides, by being preset to the business datum received Processing, obtains the target data for printed tickets, determines the type style of bill, and target mould is obtained based on above-mentioned type style Version, and it is based on target data and target masterplate printed tickets.So as to which in printed tickets, realization is used according to actual demand Different type styles prints the purpose of different bills.
As shown in Fig. 2, the flow chart of the Method of printing of another bills of the Fig. 2 shown according to an exemplary embodiment, it should Embodiment describes the type style of determining bill and obtains the process of target masterplate, and this method can be applied to terminal device In, include the following steps:
In step 201, default processing is carried out to the business datum received, obtains the number of targets for printed tickets According to.
In step 202, the type style of bill is determined according to preset instructions or the Service Period being presently in.
It in the present embodiment, can be by determining the printing of bill according to preset instructions or the Service Period being presently in Pattern, so as to easily determine bill printing pattern according to actual demand.
In step 203, it is searched and the matched bill masterplate of type style from the bill masterplate data to prestore.
In the present embodiment, businessman side client can obtain multiple bill masterplates from immediate distribution service platform in advance, Each bill masterplate matches with a kind of type style.Businessman side client the multiple bill masterplates got can be stored to In bill masterplate data.After determining the type style of bill, it can be searched from the bill masterplate data to prestore and printing sample The matched bill masterplate of formula.
In step 204, if the matched bill masterplate is not damaged, the matched bill masterplate is extracted as target Masterplate.
In step 205, if the matched bill masterplate is damaged, the alternative bill masterplate to prestore is extracted as target Masterplate.
In the present embodiment, the bill masterplate in bill masterplate data may be damaged during use, lead to mould Version content becomes imperfect, and cannot be by normal use.Therefore, the matched bill masterplate can be verified first, with Determine the integrality of the matched bill masterplate.If the matched bill masterplate is not damaged, (i.e. bill masterplate content is complete It is whole), then the matched bill masterplate can be extracted as target masterplate.If the matched bill masterplate is damaged (i.e. bill Masterplate content is imperfect), then the alternative bill masterplate to prestore can be extracted as target masterplate.
In step 206, target data and target masterplate printed tickets are based on.
It should be noted that for the step identical with Fig. 1 embodiments, no longer go to live in the household of one's in-laws on getting married in above-mentioned Fig. 2 embodiments It states, related content can be found in Fig. 1 embodiments.
The Method of printing for the bill that above-described embodiment of the application provides, by being preset to the business datum received Processing, obtains the target data for printed tickets, bill is determined according to preset instructions or the Service Period being presently in Type style is searched and the matched bill masterplate of type style from the bill masterplate data to prestore.If the matched bill Masterplate is not damaged, extracts the matched bill masterplate as target masterplate, if the matched bill masterplate is damaged, extraction The alternative bill masterplate to prestore is based on target data and target masterplate printed tickets as target masterplate.Due to the present embodiment The multiple and matched bill masterplate of type style is stored in bill masterplate data in advance, therefore, it is possible to obtaining for convenient and efficient Get with the matched bill masterplate of type style, contribute in printed tickets realize according to actual demand use different printings Pattern prints the purpose of different bills.Also, since the present embodiment has prestored alternative bill masterplate, therefore, it is possible to After the matched bill masterplate of type style is damaged, one kind is provided and remedies mode, avoid since bill masterplate is damaged and The problem of caused print fault.
In some optional embodiments, the Method of printing of bill provided by the present application can also include:To the ticket to prestore It is updated according to masterplate data.
In the present embodiment, in any stage of businessman side client operation, can to the bill masterplate data that prestore into Row update, the update can include but is not limited to that the bill masterplate in bill masterplate data is replaced or is added.For example, quotient Whether family's side client can be have issued new bill masterplate, if issued newly in regular check immediate distribution service platform Bill masterplate can then download the new bill masterplate from immediate distribution service platform.Then, which is carried out Verification, if verified successfully, can store the new bill masterplate into bill masterplate data, alternatively, new using this Bill masterplate is replaced existing bill masterplate in bill masterplate data.
It should be noted that the above-mentioned the step of bill masterplate data to prestore are updated, it can be in businessman side client Any stage of end operation executes.
The method of the printing for the bill that above-described embodiment of the application provides, by being carried out to the bill masterplate data to prestore Update, to realize the purpose for replacing the corresponding bill masterplate of type style, according to reality when helping to realize printed tickets Demand replaces the purpose of type style.
As shown in figure 3, the flow chart of the Method of printing of another bills of the Fig. 3 shown according to an exemplary embodiment, it should The process based on target data and target masterplate printed tickets is described in detail in embodiment, and this method can be applied to terminal device In, include the following steps:
In step 301, default processing is carried out to the business datum received, obtains the number of targets for printed tickets According to.
In step 302, the type style of bill is determined.
In step 303, it is based on above-mentioned type style and obtains target masterplate.
In step 304, target data is rendered using target masterplate, obtains file to be printed.
In the present embodiment, target masterplate can be the masterplate for rendering, and target masterplate may be used to target data It is rendered, obtains file to be printed.For example, can have using Mustache Renderings, using target masterplate to target data It is rendered, obtains the file to be printed of XML (eXtensible Markup Language, extensible markup language) format. It is appreciated that any other rendering intent that is as known in the art and being likely to occur in the future can be applied to this Shen Please, the application does not limit the concrete mode aspect of rendering.
In step 305, the print command for printed tickets is generated based on file to be printed.
In the present embodiment, file to be printed can be parsed, obtains multiple sub-instructions.Each sub-instructions can be right Answer one or more print processing functions.For example, sub-instructions can include but is not limited to the instruction for handling font size, use In the instruction of processing font location, the instruction etc. for handling font line feed.Then, according to preset rules by multiple sub-instructions It merges, structure generates the print command for printed tickets.
Within step 306, the print command is exported.
In the present embodiment, the print command can be exported to the printing device for establishing connection, to control the printing device Print required bill.
It should be noted that for the step identical with Fig. 1 and Fig. 2 embodiments, in above-mentioned Fig. 3 embodiments no longer into Row repeats, and related content can be found in Fig. 1 and Fig. 2 embodiments.
The Method of printing for the bill that above-described embodiment of the application provides, by being preset to the business datum received Processing, obtains the target data for printed tickets, determines the type style of bill, and target mould is obtained based on above-mentioned type style Version, renders target data using target masterplate, obtains file to be printed, is generated based on file to be printed for printing ticket According to print command, and export the print command.Since the present embodiment renders target data by target masterplate, and base The print command for printed tickets is generated in the result of rendering, this improves the efficiency of printed tickets, helps to realize and beats Print the purpose of different bills when printing bill using different type styles according to actual demand.
Corresponding with the Method of printing embodiment of aforementioned bill, present invention also provides the implementations of the printing equipment of bill Example.
As shown in figure 4, Fig. 4 is a kind of printing equipment block diagram of bill of the application shown according to an exemplary embodiment, The device may include:Processing module 401, determining module 402, acquisition module 403 and print module 404.
Wherein, processing module 401 obtain being used for printed tickets for carrying out default processing to the business datum received Target data.
Determining module 402, the type style for determining bill.
Acquisition module 403, for obtaining target masterplate based on above-mentioned type style.
Print module 404, for being based on above-mentioned target data and above-mentioned target masterplate printed tickets.
In some optional embodiments, determining module 402 is configured for:According to preset instructions or it is presently in Service Period determines the type style of bill.
As shown in figure 5, Fig. 5 is the printing equipment frame of another bill of the application shown according to an exemplary embodiment Figure, on the basis of aforementioned embodiment illustrated in fig. 4, acquisition module 403 may include the embodiment:It searches submodule 501 and carries Take submodule 502.
Wherein, submodule 501 is searched, it is matched with above-mentioned type style for being searched from the bill masterplate data to prestore Bill masterplate.
Extracting sub-module 502 is made for when the matched bill masterplate is not damaged, extracting the matched bill masterplate For target masterplate.
As shown in fig. 6, Fig. 6 is the printing equipment frame of another bill of the application shown according to an exemplary embodiment Figure, on the basis of aforementioned embodiment illustrated in fig. 4, which can further include the embodiment:Extraction module 405.
Wherein, extraction module 405, for when above-mentioned matched bill masterplate is damaged, extracting the alternative bill to prestore Masterplate is as target masterplate.
In other optional embodiments, which can further include:Update module (not shown).
Wherein, update module, for being updated to the bill masterplate data to prestore.
As shown in fig. 7, Fig. 7 is the printing equipment frame of another bill of the application shown according to an exemplary embodiment Figure, on the basis of aforementioned embodiment illustrated in fig. 4, print module 404 may include the embodiment:Submodule 701 is rendered, is generated Submodule 702 and output sub-module 703.
Wherein, submodule 701 is rendered, for being rendered to target data using target masterplate, obtains file to be printed.
Submodule 702 is generated, for generating the print command for printed tickets based on file to be printed.
Output sub-module 703, for exporting above-mentioned print command.
In other optional embodiments, generates submodule 702 and be configured for:File to be printed is parsed, Multiple sub-instructions are obtained, each sub-instructions correspond to one or more print processing functions.According to preset rules by multiple sub-instructions Structure generates the print command for printed tickets.
It should be appreciated that above-mentioned apparatus can be set in advance in terminal device, can also be loaded by modes such as downloads Into terminal device.Corresponding module in above-mentioned apparatus can cooperate with the module in terminal device to realize beating for bill India side case.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The embodiment of the present application also provides a kind of computer readable storage medium, which is stored with computer journey Sequence, computer program can be used for executing the Method of printing for the bill that above-mentioned Fig. 1 is provided to Fig. 3 any embodiments.
Corresponding to the Method of printing of above-mentioned bill, the embodiment of the present application also proposed shown in Fig. 8 according to the application's The schematic configuration diagram of the electronic equipment of one exemplary embodiment.Referring to FIG. 8, in hardware view, which includes processing Device, internal bus, network interface, memory and nonvolatile memory are also possible that other business are required hard certainly Part.Then processor is run from being read in nonvolatile memory in corresponding computer program to memory, on logic level Form the printing equipment of bill.Certainly, other than software realization mode, other realization methods are not precluded in the application, such as The mode etc. of logical device or software and hardware combining, that is to say, that the executive agent of following process flow is not limited to each Logic unit can also be hardware or logical device.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and includes the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should be understood that the application is not limited to the precision architecture for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.

Claims (10)

1. a kind of Method of printing of bill, which is characterized in that the method includes:
Default processing is carried out to the business datum received, obtains the target data for printed tickets;
Determine the type style of bill;
Target masterplate is obtained based on the type style;
Based on the target data and the target masterplate printed tickets.
2. according to the method described in claim 1, it is characterized in that, the type style of the determining bill, including:
The type style of bill is determined according to preset instructions or the Service Period being presently in.
3. method according to claim 1 or 2, which is characterized in that it is described that target masterplate is obtained based on the type style, Including:
It is searched and the matched bill masterplate of the type style from the bill masterplate data to prestore;
If the matched bill masterplate is not damaged, the matched bill masterplate is extracted as the target masterplate.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
If the matched bill masterplate is damaged, the alternative bill masterplate to prestore is extracted as the target masterplate.
5. according to the method described in claim 3, it is characterized in that, the method further includes:
The bill masterplate data to prestore are updated.
6. method according to claim 1 or 2, which is characterized in that described to be based on the target data and the target mould Version printed tickets, including:
The target data is rendered using the target masterplate, obtains file to be printed;
The print command for printed tickets is generated based on the file to be printed;
Export the print command.
7. according to the method described in claim 6, it is characterized in that, described generated based on the file to be printed for printing ticket According to print command, including:
The file to be printed is parsed, multiple sub-instructions are obtained, each sub-instructions correspond to one or more printings Processing function;
The multiple sub-instructions structure is generated to the print command for being used for printed tickets according to preset rules.
8. a kind of printing equipment of bill, which is characterized in that described device includes:
Processing module obtains the target data for printed tickets for carrying out default processing to the business datum received;
Determining module, the type style for determining bill;
Acquisition module, for obtaining target masterplate based on the type style;
Print module, for being based on the target data and the target masterplate printed tickets.
9. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the calculating The Method of printing of the claims 1-8 any one of them bills is realized when machine program is executed by processor.
10. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, which is characterized in that the processor realizes the side described in any one of the claims 1-8 when executing described program Method.
CN201810068346.3A 2018-01-24 2018-01-24 Method of printing, device and the electronic equipment of bill Pending CN108319435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810068346.3A CN108319435A (en) 2018-01-24 2018-01-24 Method of printing, device and the electronic equipment of bill

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810068346.3A CN108319435A (en) 2018-01-24 2018-01-24 Method of printing, device and the electronic equipment of bill

Publications (1)

Publication Number Publication Date
CN108319435A true CN108319435A (en) 2018-07-24

Family

ID=62887338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810068346.3A Pending CN108319435A (en) 2018-01-24 2018-01-24 Method of printing, device and the electronic equipment of bill

Country Status (1)

Country Link
CN (1) CN108319435A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176590A (en) * 2019-12-27 2020-05-19 深圳市微购科技有限公司 Adaptation-based printing method, device, apparatus and computer-readable storage medium
CN113360100A (en) * 2020-03-06 2021-09-07 北京京东振世信息技术有限公司 Data printing method and printing management system
CN115454363A (en) * 2022-09-14 2022-12-09 北京木屋时代科技有限公司 Instruction implementation method and device, storage medium and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050099645A1 (en) * 2003-08-11 2005-05-12 Masanori Saito Modifying of stylized operation of peripherals
US20060249566A1 (en) * 2001-12-17 2006-11-09 Zih Corporation Xml printer system with rfid capability
CN101324832A (en) * 2007-06-13 2008-12-17 佳能株式会社 Information-processing apparatus and method
CN103885731A (en) * 2012-12-20 2014-06-25 北大方正集团有限公司 Data printing method and device
CN104680674A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Method and system for rapidly setting invoice print format of fiscal cash register
CN205810026U (en) * 2016-06-27 2016-12-14 上海金丘实业股份有限公司 Automatic invoice issuance machine
CN106406775A (en) * 2016-08-31 2017-02-15 无锡雅座在线科技发展有限公司 Bill printing method and device
CN106528006A (en) * 2015-09-10 2017-03-22 阿里巴巴集团控股有限公司 Page printing method and device
CN106610804A (en) * 2016-12-27 2017-05-03 上海极途信息技术有限公司 Ticket printing method and system
CN107562706A (en) * 2017-08-23 2018-01-09 深圳赛盒科技有限公司 Self-defined ticket templates method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060249566A1 (en) * 2001-12-17 2006-11-09 Zih Corporation Xml printer system with rfid capability
US20050099645A1 (en) * 2003-08-11 2005-05-12 Masanori Saito Modifying of stylized operation of peripherals
CN101324832A (en) * 2007-06-13 2008-12-17 佳能株式会社 Information-processing apparatus and method
CN103885731A (en) * 2012-12-20 2014-06-25 北大方正集团有限公司 Data printing method and device
CN104680674A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Method and system for rapidly setting invoice print format of fiscal cash register
CN106528006A (en) * 2015-09-10 2017-03-22 阿里巴巴集团控股有限公司 Page printing method and device
CN205810026U (en) * 2016-06-27 2016-12-14 上海金丘实业股份有限公司 Automatic invoice issuance machine
CN106406775A (en) * 2016-08-31 2017-02-15 无锡雅座在线科技发展有限公司 Bill printing method and device
CN106610804A (en) * 2016-12-27 2017-05-03 上海极途信息技术有限公司 Ticket printing method and system
CN107562706A (en) * 2017-08-23 2018-01-09 深圳赛盒科技有限公司 Self-defined ticket templates method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176590A (en) * 2019-12-27 2020-05-19 深圳市微购科技有限公司 Adaptation-based printing method, device, apparatus and computer-readable storage medium
CN111176590B (en) * 2019-12-27 2024-03-19 深圳市微购科技有限公司 Printing method, device, apparatus and computer readable storage medium based on adaptation
CN113360100A (en) * 2020-03-06 2021-09-07 北京京东振世信息技术有限公司 Data printing method and printing management system
CN113360100B (en) * 2020-03-06 2023-09-01 北京京东振世信息技术有限公司 Data printing method and printing management system
CN115454363A (en) * 2022-09-14 2022-12-09 北京木屋时代科技有限公司 Instruction implementation method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN108282527B (en) Generate the distributed system and method for Service Instance
CN107665233A (en) Database data processing method, device, computer equipment and storage medium
CN104915223B (en) Information processing system and information processing method
CN107798108A (en) A kind of asynchronous task querying method and equipment
CN108319435A (en) Method of printing, device and the electronic equipment of bill
US10536606B2 (en) Server system and non-transitory computer-readable medium storing computer-readable instructions for server system
CN108073429B (en) Payment mode configuration method, device, equipment and storage medium
CN107193607A (en) Method and apparatus, storage medium, processor and terminal for updating code file
CN107766393A (en) Information processing method, client and server based on database
CN107203372A (en) Control shows method and device
CN108055320A (en) Processing method, terminal device and the computer readable storage medium of resource downloading
CN108933695A (en) Method and apparatus for handling information
CN108280945A (en) A kind of information processing method, information processing system and server
CN113360100A (en) Data printing method and printing management system
CN114386934A (en) Method and device for generating business process, server and storage medium
CN110221840A (en) The function realizing method and device of application program, equipment and storage medium
CN107958359A (en) Shelf choosing method and device
CN110347468A (en) Textures switching method, textures switching device and electronic equipment
CN108076110A (en) Electronic data interchange system and the device comprising electronic data interchange system
CN110134867A (en) Corporation information query method and Related product
CN109803017A (en) File interoperability methods, calculate equipment and computer readable storage medium at device
CN110163596A (en) A kind of resource amount share system and method
CN111078215A (en) Software product application method and device, storage medium and electronic equipment
CN109634827A (en) Method and apparatus for generating information
US10785379B2 (en) Server system, non-transitory computer-readable medium storing computer-readable instructions for server system, and method performed by server system

Legal Events

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

Ref country code: HK

Ref legal event code: DE

Ref document number: 1258196

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180724