A label printing method, device, equipment and medium of a portable PDA device
By providing label template selection and editing functions on the web server, generating image labels and returning them to the PDA device, the problem of time-consuming label printing on portable PDA devices is solved, and flexible and efficient label printing is achieved.
Patent Information
- Application Number
- CN202211471540.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-11-23
AI Technical Summary
The label printing of portable PDA devices cannot flexibly and quickly change the label style, and requires adjustment of the underlying code, resulting in long processing time and difficulty in adapting to complex business scenarios.
By providing tag template selection and editing functions through a web server, tag data is generated and returned to the PDA device as image tags, enabling free configuration of tag templates and supporting more complex business scenarios.
It improves the label printing efficiency of portable PDA devices and can adapt to diverse business needs without modifying the program code.
Smart Images

Figure CN115904277B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of label printing, in particular to a label printing method, device, equipment and medium of a portable PDA device. BACKGROUND
[0002] Label printing is a common work in the industrial field, and the label printing technology has been very mature. The free configuration of the template of the label on the WEB is also a very common technology. However, the label printing based on the portable PDA device does not support the template data, that is, the label must be a fixed style instead of the template data, and cannot be changed flexibly and quickly. Each time the label style is changed, the underlying code in the device needs to be adjusted accordingly, which takes a long time, and the time is as short as one day and as long as several days. Obviously, it is difficult to adapt to more or more complex business scenarios. SUMMARY
[0003] The technical problem to be solved by the present application is to provide a label printing method, device, equipment and medium of a portable PDA device, which provides a label template that can be flexibly and freely laid out by a client, and is configured for use when printing labels by a portable PDA device in the industrial field, so as to adapt to more or more complex business scenarios.
[0004] In a first aspect, the present application provides a label printing method of a portable PDA device, which is executed on a web server and includes the following steps:
[0005] accepting selection and / or editing of a label template by a user, and saving label data generated by pairing with material information;
[0006] receiving a label printing request of a portable PDA device, generating a picture label from the label data and returning the picture label to the portable PDA device, so that the portable PDA device prints the label.
[0007] In a second aspect, the present application provides a label printing device of a portable PDA device, which includes the following modules:
[0008] a label editor configured to accept selection and / or editing of a label template by a user, and save label data generated by pairing with material information;
[0009] a receiving module configured to receive a label printing request of a portable PDA device;
[0010] a reading module configured to read the label data;
[0011] a label generation module configured to generate a picture label from the label data;
[0012] A label returning module returns the generated picture label to the portable PDA device for the portable PDA to print the label.
[0013] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect when executing the program.
[0014] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program executable on a processor to implement the method of the first aspect.
[0015] The one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: the present application provides a label printing function of a portable PDA device through a web server, can realize free configuration of a label template to adapt to more complex business scenarios, and does not need to modify program codes to realize matching of the label template, and the implementation efficiency is higher.
[0016] The above description is only a summary of the technical solutions of the present application, in order to more clearly understand the technical means of the present application, the content of the specification can be implemented, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0017] The present application will be further described below with reference to the accompanying drawings and embodiments.
[0018] Figure 1 It is a schematic diagram of the framework of the system of the present application;
[0019] Figure 2 It is a flowchart of the method in the first embodiment of the present application;
[0020] Figure 3 It is a specific execution flowchart of the embodiment of the present application;
[0021] Figure 4 It is a schematic diagram of the structure of the device in the second embodiment of the present application;
[0022] Figure 5 It is a schematic diagram of the structure of the electronic device in the third embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of the structure of the medium in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0024] The embodiment of the application provides a label printing method, device, equipment and medium of a portable PDA device, a label template with flexible and free layout is provided by a client, and the label template is configured for use when the portable PDA device in the industrial field prints a label, so that more or more complex business scenarios are adapted.
[0025] The technical solution in the embodiment of the application has the following general idea: a web server provides selection and / or editing functions of a label template, a user can select an existing label template at any time, or form a new label template through editing, and label data is generated after the label template is matched with material information and saved, so that the label template can be freely configured; when a label printing request of a portable PDA device is received, a picture label is generated from the label data and returned to the portable PDA device, so that the portable PDA prints the label. Therefore, more or more complex business scenarios can be adapted, and the matching of the label template does not need to be realized by modifying program codes, and the efficiency is higher.
[0026] Before the specific embodiment is introduced, the system framework corresponding to the method of the embodiment of the application is introduced first, as shown in Figure 1 The system is roughly divided into a web server and a portable PDA device.
[0027] The web server provides selection and / or editing functions of a label template, and can generate a picture label from label data and return the picture label to a portable PDA device according to a label printing request of the portable PDA device. The web server is provided with:
[0028] A label editor is configured for a user to select and / or edit a label template;
[0029] A label template library is configured to store a large number of label templates and label template elements;
[0030] A material information library is configured to record material information of required materials, and the material information at least includes a material number and actual business information;
[0031] A label database is configured to save label data generated by matching a label template with material information.
[0032] The portable PDA device is configured to print a label, and before printing, a label printing request can be submitted to the web server, and a picture label returned by the web server is received to print.
[0033] Embodiment one
[0034] As shown in Figure 2 The embodiment provides a label printing method of a portable PDA device, which is executed on a web server and includes the following steps:
[0035] Accept user selection and / or editing of label templates, generate label data by matching with material information, and then save it;
[0036] The system receives a label printing request from a portable PDA device, generates an image label from the label data, and returns it to the portable PDA device for printing.
[0037] The selection and / or editing of the label template includes the following two scenarios:
[0038] (1) Select a label template in the label template library and obtain material information from the material information library. After matching the label template with the material information to generate label data, save it in the label database.
[0039] (2) Used to select a label template or label template element in the label template library, edit it to form a new label template, obtain material information from the material information library, and then pair the new label template with the material information to generate label data and save it in the label database;
[0040] The tag template library is used to store a large number of tag templates and tag template elements;
[0041] The material information database is used to collect the material information of the required materials. The material information includes at least the material number and actual business information. When the web server receives a label printing request from a portable PDA device, it retrieves the corresponding actual business information from the material information database based on the material number carried in the label printing request.
[0042] After generating image tags, the tag data is stored in the image address. The image address, rather than the image tag itself, is returned to the portable PDA device so that the portable PDA device can log in to the image address and download the corresponding image tag.
[0043] like Figure 3 As shown, the method in this embodiment specifically includes the following steps:
[0044] Step S1: Pre-edit a certain number of label templates and save them in the label template library;
[0045] Step S2: Obtain material information from the material information database, match the material information with the label template, form label data one by one, and save it in the label database; the material information includes material number and actual business information;
[0046] Step S3, when the portable PDA device initiates a label printing request, receiving the label printing request and putting the material number in the label printing request into a material number list; usually, the portable PDA device also has a material list that needs to be printed, and a plurality of batch printing requests can be initiated through the material list;
[0047] Step S4, reading the material number list and obtaining the label data corresponding to each material number from the label database;
[0048] Step S5, generating a picture label according to the obtained label data and saving the picture label, and adding the saving address to a picture address list;
[0049] Step S6, returning the picture address list to the portable PDA device; the portable PDA device batch downloads the corresponding picture label to the local, calls the underlying driver to batch print, and clears the printed picture in the local after printing.
[0050] Wherein, the reading of the material number list can adopt a loop reading mode, for example:
[0051] If the number of materials that need to be printed in the material number list is i, then i of the first material is equal to 1,
[0052] Obtaining the material number corresponding to the current number from the list, and obtaining the label data according to the material number;
[0053] Generating a picture label according to the label data, and returning the picture address;
[0054] Adding the picture address into the picture address list;
[0055] Judging whether i of the current number of materials is the number of the material number list, if yes, ending the loop; otherwise, marking the number of i plus 1 and continuing the loop.
[0056] Based on the same inventive concept, the application also provides a device corresponding to the method in embodiment one, which is described in detail in embodiment two.
[0057] Embodiment two
[0058] As shown in Figure 4 In this embodiment, a label printing device of a portable PDA device is provided, which comprises the following modules:
[0059] A label editor for accepting user selection and / or editing of a label template, and generating label data and saving by pairing with material information;
[0060] A receiving module for receiving a label printing request of the portable PDA device;
[0061] a reading module for reading the label data;
[0062] a label generating module for generating picture label from the label data;
[0063] a label returning module for returning the generated picture label to the portable PDA device for printing the label.
[0064] Further, the label printing device of the present embodiment further comprises:
[0065] a picture address module for saving the generated picture label and sending the picture address to the label returning module;
[0066] Then, the label returning module returns the picture address instead of the picture label itself to the portable PDA device for logging into the picture address to download the corresponding picture label.
[0067] The label generating module generates label data in two cases as follows:
[0068] (1) Selecting a label template from the label template library and obtaining material information from the material information library, pairing the label template with the material information to generate label data and saving the label data in the label database;
[0069] (2) Selecting a label template or a label template element from the label template library to edit and form a new label template, obtaining material information from the material information library, pairing the new label template with the material information to generate label data and saving the label data in the label database;
[0070] The label template library is used for storing a large number of label templates and label template elements.
[0071] The material information library is used for collecting material information of required materials, and the material information at least includes material number and actual business information; when the web server receives a label printing request of the portable PDA device, the corresponding actual business information is called from the material information library according to the material number carried in the label printing request.
[0072] As shown in Figure 3 The label printing device of the present embodiment is used for specifically performing the following steps:
[0073] Step S1, the label editor pre-edits a certain number of label templates and saves them in the label template library;
[0074] Step S2, the label editor acquires material information from the material information library, and pairs the material information with the label template, one-to-one corresponding to form label data and save in the label database; the material information includes material number and actual business information;
[0075] Step S3, when the portable PDA device initiates a label printing request, the receiving module receives the label printing request, and puts the material number in the label printing request into a material number list;
[0076] Step S4, the information reading module reads the material number list, and acquires the label data corresponding to each material number from the label database;
[0077] Step S5, the label generation module generates picture labels according to the acquired label data and saves them, and adds the saving address to the picture address list;
[0078] Step S6, return the picture address list to the portable PDA device; the portable PDA device batch downloads the corresponding picture labels to the local, calls the underlying driver to batch print, and clears the printed pictures in the local after printing.
[0079] Since the device introduced in the second embodiment of the application is the device used for implementing the method of the first embodiment of the application, the specific structure and variations of the device can be understood by those skilled in the art based on the method introduced in the first embodiment of the application, and thus will not be described here again. Any device used for the method of the first embodiment of the application belongs to the scope of the application.
[0080] Based on the same inventive concept, the present application provides an electronic device embodiment corresponding to the first embodiment, which is described in detail in the third embodiment.
[0081] Embodiment three
[0082] The present embodiment provides an electronic device, as shown in the formula: Figure 5 The processor executes the computer program, and any implementation manner in the first embodiment can be realized.
[0083] Since the electronic device introduced in the present embodiment is the device used for implementing the method in the first embodiment of the application, the specific implementation manner of the electronic device in the present embodiment and its various variations can be understood by those skilled in the art based on the method introduced in the first embodiment of the application, and thus the method how the electronic device realizes the method in the present embodiment will not be described in detail here. As long as the device used for implementing the method in the present embodiment is used by those skilled in the art, it belongs to the scope of the present application.
[0084] Based on the same inventive concept, the application provides a storage medium corresponding to the embodiment one, which is described in detail in the embodiment four.
[0085] Embodiment four
[0086] The embodiment provides a computer readable storage medium, such as a computer readable storage medium 1001 shown in the figure, which stores a computer program. Figure 6 The computer program is executed by a processor to implement any of the embodiments one.
[0087] The technical solutions provided in the embodiments of the application have at least the following technical effects or advantages: the method, device, system, equipment and medium provided in the embodiments of the application,
[0088] Those skilled in the art should understand that the embodiments of the application can be provided as a method, system or computer program product. Therefore, the application can be in the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.
[0089] The application is described with reference to flowcharts and / or block diagrams of the method, device (system) and computer program product according to the embodiments of the application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one or more flows and / or blocks Figure 1 The device for implementing the functions specified in one or more flows and / or blocks.
[0090] These computer program instructions can also be stored in a computer readable storage medium, which can guide the computer or other programmable data processing devices to work in a specific way, so that the instructions stored in the computer readable storage medium produce a product including instruction devices, which implement the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one or more flows and / or blocks Figure 1 The device for implementing the functions specified in one or more flows and / or blocks.
[0091] These computer program instructions can also be loaded into a computer or other programmable data processing devices, so that a series of operational steps are generated to realize the computer-implemented processes in the computer or other programmable devices, and the instructions executed in the computer or other programmable devices provide the processes for implementing the functions specified in the flowchart Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0092] Although the specific embodiments of the application have been described above, it is understood that the specific embodiments described are merely illustrative of the application and not intended to limit the scope of the application, and equivalent modifications and changes as would be obvious to one skilled in the art are intended to be covered within the scope of the claims of the application.
Claims
1. A label printing method for a portable PDA device, characterized by: The method is executed on a web server and comprises the following steps: accepting user selection and / or editing of a label template and saving label data after pairing with material information; specifically comprising the following steps: Step S1: a certain number of label templates are pre-edited and saved in a label template library; Step S2: material information is obtained from a material information library and paired with the label template to form label data one by one and saved in a label database; the material information comprises material number and actual business information; receiving a label printing request of a portable PDA device, generating picture labels from the label data and returning the picture labels to the portable PDA device for printing labels by the portable PDA; specifically comprising the following steps: Step S3: when the portable PDA device initiates a label printing request, the label printing request is received and the material number in the label printing request is put into a material number list; Step S4: the material number list is read in a loop to obtain label data corresponding to each material number from the label database; Step S5: picture labels are generated from the obtained label data and saved, and a saving address is added to a picture address list; Step S6: the picture address list is returned to the portable PDA device; the corresponding picture labels are downloaded to the local by the portable PDA device in batches, the underlying drive is called to print in batches, and the printed pictures are cleared from the local after printing.
2. The label printing method of a portable PDA device according to claim 1, characterized in that: the selection and / or editing of the label template comprises the following two cases: (1) a label template is selected from the label template library, material information is obtained from a material information library, the label template is paired with the material information to generate label data, and the label data is saved in a label database; (2) a label template or a label template element is selected from the label template library for editing to form a new label template, material information is obtained from the material information library, and the new label template is paired with the material information to generate label data, which is saved in the label database; wherein the label template library is used to store a large number of label templates and label template elements; the material information library is used to record material information of required materials, and the material information at least comprises material number and actual business information; when the web server receives a label printing request of a portable PDA device, corresponding actual business information is called from the material information library according to the material number carried in the label printing request.
3. The label printing method for a portable PDA device according to claim 1, wherein: the label data is saved in a picture address after generating picture labels, and is returned to the portable PDA device as the picture address instead of the picture labels themselves, so that the portable PDA device logs in the picture address to download the corresponding picture labels.
4. A label printing apparatus for a portable PDA device, characterized by: comprise the following modules: a label editor for accepting user selection and / or editing of a label template and generating and saving label data after pairing with material information; a receiving module for receiving a label printing request of a portable PDA device; a reading module for reading the label data; a label generation module for generating picture labels from the label data; a label returning module, configured to return the generated picture label to the portable PDA device for the portable PDA to print the label; the label printing device is configured to specifically perform the following steps: S1, the label editor pre-edits a certain number of label templates and saves them in a label template library; S2, the label editor obtains material information from a material information library and pairs the material information with the label templates to form label data one by one and save them in a label database; the material information includes material numbers and actual business information; S3, when the portable PDA device initiates a label printing request, the receiving module receives the label printing request and puts the material numbers in the label printing request into a material number list; S4, the reading module reads the material number list and obtains the label data corresponding to each material number from the label database; S5, the label generating module generates picture labels according to the obtained label data and saves them, and adds the saving addresses to a picture address list; S6, the picture address list is returned to the portable PDA device; the portable PDA device batch downloads the corresponding picture labels to the local, calls the underlying driver to perform batch printing, and clears the printed pictures in the local after the printing is completed.
5. A label printing apparatus for a portable PDA device according to claim 4, wherein: the process of the label generating module generating label data includes the following two cases: (1) selecting a label template from the label template library and obtaining material information from a material information library, pairing the label template with the material information to generate label data and save them in a label database; (2) selecting a label template or a label template element from the label template library to edit and form a new label template, obtaining material information from a material information library, and pairing the new label template with the material information to generate label data and save them in a label database; wherein the label template library is configured to store a large number of label templates and label template elements; the material information library is configured to record the material information of the required materials, and the material information at least includes material numbers and actual business information; when the web server receives a label printing request of the portable PDA device, the corresponding actual business information is called from the material information library according to the material numbers carried in the label printing request.
6. The label printing apparatus for a portable PDA device according to claim 4, wherein: Further comprising: a picture address module, configured to save the generated picture label and send the picture address to the label returning module; then the label returning module returns the picture address to the portable PDA device instead of the picture label itself, so that the portable PDA device logs in the picture address to download the corresponding picture label.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, the processor executes the program to implement the method of any one of claims 1 to 3.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, the program is executed by the processor to implement the method of any one of claims 1 to 3.
Citation Information
Patent Citations
Label printing processing device, system and method
CN106814982A
Material tag printing system
CN107340981A