CN110378441B - Label printing method and system - Google Patents
Label printing method and system Download PDFInfo
- Publication number
- CN110378441B CN110378441B CN201910608781.5A CN201910608781A CN110378441B CN 110378441 B CN110378441 B CN 110378441B CN 201910608781 A CN201910608781 A CN 201910608781A CN 110378441 B CN110378441 B CN 110378441B
- Authority
- CN
- China
- Prior art keywords
- information
- domain
- bar code
- visualization
- label
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
- G06K15/18—Conditioning data for presenting it to the physical printing elements
- G06K15/1801—Input data handling means
- G06K15/1822—Analysing the received data before processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
- G06K15/18—Conditioning data for presenting it to the physical printing elements
- G06K15/1894—Outputting the image data to the printing elements
- G06K15/1898—Outputting the image data to the printing elements while adapting the order of the data to the printing elements' arrangement, e.g. row-to-column conversion
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Record Information Processing For Printing (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses a label printing method and a label printing system, and relates to the technical field of information output. After acquiring the visualization domain information and the bar code domain information, correspondingly analyzing to obtain a visualization domain and a bar code domain, then correspondingly setting a null visualization domain and a null bar code domain, combining the acquired visualization domain information and the null bar code domain information to obtain information of a visualization information output line, combining the acquired bar code domain information and the null visualization domain information to obtain information of a bar code information output line, and finally, respectively printing the information of each output line on one-in-one label paper to obtain a visualization label and a bar code label. By adopting the scheme provided by the invention, only one-in-one label paper is needed, so that the waste of opening the molds of various printing templates, the waste of label paper in various formats and the waste caused by tail flicking due to the replacement of label paper in different formats can be avoided, the cost is greatly reduced, and the economic benefit is very high.
Description
Technical Field
The invention relates to the technical field of information output, in particular to a label printing method and a label printing system.
Background
A product may contain various information, such as parameter information, component information, performance information, etc., which is printed on a label paper to form a label for display in order to be known.
In the manufacturing process, people may need the information of the part and the parameter of the product, in the sales and installation process, the maintenance regulations related to the three policies and the like, people may need the individual serial number of the product and the characteristic information of the corresponding performance product, for example, in the manufacturing process of a refrigerator product, an operator may need to know the information of a door handle of the refrigerator product, the information of a circuit board or the information of an outer paint and the like, in the sales and installation process of the refrigerator, a consumer may need to know whether the refrigerator product is a national energy-saving subsidy product or the power consumption information and the like, and in the delivery and installation of the refrigerator, a bar code is needed to be used as an information carrier of a single product, so that subsequent tracking service is facilitated. In order to display the different information to different people according to different requirements, label paper with different formats is generally required in the label printing process, and then label templates with different formats are required to be used. For example, in the manufacturing process of a refrigerator, if three types of information are required, a triple type of label paper needs to be used, and further, a triple type of label template needs to be used, the three types of information are classified and defined, and are selectively printed on the triple type of label paper according to the use scene, and one type of information is printed in each series; in the process of selling and installing the refrigerator, if four kinds of information are needed, quadruplicate label paper needs to be used, further quadruplicate label templates need to be used, the four kinds of information are classified and defined, the four kinds of information are selectively printed on the quadruplicate label paper according to the use scenes, and one kind of information is printed on each pair of label paper.
Therefore, for the same product, according to application requirements, multiple label templates and label paper may need to be used, so that a supplier needs to develop multiple label templates and prepare multiple label paper, and the waste of mold opening of the supplier is caused; in addition, in the process of label printing, the label template and the label paper need to be frequently replaced according to needs, and each time the label paper is replaced, a large amount of label paper used last time may remain, and waste caused by tail flicking of the label paper may be caused.
This waste causes a cost increase, and in the case where a large number of labels are printed in order to produce a large number of products in the manufacturing industry, the amount of this waste and the cost increase are enormous, and therefore, it is necessary to develop a technique for avoiding this waste and reducing the cost.
Disclosure of Invention
It is an object of the present invention to provide a label printing method and system, thereby solving the aforementioned problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
one aspect of the present invention provides a label printing method, including the steps of:
s1, acquiring information of each visualization domain and information of each bar code domain from a work order according to visualization domain items and bar code domain items to be printed;
s2, analyzing the information of each visualization domain to obtain a corresponding visualization domain, and analyzing the information of each bar code domain to obtain a corresponding bar code domain;
s3, setting corresponding null value visualization domains according to the visualization domains obtained in the S2, wherein the information of the null value visualization domains is null, setting corresponding null value barcode domains according to the barcode domains obtained in the S2, and the information of the null value barcode domains is null;
s4, storing the information of each visualization domain obtained in S1 and the information of each null value bar code domain set in S3 into a visualization information output line; storing the information of each bar code domain obtained in the S1 and the information of each null value visualization domain set in the S3 into a bar code information output line;
and S5, respectively printing the non-empty information of each output row on the label paper in one-to-one connection, wherein one row of information corresponds to one label paper, and obtaining the visual label and the bar code label.
Preferably, S1 further comprises before:
s01, constructing a work order subsystem, wherein the work order subsystem comprises a visualization domain module and a bar code domain module, and the visualization domain module comprises a plurality of visualization domain fields and corresponding information fields of the visualization domains; the bar code domain module comprises a plurality of bar code domain fields and information fields of corresponding bar code domains;
s02, assigning values to each visualization domain field and the corresponding information field of the visualization domain according to label printing requirements; and respectively assigning values to each barcode domain field and the information field of the corresponding barcode domain.
Preferably, in S02, each visualized domain information is separated by a separator, and each barcode domain information is separated by a separator.
Preferably, in S4, the number of the visualization information output lines and the number of the barcode information output lines are determined according to the number of prints of the specified visualization tags and barcode tags.
Preferably, in S4, the information of each visualization field obtained in S1 and the information of each null barcode field set in S3 are stored in a visualization information output line, and the implementation is specifically performed by the following method:
acquiring the printing quantity of the work order, and expressing the printing quantity by a variable n;
acquiring the number of items of the visualized domain and the number of items of the bar code domain which are obtained by analysis in the S2, wherein the numbers are respectively expressed by m and t;
acquiring the information printing number of copies of the visualization domain and the information printing number of copies of the barcode domain, which are respectively expressed by x and y;
for each work order, generating x rows of visualization information output lines, wherein data of each row of visualization information output lines are composed of information of m visualization fields obtained in S1 and information of t null value bar code fields set in S3, and the information of the m visualization fields is positioned in front of the information of the t null value bar code fields;
generating the visualization output lines for a total number of lines = n x for n work orders.
Preferably, in S4, the information of each barcode field obtained in S1 and the information of each null value visualization field set in S3 are stored in a barcode information output row, and the following method is specifically adopted to implement:
acquiring the printing quantity of the work order, and expressing the printing quantity by a variable n;
acquiring the number of items of the visualized domain and the number of items of the bar code domain which are obtained by analysis in the S2, wherein the numbers are respectively expressed by m and t;
acquiring the number of printing copies of the information of the visualization domain and the number of printing copies of the information of the barcode domain, which are set by a user, and respectively representing the numbers by x and y;
for each work order, y rows of bar code information output rows are generated, data of each row of bar code information output row are composed of information of m null value visualization domains set in S3 and information of t bar code domains obtained in S1, and the information of the m null value visualization domains is located in front of the information of the t bar code domains;
and generating the bar code information output row with the total row number = n x y for n work orders, and adding 1 to the bar code serial number in the bar code domain item from the beginning of the flow when y rows are generated each time until the total number n of the work orders is circulated.
Preferably, S5 specifically includes the following steps:
s501, reading information in the visual information output line and the bar code information output line by line;
s502, outputting information of each output row of the visual information, and printing the information on one-in-one label paper, wherein one row of information corresponds to one label paper, and the output null value information is printed to be blank to obtain a visual label; and outputting information of each bar code information output line, and printing the information on the label paper in one-to-one connection, wherein one line of information corresponds to one piece of label paper, and the output null value information is printed to be blank to obtain the bar code label.
Another aspect of the present invention provides a label printing system, including:
the printing system comprises a to-be-printed item presetting module, a printing module and a printing module, wherein the to-be-printed item presetting module is used for setting a visual domain item and a bar code domain item to be printed;
the data acquisition module is used for acquiring information of each visual domain to be printed and information of each bar code domain from a work order;
the data analysis module is used for analyzing the information of each visualization domain acquired in the data acquisition module to obtain a corresponding visualization domain, and is also used for analyzing the information of each barcode domain acquired in the data acquisition module to obtain a corresponding barcode domain;
the null value field setting module is used for setting corresponding null value visualization fields according to the visualization fields obtained by analysis in the data analysis module, setting corresponding null value barcode fields according to the barcode fields obtained by analysis in the data analysis module, and setting the information of the null value barcode fields to be null;
a merged domain module, configured to store the information of each visualized domain acquired in the data acquisition module and the information of each null barcode domain set in the null domain setting module in a visualized information output line; the system is also used for storing the visualized domain information of each empty value domain set in the empty value domain setting module and the information of each bar code domain acquired in the data acquisition module into a bar code information output line;
and the printing module is used for respectively printing the non-empty information of each output row on the label paper in one-to-one connection, and one row of information corresponds to one piece of label paper to form a visual label and a barcode label.
Preferably, the printing system further comprises a work order subsystem, wherein the work order subsystem comprises a visualization domain module and a barcode domain module, and the visualization domain module comprises a plurality of visualization domain fields and corresponding visualization domain information fields; the bar code domain module comprises a plurality of bar code domain fields and corresponding bar code domain information fields.
Preferably, the printing module comprises:
the printing information reading module is used for reading the information in the visual information output line and the bar code information output line from the merging domain module line by line;
the printing processing module is used for acquiring information of each visualized information output line, and printing the information on one line of label paper in one-to-one correspondence, wherein the output null value information is printed as blank to obtain a visualized label; and the bar code label printing system is also used for acquiring information of each bar code information output line, and printing the information on one-line label paper, wherein one line of information corresponds to one piece of label paper, and the output null value information is printed as blank to obtain the bar code label.
The invention has the beneficial effects that: according to the label printing method and system, after the visualization domain information and the bar code domain information are obtained, the visualization domain and the bar code domain are obtained through corresponding analysis, then the null visualization domain and the null bar code domain are correspondingly set, the obtained visualization domain information and the null bar code domain information are combined to obtain information of a visualization information output line, the obtained bar code domain information and the null visualization domain information are combined to obtain information of a bar code information output line, finally, the information of each output line is respectively printed on one piece of label paper, and one piece of information corresponds to one piece of label paper, wherein the output null information is printed to be blank, and the visualization label and the bar code label are obtained. By adopting the scheme provided by the invention, the printing of different products with different printing requirements can be finished by only using the one-in-one label paper, the waste of opening the molds of various printing templates, the waste of label paper with various formats and the waste caused by tail flicking caused by replacing label paper with different formats can be avoided, the cost is greatly reduced, and the method has high economic benefit and social benefit.
Drawings
FIG. 1 is a schematic flow chart of a label printing method provided by the present invention;
FIG. 2 is a schematic view of a piece of label paper in one piece;
FIG. 3 is a schematic representation of a triplicate label sheet;
FIG. 4 is a schematic illustration of a four-up label sheet;
FIG. 5 is a schematic diagram of the interface after assignment of the work order subsystem;
fig. 6 is a schematic structural diagram of a label printing system provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Example one
As shown in fig. 1, the present invention provides a label printing method, including the steps of:
s1, acquiring information of each visualization domain and information of each bar code domain from a work order according to visualization domain items and bar code domain items to be printed;
in the practical application process, a user can set visual domain items and barcode domain items to be printed according to the printing requirements. And after the system acquires the to-be-printed item set by the user, acquiring a corresponding source value from the work order.
The work order comprises information of visual domain items and bar code domain items to be printed, the visual domain items and the bar code domain items can be divided according to business requirements, and the business requirements can be information users or scenes, such as use in internal production of manufacturing enterprises or use in consumption places or consumers. The visualization domain information corresponds to the visualization domains one by one, namely one visualization domain corresponds to one visualization domain information, and the bar code domain information corresponds to the bar code domain one by one, namely one bar code domain corresponds to one bar code domain information. For example, one visualization domain is "refrigerator body color", the visualization domain information corresponding to the visualization domain is "white", the other visualization domain is "refrigerator door handle", the visualization domain information corresponding to the visualization domain is "a +", one bar code domain is "bar code number", the bar code domain information corresponding to the bar code domain is "SN20140421XX0001 (16-bit code from start code to end code)", the other bar code domain is "worksheet number" (also called job number), and the bar code domain information corresponding to the bar code domain is "G2427096012". Therefore, according to the visualization domain, the corresponding visualization domain information can be acquired, whereas according to the visualization domain information, the corresponding visualization domain can also be acquired, and the same applies to the barcode domain.
S2, analyzing the information of each visualization domain to obtain a corresponding visualization domain, and analyzing the information of each bar code domain to obtain a corresponding bar code domain;
according to the one-to-one correspondence relationship between the visualization domain and the visualization domain information and the one-to-one correspondence relationship between the barcode domain and the barcode domain information, the visualization domain and the barcode domain can be obtained respectively according to the information of the visualization domain and the information of the barcode domain obtained in the step S1. For example, the visualized area information is "white", and the visualized area is "refrigerator body color" by analysis.
S3, setting corresponding null value visualization domains according to the visualization domains obtained in the S2, wherein the information of the null value visualization domains is null, setting corresponding null value barcode domains according to the barcode domains obtained in the S2, and the information of the null value barcode domains is null;
this step is illustrated by the following example.
For example, the visualization domain obtained in S2 includes visualization domain 1 (refrigerator body color) and visualization domain 2 (door handle), and the information of the two corresponding visualization domains is white and a +; two null visualization fields can be set to: the information of the null value visualization field 1 is null, that is, the information of the null value visualization field 1 is null, and the information of the null value visualization field 2 is null.
For example, the barcode field obtained in S2 includes barcode field 1 (barcode number) and barcode field 2 (work order number), and the information of the two corresponding barcode fields is "SN20140421XX0001" and "G2427096012", respectively, and two null barcode fields may be set as: null value bar code field 1 (bar code number) and null value bar code field 2 (work order number), and the corresponding information is null, namely the information of null value bar code field 1 is null, and the information of null value bar code field 2 is null.
S4, storing the information of each visualization domain obtained in S1 and the information of each null value bar code domain set in S3 into a visualization information output line; storing the information of each bar code domain obtained in the S1 and the information of each null value bar code domain set in the S3 into a bar code information output row;
this step is illustrated by the following example.
Storing the information of the visualization domain 1 and the visualization domain 2 obtained in the step S1 and the information of the null value barcode domain 1 and the null value barcode domain 2 set in the step S3 into a visualization information output line, wherein the obtained information of the visualization information output line is as follows: visualization of information in field 1, 947878, visualization of information in field 2, 9478, blank (blank here means that the output value is blank);
storing the information of the barcode domain 1 and the barcode domain 2 obtained in the step S1 and the information of the null visualization domain 1 and the null visualization domain 2 set in the step S3 into a barcode information output row, wherein the obtained barcode information output row information is as follows: blank 9478, information of barcode field 1, 9478, and information of barcode field 2 (blank here means that the output value is blank).
And S5, respectively printing the non-empty information of each output row on one piece of label paper in one connection, wherein one row of information corresponds to one piece of label paper, and obtaining the visual label and the bar code label.
This step is illustrated by the following example.
If the information of the visualized information output row is: the method comprises the steps of visualizing information \9478ofa domain 1, visualizing information \9478ofa domain 2, blank \9478, outputting the information of the line and printing the information on one-in-one label paper, wherein blank information is printed to be blank, non-blank information is printed according to actual information, and the visualized information output line is printed: in the case of blank, only the information of the visualized area 1 and the information of the visualized area 2 are printed, so that only the information of the visualized area obtained from the work order is printed on the one-piece label paper, and the information of the barcode area obtained from the work order is not printed, thereby obtaining the one-piece visualized area label.
Similarly, if the bar code information output row information is: and outputting and printing the information of the row on one-piece label paper according to the information of a blank 947878, a blank 9478, a bar code field 1, a bar code field 2, wherein the blank information is printed as a blank value, the non-blank information is printed according to actual information, namely the bar code information is printed and output row: the method comprises the steps of printing information of a bar code field 1 and information of a bar code field 2, printing the information of the bar code field 1 and the information of the bar code field 2, and printing the information of the bar code field obtained from a work order on the one-piece one-to-one label paper without printing visual domain information obtained from the work order, so that the one-piece one-to-one bar code field label is obtained.
If the multi-link visual domain label or the bar code domain label needs to be printed, a plurality of lines of visual information output lines or bar code information output lines are generated only according to the specified number, and the multi-link visual domain label or the bar code domain label can be formed by printing each line of information, so that the same function as that of the one-piece multi-link label is realized.
In which, the one-in-one label paper is shown in fig. 2, the one-in-three label paper is shown in fig. 3, and the one-in-four label paper is shown in fig. 4.
If the prior art is adopted, the work order comprising the information of the visualization domain 1, the information of the visualization domain 2, the information of the bar code domain 1 and the information of the bar code domain 2 is printed, if the product needs label paper in two couples, namely, the information of the visualization domain 1 and the information of the visualization domain 2 are printed in one couple, and the information of the bar code domain 1 and the information of the bar code domain 2 are printed in the other couple. If another product is replaced, the barcode content to be printed in the work order of the product is added with the information of the barcode field 3 and the information of the barcode field 4 at the same time, the output value information of the barcode field 3 and the barcode field 4 needs to be added in the barcode field information corresponding to the output barcode field item, if the product is produced and sold, or the customer needs to define a triple label, the information of the barcode field 1 to the information of the barcode field 4 needs to be printed in another triple besides visualization, and the original two-in-one label paper needs to be replaced with the triple label paper. Therefore, by adopting the prior art, according to the printing bar code number demand of different products, various printing templates and printing label paper need to be prepared, the waste of mould opening of suppliers can be caused, and meanwhile, the material waste and the operation efficiency loss caused by the tail drifting of the label paper can also be caused.
The method provided by the invention can be used for printing different printing requirements of different products only by using label paper with one format, namely label paper in one-to-one connection, so that the method provided by the invention does not need a supplier to open the mould of a plurality of printing templates, does not need to prepare label paper with a plurality of formats, such as one-to-one, four-to-one, six-to-one and the like, and further does not waste caused by tail flick due to the fact that the label paper with different formats is required to be replaced according to the printing requirements.
Therefore, the printing method provided by the invention can avoid the waste of label paper and the waste of opening of various printing templates, reduce the cost and have high economic benefit and social benefit.
According to the method provided by the invention, in the actual application process, the information contained in the work order can be formed by applying the work order subsystem. Specifically, the method can be implemented according to the following steps:
s01, constructing a work order subsystem, wherein the work order subsystem comprises a visualization domain module and a bar code domain module, and the visualization domain module comprises a plurality of visualization domain fields and corresponding information fields of the visualization domains; the bar code domain module comprises a plurality of bar code domain fields and information fields of corresponding bar code domains;
s02, respectively assigning values to each visual domain field and the corresponding visual domain information field according to label printing requirements; and respectively assigning values to each barcode field and the information field of the corresponding barcode field.
Wherein, in the manufacturing industry, the visualization domain field may include: a trade mark, a reference model/box color/door handle, a compressor 1 description/compressor 1 power supply/compressor 1 refrigerant charge, a compressor 2 description/compressor 2 power supply/compressor 2 refrigerant charge, a sight code, a complete machine code, a design code, a unit, an assembly description, a home appliance country model corresponding value, a unit price, a work order number, an assembly code and the like; the barcode field may include: brand, customer type, color, complete machine number, date, commodity inspection number, reference model/box body color/door handle, press 1 description/press 1 power supply/press 1 refrigerant charge amount, press 2 description/press 2 power supply/press 2 refrigerant charge amount, visual code, complete machine number, design code, unit, assembly part description, home appliance country model corresponding value, unit price, work order number, assembly part code and the like.
As an example, according to the label printing requirement, the interface after assigning values to the multiple visualization domain fields and the corresponding visualization domain information fields included in the work order subsystem can be seen in fig. 5.
Each piece of visualized domain information formed in step S02 may be separated from each other by a separator, and each piece of barcode domain information may be separated from each other by a separator.
In the present invention, in S4, the number of the visualization information output lines and the number of the barcode information output lines are determined according to the number of prints of the specified visualization tags and the specified barcode tags.
In an embodiment of the present invention, in S4, the storing of the information of each visualization field obtained in S1 and the information of each null barcode field set in S3 into a visualization information output line is specifically performed by the following method:
acquiring the printing quantity of the work order, and expressing the printing quantity by using a variable n;
acquiring the item number of the visualized domain and the item number of the barcode domain which are obtained by analyzing in the S2, wherein the item numbers are respectively expressed by m and t;
acquiring the information printing number of copies of the visualization domain and the information printing number of copies of the barcode domain, which are respectively expressed by x and y;
for each work order, x rows of visualization information output rows are generated, data of each row of visualization information output rows are composed of information of m visualization fields obtained in S1 and information of t null value bar code fields set in S3, and the information of the m visualization fields is located in front of the information of the t null value bar code fields;
generating the visualized information output line with total line count = n x for n work orders. In addition, in S4, the information of each barcode field obtained in S1 and the information of each null value visualization field set in S3 are stored in a barcode information output row, and the following method is specifically adopted to implement:
acquiring the printing quantity of the work order, and expressing the printing quantity by a variable n;
acquiring the number of items of the visualized domain and the number of items of the bar code domain which are obtained by analysis in the S2, wherein the numbers are respectively expressed by m and t;
acquiring the number of printing copies of the information of the visualization domain and the number of printing copies of the information of the barcode domain, which are set by a user and are respectively expressed by x and y;
for each work order, y rows of bar code information output rows are generated, data of each row of bar code information output row are composed of information of m null value visualization domains set in S3 and information of t bar code domains obtained in S1, and the information of the m null value visualization domains is located in front of the information of the t bar code domains;
and generating the bar code information output row with the total row number = n x y for n work orders, and adding 1 to the bar code serial number in the bar code field item from the beginning of the flow when the y rows are generated each time until the total number n of the work orders circulates.
The implementation of the above method is explained in more detail by the following examples.
If n =1,m =2,x =2,t =2,y =2, the output row of barcode information and visual information is 2 rows, respectively, for a total of 4 rows.
Assuming that the visualization domain items include visualization domain 1 and visualization domain 2, the barcode domain items include barcode domain 1 and barcode domain 2,
then the 2 lines of barcode information output lines are:
blank 9478, blank 947878, bar code field 1 information 947878, bar code field 2 information,
the 2 visual information output lines are all as follows:
the method comprises the steps of visualizing information of a domain 1, 9478, visualizing information of a domain 2, 9478and blank.
If n is more than or equal to 2,m =2,x =2,t =2,y =2, the output bar code information output line and the visualization information output line are respectively 2 lines for each work order and totally 4 lines, the output bar code information output line and the visualization information output line of each unit are respectively 4 lines for the work orders with more than two products, the n products are totally 4n lines, in the actual output process, according to the serial number of the work order, the bar code information output line and the visualization information output line information of the first work order are output firstly, then the bar code information output line and the visualization information output line information of the second work order are output, and the like. And when printing, printing is carried out according to the sequence of data output.
Assuming that the visualization field items in each work order include visualization field 1 and visualization field 2, the barcode field items include barcode field 1 and barcode field 2,
then, outputting the bar code information output row of 2 rows of the first work order:
blank 9478, information 9478of bar code field 1 and information of bar code field 2,
and 2 visual information output lines of the first work order:
the information of the domain 1 was visualized 947878, the information of the domain 2 was visualized 9478, and the space was 9478.
And then outputting 2 lines of bar code information output lines of a second work order:
blank 9478, blank 947878, bar code field 1 information 947878, bar code field 2 information,
and 2 visual information output lines of the second work order:
the method comprises the steps of visualizing information of a domain 1, 9478, visualizing information of a domain 2, 9478and blank.
And so on, outputting all the information of the bar code information output line and the visual information output line of the n work orders.
The visualization field 1 and the visualization field 2 only represent two visualization items, the barcode field 1 and the barcode field 2 only represent two barcode items, in different work orders, the visualization field 1 may take different values, the visualization field 2 may take different values, the barcode field 1 may take different values, and the barcode field 2 may take different values or the same value.
For example, if the serial number of the work order is one of the barcode field items, the barcode field items of the serial number in the 2 lines of barcode information output line information corresponding to the different work orders are different, for example, when n =2 and the serial numbers of the two work orders are SN001 and SN002 in sequence, then the serial numbers of the two work orders are SN002 and SN001
Outputting 2 lines of bar code information of the first work order output row:
blank 9478, blank 947878, SN001 9478and bar code field 2,
and then outputting 2 lines of bar code information of the second work order:
blank 9478, blank 947878, SN002 9478and bar code field 2.
If the serial number of the work order is not one of the bar code field items, the bar code information output line information of 2 lines output corresponding to different work orders may be the same (when the visualization field 1, the visualization field 2, the bar code field 1 and the bar code field 2 respectively take the same value in the work orders 1 and 2).
In one embodiment of the present invention, S5 specifically may include the following steps:
s501, reading information in the visual information output line and the bar code information output line by line;
s502, outputting information of each output row of the visual information, and printing the information on one-in-one label paper, wherein one row of information corresponds to one label paper, and the output null value information is printed to be blank to obtain a visual label; and outputting information of each bar code information output line, and printing the information on the label paper in one-to-one connection, wherein one line of information corresponds to one piece of label paper, and the output null value information is printed to be blank to obtain the bar code label.
Example two
As shown in fig. 6, the present invention provides a label printing system including:
the printing system comprises a to-be-printed item presetting module, a printing module and a printing module, wherein the to-be-printed item presetting module is used for setting a visual domain item and a bar code domain item to be printed;
the data acquisition module is used for acquiring information of each visual domain to be printed and information of each bar code domain from a work order;
the data analysis module is used for analyzing the information of each visualization domain acquired by the data acquisition module to obtain a corresponding visualization domain and analyzing the information of each bar code domain acquired by the data acquisition module to obtain a corresponding bar code domain;
the null value domain setting module is used for setting corresponding null value visualization domains according to all visualization domains obtained by analysis in the data analysis module, setting corresponding null value barcode domains according to all barcode domains obtained by analysis in the data analysis module, and setting the information of the null value barcode domains to be null;
a merged domain module, configured to store the information of each visualized domain acquired in the data acquisition module and the information of each null barcode domain set in the null domain setting module in a visualized information output line; the data acquisition module is used for acquiring the bar code information of each blank visual domain set in the blank domain setting module and the bar code domain acquired in the data acquisition module;
and the printing module is used for respectively printing the non-empty information of each output row on the label paper in one-to-one connection, and one row of information corresponds to one piece of label paper to form a visual label and a barcode label.
The printing system also comprises a work order subsystem, wherein the work order subsystem comprises a visualization domain module and a bar code domain module, and the visualization domain module comprises a plurality of visualization domain fields and corresponding visualization domain information fields; the bar code domain module comprises a plurality of bar code domain fields and corresponding bar code domain information fields.
The printing module includes:
the printing information reading module is used for reading the information in the visual information output line and the bar code information output line from the merging domain module line by line;
the printing processing module is used for acquiring information of each visualized information output line, printing the information on the label paper in one-to-one connection mode, wherein one line of information corresponds to one label paper, and the output null value information is printed to be blank to obtain a visualized label; and the bar code label printing system is also used for acquiring information of each bar code information output line, and printing the information on one-line label paper, wherein one line of information corresponds to one piece of label paper, and the output null value information is printed as blank to obtain the bar code label.
The implementation of the printing method of the system can refer to the description of the first embodiment, and is not described herein again.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained: according to the label printing method and system, after the visualization domain information and the bar code domain information are obtained, the visualization domain and the bar code domain are obtained through corresponding analysis, then the null visualization domain and the null bar code domain are correspondingly arranged, the obtained information of the visualization domain and the information of the null bar code domain are combined to obtain the information of the visualization information output row, the obtained information of the bar code domain and the information of the null visualization domain are combined to obtain the information of the bar code information output row, finally, the information of each output row is respectively printed on one piece of label paper in one-to-one mode, the output null information is printed to be blank, and the visualization label and the bar code label are obtained. By adopting the scheme provided by the invention, the printing of different products with different printing requirements can be finished by only using the one-in-one label paper, the waste of opening the molds of various printing templates, the waste of label paper with various formats and the waste caused by tail flicking caused by replacing label paper with different formats can be avoided, the cost is greatly reduced, and the method has high economic benefit and social benefit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.
Claims (10)
1. A label printing method, comprising the steps of:
s1, acquiring information of each visualization domain and information of each bar code domain from a work order according to visualization domain items and bar code domain items to be printed;
s2, analyzing the information of each visualization domain to obtain a corresponding visualization domain, and analyzing the information of each bar code domain to obtain a corresponding bar code domain;
s3, setting corresponding null value visualization domains according to the visualization domains obtained in the S2, wherein the information of the null value visualization domains is null, setting corresponding null value barcode domains according to the barcode domains obtained in the S2, and the information of the null value barcode domains is null;
s4, storing the information of each visual domain obtained in the S1 and the information of each null value bar code domain set in the S3 into a visual information output row; storing the information of each bar code domain obtained in the S1 and the information of each null visual domain set in the S3 into a bar code information output row;
and S5, respectively printing the non-empty information of each output row on one piece of label paper in one connection, wherein one row of information corresponds to one piece of label paper, and obtaining the visual label and the bar code label.
2. The label printing method according to claim 1, further comprising before S1:
s01, constructing a work order subsystem, wherein the work order subsystem comprises a visualization domain module and a bar code domain module, and the visualization domain module comprises a plurality of visualization domain fields and corresponding information fields of the visualization domains; the bar code domain module comprises a plurality of bar code domain fields and information fields of corresponding bar code domains;
s02, assigning values to each visualization domain field and the corresponding information field of the visualization domain according to label printing requirements; and respectively assigning values to each barcode field and the information field of the corresponding barcode field.
3. The label printing method according to claim 2, wherein in S02, each visualized area information is separated from each other by a separator, and each barcode area information is separated from each other by a separator.
4. The label printing method according to claim 1, wherein in S4, the number of the visual information output lines and the barcode information output lines is determined according to a print number of the specified visual labels and barcode labels.
5. The label printing method according to claim 1, wherein in S4, the information of each item of the visualization field obtained in S1 and the information of each item of the null barcode field set in S3 are stored in a visualization information output line, and the method is implemented by specifically adopting:
acquiring the printing quantity of the work order, and expressing the printing quantity by a variable n;
acquiring the item number of the visualized domain and the item number of the barcode domain which are obtained by analyzing in the S2, wherein the item numbers are respectively expressed by m and t;
acquiring the information printing number of copies of the visualization domain and the information printing number of copies of the barcode domain, which are respectively expressed by x and y;
for each work order, generating x rows of visualization information output lines, wherein data of each row of visualization information output lines are composed of information of m visualization fields obtained in S1 and information of t null value bar code fields set in S3, and the information of the m visualization fields is positioned in front of the information of the t null value bar code fields;
generating the visualization output lines for a total number of lines = n x for n work orders.
6. The label printing method according to claim 1, wherein in S4, the information of each barcode field obtained in S1 and the information of each null visualization field set in S3 are stored in a barcode information output line, and the method is implemented specifically as follows:
acquiring the printing quantity of the work order, and expressing the printing quantity by a variable n;
acquiring the item number of the visualized domain and the item number of the barcode domain which are obtained by analyzing in the S2, wherein the item numbers are respectively expressed by m and t;
acquiring the number of printing copies of the information of the visualization domain and the number of printing copies of the information of the barcode domain, which are set by a user and are respectively expressed by x and y;
for each work order, y rows of bar code information output rows are generated, data of each row of bar code information output row are composed of information of m null value visualization domains set in S3 and information of t bar code domains obtained in S1, and the information of the m null value visualization domains is located in front of the information of the t bar code domains;
and generating the bar code information output row with the total row number = n x y for n work orders, and adding 1 to the bar code serial number in the bar code domain item from the beginning of the flow when y rows are generated each time until the total number n of the work orders is circulated.
7. The label printing method according to any one of claims 1 to 6, wherein S5 specifically comprises the steps of:
s501, reading information in the visual information output line and the bar code information output line by line;
s502, outputting information of each output row of the visual information, and printing the information on one-in-one label paper, wherein one row of information corresponds to one label paper, and the output null value information is printed to be blank to obtain a visual label; and outputting information of each bar code information output line, and printing the information on the label paper in one-to-one connection, wherein one line of information corresponds to one piece of label paper, and the output null value information is printed to be blank to obtain the bar code label.
8. A label printing system, comprising:
the printing system comprises a to-be-printed item presetting module, a printing module and a printing module, wherein the to-be-printed item presetting module is used for setting a visual domain item and a bar code domain item to be printed;
the data acquisition module is used for acquiring information of each visual domain to be printed and information of each bar code domain from a work order;
the data analysis module is used for analyzing the information of each visualization domain acquired in the data acquisition module to obtain a corresponding visualization domain, and is also used for analyzing the information of each barcode domain acquired in the data acquisition module to obtain a corresponding barcode domain;
the null value domain setting module is used for setting corresponding null value visualization domains according to all visualization domains obtained by analysis in the data analysis module, setting corresponding null value barcode domains according to all barcode domains obtained by analysis in the data analysis module, and setting the information of the null value barcode domains to be null;
a merged domain module, configured to store the information of each visualized domain acquired in the data acquisition module and the information of each null barcode domain set in the null domain setting module in a visualized information output line; the data acquisition module is used for acquiring the bar code information of each blank visual domain set in the blank domain setting module and the bar code domain acquired in the data acquisition module;
and the printing module is used for printing the non-empty information of each output row on the label paper in one-to-one connection, and one row of information corresponds to one piece of label paper to form a visual label and a bar code label.
9. The label printing system of claim 8, further comprising a work order subsystem, said work order subsystem including a visualization domain module and a barcode domain module, said visualization domain module including a plurality of visualization domain fields and corresponding visualization domain information fields; the bar code domain module comprises a plurality of bar code domain fields and corresponding bar code domain information fields.
10. The label printing system of claim 8, wherein the print module comprises:
the printing information reading module is used for reading the information in the visualized information output line and the bar code information output line from the merge domain module line by line;
the printing processing module is used for acquiring information of each visualized information output line, printing the information on the label paper in one-to-one connection mode, wherein one line of information corresponds to one label paper, and the output null value information is printed to be blank to obtain a visualized label; and the bar code label printing system is also used for acquiring information of each bar code information output line, and printing the information on one-line label paper, wherein one line of information corresponds to one piece of label paper, and the output null value information is printed as blank to obtain the bar code label.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910608781.5A CN110378441B (en) | 2019-07-08 | 2019-07-08 | Label printing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910608781.5A CN110378441B (en) | 2019-07-08 | 2019-07-08 | Label printing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110378441A CN110378441A (en) | 2019-10-25 |
CN110378441B true CN110378441B (en) | 2023-01-13 |
Family
ID=68252248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910608781.5A Active CN110378441B (en) | 2019-07-08 | 2019-07-08 | Label printing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110378441B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112216200A (en) * | 2020-11-02 | 2021-01-12 | 上海华力微电子有限公司 | Calibration label and manufacturing method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021893A (en) * | 2006-02-15 | 2007-08-22 | 精工爱普生株式会社 | Printing apparatus and printing method |
CN101051378A (en) * | 2007-05-18 | 2007-10-10 | 四川大学华西医院 | Combined bar code system for checking application and specimen collection |
WO2016082890A1 (en) * | 2014-11-28 | 2016-06-02 | Sato Holdings Kabushiki Kaisha | Label printer |
CN106406783A (en) * | 2016-11-29 | 2017-02-15 | 北京慧眼智行科技有限公司 | Label printing method and label printing plug-in |
CN108563408A (en) * | 2018-04-13 | 2018-09-21 | 上海宝尊电子商务有限公司 | Flexible print service based on the configuration of custom condition & template & physical machines |
CN109409452A (en) * | 2018-09-20 | 2019-03-01 | 摩尔元数(厦门)科技有限公司 | The method and apparatus that universal tag parses and automatically generates print label |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6906812B2 (en) * | 2000-04-14 | 2005-06-14 | Seiko Epson Corporation | Symbol printer, symbol printing method, symbol printer driver, and a data storage medium storing a symbol printing program |
-
2019
- 2019-07-08 CN CN201910608781.5A patent/CN110378441B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021893A (en) * | 2006-02-15 | 2007-08-22 | 精工爱普生株式会社 | Printing apparatus and printing method |
CN101051378A (en) * | 2007-05-18 | 2007-10-10 | 四川大学华西医院 | Combined bar code system for checking application and specimen collection |
WO2016082890A1 (en) * | 2014-11-28 | 2016-06-02 | Sato Holdings Kabushiki Kaisha | Label printer |
CN106406783A (en) * | 2016-11-29 | 2017-02-15 | 北京慧眼智行科技有限公司 | Label printing method and label printing plug-in |
CN108563408A (en) * | 2018-04-13 | 2018-09-21 | 上海宝尊电子商务有限公司 | Flexible print service based on the configuration of custom condition & template & physical machines |
CN109409452A (en) * | 2018-09-20 | 2019-03-01 | 摩尔元数(厦门)科技有限公司 | The method and apparatus that universal tag parses and automatically generates print label |
Also Published As
Publication number | Publication date |
---|---|
CN110378441A (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7427014B2 (en) | Shelf tag, shelf tag manufacturing system, method and program for manufacturing shelf tag and storage medium | |
US20050151701A1 (en) | System and method for updating electronic label displays | |
CN205028340U (en) | Variable data quality traces back management system | |
CN112162712A (en) | Label printing method and system based on template editing | |
CN109919259A (en) | A kind of universal bar code printer system and method for industrial products retrospect | |
CN103732413A (en) | Method and system for applying customer-specific labels to unprinted side of printed products | |
CN110378441B (en) | Label printing method and system | |
CN112017010A (en) | Online shopping mall system for printing advertisement products | |
US20200184863A1 (en) | System and method for targeted advertising based on the back of cash register paper | |
CN110395051A (en) | A kind of smart label printing system and Method of printing | |
US10509605B2 (en) | Generation of images | |
CN101366002B (en) | Color printer technology | |
CN112231371A (en) | Configurable report generation method and system based on engineering machinery big data | |
US8437022B2 (en) | Order system for printed matter, and method for calculating production of printed matter | |
US3108824A (en) | Periodical containing coupons and method of processing thereof | |
JP2024163315A5 (en) | ||
JP5596531B2 (en) | Management label issuing method | |
CN202814529U (en) | Electronic scale with wireless data communication function | |
CN106626825A (en) | Printing method and system | |
US20130275256A1 (en) | System and Method for Ordering Promotional Products | |
CN100549934C (en) | A kind of method that realizes POP figure continuous batch printing | |
CN107392650A (en) | The big data ad system and method for advertisement are carried out by the cash register paper back side | |
EP3224736B1 (en) | Label printer | |
CN116070667A (en) | System and method for generating label assembly for information tracing | |
CN113326907A (en) | Method for producing color variable bar code |
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 |