CN108229614B - Label generation method, computer readable storage medium and system - Google Patents

Label generation method, computer readable storage medium and system Download PDF

Info

Publication number
CN108229614B
CN108229614B CN201711493245.2A CN201711493245A CN108229614B CN 108229614 B CN108229614 B CN 108229614B CN 201711493245 A CN201711493245 A CN 201711493245A CN 108229614 B CN108229614 B CN 108229614B
Authority
CN
China
Prior art keywords
rule
label
parameter
product
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711493245.2A
Other languages
Chinese (zh)
Other versions
CN108229614A (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.)
Shanghai Zhiyin Information Technology Co ltd
Original Assignee
Shanghai Zhiyin 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 Shanghai Zhiyin Information Technology Co ltd filed Critical Shanghai Zhiyin Information Technology Co ltd
Priority to CN201711493245.2A priority Critical patent/CN108229614B/en
Publication of CN108229614A publication Critical patent/CN108229614A/en
Application granted granted Critical
Publication of CN108229614B publication Critical patent/CN108229614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Abstract

The invention relates to a label generation method, a computer readable storage medium and a system, wherein the label generation method comprises the following steps: establishing a first rule, wherein the first rule is that the label parameters in the label template are matched with at least one rule parameter, and the number of the rule parameters corresponding to each label parameter is adjustable; and establishing a second rule, wherein the second rule sets filling values for the rule parameters. The two-stage rules are realized by establishing the first rule and the second rule, so that the generation and the modification of the label are more flexible, the use quantity of label templates can be reduced, the product label can be efficiently printed on a factory production line, and the development and the maintenance are convenient.

Description

