CN113535101A - Print file generation method and device, storage medium and electronic equipment - Google Patents

Print file generation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113535101A
CN113535101A CN202110845583.8A CN202110845583A CN113535101A CN 113535101 A CN113535101 A CN 113535101A CN 202110845583 A CN202110845583 A CN 202110845583A CN 113535101 A CN113535101 A CN 113535101A
Authority
CN
China
Prior art keywords
print file
file generation
document
attribute
bill
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110845583.8A
Other languages
Chinese (zh)
Other versions
CN113535101B (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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information 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 Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110845583.8A priority Critical patent/CN113535101B/en
Publication of CN113535101A publication Critical patent/CN113535101A/en
Application granted granted Critical
Publication of CN113535101B publication Critical patent/CN113535101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the disclosure provides a print file generation method, a print file generation device, a computer readable storage medium and an electronic device, and relates to the technical field of data processing. The method of the present disclosure comprises: responding to a print file generation request, and acquiring a service identity parameter from the print file generation request; matching a corresponding printing template according to the service identity parameter; and acquiring document information from the print file generation request, and analyzing and assigning the print template according to the document information to generate a print file. The present disclosure enables diversification of printing templates.

Description

Print file generation method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a print file generation method, a print file generation apparatus, a computer-readable storage medium, and an electronic device.
Background
With the rapid development of electronic commerce, the logistics system gradually undertakes a large number of commodity dispatching tasks. Due to the advantages of fast filling, clear display of the sending information and the like, the electronic document becomes a mainstream sending information filling mode.
In the actual operation process, an electronic document containing the mail information is usually required to be printed out so as to be conveniently stuck on the surface of the express package.
However, the existing printing template in the logistics system is single, and the requirements of different merchants cannot be met.
Disclosure of Invention
The embodiment of the disclosure provides a print file generation method, a print file generation device, a computer-readable storage medium and an electronic device, so as to overcome the problem of single existing print template at least to a certain extent.
According to an aspect of the present disclosure, there is provided a print file generating method including: responding to a print file generation request, and acquiring a service identity parameter from the print file generation request; matching a corresponding printing template according to the service identity parameter; and acquiring document information from the print file generation request, and analyzing and assigning the print template according to the document information to generate a print file.
In an exemplary embodiment of the present disclosure, analyzing and assigning the printing template according to the document information includes: traversing an attribute list in the printing template, and judging whether an attribute unit in the attribute list has a function fragment or not; if the function fragment does not exist, acquiring attribute information required by the attribute unit from the bill information, and directly filling the attribute information into the attribute unit; and if the function fragment exists, executing the function fragment to acquire corresponding attribute information, and dynamically assigning values to the attribute units.
In an exemplary embodiment of the present disclosure, executing the function fragment to obtain corresponding attribute information, and dynamically assigning the attribute unit includes: when the function segment contains a target address field, judging whether the function segment is a direct-emitting user bill or not; and if the user bill is directly issued, filling the user address into the attribute unit corresponding to the target address field.
In an exemplary embodiment of the present disclosure, the method further comprises: if the user document is not directly sent, judging whether the document is a transfer document; and if the document is a transfer document, filling the transfer site address into the attribute unit corresponding to the target address field.
In an exemplary embodiment of the present disclosure, executing the function fragment to obtain corresponding attribute information, and dynamically assigning the attribute unit includes: when the function segment contains a distribution bill number field, judging whether the function segment is a self-operated distribution bill or not; and if the self-operation distribution bill is the self-operation distribution bill, filling the self-operation bill number into the attribute unit corresponding to the distribution bill number field.
In an exemplary embodiment of the present disclosure, the method further comprises: if the bill is not self-operated distribution bill, judging whether the bill is a transfer bill; and if the transfer document is the transfer document, filling the third-party delivery order number into the attribute unit corresponding to the delivery order number field.
In an exemplary embodiment of the present disclosure, the service identity parameter includes: one or more of a customer code, a warehouse code, a document type, a production node, and a commodity type.
According to an aspect of the present disclosure, there is provided a print file generating apparatus including: the parameter acquisition module is used for responding to a print file generation request and acquiring service identity parameters from the print file generation request; the template matching module is used for matching a corresponding printing template according to the service identity parameters; and the file generation module is used for acquiring document information from the printing file generation request and analyzing and assigning the printing template according to the document information so as to generate a printing file.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the print file generation method described above.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing one or more programs which, when executed by the processor, cause the processor to implement the above-described print file generation method.
In the embodiment of the disclosure, on one hand, different printing templates can be configured according to different business identities by acquiring the business identity parameters, so that different printing templates can be matched according to different customers, thereby meeting the diversified demands of the customers on the printing documents and improving the customer experience; on the other hand, the printing template can be analyzed and assigned according to the document information, so that the information on the printing template can be flexibly filled according to the actual situation, a dynamic assignment mode for the printing template is realized, even the same printing template can be matched with different printing information, the diversity of the printing files is further increased, and the finally generated printing files are matched with the actual requirements.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a flowchart of a print file generation method in the present exemplary embodiment;
fig. 2 is a schematic diagram of a system architecture of a print file generation method according to the present exemplary embodiment;
FIG. 3 is a flowchart of an analytical assignment of a print template in the exemplary embodiment;
FIG. 4 is a schematic diagram of a printing stencil in the exemplary embodiment;
fig. 5 is a flowchart illustrating a print file generation method according to the exemplary embodiment;
FIG. 6 is a block diagram of a print file generating apparatus in the present exemplary embodiment;
fig. 7 is a block diagram of an electronic device in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their detailed description will be omitted. Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale.
Although relative terms, such as "upper" and "lower," may be used in this specification to describe one element of an icon relative to another, these terms are used in this specification for convenience only, e.g., in accordance with the orientation of the examples described in the figures. It will be appreciated that if the device of the icon were turned upside down, the element described as "upper" would become the element "lower". When a structure is "on" another structure, it may mean that the structure is integrally formed with the other structure, or that the structure is "directly" disposed on the other structure, or that the structure is "indirectly" disposed on the other structure via another structure.
The terms "a," "an," "the," "said," and "at least one" are used to indicate the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first," "second," and "third," etc. are used merely as labels, and are not limiting on the number of their objects.
With the gradual expansion of the online shopping scale, the demand of logistics, whether merchants or customers, is increasing. As express receipts for recording the number of an express bill, sender information, recipient information and the like, the express bills need to be adhered to the surface of an express package, so that the mailed commodity can be conveniently marked and identified, and the customer can conveniently sign and check when receiving the commodity.
Electronic documents printed by printers are increasingly being used widely, compared to traditional documents filled in by handwriting. For the electronic document, during the use process, relevant information needs to be filled in the printing template, and then the electronic document generated by the printing template needs to be printed out for use.
However, with the access of a large number of merchants, the requirements of each merchant for printing information are different, for example, some merchants need to record warehouse information, some merchants need to record production links, and some merchants have other special requirements, so that different requirements cannot be met by using only one printing template. Therefore, there is an urgent need for a method for generating diversified printing documents to meet the requirements of different merchants.
Based on this, the disclosed embodiments provide a print file generation method. The system is mainly used for providing different logistics documents for different customers by distribution companies with logistics systems so as to meet the requirements of the different customers.
A print file generation method according to an embodiment of the present disclosure is specifically described below with reference to fig. 1. As shown in fig. 1, the print file generating method may specifically include:
step S110, responding to a print file generation request, and acquiring a service identity parameter from the print file generation request;
step S120, matching corresponding printing templates according to the service identity parameters;
and step S130, acquiring document information from the print file generation request, and analyzing and assigning values to the print template according to the document information to generate a print file.
In this embodiment, the print file may include, but is not limited to, the order data (express receipt) to be printed in the logistics order.
The print file generation method achieves the following technical effects: on one hand, different printing templates can be configured according to different business identities by acquiring business identity parameters, so that different printing templates can be matched according to different customers, for example, the printing template A is matched according to the requirements of the customer A, the printing template B is matched according to the requirements of the customer B and the like, the diversified requirements of the customers on the printing documents are met, and the customer experience is improved; on the other hand, the printing template can be analyzed and assigned according to the document information, so that the information on the printing template can be flexibly filled according to the actual situation, a dynamic assignment mode for the printing template is realized, even the same printing template can be matched with different printing information, the diversity of the printing files is further increased, and the finally generated printing files are matched with the actual requirements.
Next, a print file generation method in the embodiment of the present disclosure will be further described.
In step S110, in response to the print file generation request, the service identification parameter is acquired from the print file generation request.
Referring to fig. 2, a system architecture diagram of a print file generation method according to an embodiment of the present disclosure is shown.
As shown in fig. 2, the system architecture 200 may include a file server 201, an application server 202, a terminal device 203, a printing device 204, and the like. After the terminal device 203 completes the transaction document, the print file generation request is sent to the application server 202, and after receiving the print file generation request, the application server 202 enters step S110 of the embodiment of the present disclosure.
A network for providing a communication link medium is provided between the terminal device 203 and the application server 202 and the printing device 204, and the network is also provided between the application server 202 and the file server 201. The customer can complete the transaction document on the terminal device 203.
The print file generation method provided by the embodiment of the present disclosure may be performed by the application server 202. Specifically, after receiving a print file generation request, in response to the print file generation request, first, a service identity parameter needs to be acquired from the print file generation request. And determining the corresponding client of the printing template, the type of the printing template and the like according to the service identity parameters.
In an exemplary embodiment of the present disclosure, the service identity parameter may include: and one or more of multi-dimensional parameter information such as customer codes, warehouse codes, bill types, production nodes, commodity types and the like.
The customer code is the customer information necessarily contained in the transaction document, such as merchant code information, and is used for uniquely identifying the merchant. Different printing templates can be set for different customers through the customer codes, so that the requirements of different customers are met.
The warehouse code is the code of the current storage position of the commodity and has uniqueness. The warehouse code can be used for determining the warehouse to which the commodities transacted by the client belong, so that the commodity information can be recorded in detail, and convenience is provided for subsequent data tracking and commodity feedback summary analysis.
The document type is a document type supported by the order system, and may include a customer order, a return supply order, a purchase order, a return work order, or the like.
The production node is a node where the commodity is currently located, for example, a picking node, a reviewing node, a delivery node, and the like, and is used for identifying the current state of the commodity, and different printing templates can be set according to different states of the commodity, so that the information is more detailed, and the recording and the subsequent tracking of the commodity information are facilitated.
The commodity type is a class of commodities, and commodities of the same class, such as chemicals, fragile products, and the like, can be covered by the commodity type. The goods type of the goods is identified on the printing template, so that the staff can be prompted to carry out corresponding processing according to the requirement in the goods transportation process, and the prompting effect is achieved. If the transported goods are special articles such as chemicals or fragile articles, prompt marks and the like can be arranged on the printing template; if the transported goods are ordinary goods and special treatment is not needed, prompt marks of goods and the like do not need to be displayed on a printing module, and therefore the purpose of protecting privacy of customers can be achieved according to customer requirements.
It should be noted that, with the rise of emerging industries and the provision of different requirements of customers, the service identity parameters provided by the exemplary embodiment of the present disclosure may be correspondingly increased or decreased according to actual situations, so as to continuously meet the actual requirements of the industries. The embodiment of the present disclosure does not specifically limit the types of the service identity parameters.
In step S120, the corresponding printing template is matched according to the service identity parameter.
In the exemplary embodiment of the present disclosure, in order to meet the requirements of different customers, a plurality of printing templates generally need to be preset, and the printing templates also need to be classified according to the service identity parameters, so as to achieve the purpose of customizing for the customers in the process of generating the printed files.
In the system architecture 200 shown in fig. 2, the above-mentioned multiple print templates and their corresponding information may be stored in the file server 201, and when the print templates need to be matched, the application server 202 may directly call the print templates from the file server 201. Of course, all the printing templates and the corresponding information thereof may also be directly stored in the application server 202, and when the printing templates need to be matched, internal calling may be directly performed. The storage location of the print template is not particularly limited in the embodiments of the present disclosure.
In the exemplary embodiment of the present disclosure, after the service identity parameter is obtained, the matching of the printing template may be performed according to the service identity parameter. For example, the printing template of which customer is determined according to the customer code in the service identity parameter, and then only the printing template stored for the customer can be selected; then, a specific printing template can be determined according to the document type, the commodity type and the like in the business identity parameter, so that subsequent generation of printed files such as electronic documents and the like is facilitated.
In order to meet the requirements of different sizes of commodities, according to the information in the service identity parameters, the embodiment of the disclosure can also provide a printing template matched with the sizes of the commodities, so that the mismatching condition that large electronic documents are pasted on small commodities and the electronic documents pasted on the large commodities are too small can be avoided.
In addition, the size of the printing template may also be set according to actual conditions, for example, a client may provide the size of the required printing template, and the application server 202 may automatically adjust the size of the printing template, so that the print file meeting the actual requirements may be finally provided.
In step S130, document information is obtained from the print file generation request, and the print template is analyzed and assigned according to the document information, so as to generate a print file.
After matching out the corresponding printing template, the printing template needs to be analyzed and assigned to fill in specific document information.
In an exemplary embodiment of the present disclosure, referring to fig. 3, the process of analyzing and assigning values to the printing template according to the document information may specifically include:
step S1301, traversing an attribute list in the printing template, and judging whether function fragments exist in attribute units in the attribute list;
step S1302, if the function segment does not exist, acquiring attribute information required by the attribute unit from the bill information, and directly filling the attribute information into the attribute unit;
step S1303, if a function segment exists, executing the function segment to obtain corresponding attribute information, and dynamically assigning values to the attribute units.
The analysis assignment process is described in detail below by taking a specific printing template as an example, and fig. 4 is a schematic structural diagram of a printing template according to an embodiment of the present disclosure. As shown in fig. 4, the print template 400 includes an attribute list having a plurality of attribute units 410, and each of the attribute units 410 can be used to assign an attribute to fill in corresponding attribute information.
In the exemplary embodiment of the present disclosure, the attribute unit 410 may be a dynamically assignable attribute unit, or may also be an attribute unit that is not dynamically assignable, and in the process of determining whether the attribute unit 410 is dynamically assignable, the determination may be made through a function segment. Wherein a function fragment is a piece of code that contains a dynamic assignment to the attribute unit 410.
If one of the attribute units 410 does not include a function fragment, the attribute unit 410 is indicated as an attribute unit that cannot be dynamically assigned. At this time, the attribute information required by the attribute unit 410 may be acquired from the document information, and the attribute information may be directly filled in the attribute unit 410. For the print template 400, a placeholder may be initially filled in a corresponding position of each attribute unit 410, and after the attribute information is determined, the attribute information may be used instead of the placeholder, and the attribute information is configured at the position of the placeholder.
In practical application, different placeholders can be selected according to different printing templates, and table 1 lists part of the placeholders and corresponding field descriptions thereof.
TABLE 1
Figure BDA0003180682210000081
Figure BDA0003180682210000091
If one of the attribute units 410 includes a function fragment, the attribute unit 410 is indicated as a dynamically assignable attribute unit. At this time, the function unit 410 may be dynamically assigned, and a specific dynamic assignment process may be determined according to fields included in the function fragment.
In an exemplary embodiment of the present disclosure, when the function segment includes the target address field, it may be determined whether the function segment is a bill of the direct user, that is, whether the current product is a product directly sent to the user. If the user document is a direct-emitting user document, the user address is filled in the attribute unit 410 corresponding to the target address field, so as to ensure that the generated print file contains the information related to the user address.
If the current commodity is not a commodity directly sent to the user and needs to be transferred, namely the current commodity is not a user document directly sent, further judging whether the current commodity is a transfer document; if the document is a transit document, the transit site address is filled in the attribute unit 410 corresponding to the destination address field, so that the generated print file is ensured to contain the transit site address, and the error condition that the commodity is directly sent to the user address and the like is avoided.
In the exemplary embodiment of the disclosure, when the function segment contains the delivery receipt number field, it may be determined whether the delivery receipt is a self-operated delivery receipt; if the bill is a self-operation delivery bill, the self-operation delivery bill number is filled in the attribute unit 410 corresponding to the delivery bill number field. Wherein the single number is a unique identification for the package. If the bill is not self-operated distribution bill, judging whether the bill is a transfer bill; and if the transfer document is the transfer document, filling the third-party delivery document number into the attribute unit corresponding to the delivery document number field. The third-party delivery order number is an order number established by other delivery companies, and this is not particularly limited in the embodiment of the present disclosure.
In the embodiment of the disclosure, by dynamically assigning the attribute units, the diversity of assignment of the printing templates can be improved, and the flexibility and diversity of setting of the printing templates are improved, so that the requirements of customers are further met.
Referring to fig. 5, a schematic flow chart illustrating a print file generation method according to an embodiment of the present disclosure is shown. In fig. 5, in step S501, a service identity parameter is obtained from a print file generation request; step S502, matching corresponding printing templates through the service identity parameters; step S503, obtaining document information from the print file generation request; step S504, traversing the attribute list in the printing template; step S505, entering a judgment condition 1, and judging whether the attribute unit has a function segment or not; if not, namely if no function segment exists, the step S506 is entered, and the attribute information in the single data information is directly filled into the attribute unit; if so, namely the function segment exists, executing the step S507 when the function segment contains the target address field, entering a judgment condition 2, and judging whether the user document is a direct-sending user document; if yes, go to step S508, fill the user address into the attribute unit; if not, executing step S509, entering a judgment condition 3, and judging whether the document is transferred; if the document is a transit document, step S510 is executed to fill the transit site address into the attribute unit.
When the function segment contains a distribution bill number field, executing step S511, entering a judgment condition 3, and judging whether the function segment is a self-operated distribution bill; if yes, executing step S512, and filling the self-service bill number into the corresponding attribute unit; if not, executing step S513, entering a judgment condition 4, and judging whether the document is transferred; if the transfer document is the transfer document, step S514 is executed to fill the attribute unit with the third party delivery document number.
After generating the print file, the application server 202 generates the print file into a format such as a picture or PDF, and transmits the print file to the terminal device 203, and the terminal device 203 sends a print instruction to the printing device 204 to complete printing of the print file.
In summary, the print file generation method provided by the embodiment of the present disclosure belongs to the technical field of data processing, and different print templates can be provided according to different clients, thereby providing a basis for generating diversified print files. And a dynamic automatic attribute unit assignment process can be realized, so that the generation of a printed file is more convenient, the information amount is more comprehensive, and the accuracy is higher.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In an embodiment of the present disclosure, a print file generating apparatus is further provided, as shown in fig. 6, the print file generating apparatus 600 may include a parameter obtaining module 610, a template matching module 620, and a file generating module 630, where:
the parameter obtaining module 610 may be configured to, in response to the print file generation request, obtain the service identity parameter from the print file generation request; the template matching module 620 may be configured to match a corresponding printing template according to the service identity parameter; the file generating module 630 may be configured to obtain document information from the print file generating request, and perform analysis and assignment on the print template according to the document information to generate the print file.
In an exemplary embodiment, the file generation module 630 is configured to:
traversing an attribute list in the printing template, and judging whether an attribute unit in the attribute list has a function fragment or not; if the function fragment does not exist, acquiring attribute information required by the attribute unit from the bill information, and directly filling the attribute information into the attribute unit; and if the function fragment exists, executing the function fragment to acquire corresponding attribute information, and dynamically assigning values to the attribute units.
In an exemplary embodiment, the file generation module 630 is configured to:
when the function segment contains the target address field, judging whether the function segment is a direct-emitting user document; and if the user bill is the direct-sending user bill, filling the user address into the attribute unit corresponding to the target address field.
In an exemplary embodiment, the file generation module 630 is configured to:
if the user document is not directly sent, judging whether the document is a transfer document; if the document is a transfer document, filling the transfer site address into the attribute unit corresponding to the target address field.
In an exemplary embodiment, the file generation module 630 is configured to:
when the function segment contains a distribution bill number field, judging whether the function segment is a self-operated distribution bill or not; and if the self-operation distribution bill is obtained, filling the self-operation bill number into the attribute unit corresponding to the distribution bill number field.
In an exemplary embodiment, the file generation module 630 is configured to:
if the bill is not self-operated distribution bill, judging whether the bill is a transfer bill; and if the transfer document is the transfer document, filling the third-party delivery document number into the attribute unit corresponding to the delivery document number field.
The specific details of each module of each print file generation apparatus have been described in detail in the corresponding print file generation method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the apparatus for performing are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided. It should be noted that the electronic device in the present disclosure may be a mobile phone, a tablet computer, a server, or a network device.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, a bus 730 connecting different system components (including the memory unit 720 and the processing unit 710), and a display unit 740.
Wherein the storage unit 720 stores program code, which can be executed by the processing unit 710, to cause the processing unit 710 to perform the steps according to various exemplary embodiments of the present invention described in the above section "exemplary method" of the present specification. For example, the processing unit 710 may execute step S110 shown in fig. 1, in response to the print file generation request, acquiring the service identity parameter from the print file generation request; step S120, matching corresponding printing templates according to the service identity parameters; and step S130, acquiring document information from the print file generation request, and analyzing and assigning values to the print template according to the document information to generate a print file.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 770 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when the program product is run on the terminal device.
In an exemplary embodiment of the present disclosure, the above method may be implemented by a program product, such as a portable compact disc read only memory (CD-ROM) and including program code, and may be executed on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A print file generation method, comprising:
responding to a print file generation request, and acquiring a service identity parameter from the print file generation request;
matching a corresponding printing template according to the service identity parameter;
and acquiring document information from the print file generation request, and analyzing and assigning the print template according to the document information to generate a print file.
2. The method of claim 1, wherein analytically assigning the print template based on the document information comprises:
traversing an attribute list in the printing template, and judging whether an attribute unit in the attribute list has a function fragment or not;
if the function fragment does not exist, acquiring attribute information required by the attribute unit from the bill information, and directly filling the attribute information into the attribute unit;
and if the function fragment exists, executing the function fragment to acquire corresponding attribute information, and dynamically assigning values to the attribute units.
3. The method of claim 2, wherein executing the function fragment to obtain corresponding attribute information, and wherein dynamically assigning the attribute unit comprises:
when the function segment contains a target address field, judging whether the function segment is a direct-emitting user bill or not;
and if the user bill is directly issued, filling the user address into the attribute unit corresponding to the target address field.
4. The method of claim 3, further comprising:
if the user document is not directly sent, judging whether the document is a transfer document;
and if the document is a transfer document, filling the transfer site address into the attribute unit corresponding to the target address field.
5. The method of claim 2, wherein executing the function fragment to obtain corresponding attribute information, and wherein dynamically assigning the attribute unit comprises:
when the function segment contains a distribution bill number field, judging whether the function segment is a self-operated distribution bill or not;
and if the self-operation distribution bill is the self-operation distribution bill, filling the self-operation bill number into the attribute unit corresponding to the distribution bill number field.
6. The method of claim 5, further comprising:
if the bill is not self-operated distribution bill, judging whether the bill is a transfer bill;
and if the transfer document is the transfer document, filling the third-party delivery order number into the attribute unit corresponding to the delivery order number field.
7. The method according to any of claims 1-6, being characterized in that said service identity parameters comprise: one or more of a customer code, a warehouse code, a document type, a production node, and a commodity type.
8. A print file generating apparatus, comprising:
the parameter acquisition module is used for responding to a print file generation request and acquiring service identity parameters from the print file generation request;
the template matching module is used for matching a corresponding printing template according to the service identity parameters;
and the file generation module is used for acquiring document information from the printing file generation request and analyzing and assigning the printing template according to the document information so as to generate a printing file.
9. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the print file generation method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a processor;
a memory for storing one or more programs which, when executed by the processor, cause the processor to implement the print file generation method of any one of claims 1-7.
CN202110845583.8A 2021-07-26 2021-07-26 Print file generation method and device, storage medium and electronic equipment Active CN113535101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110845583.8A CN113535101B (en) 2021-07-26 2021-07-26 Print file generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110845583.8A CN113535101B (en) 2021-07-26 2021-07-26 Print file generation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113535101A true CN113535101A (en) 2021-10-22
CN113535101B CN113535101B (en) 2023-09-22

Family

ID=78089067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110845583.8A Active CN113535101B (en) 2021-07-26 2021-07-26 Print file generation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113535101B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077630A (en) * 2023-08-28 2023-11-17 国任财产保险股份有限公司 Printing method and system for electronic file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7692807B1 (en) * 2004-04-01 2010-04-06 Applied Discovery, Inc. System and method for batch printing high-volume electronic documents from a network
CN102279715A (en) * 2011-04-18 2011-12-14 北京神州数码思特奇信息技术股份有限公司 Method and device for realizing general ticket printing control
US20140293322A1 (en) * 2013-03-29 2014-10-02 Hewlett-Packard Development Company, Lp. Printing electronic messages
CN109388357A (en) * 2018-11-05 2019-02-26 用友网络科技股份有限公司 Print control program, server and computer readable storage medium
CN112416267A (en) * 2020-10-30 2021-02-26 山东浪潮通软信息科技有限公司 Configurable printing data processing method and device
CN113031886A (en) * 2021-03-29 2021-06-25 上海寻梦信息技术有限公司 Express bill printing method, system, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7692807B1 (en) * 2004-04-01 2010-04-06 Applied Discovery, Inc. System and method for batch printing high-volume electronic documents from a network
CN102279715A (en) * 2011-04-18 2011-12-14 北京神州数码思特奇信息技术股份有限公司 Method and device for realizing general ticket printing control
US20140293322A1 (en) * 2013-03-29 2014-10-02 Hewlett-Packard Development Company, Lp. Printing electronic messages
CN109388357A (en) * 2018-11-05 2019-02-26 用友网络科技股份有限公司 Print control program, server and computer readable storage medium
CN112416267A (en) * 2020-10-30 2021-02-26 山东浪潮通软信息科技有限公司 Configurable printing data processing method and device
CN113031886A (en) * 2021-03-29 2021-06-25 上海寻梦信息技术有限公司 Express bill printing method, system, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张国晋;李仕金;陆歌皓;: "基于物流服务平台下打印技术的研究与应用", 计算机系统应用, no. 12, pages 179 - 183 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077630A (en) * 2023-08-28 2023-11-17 国任财产保险股份有限公司 Printing method and system for electronic file

Also Published As

Publication number Publication date
CN113535101B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN104378341B (en) Template acquisition methods, template provider method, Apparatus and system
US10121133B2 (en) Method for self-checkout with a mobile device
CN104599165A (en) Network transaction method and associated equipment and systems thereof
US8190494B2 (en) Order processing analysis tool
US20140229337A1 (en) Order management system and order management method thereof
WO2021073477A1 (en) Method and apparatus for supporting modification of consignee information
US20190073649A1 (en) Transaction data processing apparatus connected to an external device for data communication
US9454737B2 (en) Solution that leverages an instant messaging system to manage ad hoc business process workflows
CN113535101B (en) Print file generation method and device, storage medium and electronic equipment
US20230419272A1 (en) System and method for real-time three-party transaction processing
CN110956417A (en) Store commodity processing method and device
CN113296613A (en) Customs clearance information processing method and device and electronic equipment
US20180285799A1 (en) Automated goods-received note generator
US11574280B1 (en) Concatenated shipping documentation processing spawning intelligent generation subprocesses
CN106575415A (en) Techniques for on-line trading of financial securities
CN110751455B (en) Method and device for processing joint service
CN113724051A (en) Information processing method, device, system, equipment and storage medium
US20200118111A1 (en) Displaying electronic change objects
CN109472592B (en) Method and device for managing virtual assets
KR101685113B1 (en) delivery and management system for card slip
CN115358829B (en) Article transaction data processing method and device, storage medium and electronic equipment
JP2017091171A (en) Output control system and output control method
CN117273862A (en) Order processing method and device
CN117853003A (en) Order processing method, device, electronic equipment and storage medium
JP2023122610A (en) Support system, support method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant