Label print processing device, system and method
Technical field
The present invention relates to technical field of data processing, specifically, it is related to a kind of label print processing device, system and side
Method.
Background technology
With the development of electronic goods platform, logistic industry also quietly rises.Wherein, different logistics companies has difference
The label of version, for identifying the commodity for transporting.Generally, each logistics company can possess the tag template of respective style, for example
Background color, background patterns, appearance style, arrangement information etc..Logistics company can be distinguished from these attributes.
When label is printed, generally using following scheme:
Client print software is installed on the computer with .Net FrameWork frameworks, in the software kit of the software
It is integrated with tag template.When label is printed, the print software reads local template file folder, and local template file is carried out
Parsing, then increases business datum, such as address of the addressee, name information, finally prints the label.
Can be learnt from such scheme:
1. client print software needs the support of .Net FrameWork frameworks, is being fitted without the .Net
On the computer of FrameWork frameworks, client print software cannot run.
2., because the program and tag template of the print software are coupling in a software kit, program and label mould are unfavorable for
The decoupling of plate, once software kit occurs problem, software program and tag template can not be used one.
3. change in business, when tag template needs change, it is necessary to change in the lump and print software of upgrading, Yong Huxu
Reinstall the print software after upgrading.
The content of the invention
The present invention is in view of the shortcomings of the prior art, there is provided a kind of label print processing device, system and method, is used to solve
In the prior art it is local brought using print software the need for specific hardware Environmental Support, template it is high with the printing degree of coupling,
The problems such as reinstalling software is needed after software upgrading.
In order to solve the above-mentioned technical problem, according to an aspect of the present invention, at the invention provides a kind of label printing
Reason device, wherein, including:
Interface, for receiving label print request, and by the label of the picture format person that is sent to label print request;
Template read module, for obtaining corresponding Template Information from cloud storage according to the print request;
Assembling module, for generating template label according to corresponding Template Information, and increases industry in the template label
Business data, so as to generate label;With
Drawing module, for the label to be made the label of picture format, and is supplied to the interface.
Preferably, the assembling module includes:
Template label module units, for generating template label according to corresponding Template Information;With
Label module units, for increasing business datum in the template label, so as to generate label.
Preferably, described label print processing device, wherein, also including compression module, for compressing the picture lattice
The label of formula, and it is supplied to the interface.
In order to solve the above-mentioned technical problem, according to another aspect of the present invention, printed the invention provides a kind of label
Processing system, wherein, including:
Cloud storage, for storing tag template;
Foregoing label print processing device, the label for obtaining picture format;
Browser, for sending label print request, receives the label of the picture format, and be sent to printer;With
Printer, for printing the label that the browser sends.
In order to solve the above-mentioned technical problem, according to an aspect of the present invention, at the invention provides a kind of label printing
Reason method, wherein, it is included in server end and performs following process step:
Receive label print request;
Corresponding Template Information is obtained from cloud storage according to the label print request;
Using the Template Information and corresponding business datum generation label;With
By the label of the picture format person that is sent to label print request.
Preferably, during the step of foregoing utilization Template Information and corresponding business datum generate label, specifically include:
Template label is generated according to corresponding Template Information;
Increase business datum in the template label, so as to generate label;
The label is made the label of picture format.
Preferably, server end also included before the person that is sent to label print request by the label of the picture format:
By in the label output of the picture format to corresponding painting canvas;With
Label and painting canvas to pictorial are compressed;
Described being sent in the label of requestor also includes painting canvas.
In order to solve the above-mentioned technical problem, according to an aspect of the present invention, at the invention provides a kind of label printing
Reason device, including memory and processor, wherein, the memory is used for data storage, information and instruction, and the processor is held
The row instruction, for realizing following steps:
Receive label print request;
Corresponding Template Information is obtained from cloud storage according to the label print request;
Using the Template Information and corresponding business datum generation label;With
The label is sent to requestor in the way of picture stream.
Preferably, the processor is stated generate label using the Template Information and corresponding business datum before execution
During step, specifically include:
Template label is generated according to corresponding Template Information;
Increase business datum in the template label, so as to generate label;
The label is made the label of picture format.
Preferably, the processor is the step of performing the label of the picture format person that is sent to label print request
Also include before:
By in the label output of the picture format to corresponding painting canvas;With
Label and painting canvas to pictorial are compressed;
Described being sent in the label of requestor also includes painting canvas.
Template storage in the present invention beyond the clouds, thus need not issue template to user terminal, without updating mould in user terminal
Plate.When template is needed, user terminal can be obtained actively in cloud storage, and reliability is high.And, when because of business change
When needing more new template, the template in high in the clouds need to be only updated, not be related to user terminal.Label printing of the present invention
Processing unit is deployed in server end, and user terminal need not install any program, and the browser of user terminal is by way of picture stream
Label is obtained, this framework is easy to maintain, and the stability of system is high.
Brief description of the drawings
Description by referring to the following drawings to the embodiment of the present invention, of the invention above-mentioned and other purposes, feature and
Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the theory structure block diagram of the embodiment of label print processing device one of the present invention;
Fig. 2 is the theory structure block diagram of the assembling embodiment of module one of the present invention;
Fig. 3 is the theory structure block diagram of the embodiment of label print process system one of the present invention;
Fig. 4 is the hardware principle structured flowchart for inventing the embodiment of label print processing device one;
Fig. 5 is the schematic flow sheet for inventing the label print processing method;With
Fig. 6 is the schematic flow sheet for inventing the embodiment of label print processing method one.
Specific embodiment
Below based on embodiment, present invention is described, but the present invention is not restricted to these embodiments.Under
It is detailed to describe some specific detail sections during text is to detailed description of the invention.Do not have for a person skilled in the art
The description of these detail sections can also completely understand the present invention.In order to avoid obscuring essence of the invention, known method, mistake
Journey, flow are not described in detail.What other accompanying drawing was not necessarily drawn to scale.
As shown in figure 1, being the theory structure block diagram of the embodiment of label print processing device one of the present invention.The label
Print processing device 2 includes interface 21, template read module 22, assembling module 23 and drawing module 24.Wherein, the interface 21
For receiving print request, and the label of picture format is sent to requestor.The template read module 22 is beaten according to described
Print request obtains corresponding Template Information from cloud storage 1.The assembling module 23 generates template according to corresponding Template Information
Label, and increase business datum in the template label, so as to generate label.Be made for the label by the drawing module 24
The label of picture format, and export in corresponding painting canvas.Preferably, in order to reduce data transfer, described device also includes pressure
Contracting module 25, for compressing the label and painting canvas, and is supplied to the interface 21, for being sent to requestor.The cloud is deposited
Storage 1 is used to store tag template.
Beyond the clouds, thus without issuing template to user terminal, thus user terminal is also just not required to for template storage in the present invention
To be obtained in user terminal active to cloud storage in local update template, when template is needed, reliability is high.And, work as because
When business changes and needs more new template, the template in high in the clouds need to be only updated, not be related to user terminal.It is of the present invention
Label print processing device be deployed in server end, user terminal need not install any program, and user terminal browser passes through picture
Stream obtains label, and this framework is easy to maintain, and the stability of system is high.
Specifically, the assembling module 23 includes template label module units 231 and label module units 232, such as Fig. 2 institutes
Show.Wherein, the template label module units 231 generates template label according to corresponding Template Information.Specifically, template label
Module units 231 assembles rule A according to label, and corresponding tag attributes data B is progressively read from the Template Information, so that
Generation template label C 1.The attribute data of different labeling requirements is different.In order to be assembled into a label, it is necessary to certain assembling
Rule, including assembling sequence and assembling element, such as first step want output label background to painting canvas, it is necessary to element be carry on the back
Scape picture;Then, it is necessary to configure appearance style, it is necessary to element be all figures coordinate, height, width and shape data;
Finally contents attribute, it is necessary to the element such as information such as barcode types, bar code sample and font.Template label module units 231 is pressed
According to assembling rule, substep assembling all elements ultimately form a complete template label C 1.
After complete template label C 1 is formd, the label module units 232 in the template label to increasing industry
Business data D, so as to generate label C 2.Wherein, the business datum D can be obtained from other systems, or user is in hair
The print processing device is sent collectively to together with business datum D when sending print request, now, interface 21 receives the business number
After according to D, stored, to provide business datum D when label module units 232 needs.
As shown in figure 3, being the theory structure block diagram of the embodiment of label print process system one of the present invention.Described mark
Browser and printer that print process system is included on cloud storage 100, label print processing device 200, user computer are signed, its
In, browser and printer can be multiple, as shown in FIG., respectively browser 301,302,303 and 304, printer
401st, 402,403 and 404.Wherein, the cloud storage 100 is located at high in the clouds, for storing tag template.The label print processing
Device 200 is located at server end, for according to label print request, treatment to generate corresponding label, and sends back requestor.Institute
Browser 301,302,303 and 304 is stated on the computer of user terminal, for sending label print request, the label is received
The label that print processing device 200 sends, and the label is sent to the and of printer 401,402,403 of corresponding connection
404, print the label.
User no longer needs to install .net FrameWork and print software, it is only necessary to just can be sent using browser and beaten
Print request, and the processed label data that can directly print well is received, print the label by controlling printer.Due to number
According to stream and template stream not local, change when business, it is necessary to when changing template, it is also unrelated with user terminal, so client is not
Reuse too fat to move client code, it is to avoid the trouble of client upgrading.
As shown in figure 4, the hardware principle structured flowchart to invent the embodiment of label print processing device one.The mark
Signing print processing device includes interface, memory and processor, and the interface, memory and processor enter line number by bus
According to, instruction transmission.Wherein, the memory is used for data storage and instruction, instruction described in the computing device, for reality
Existing present invention institute states label print processing method, for example, reception label print request;According to the label print request from cloud
Corresponding Template Information is obtained in storage;Using the Template Information and corresponding business datum generation label;With by the mark
Sign and issue and give requestor.
As shown in figure 5, being the flow chart of label print processing method of the present invention.Performed including in server end
Following steps:
Step S1, receives label print request;During specific implementation, can receive described by interface as shown in Figure 1 21
Label print request.
Step S2, corresponding Template Information is obtained according to the label print request from cloud storage.The print request
Include correlated identities, such as logo, order note identification etc..Be stored with substantial amounts of Template Information in cloud storage 1, for ease of looking into
Look for, generally carry out classification storage, and corresponding query term is set, such as the template of same company is a major class, and logo is set
It is set to inquiry mark.Some more refine ground, and same company's different business sets different groups, and using service identification as looking into
Ask mark.When Template Information is read in the cloud storage 1, inquired about by the logo in print request, so that can
To obtain corresponding Template Information.Business datum, such as addressee's surname can be obtained from other systems by the order note identification
The information such as name, address, phone.
Step S3, using the Template Information and corresponding business datum generation label.
Step S4, requestor is sent to by the label.
As shown in fig. 6, being the flow chart of the embodiment of label print processing method one of the present invention.With reference to Fig. 1's and Fig. 2
Structure, is described in detail as follows to label print processing method:
Step S10, label print request is received by interface 21, and logo, order mark can be obtained from the request
Know or business datum.The order note identification is used to obtain business datum from operation system, such as addressee's name, address letter
Breath, when business datum is needed, can be inquired about from operation system by order note identification and obtained.However, business datum can also
Directly transmitted by user together with print request.
Step S11, logo of the template read module 22 in request accesses cloud storage, and inquiry wherein is obtained
The Template Information of correspondence company, and together read internal memory, used for following steps.
Step S12, template label module units 231 obtains assembling rule.Following steps are performed according to assembling rule:
Step S13, judges whether to need to print background, if it is desired, in step S14, background picture is read from internal memory,
And be output on label painting canvas, then perform step S15.If not printing background, step S15 is performed.
Step S15, obtains appearance style template configuration data, for example:The x of all figures, y-coordinate, height, width and shape
Shape etc..
Step S16, obtains particular content template configuration data, for example:Read type, pattern, font of bar code etc..
After particular content has been assembled, template label C 1 has now been formed.
Step S17, label module units 232 in the template label increase business datum D, so as to generate label C 2.
The label C 2 is processed into picture by step S18, drawing module 24, and is output in label painting canvas.
Step S19,25 pairs of label Cs of the picture format 2 of compression module and its painting canvas are compressed, then are encrypted, and
User is sent to by interface 21 afterwards.
User receives the image data beamed back by browser, is transmitted directly to printer and can print out label.
For a user, hardware requirement is low, without installing any software, eliminates trouble and the inconvenience of software upgrading.
Preferred embodiment is the foregoing is only, is not intended to limit the invention, to those skilled in the art, this hair
It is bright to have various changes and change.All any modification, equivalent substitution and improvements made within spirit and principles of the present invention
Deng should be included within the scope of the present invention.