Label generation method, computer readable storage medium and system
Technical Field
The present invention relates to a label generation method, a computer-readable storage medium, and a system, and more particularly, to a label generation method, a computer-readable storage medium, and a system, which can efficiently print product labels and facilitate development and maintenance in a factory line.
Background
At present, in a manufacturing factory, a label printed with specific information of a product needs to be attached to the product on a production line, so that the product has traceability and is convenient to manage. The content of these tags needs to be determined based on some specific information of the product.
However, in actual operation, one enterprise usually produces multiple types of products, labels of different products have different contents, and even the same product may need different labels, which makes development and maintenance of the labels huge.
In order to solve the above-mentioned problems in the prior art, it is highly desirable in the art to provide a label generation method, a computer-readable storage medium, and a system, which can efficiently print product labels on a factory production line and are convenient to develop and maintain.
Disclosure of Invention
The task of the invention is to provide a label generation method, which comprises the following steps:
establishing a first rule, wherein the first rule is that the label parameters in the label template are matched with at least one rule parameter, and the number of the rule parameters corresponding to each label parameter is adjustable;
and establishing a second rule, wherein the second rule sets filling values for the rule parameters.
In the label generation method, the number of the parameters of the label parameter matching rules is adjusted according to the product.
In the label generation method, the second rule sets a parameter type for the rule parameter according to the product, and configures a parameter value under the corresponding parameter type for the rule parameter according to the product.
In the label generation method, when the parameter type of a rule parameter is set as a variable, the content of the parameter value of the rule parameter is obtained by mapping from the information of the corresponding product; and when the parameter type of another rule parameter is set to be constant, the content of the parameter value of the another rule parameter is the parameter value of the another rule parameter, and the corresponding label parameter in the first rule is filled with the parameter value of the another rule parameter.
In the label generation method, the content of the parameter value of the rule parameter is used for filling the corresponding label parameter in the first rule; and/or the presence of a gas in the gas,
in the label generation method, one or more products correspond to one label template; one or more first rules correspond to one label template; one or more first rules correspond to one second rule, or one first rule corresponds to a plurality of second rules.
In the label generating method, the method further comprises:
establishing a corresponding relation between a product and a label template;
and establishing a corresponding relation between the first rule and the label template.
In the label generation method, when a label is printed, a corresponding label template is called according to a product, corresponding rule parameters in a second rule are loaded, and the rule parameters are filled into the corresponding label template according to the second rule and the first rule.
According to another aspect of the invention, there is also provided a computer readable storage medium, having stored thereon a computer program, which when executed by a processor, performs the steps of the method as described in any of the above.
According to still another aspect of the present invention, there is also provided a system comprising:
one or more processors; and
a memory storing executable program instructions that, when executed by the one or more processors, cause the one or more processors to perform a method according to any one of the above.
In the invention, two-stage rules are realized by establishing the first rule and the second rule, so that the generation and modification of the label are more flexible, the use quantity of label templates can be reduced, the product label can be efficiently printed on a factory production line, and the development and maintenance are convenient.
Drawings
To further clarify the above and other advantages and features of embodiments of the present invention, a more particular description of embodiments of the invention will be rendered by reference to the appended drawings. It is appreciated that these drawings depict only typical embodiments of the invention and are therefore not to be considered limiting of its scope. In the drawings, the same or corresponding parts will be denoted by the same or similar reference numerals for clarity.
FIG. 1 illustrates a flow diagram of a tag generation method in one embodiment;
FIG. 2 illustrates a schematic diagram of a label template in one embodiment;
FIG. 3 shows a schematic diagram of a printed label according to the label generation method of the present invention in an embodiment;
FIG. 4 shows a schematic diagram of a printed label according to a label generation method of the present invention in an embodiment;
FIG. 5 shows a schematic diagram of a printed label according to a label generation method of the present invention in an embodiment;
FIG. 6 shows a flow diagram of a tag generation method in yet another embodiment;
FIG. 7 is a schematic diagram of a label template in yet another embodiment;
FIG. 8 shows a schematic diagram of a printed label according to a label generation method of the present invention in a further embodiment;
FIG. 9 is a schematic diagram of yet another label template in yet another embodiment;
fig. 10 shows a schematic diagram of a printed label according to a label generation method of the present invention in a further embodiment;
fig. 11 shows a schematic diagram of a printed label according to a label producing method of the present invention in still another embodiment.
Detailed Description
In the following description, the invention is described with reference to various embodiments. One skilled in the relevant art will recognize, however, that the embodiments may be practiced without one or more of the specific details, or with other alternative and/or additional methods, materials, or components. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of embodiments of the invention. Similarly, for purposes of explanation, specific numbers, materials and configurations are set forth in order to provide a thorough understanding of the embodiments of the invention. However, the invention may be practiced without specific details. Further, it should be understood that the embodiments shown in the figures are illustrative representations and are not necessarily drawn to scale.
Reference in the specification to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
Referring to fig. 1, a label generation method in an embodiment of the present invention is described.
S110: the method comprises the steps of establishing a label template, wherein the label template can be in a special label template editing tool, the label template editing tool can use an existing text typesetting tool, such as Office application software such as Word and Excel developed by Microsoft corporation, but the label template editing tool needs to support label editing, and the label template editing tool can also develop a similar typesetting editing tool according to the requirements of different services.
The tag template comprises at least one tag parameter, and the content of the tag constant is variable. In addition, the tag template may further include at least one tag constant, and the content of the tag constant is not changed, for example, the tag constant may be a word or the like that describes the meaning of the tag constant.
Referring to fig. 2, fig. 2 is a label template. The label template 1 in fig. 2 includes two label parameters V1 and V2, V1 and V2 are only the codes of the label parameters in the label template 1, and do not represent printed contents, and V1 and V2 may also be represented by other codes, for example, by a code such as A, B, which is not listed here. In fig. 2, "name: "," numbering: "is the tag constant. The printed format of the label parameters V1 and V2 can be a text format, a bar code format or a two-dimensional code format, and the like, and the printed format can be edited in a label template editing tool.
S120: and establishing a first rule, wherein the first rule has a corresponding relation with the label template, and the first rule is a label parameter matching rule parameter in the label template. As shown in table 1, the mapping table is a mapping table of the first rule and the tag template, and in table 1, the name of the tag template and the name of the first rule are used to establish the corresponding relationship, but the present invention is not limited to the corresponding method in table 1, and for example, the number of the tag template and the number of the first rule may also be used to establish the corresponding relationship, and it is within the scope of the present invention as long as the first rule and the tag template can be associated with each other.
Figure 1
For example, in a first rule, the rule parameters are respectively matched with the tag parameters V1 and V2 in the tag template in fig. 2, and in a correspondence table (as shown in table 2-1) of the first rule, the tag parameter V1 corresponds to a rule parameter @1, and the tag parameter V2 corresponds to two rule parameters @2 and @ 3.
Figure 2
In different first rules, the number of rule parameters corresponding to different label parameters is adjustable, and specifically, the number of rule parameters matched with each label parameter can be adjusted according to products. For example, in another first rule correspondence table (as shown in table 2-2), tag parameter V1 may correspond to two rule parameters @1, @2, and tag parameter V2 may correspond to one rule parameter @ 3. In different first rules, the number of different label parameters corresponding to the rule parameters is adjustable, and the two first rules of table 2-1 and table 2-2 can share the same label template, so that the number of the label templates can be reduced, and the modification and maintenance of the label are more convenient.
Figure 3
S130: the corresponding relation between the label template and the products is established, each product can correspond to one or more label templates, and a plurality of products can correspond to one label template. In addition, the corresponding relation between the label template and the product type can be established, when a plurality of products can use the same label template, the products can be classified into one type, one type of products corresponds to one label template, and the number of the label templates can be effectively reduced.
To achieve correspondence between the label template and the product, a mapping table of the product and the label template may be established, as shown in table 3-1. In table 3-1, the correspondence relationship is established by the name of the tag template and the product code, but the present invention is not limited to the correspondence method of table 3-1, and for example, the correspondence relationship may also be established by the number of the tag template and the number of the product, as long as the correspondence relationship between the tag template and the product can be realized, which is within the scope of the idea of the present invention.
Figure 4
In addition, in order to implement the correspondence between the label template and the product, a mapping table of the product and the first rule may be established, as shown in table 3-2. Since the first rule has a corresponding relationship with the label template, when the product has a corresponding relationship with the first rule, the corresponding relationship between the product and the label template can be established. In table 3-2, the correspondence relationship is established by the name of the first rule and the product code, but the present invention is not limited to the correspondence method of table 3-2, and for example, the correspondence relationship may also be established by the number of the first rule and the number of the product, as long as the correspondence relationship between the first rule and the product can be realized, which is within the scope of the idea of the present invention.
Figure 5
S140: establishing a second rule, setting parameter values for the rule parameters to fill the parameter values into the corresponding rule parameters, wherein the parameter values can be determined by the product or the product type. The types of the rule parameters can belong to different parameter types, and the parameter types can be dates, serial numbers, constants, variables and the like, wherein the constants can comprise product numbers, label names and the like, and the variables can comprise product numbers, label names and the like. When the parameter type is constant, the parameter value is invariable; when the parameter type is variable, the parameter value can be changed with different products, or the parameter value can be changed with different product types; when the parameter type is date, the parameter value changes with the date; when the parameter type is a serial number, the parameter value varies with the serial number.
Figure 6
For example, in a second rule, parameter values are set for rule parameters @1, @2, and @3 shown in table 1, respectively, in a correspondence table of the second rule (as shown in table 4), the parameter type filled in by the rule parameter @1 is a constant, and the parameter value itself "lower body" (meaning label name) is filled in the rule parameter @1, at this time, the "lower body" is a constant, and the parameter value does not change with the product or the product type, and when a different product or a different product type is printed, the "lower body" is filled in the rule parameter @ 1.
The parameter type filled in the rule parameter @2 is a variable, the parameter value is a product material, and at this time, the product material is changed according to different products, and the content of the product material is filled in the rule parameter @2 according to the corresponding relation between the second rule and the product. For example, when the product material is "PVC" (polyvinyl chloride), "PVC" is the content of the product material, "PVC" is filled in the rule parameter @2, and when the product material is "PP" (polypropylene), "PP" is the content of the product material, "PP" is filled in the rule parameter @ 2.
The rule parameter @3 is filled with a parameter type of date, and a parameter value "yyymmdd" (meaning date) is filled into the rule parameter @3, YYYY representing year, MM representing month, and DD representing day. For example, when the time of printing is 2016, 10 months and 10 days, the content of the parameter value-20161010 is filled in the rule parameter @3, and when the time of printing is 2016, 11 months and 10 days, the content of the parameter value-20161110 is filled in the rule parameter @ 3. Needless to say, the date format is not limited to YYYYMMDD, and may be ddmmyyyyy, etc., which are not listed here.
When multiple products can use the same label template, they can be classified as one type of product. In one type of product, the product names are "lower body", but in this type of product, some materials are PVC and some materials are PP, which need to be distinguished in the printed label. Therefore, it is necessary to establish that at least some parameter values in the second rule have a corresponding relationship with the product, where the some parameter values refer to parameter values with constant parameter types. When various information of the product (including product name, product number, product material, etc.) is determined once the product is determined, the parameter value filled into the variable can be determined.
According to the product corresponding to the second rule, the corresponding relation between the production work order corresponding to the product and part of parameter values in the second rule can be established, the production work order of the product has various information such as product materials, data of the product materials can be called in the production work order and used as the content of the parameter values, and the parameter values representing the product materials are filled in the production work order. In addition, various information of the product production work order can be directly captured from the ERP system, and a special database can be established for storing various information of the product production work order.
The same label template can be used for a plurality of products, the number of the label templates can be reduced, the number of the second rules can be reduced by setting variables, the label contents printed by one type of product can be distinguished, and management and maintenance are facilitated.
Through the steps, a label generating method of the product is established, when the label is printed, the corresponding label template is called according to the product according to the label generating method, the corresponding rule parameters in the second rule are loaded, and the rule parameters are filled into the corresponding label template according to the second rule and the first rule, so that the content printed by the label template can be obtained.
In an embodiment of the present invention, a computer program is stored on a computer readable storage medium, and when the program is executed by a processor, the steps of the tag generation method in the above-mentioned embodiment are implemented.
In an embodiment of the invention, the tag generation method in an embodiment described above is implemented by a system comprising one or more processors and a memory storing executable program instructions that, when executed by the one or more processors, cause the one or more processors to perform the tag generation method described above. When the system includes multiple processors, the system may include a client and a server.
When a label of a product 100 (100 is a code of the product) is printed by using a computer-readable storage medium or system in an embodiment, a label template corresponding to the product 100 is a label template 1 shown in fig. 2, the label template 1 corresponds to a first rule 1 in table 1, a correspondence between a label parameter and a rule parameter in the first rule 1 is shown in table 2-1, a second rule corresponding to the product 100 is shown in table 4, a work order is produced according to the product 100, the content of a product material in table 4 is determined to be PP, and then the printed label is shown in fig. 3.
When a computer-readable storage medium or system in an embodiment is used to print a label of a product 100 (100 is a code of the product), if the label of the product 100 needs to be changed to the format shown in fig. 4, only the correspondence relationship between the first rule and the rule parameter needs to be modified as shown in table 2-2, the label template corresponding to the product 100 is the label template 1 shown in fig. 2, the label template 1 corresponds to the first rule 1 in table 1, the correspondence relationship between the label parameter and the rule parameter in the first rule 1 is shown in table 2-2, the second rule corresponding to the product 100 is shown in table 4, and the printed label is shown in fig. 4 when the content of the product material in table 4 is determined to be PP according to the production order of the product 100. The two labels in fig. 3 and fig. 4 can use the same label template, so that the maintenance and the management are convenient, and the labor efficiency is improved.
When a label of a product 200 (200 is a code of the product) is printed using a computer-readable storage medium or system in an embodiment, the product 200 and the product 100 are products of the same type, the product 200 and the product 100 correspond to a label template 1, the label template 1 corresponds to a first rule 1 in table 1, a correspondence between a label parameter and a rule parameter in the first rule 1 is shown in table 2-1, a second rule corresponding to the product 100 is shown in table 4, a work order is produced according to the product 100, the content of a product material in table 4 is determined to be PVC, and the printed label is shown in fig. 5. The two labels in fig. 3 and fig. 5 can use the same label template, so that the maintenance and the management are convenient, and the labor efficiency is improved.
Referring to fig. 6, a label generation method in a further embodiment of the present invention will be described.
S210: the method comprises the steps of establishing a label template, wherein the label template can be in a special label template editing tool, the label template editing tool can use an existing text typesetting tool, such as Office application software such as Word and Excel developed by Microsoft corporation, but the label template editing tool needs to support label editing, and the label template editing tool can also develop a similar typesetting editing tool according to the requirements of different services.
The tag template comprises at least one tag parameter, and the content of the tag constant is variable. In addition, the tag template may further include at least one tag constant, and the content of the tag constant is not changed, for example, the tag constant may be a word or the like that describes the meaning of the tag constant.
Referring to fig. 7, fig. 7 is a label template. The label template 21 in fig. 7 includes two label parameters V3, V4, V5, V3, V4, and V5 are only the codes of the label parameters in the label template 21, and do not indicate the printed contents, and V3, V4, and V5 may also be indicated by other codes, for example, by a code such as A, B, C, which is not listed here. In fig. 7, "name: "is the tag constant. The printed format of the label parameters V3, V4 and V5 can be a text format, a bar code format or a two-dimensional code format, etc., and the printed format can be edited in a label template editing tool.
S220: the corresponding relation between the label template and the products is established, each product can correspond to one or more label templates, and a plurality of products can correspond to one label template. In addition, the corresponding relation between the label template and the product type can be established, when a plurality of products can use the same label template, the products can be classified into one type, one type of products corresponds to one label template, and the number of the label templates can be effectively reduced.
To implement the correspondence between the label template and the product, a mapping table of the product and the label template may be established, as shown in table 5. In table 5, the correspondence relationship is established by the name of the tag template and the product code, but the present invention is not limited to the correspondence method of table 5, and for example, the correspondence relationship may also be established by the number of the tag template and the number of the product, and it is within the scope of the idea of the present invention as long as the correspondence relationship between the tag template and the product can be realized.
Figure 7
S230: and establishing a corresponding relation between the filling rule and the label template, setting parameter types for the label parameters in the label template according to the product by the filling rule, and configuring parameter values under the corresponding parameter types for the label parameters according to the product. The filling rule sets parameter values for the label parameters to fill the parameter values into the corresponding label parameters, and the parameter values can be determined by products or product types. The type of the tag parameter may belong to different parameter types, and the parameter type may be a date, a serial number, a constant, a variable, and the like, where the constant may include a product number, a tag name, and the like, and the variable may include a product number, a tag name, and the like. When the parameter type is constant, the parameter value is invariable; when the parameter type is variable, the parameter value can be changed with different products, or the parameter value can be changed with different product types; when the parameter type is date, the parameter value changes with the date; when the parameter type is a serial number, the parameter value varies with the serial number.
Figure 8
For example, parameter values are set for the tag parameters V3, V4, and V5 shown in table 1 in a filling rule, respectively, in a correspondence table of a filling rule (as shown in table 6), the type of parameter filled in by the tag parameter V3 is constant, and the parameter value itself "lower body" (meaning tag name) is filled in the tag parameter V3, where "lower body" is constant, and the parameter value does not vary depending on the product or product type, and when a different product or a different product type is printed, the "lower body" is filled in the tag parameter V3.
The parameter type of the filling of the label parameter V4 is variable, the parameter value is product material, and at this time, the product material is changed according to different products, and the content of the product material is filled into the label parameter V4 according to the corresponding relationship between the filling rule and the product. For example, when the product material is "PVC" (polyvinyl chloride), "PVC" is the content of the product material, "PVC" is filled in the label parameter V4, and when the product material is "PP" (polypropylene), "PP" is the content of the product material, "PP" is filled in the label parameter V4.
The parameter type populated by the tag parameter V5 is date, and the parameter value "YYYYMMDD" (meaning date) is populated into the tag parameter V5, YYYY representing year, MM representing month, DD representing day. For example, when the time of printing is 2016, 10 months and 10 days, 20161010, which is the content of the parameter value, is filled in the tag parameter V5, and when the time of printing is 2016, 11 months and 10 days, 20161110, which is the content of the parameter value, is filled in the tag parameter V5. Needless to say, the date format is not limited to YYYYMMDD, and may be ddmmyyyyy, etc., which are not listed here.
When multiple products can use the same label template, they can be classified as one type of product. In one type of product, the product names are "lower body", but in this type of product, some materials are PVC and some materials are PP, which need to be distinguished in the printed label. Therefore, it is necessary to establish that at least some parameter values in the filling rule have a corresponding relationship with the product, where the some parameter values refer to parameter values with constant parameter types. When various information of the product (including product name, product number, product material, etc.) is determined once the product is determined, the parameter value filled into the variable can be determined.
According to the product corresponding to the filling rule, the corresponding relation between the production work order corresponding to the product and part of parameter values in the filling rule can be established, the production work order of the product has various information such as product materials, data of the product materials can be called in the production work order and serve as the content of the parameter values, and the parameter values representing the product materials are filled in the production work order. In addition, various information of the product production work order can be directly captured from the ERP system, and a special database can be established for storing various information of the product production work order.
The same label template can be used for a plurality of products, the number of the label templates can be reduced, the number of filling rules can be reduced by setting variables, the label contents printed by one type of product can be distinguished, and the management and the maintenance are convenient.
Through the steps, a label generating method of the product is established, when the label is printed, the corresponding label template is called according to the product according to the label generating method, the corresponding label parameters in the filling rule are loaded, and the label parameters are filled into the corresponding label template according to the filling rule, so that the content printed by the label template can be obtained.
In another embodiment of the present invention, a computer program is stored on a computer readable storage medium, which when executed by a processor implements the steps of the above-described label generation method.
In yet another embodiment of the present invention, the above tag generation method is implemented by a system comprising one or more processors and a memory storing executable program instructions that, when executed by the one or more processors, cause the one or more processors to perform the above tag generation method. When the system includes multiple processors, the system may include a client and a server.
When a label of a product 2100 (2100 is a code of a product) is printed using a computer-readable storage medium or system, a label template corresponding to the product 2100 is the label template 21 shown in fig. 7, the label template 21 corresponds to the label template 21 in table 5, a filling rule corresponding to the product 2100 is shown in table 6, and if a work order is produced according to the product 2100, it is determined that the content of a product material in table 6 is PP, and then the printed label is shown in fig. 8.
When printing a label of a product 2100 (2100 is a code of a product) using a computer-readable storage medium or system, if the label of the product 2100 needs to be changed to the format shown in fig. 10, a label template 22 shown in fig. 9 needs to be selected, the label template 22 corresponds to the filling rule in table 6, a work order is produced according to the product 2100, the content of the product material in table 6 is determined to be PP, and the printed label is as shown in fig. 10.
When a label of the product 2200 (2200 is a code of a product) is printed using a computer-readable storage medium or system, the product 2200 and the product 2100 are of the same type, the product 2200 and the product 2100 correspond to the same label template 21, the label template 21 corresponds to the label template 21 in table 5, the filling rule corresponding to the product 2100 is shown in table 6, and if a work order is produced according to the product 2100, it is determined that the content of the product material in table 6 is PVC, and the printed label is shown in fig. 11. The two labels in fig. 8 and fig. 11 can use the same label template, so that the maintenance and management are convenient, and the labor efficiency is improved.
In the invention, two-stage rules are realized by establishing the first rule and the second rule, so that the generation and modification of the label are more flexible, the use quantity of label templates can be reduced, the product label can be efficiently printed on a factory production line, and the development and maintenance are convenient.
While several embodiments of the present invention have been described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. Numerous variations, substitutions and modifications will occur to those skilled in the art without departing from the scope of the invention. It is intended that the following claims define the scope of the invention and that methods and structures within the scope of these claims and their equivalents be covered thereby.

Claims (10)

1. A tag generation method, comprising:
establishing a corresponding relation between a product and a label template, wherein the label template comprises at least one label parameter and a label constant, and indicates a format and a typesetting of label printing;
establishing a first rule, wherein the first rule is that the label parameters in the label template are matched with at least one rule parameter, and the number of the rule parameters corresponding to each label parameter is adjustable;
establishing a second rule, wherein the second rule sets a parameter type and a parameter value for the rule parameter in the first rule, the parameter type is configured to be constant or variable, and when the parameter type is constant, the parameter value of the rule parameter does not change with different products or different product types; when the parameter type of the rule parameter is set as a variable, the parameter value of the rule parameter changes with different products or different product types;
printing a label of the product, wherein the label of the product comprises the label constant, a first parameter value and a second parameter value, the parameter type corresponding to the first parameter value is a constant, and the parameter type corresponding to the first parameter value is a variable.
2. The label generation method of claim 1, wherein the number of matching of the label parameters to the rule parameters is adjusted according to a product.
3. A label generation method as claimed in claim 1 or 2, wherein said second rule sets a parameter type for said rule parameter according to the product, and configures a parameter value under the corresponding parameter type for said rule parameter according to the product.
4. The label generating method according to claim 3, wherein when the parameter type of the rule parameter is set as a variable, the content of the parameter value of the rule parameter is mapped from the information of the corresponding product; and when the parameter type of the rule parameter is set to be constant, the content of the parameter value of the rule parameter is the parameter value of the rule parameter, and the parameter value of the rule parameter is used for filling the corresponding label parameter in the first rule.
5. The label generation method of claim 4, wherein the corresponding label parameter in the first rule is filled with the content of the parameter value of the rule parameter.
6. A label generation method according to claim 1, wherein one or more products correspond to a label template; or, one or more first rules correspond to one label template; one or more first rules correspond to one second rule, or one first rule corresponds to a plurality of second rules.
7. The label generation method of claim 1, further comprising:
and establishing a corresponding relation between the first rule and the label template.
8. The label generating method according to claim 1, wherein when printing a label, the corresponding label template is called according to a product, the corresponding rule parameter in the second rule is loaded, and the rule parameter is filled in the corresponding label template according to the second rule and the first rule.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 8.
10. A system, comprising:
one or more processors; and
a memory storing executable program instructions that, when executed by the one or more processors, cause the one or more processors to perform the method of any one of claims 1-8.
CN201711493245.2A 2017-12-31 2017-12-31 Label generation method, computer readable storage medium and system Active CN108229614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711493245.2A CN108229614B (en) 2017-12-31 2017-12-31 Label generation method, computer readable storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711493245.2A CN108229614B (en) 2017-12-31 2017-12-31 Label generation method, computer readable storage medium and system

Publications (2)

Publication Number Publication Date
CN108229614A CN108229614A (en) 2018-06-29
CN108229614B true CN108229614B (en) 2021-12-14

Family

ID=62644882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711493245.2A Active CN108229614B (en) 2017-12-31 2017-12-31 Label generation method, computer readable storage medium and system

Country Status (1)

Country Link
CN (1) CN108229614B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110895463B (en) * 2018-09-13 2023-06-20 百度在线网络技术(北京)有限公司 Label processing method, device, equipment and computer readable storage medium
CN109767316A (en) * 2018-12-14 2019-05-17 深圳壹账通智能科技有限公司 Regular configuration method, device, computer equipment and storage medium
CN109808328B (en) * 2019-02-20 2021-12-21 广州凯乐仕科技有限公司 Logistics label printing method and device
CN111208995A (en) * 2019-12-20 2020-05-29 中国建设银行股份有限公司 Method, system, device and storage medium for automatically generating IBM host job
CN117032602B (en) * 2023-10-10 2024-01-26 海通安恒科技股份有限公司 Printing method and system for rapidly realizing label field mapping and label rule configuration

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
CN104778021A (en) * 2015-04-23 2015-07-15 歌尔声学股份有限公司 Packaging label printing method and system
CN106814982A (en) * 2017-01-04 2017-06-09 北京京东尚科信息技术有限公司 Label print processing device, system and method
CN106933899A (en) * 2015-12-30 2017-07-07 远光软件股份有限公司 Form processing method and device
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN107391914A (en) * 2017-07-06 2017-11-24 沈阳东软医疗系统有限公司 A kind of method for displaying parameters, device and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9588704B2 (en) * 2014-12-23 2017-03-07 Commvault Systems, Inc. Secondary storage operation instruction tags in information management systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
CN104778021A (en) * 2015-04-23 2015-07-15 歌尔声学股份有限公司 Packaging label printing method and system
CN106933899A (en) * 2015-12-30 2017-07-07 远光软件股份有限公司 Form processing method and device
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN106814982A (en) * 2017-01-04 2017-06-09 北京京东尚科信息技术有限公司 Label print processing device, system and method
CN107391914A (en) * 2017-07-06 2017-11-24 沈阳东软医疗系统有限公司 A kind of method for displaying parameters, device and equipment

Also Published As

Publication number Publication date
CN108229614A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108229614B (en) Label generation method, computer readable storage medium and system
TWI663553B (en) Method and device for generating contract
CN106814982A (en) Label print processing device, system and method
CN108536658B (en) Method and device for generating custom tag data
CN107783949B (en) PPT document processing method and device
CN104636428A (en) Trademark recommendation method and device
CN111159982B (en) Document editing method, device, electronic equipment and computer readable storage medium
CN113609820A (en) Method, device and equipment for generating word file based on extensible markup language file
WO2020015220A1 (en) Method and apparatus for downloading data based on pdf document, and storage medium and terminal
CN108021629B (en) Method, device and system for generating advertisement material data
CN104572744A (en) Structured document generating method and device
CN104636867A (en) Method and device for quickly generating material code from texture in ERP system
CN108228116A (en) Label generating method, computer readable storage medium and system
CN111444368B (en) Method and device for constructing user portrait, computer equipment and storage medium
CN110716775B (en) Traceable template configuration method, electronic device, storage medium and system
CN108196921B (en) Document development method and device, computer equipment and storage medium
US11048864B2 (en) Digital annotation and digital content linking techniques
US20180300297A1 (en) Page structure adjustments
CN114691712A (en) Method and device for generating bill and storage medium
CN111241788B (en) Document conversion method, device, equipment and storage medium based on linear model
CN114282499A (en) Document generation method and device with customized chart, electronic equipment and medium
CN109376554B (en) Multi-terminal electronic document examination and signature method and system based on labels and views
CN102521327A (en) Method and system for demonstrating electronic form
CN110019968B (en) XML file processing method and device
CN102442047A (en) Label processing method for board combination

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