CN113360100A - Data printing method and printing management system - Google Patents

Data printing method and printing management system Download PDF

Info

Publication number
CN113360100A
CN113360100A CN202010151792.8A CN202010151792A CN113360100A CN 113360100 A CN113360100 A CN 113360100A CN 202010151792 A CN202010151792 A CN 202010151792A CN 113360100 A CN113360100 A CN 113360100A
Authority
CN
China
Prior art keywords
printing
template
data
service
principal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010151792.8A
Other languages
Chinese (zh)
Other versions
CN113360100B (en
Inventor
周仑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202010151792.8A priority Critical patent/CN113360100B/en
Publication of CN113360100A publication Critical patent/CN113360100A/en
Application granted granted Critical
Publication of CN113360100B publication Critical patent/CN113360100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • G06F3/1243Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a data printing method and a printing management system, and relates to the technical field of computers. One embodiment of the method comprises: configuring a service system and recording at least one printing template corresponding to the service system; acquiring print job data from the print request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; a print document is generated for the print request based on the print data and the print template. The method and the system can solve the problem that printing requirements of different service systems are variable in different service scenes, reduce development and operation costs in the aspects of manpower, time and the like, and improve maintainability of the service systems.

Description

Data printing method and printing management system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data printing method and a print management system.
Background
Data printing is an extremely important operation link in many industries, and correct data can be printed on paper as a certificate or reserved as a file and the like according to an accurate pattern through data printing. In logistics management warehouse, transportation and distribution businesses and the like, many different information management systems are involved, and these systems generally have a scene that different merchants dynamically adjust printing styles and print paper according to different business types (such as packing lists, delivery lists, package labels and the like).
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
different business systems have variable printing requirements under different business scenes, a large amount of manpower and time cost can be consumed in a development link, and the maintainability of the business systems is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data printing method and a print management system, which can solve the problem that printing requirements of different service systems are variable in different service scenes, reduce development and operation costs in the aspects of manpower and time, and improve maintainability of the service systems.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a data printing method.
The data printing method of the embodiment of the invention comprises the following steps:
configuring a service system and recording at least one printing template corresponding to the service system;
acquiring print job data from the print request; the printing operation data comprises a service system number, a printing template number, a template version number and printing data;
acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number;
and generating a printing document for the printing request based on the printing data and a printing template corresponding to the printing request.
Optionally, configuring a service system, and recording at least one printing template corresponding to the service system, including:
configuring a service system based on the service system number and the member information; the member information comprises a system person in charge, system members and right limits thereof;
responding to the definition operation of the system principal or the system member, recording a data model of the business system defined by the system principal or the system member and a data obtaining mode;
recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model and a locking state of the printing template; establishing a binding relationship between the printing template and a printer;
responding to the starting operation of the printing client, and updating a local file system of the printing client; wherein the local file system is used for storing the printing template.
Optionally, recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model, and a locking state of the printing template, including:
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer for the system principal or the system member after the authentication is passed;
responding to the editing operation of the system principal or the system member, acquiring a blank template newly built in the template designer by the system principal or the system member and a selected data model, and extracting a printing layout and a printing style from the edited blank template;
previewing and displaying the edited blank template based on the data model, the printing layout and the printing style in response to a preview operation of the system principal or the system member;
responding to the storage operation of the system principal or the system member, storing the edited blank template as a printing template, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the edited blank template.
Optionally, recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model, and a locking state of the printing template, and then further comprising:
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer for the system principal or the system member after the authentication is passed;
locking a target print template in the template designer in response to a modification operation by the system principal or the system member;
in response to the editing operation of the system principal or the system member, extracting a modified layout and a modified style from the modified target printing template;
previewing and displaying the modified target printing template based on the modified layout and the modified style in response to a preview operation of the system principal or the system member;
in response to a save operation of the system principal or the system member, previewing and updating the target printing template and the template version number and locking state thereof based on the modified layout and the modified style; or, adding a printing template based on the modified layout and the modified style, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the modified target printing template.
Optionally, the print job data further includes an output mode; and
acquiring print job data from a print request, comprising:
monitoring a printing interface of the printing client;
receiving a printing request sent by the service system through the printing interface;
and acquiring a service system number, a printing template number, a template version number, printing data and an output mode from the printing request.
Optionally, obtaining the print template corresponding to the print request according to the service system number, the print template number, and the template version number includes:
inquiring the service system number, the printing template number and the template version number in a local file system of the printing client;
if the corresponding printing template exists, acquiring the printing template corresponding to the printing request from the local file system;
and if the corresponding printing template does not exist, requesting the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
Optionally, generating a print document for the print request based on the print data and a print template corresponding to the print request includes:
analyzing the printing template to obtain a printing style and a printing canvas;
placing the printing data on the printing canvas according to the printing style to generate a printing document;
outputting the printed document to a printer or as a local file based on the output mode; and
and feeding back a printing result to the service system.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a print management system.
The printing management system of the embodiment of the invention comprises a service platform, a template designer and a printing client, wherein:
the service platform is used for configuring a business system; recording at least one printing template corresponding to the service system; and invoking the stencil designer;
the template designer is used for receiving the edition of a system leader or a system member on the printing template;
the printing client is used for receiving a printing request and acquiring a service system number, a printing template number, a template version number and printing data from the printing request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; and generating a printing document for the printing request based on the printing data and a printing template corresponding to the printing request.
Optionally, the service platform is further configured to:
configuring a service system based on the service system number and the member information; the member information comprises a system person in charge, system members and right limits thereof;
responding to the definition operation of the system principal or the system member, recording a data model of the business system defined by the system principal or the system member and a data obtaining mode;
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer for the system principal or the system member after the authentication is passed;
recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model and a locking state of the printing template; establishing a binding relationship between the printing template and a printer;
responding to the starting operation of the printing client, and updating a local file system of the printing client; wherein the local file system is used for storing the printing template.
Optionally, the template designer is further configured to:
responding to the editing operation of the system principal or the system member, acquiring a newly-built blank template and a selected data model of the system principal or the system member, and extracting a printing layout and a printing style from the edited blank template;
previewing and displaying the edited blank template based on the data model, the printing layout and the printing style in response to a preview operation of the system principal or the system member;
responding to the storage operation of the system principal or the system member, storing the edited blank template as a printing template, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the edited blank template.
Optionally, the template designer is further configured to:
responding to the modification operation of the system leader or the system member, and locking a target printing template;
in response to the editing operation of the system principal or the system member, extracting a modified layout and a modified style from the modified target printing template;
previewing and displaying the modified target printing template based on the modified layout and the modified style in response to a preview operation of the system principal or the system member;
in response to a save operation of the system principal or the system member, previewing and updating the target printing template and the template version number and locking state thereof based on the modified layout and the modified style; or, adding a printing template based on the modified layout and the modified style, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the modified target printing template.
Optionally, the print client is further configured to:
monitoring a printing interface of the printing client;
receiving a printing request sent by the service system through the printing interface;
and acquiring a service system number, a printing template number, a template version number, printing data and an output mode from the printing request.
Optionally, the print client is further configured to:
inquiring the service system number, the printing template number and the template version number in a local file system of the printing client;
if the corresponding printing template exists, acquiring the printing template corresponding to the printing request from the local file system;
and if the corresponding printing template does not exist, requesting the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
Optionally, the print client is further configured to:
analyzing the printing template to obtain a printing style and a printing canvas;
placing the printing data on the printing canvas according to the printing style to generate a printing document;
outputting the printed document to a printer or as a local file based on the output mode; and
and feeding back a printing result to the service system.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic apparatus for data printing.
An electronic device for data printing according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a data printing method of an embodiment of the present invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, implements a data printing method of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: because the configuration service system is adopted, and at least one printing template corresponding to the service system is recorded; acquiring print job data from the print request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; the technical means for generating the printing document for the printing request based on the printing data and the printing template overcomes the technical problems that different business systems have variable printing requirements in different business scenes, a large amount of labor and time cost can be consumed in a development link, and the maintainability of the business systems is poor, further solves the problem that the printing requirements of different business systems in different business scenes are variable, reduces the development and operation cost in the aspects of labor, time and the like, and improves the maintainability of the business systems.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a data printing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of pseudo code of a print data model class of a data printing method according to a referential embodiment of the present invention;
fig. 3 is a schematic diagram of a business system access process of a data printing method according to a referential embodiment of the present invention;
fig. 4 is a schematic diagram of a print template editing process of a data printing method according to a referential embodiment of the present invention;
FIG. 5 is a schematic diagram of a printer configuration and a job printing process of a data printing method according to a referential embodiment of the present invention;
FIG. 6 is a schematic diagram of the main modules of a print management system according to an embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
In logistics management warehouse, transportation and distribution businesses and the like, a plurality of different business systems are involved, and the business systems generally have scenes of dynamically adjusting printing styles according to different business types and different merchants and printing paper. The current solutions are as follows:
different printing style processing programs need to be developed aiming at different service scenes, and corresponding printing functions also need to be developed if different merchants have different printing style requirements.
However, the above solution has the following major problems:
1. the development cost is high, each different service needs to independently develop a specific function, and the same service also needs to develop an independent function for a specific merchant;
2. the printing logic is not flexible enough, and needs to be modified to adapt when the printing requirement changes;
3. the maintainability is poor, and when the service scene is complex and the printing logic is complex, the system becomes unable to maintain.
Therefore, the data printing method of the embodiment of the invention provides a universal printing job life cycle management method, solves the problem that printing requirements of different service systems are variable in different service scenes, reduces the overall development cost and improves the maintainability of the service systems.
Fig. 1 is a schematic diagram of main steps of a data printing method according to an embodiment of the present invention. As shown in fig. 1, the data printing method according to the embodiment of the present invention mainly includes the steps of:
step S101: and configuring a service system and recording at least one printing template corresponding to the service system.
The data printing method of the embodiment of the invention can be applied to service platforms such as a printing management system, and can respectively carry out targeted configuration on each service system on the service platforms, so that each service system has a corresponding printing template. In addition, under the scene of accessing a plurality of service systems, data isolation is carried out according to the service systems, data such as data models, printing templates and the like are stored in the corresponding service systems, and only system responsible persons and system members of the service systems can access the corresponding data, so that the service systems are not influenced with each other.
In the embodiment of the present invention, step S101 may be implemented by: configuring a service system based on the service system number and the member information; responding to the definition operation of a system principal or a system member, recording a data model of a service system defined by the system principal or the system member and a data acquisition mode; recording a printing template created by a system principal or a system member, and setting a service system number, a printing template number, a template version number, a data model and a locking state of the printing template; establishing a binding relationship between the printing template and the printer; and responding to the starting operation of the printing client, and updating the local file system of the printing client.
For each business system, the service platform can perform printing related configuration such as operators, data sources, printing templates and the like on the business system. The operating personnel are the system responsible personnel, the system members and other personnel capable of editing the data source and the printing template, and can give corresponding rights to the system responsible personnel and the system members according to the requirements of the service system, for example, which editing operations can be executed by the system members, or the system responsible personnel can add the system members, and the system responsible personnel can also hand over the system to other members as responsible personnel; the data source refers to: a data model (namely a structure of printing operation data) used by the service system and a mode of acquiring data from the service system by a printing client are defined by a system person in charge or a system member in the service platform aiming at the service system; the system leader and system members may add or modify print templates for the business system. It should be noted that each print template is configured with at least one print client or a file output format, such as PDF, Word, Excel, or the like.
The print client acquires data from the service system in two ways, which are respectively: push type: the business system submits the organized data to a printing client; pulling type: and the printing client accesses the service system to acquire the printing data through the data acquisition interface defined in the data source. In addition, when the printing client is started, the service platform can check whether the printing template stored by the printing client has a new version or not, and if so, the printing template is downloaded to a local file system of the printing client for updating, wherein the local file system is used for storing the printing template.
In the embodiment of the present invention, the steps of recording the printing template created by the system principal or the system member, and setting the service system number, the printing template number, the template version number, the data model and the locking state of the printing template can be implemented by the following manners: authenticating a system principal or a system member based on member information of the service system, and calling a template designer for the system principal or the system member after the authentication is passed; responding to the editing operation of a system principal or a system member, acquiring a blank template newly built in a template designer by the system principal or the system member and a selected data model, and extracting a printing layout and a printing style from the edited blank template; previewing and displaying the edited blank template based on the data model, the printing layout and the printing style in response to the previewing operation of a system principal or a system member; responding to the storage operation of a system principal or a system member, storing the edited blank template as a printing template, and setting a service system number, a printing template number, a template version number and a locking state of the printing template; or temporarily storing the edited blank template.
The service platform can determine the business system to which the system principal or the system member belongs by utilizing the member information, the system principal or the system member can edit a printing template for the business system to which the system principal or the system member belongs, the printing template can be imported, created or modified and the like, the creation or modification of the printing template can be realized in a template designer called by the service platform for the system principal or the system member, the template designer can comprise but is not limited to design tools such as a PC client side or a web online designer, and the printing template can be previewed and temporarily stored in the editing process.
Meanwhile, the service platform supports version management, changes are synchronized to the service platform by submitting the printing template after the printing template is modified each time, the version number of the template is increased progressively when the printing template is submitted, and the service platform can be set to be not modified once the current version is submitted.
In the embodiment of the present invention, after the created print template, the following steps may be further included: authenticating a system principal or a system member based on member information of the service system, and calling a template designer for the system principal or the system member after the authentication is passed; locking a target printing template in a template designer in response to a modification operation of a system principal or a system member; in response to the editing operation of a system principal or a system member, extracting a modified layout and a modified style from the modified target printing template; previewing and displaying the modified target printing template based on the modified layout and the modified style in response to the previewing operation of a system principal or a system member; previewing and updating the target printing template, the template version number and the locking state thereof based on the modified layout and the modified style in response to the saving operation of a system principal or a system member; or, newly adding a printing template based on the modified layout and the modified style, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the modified target printing template.
For the existing printing template, a system leader or a system member can update or modify the existing printing template, and the printing template can be previewed and temporarily stored in the editing process. It should be noted that, before updating or modifying, a printing template that needs to be operated (i.e. a target printing template) may be locked, and if the locking is successful, the printing template may be updated or modified, otherwise, subsequent operations cannot be performed, that is, mutual exclusion modification rules are supported, and each time the system attempts to lock the target printing template before modifying, the locking is successful and is modified, and if there are other users who are modifying, the locking fails. In the locking failure scene, the local printing template is read-only and can not be modified, so that the problem of mutual coverage data loss caused by simultaneously modifying the printing templates by a plurality of users is avoided.
Step S102: print job data is acquired from the print request.
The print job data may include a business system number, a print template number, a template version number, print data, and an output mode. When a service system has a printing requirement, the service system only needs to carry the used printing template information (namely, the service system number, the printing template number and the template version number), the specific printing content (namely, printing data) and the printing result (namely, a printing document is output to a printer or is output as a local file) in the printing request sent to the service platform, and does not need to independently develop a specific printing function.
In the embodiment of the present invention, step S102 may be implemented by: monitoring a printing interface; receiving a printing request sent by a service system through a printing interface; and acquiring a service system number, a printing template number, a template version number, printing data and an output mode from the printing request.
The printing client of the service platform can provide printing interfaces for all the service systems, the printing requests of the service systems can be sent to the printing interfaces, and the printing client can monitor the printing interfaces, timely receive the printing requests and analyze the printing requests to obtain printing operation data.
Step S103: and acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
After the print job data is obtained, the print client can obtain the print template according to the needs of the service system, that is, a specific print template can be located through the system number, the print template number and the template version number provided by the service system.
In the embodiment of the present invention, step S103 may be implemented by: inquiring a service system number, a printing template number and a template version number in a local file system of a printing client; if the corresponding printing template exists, acquiring the printing template corresponding to the printing request from the local file system; and if the corresponding printing template does not exist, requesting the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
Because the local file system such as the local cache of the printing client can store some used printing templates, after receiving the printing request, the corresponding printing template can be inquired from the local file system, if so, the printing template in the local file system is directly used for subsequent rendering and other operations, and if not, the corresponding printing template is inquired from the service platform. In addition, the printing client can support the coexistence of multiple versions of the printing template, so that the gray scale release of the printing template is realized.
Step S104: a print document is generated for the print request based on the print data and the print template.
The print client may perform rendering or the like on the print data based on the print template, thereby generating a print document of the print request.
In the embodiment of the present invention, step S104 may be implemented by: analyzing the printing template to obtain a printing style and a printing canvas; placing the printing data on a printing canvas according to a printing style to generate a printing document; outputting the printed document to a printer or as a local file based on the output mode; and feeding back the printing result.
After determining the printing template, the printing client analyzes the printing template to obtain a printing style and a printing canvas, places printing data in the printing canvas according to the printing style to generate a printing document, outputs the printing document to a printer for printing according to an output mode specified by a printing request, outputs the printing document as a local file for a user to use, and finally feeds back a printing result to the service system so that the service system knows whether the printing is successful or not.
It should be noted that the business system may be an internet-based delivery service system, which provides order business related to immediate delivery for the merchant, and the generated printed document may be various types of tickets corresponding to the order business, such as a receipt for the customer, a courier for the deliverer, or a receipt for the chef.
According to the data printing method provided by the embodiment of the invention, the configuration service system is adopted, and at least one printing template corresponding to the service system is recorded; acquiring print job data from the print request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; the technical means for generating the printing document for the printing request based on the printing data and the printing template overcomes the technical problems that different business systems have variable printing requirements in different business scenes, a large amount of labor and time cost can be consumed in a development link, and the maintainability of the business systems is poor, further solves the problem that the printing requirements of different business systems in different business scenes are variable, reduces the development and operation cost in the aspects of labor, time and the like, and improves the maintainability of the business systems.
In order to further illustrate the technical idea of the present invention, the technical solution of the present invention will now be described with reference to specific application scenarios.
In logistics management warehouses, transportation and distribution businesses, a plurality of business systems have similar functions of printing documents, labels and documents according to business data. If each system independently develops the printing function according to the specific requirements, the problems of repeated functions, high development cost and poor maintainability are brought.
According to the data printing method provided by the embodiment of the invention, the whole life cycle is divided into four stages of system access, template design, printer configuration and job printing, each stage is provided with a preset extension mechanism to take over the dynamic printing function of each system, so that the problem that the printing requirements of different service systems are variable in different service scenes is solved, the overall development cost is reduced, and the maintainability of the service systems is improved.
By accessing the printing management system, the business system does not need to independently realize all printing related functions, and can finish the rendering and printing work of the complex printing operation only by organizing business data according to the API provided by the printing management system. The development and operation cost is greatly saved, and the maintainability of the service system is improved.
The data printing method of the embodiment of the invention can divide the life cycle of the printing operation into 4 stages, namely a system access stage, a template design stage, a printing client configuration stage and an operation printing stage.
In the system access phase, different service systems can be registered in the printing management system through configuration so as to dynamically configure templates and analyze printing job data in subsequent processes, specifically:
the method comprises the following steps: the system administrator of the service system needs to provide service system numbers, member information and the like to register on the service platform, wherein the system administrator can add system members and can also designate other system members as administrators. The printing template, the data model and other metadata are isolated from each other among different business systems and do not influence each other. In addition, the service platform provides various identity authentication modes, and only the authenticated system principal and system members can log in the system to perform template creation, editing, publishing and printing operations;
step two: after the system person in charge or member logs in the system through identity authentication, a data source can be created. The data source defines a mode of acquiring the printing data in the service system and a printing data structure, namely a printing data model. Different traffic types of a traffic system may create different data sources. In the process of creating the data source, the service platform can import the data model basic initial structure from the business system and edit the data model basic initial structure. In the data source definition process, the data supply mode can be selected to be push or pull. The pull type requires the service system to provide data access modes, such as database connection, HTTP request address, file path and the like. The configuration determines the data acquisition mode of a printing client in a job printing stage in different modes. The pseudo code for the print data model class is shown in FIG. 2, and the data model and print template associated metadata descriptions are shown in Table 1.
TABLE 1
Figure BDA0002402707520000141
Figure BDA0002402707520000151
Figure BDA0002402707520000161
In the template design stage, a system principal or a system member configured in the service platform can serve as a template author, and the template author can design a printing template through a printing template designer after logging in the service platform, specifically:
the method comprises the following steps: when a template author logs in, the service platform can determine a business system to which the template author belongs according to identity information of the template author;
step two: the template author may create a new print template, at which point a data model may be selected via the template creation wizard, and the print style may begin with a blank template or may refer to an existing print template. The printing template comprises metadata information such as a system, a template number, a template version number (default initial state version number is 0), a data model, sample data, a locking state and the like, and a printing style;
step three: the template author can place the fields in the data model at specific positions of the blank template, edit the control in the blank template to define the field printing style, preview the printing effect at any time in the editing process, store the editing result in the form of a printing template file in a temporary storage state, store the editing result in the local PC of a template editor or a server, and open the file at any time for editing before submitting;
step four: after the edition is finished, the template author can submit the blank template after the edition to the service platform, once the blank template is submitted, an independent version number is generated for the template (namely, the printing template), the content is not modifiable, and the submitted template (namely, the printing template) can be used for printing;
step five: the template author can open a printing template file temporarily stored in the local of the template designer PC or open a printing template which is already released;
step six: after the issued printing template is opened, the printing template is in a read-only state, all contents cannot be modified, a template locking request (namely locking the target printing template) is submitted to a printing server by using an editing function, if the template is not locked by other authors, the locking is successful, and the current author can modify the template; otherwise, locking fails, the printing template still keeps a read-only state, and the user who edits the template at present is returned;
step seven: after the author finishes editing, submitting the change to the service platform through the submission template, wherein once the submission is successful, the template version is automatically increased in an increasing way, and the template state is automatically unlocked;
in addition, the system principal can force the unlocking of the template under editing in the service platform, and transfer the editing right to other system members.
A printing client configuration stage:
the method comprises the following steps: the members of the business system as printing operators can start a printing client at the PC where the printer is located, and the identity and the business system which the members belong to are determined by logging in.
Step two: and a printing operator configures the binding relationship between the printing template and the printer under the current business system through the printing client.
Step three: and the printing client generates system service, executes the system service in a silent mode in the background of the system, starts monitoring service and serves as an API (application programming interface) to receive the printing request from the service system.
When the printing client is started, whether the printing template with the configured printer has a new version is checked, and if the printing template has the new version, the printing template is automatically downloaded to a local file system.
In the job printing stage, the business system submits a printing job to a printing client for printing, specifically:
the method comprises the following steps: the business system needs to organize the printing operation data, including the information of the business system number, the printing template number, the template version number, the printing data, the output mode and the like;
step two: the business system submits the print job to the print client through an API (application program interface provided by the print client, e.g., rpc service remote call or HTTP request);
step three: the printing client determines a printing template and a version thereof according to the printing job information, if the number or the version number of the printing template described in the printing job exists in a local file system, the local file is directly used as the template to perform subsequent rendering operation, otherwise, the service platform is requested to provide the corresponding printing template, and if the number or the version number cannot be found, a printing error of the service system is returned;
step three: the printing client starts a printing rendering engine, analyzes the printing template, places the printing data at a specific position of a printing canvas in a specified style, and generates a final printing result document;
step four: the printing client determines to output the printing result document to a printer or a local file such as PDF, Word, Excel and the like according to the output mode in the printing operation;
step five: and the printing client feeds back the printing success or failure state to the service system.
As a preferred implementation manner, as shown in fig. 3, a service system access process of the data printing method according to the embodiment of the present invention is as follows:
a service system person in charge fills access information such as a data source, a data model, an access mode and the like in a printing metadata management service (namely a service platform);
if the service system provides an automatic data model synchronization mechanism, a schema service can be registered;
when the service system information is stored in the printing metadata management service, a method for acquiring entity fields in the schema service of the service system is automatically called, and (Getschema) entity and field information (namely a data model) are acquired from a source system (namely the service system);
after acquiring the information of the entity field, the printing metadata management service merges the information with the existing data model and the entity field in the current system (CreateFullDM), so as to ensure that the data model in the printing metadata management service is consistent with the source system;
the system leader may also edit the data model (EditFull DM) at the print metadata management service;
after the data model is modified, the modification needs to be validated through publishing (Publish), and entities and fields changed in the data model can be used in a subsequent template designer;
when the data model in the source system changes, the schema service of the service system can be recalled through a synchronization (Sync) operation to acquire the data model structure.
The template editing process involves two system roles and three components in the system, where:
role:
the source system can send a printing job to the printing client;
the template author: designing a printing style through a template designer according to a data model created by a system leader;
printing system components:
a template designer: designing a presentation style of the printing content according to the entity and field definition in the data model;
printing service: managing data models, printing metadata of templates (i.e. service platform);
the printing client side: and finishing the printing and rendering work according to the printing operation sent by the service system.
As a preferred embodiment, as shown in fig. 4, a print template editing process of the data printing method according to the embodiment of the present invention is as follows:
a template author creates (Create) a blank template through a template designer, wherein in the process, a user is required to select a data model (ChooseDataSource) used in the blank template, and the template designer acquires entity field information in the (GetDataSource) data model according to the selection of the user and creates (CreateDataModel) the blank template;
editing (Edittemplate) the created blank template by a template author, and realizing the personalized requirement of the printing content by operations of placing a control, binding to an entity/field and the like;
the template author can also PreView (PreView) printing effect at any time through a template designer in the process of editing the blank template;
printing the template to a printing service by submitting (submit) after the template author finishes editing;
if the source system registers the metadata synchronization service during the system access process, the printing service will inform the source system of the printing template information created by the template author through the service,
the above is the process of template creation and editing,
when the source system needs to execute the printing operation, submitting (SendPrintJob) the printing operation (namely a printing request) to the printing client according to the printing template number, the template version number and the printing data;
the print client acquires (GetTemplate) a corresponding version of the print template and the entity field Schema defined by the data model through the print service, thereby performing a Render (Render) print operation.
The printer configuration and job printing process involves two participants and three system modules, wherein:
the participants:
the printer: a user operating the business system to perform a print job;
a service system: the system is in butt joint with the printing client and is responsible for receiving the operation of a printer and sending a printing job;
a system module:
a print engine manager: the printing mode for setting the printing job can select a printer or save the rendering result to a file;
the printing client side: a system component for receiving the printing operation from the service system and performing rendering and printing according to the printing configuration;
printing service: a system component (i.e., a service platform) that stores print templates and data model metadata.
As a preferred embodiment, as shown in fig. 5, the printer configuration and job printing process of the data printing method according to the embodiment of the present invention are as follows:
when a printer uses a printing client for the first time, a printing template required to be used and a printing mode need to be configured in a printing engine manager, and at the moment, the printing engine manager can acquire available printers in the current system and provide a selection for a user;
a printer operation business system sends (Sendprint) printing operation (namely printing request) to a printing client, wherein the printing operation comprises a printing template number, a template version number, printing data and the like;
the printing client sends a request to the printing service, inquires (Gettemplate) the printing template and a data model corresponding to the printing template according to the number of the printing template and the version number of the template, and executes rendering (Render) operation according to the metadata;
if the business system needs to PreView and then determines whether to print, a PreView (PreView) request can be sent to a printing client, and the printing client can generate a picture or a PDF file and the like as a result and returns the result to the business system for self display;
after all the print jobs are completed, the print client collects information such as the print execution time, the success/failure status of execution, and the reason, and sends the information as a print log (i.e., a print result) to a print service (SendPrintLog) for statistical analysis of the client execution status.
Fig. 6 is a schematic diagram of main modules of the print management system according to the embodiment of the present invention.
As shown in fig. 6, a print management system 600 of an embodiment of the present invention includes: a service platform 601, a stencil designer 602, and a print client 603.
Wherein,
the service platform 601 is used for configuring a service system; recording at least one printing template corresponding to the service system; and invoking the stencil designer 602;
the template designer 602 is configured to receive an edit of the print template by a system administrator or a system member;
the print client 603 is configured to receive a print request, and obtain a service system number, a print template number, a template version number, and print data from the print request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; and generating a printing document for the printing request based on the printing data and a printing template corresponding to the printing request.
In this embodiment of the present invention, the service platform 601 may further be configured to:
configuring a service system based on the service system number and the member information; the member information comprises a system person in charge, system members and right limits thereof;
responding to the definition operation of the system principal or the system member, recording a data model of the business system defined by the system principal or the system member and a data obtaining mode;
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer 602 for the system principal or the system member after the authentication is passed;
recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model and a locking state of the printing template; establishing a binding relationship between the printing template and a printer;
updating a local file system of the print client 603 in response to a start operation of the print client 603; wherein the local file system is used for storing the printing template.
In this embodiment of the present invention, the template designer 602 may further be configured to:
responding to the editing operation of the system principal or the system member, acquiring a newly-built blank template and a selected data model of the system principal or the system member, and extracting a printing layout and a printing style from the edited blank template;
previewing and displaying the edited blank template based on the data model, the printing layout and the printing style in response to a preview operation of the system principal or the system member;
responding to the storage operation of the system principal or the system member, storing the edited blank template as a printing template, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the edited blank template.
In this embodiment of the present invention, the template designer 602 may further be configured to:
responding to the modification operation of the system leader or the system member, and locking a target printing template;
in response to the editing operation of the system principal or the system member, extracting a modified layout and a modified style from the modified target printing template;
previewing and displaying the modified target printing template based on the modified layout and the modified style in response to a preview operation of the system principal or the system member;
in response to a save operation of the system principal or the system member, previewing and updating the target printing template and the template version number and locking state thereof based on the modified layout and the modified style; or, adding a printing template based on the modified layout and the modified style, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the modified target printing template.
In this embodiment of the present invention, the print client 603 may further be configured to:
monitoring a printing interface of the printing client 603;
receiving a printing request sent by the service system through the printing interface;
and acquiring a service system number, a printing template number, a template version number, printing data and an output mode from the printing request.
In this embodiment of the present invention, the print client 603 may further be configured to:
querying the service system number, the printing template number and the template version number in a local file system of the printing client 603;
if the corresponding printing template exists, acquiring the printing template corresponding to the printing request from the local file system;
and if the corresponding printing template does not exist, requesting the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
In this embodiment of the present invention, the print client 603 may further be configured to:
analyzing the printing template to obtain a printing style and a printing canvas;
placing the printing data on the printing canvas according to the printing style to generate a printing document;
outputting the printed document to a printer or as a local file based on the output mode; and
and feeding back a printing result to the service system.
According to the printing management system provided by the embodiment of the invention, the configuration service system is adopted, and at least one printing template corresponding to the service system is recorded; acquiring print job data from the print request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; the technical means for generating the printing document for the printing request based on the printing data and the printing template overcomes the technical problems that different business systems have variable printing requirements in different business scenes, a large amount of labor and time cost can be consumed in a development link, and the maintainability of the business systems is poor, further solves the problem that the printing requirements of different business systems in different business scenes are variable, reduces the development and operation cost in the aspects of labor, time and the like, and improves the maintainability of the business systems.
Fig. 7 illustrates an exemplary system architecture 700 to which the data printing method of an embodiment of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 701, 702, 703.
The terminal devices 701, 702, and 703 may be terminal devices held by merchants, and are installed with merchant-side clients. The terminal device can establish a communication connection with the printing device so as to control the printing device to print the bill, wherein the bill includes but is not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer and the like.
The server 705 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 701, 702, and 703. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be noted that the data printing method provided by the embodiment of the present invention is generally executed by the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a service platform, a stencil designer, and a print client.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: step S101: configuring a service system and recording at least one printing template corresponding to the service system; step S102: acquiring print job data from the print request; step S103: acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; step S104: a print document is generated for the print request based on the print data and the print template.
According to the technical scheme of the embodiment of the invention, the business system is configured, and at least one printing template corresponding to the business system is recorded; acquiring print job data from the print request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; the technical means for generating the printing document for the printing request based on the printing data and the printing template overcomes the technical problems that different business systems have variable printing requirements in different business scenes, a large amount of labor and time cost can be consumed in a development link, and the maintainability of the business systems is poor, further solves the problem that the printing requirements of different business systems in different business scenes are variable, reduces the development and operation cost in the aspects of labor, time and the like, and improves the maintainability of the business systems.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A data printing method, comprising:
configuring a service system and recording at least one printing template corresponding to the service system;
acquiring print job data from the print request; the printing operation data comprises a service system number, a printing template number, a template version number and printing data;
acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number;
and generating a printing document for the printing request based on the printing data and a printing template corresponding to the printing request.
2. The data printing method according to claim 1, wherein configuring a service system and recording at least one printing template corresponding to the service system comprises:
configuring a service system based on the service system number and the member information; the member information comprises a system person in charge, system members and right limits thereof;
responding to the definition operation of the system principal or the system member, recording a data model of the business system defined by the system principal or the system member and a data obtaining mode;
recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model and a locking state of the printing template; establishing a binding relationship between the printing template and a printer;
responding to the starting operation of the printing client, and updating a local file system of the printing client; wherein the local file system is used for storing the printing template.
3. The data printing method according to claim 2, wherein recording a printing template created by the system principal or the system member, and setting a business system number, a printing template number, a template version number, a data model, and a locking state of the printing template comprises:
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer for the system principal or the system member after the authentication is passed;
responding to the editing operation of the system principal or the system member, acquiring a blank template newly built in the template designer by the system principal or the system member and a selected data model, and extracting a printing layout and a printing style from the edited blank template;
previewing and displaying the edited blank template based on the data model, the printing layout and the printing style in response to a preview operation of the system principal or the system member;
responding to the storage operation of the system principal or the system member, storing the edited blank template as a printing template, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the edited blank template.
4. The data printing method according to claim 2, wherein a printing template created by the system principal or the system member is recorded, and a service system number, a printing template number, a template version number, a data model, and a locking status of the printing template are set, and thereafter, further comprising:
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer for the system principal or the system member after the authentication is passed;
locking a target print template in the template designer in response to a modification operation by the system principal or the system member;
in response to the editing operation of the system principal or the system member, extracting a modified layout and a modified style from the modified target printing template;
previewing and displaying the modified target printing template based on the modified layout and the modified style in response to a preview operation of the system principal or the system member;
in response to a save operation of the system principal or the system member, previewing and updating the target printing template and the template version number and locking state thereof based on the modified layout and the modified style; or, adding a printing template based on the modified layout and the modified style, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the modified target printing template.
5. The data printing method according to claim 2, wherein the print job data further includes an output mode; and
acquiring print job data from a print request, comprising:
monitoring a printing interface of the printing client;
receiving a printing request sent by the service system through the printing interface;
and acquiring a service system number, a printing template number, a template version number, printing data and an output mode from the printing request.
6. The data printing method according to claim 5, wherein obtaining the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number comprises:
inquiring the service system number, the printing template number and the template version number in a local file system of the printing client;
if the corresponding printing template exists, acquiring the printing template corresponding to the printing request from the local file system;
and if the corresponding printing template does not exist, requesting the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
7. The data printing method of claim 5, wherein generating a print document for the print request based on the print data and a print template corresponding to the print request comprises:
analyzing the printing template to obtain a printing style and a printing canvas;
placing the printing data on the printing canvas according to the printing style to generate a printing document;
outputting the printed document to a printer or as a local file based on the output mode; and
and feeding back a printing result to the service system.
8. A print management system comprising a service platform, a stencil designer, and a print client, wherein:
the service platform is used for configuring a business system; recording at least one printing template corresponding to the service system; and invoking the stencil designer;
the template designer is used for receiving the edition of a system leader or a system member on the printing template;
the printing client is used for receiving a printing request and acquiring a service system number, a printing template number, a template version number and printing data from the printing request; acquiring a printing template corresponding to the printing request according to the service system number, the printing template number and the template version number; and generating a printing document for the printing request based on the printing data and a printing template corresponding to the printing request.
9. The print management system of claim 8, wherein the service platform is further configured to:
configuring a service system based on the service system number and the member information; the member information comprises a system person in charge, system members and right limits thereof;
responding to the definition operation of the system principal or the system member, recording a data model of the business system defined by the system principal or the system member and a data obtaining mode;
authenticating the system principal or the system member based on the member information of the business system, and calling a template designer for the system principal or the system member after the authentication is passed;
recording a printing template created by the system principal or the system member, and setting a service system number, a printing template number, a template version number, a data model and a locking state of the printing template; establishing a binding relationship between the printing template and a printer;
responding to the starting operation of the printing client, and updating a local file system of the printing client; wherein the local file system is used for storing the printing template.
10. The print management system of claim 9, wherein the stencil designer is further configured to:
responding to the editing operation of the system principal or the system member, acquiring a newly-built blank template and a selected data model of the system principal or the system member, and extracting a printing layout and a printing style from the edited blank template;
previewing and displaying the edited blank template based on the data model, the printing layout and the printing style in response to a preview operation of the system principal or the system member;
responding to the storage operation of the system principal or the system member, storing the edited blank template as a printing template, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the edited blank template.
11. The print management system of claim 9, wherein the stencil designer is further configured to:
responding to the modification operation of the system leader or the system member, and locking a target printing template;
in response to the editing operation of the system principal or the system member, extracting a modified layout and a modified style from the modified target printing template;
previewing and displaying the modified target printing template based on the modified layout and the modified style in response to a preview operation of the system principal or the system member;
in response to a save operation of the system principal or the system member, previewing and updating the target printing template and the template version number and locking state thereof based on the modified layout and the modified style; or, adding a printing template based on the modified layout and the modified style, and setting the service system number, the printing template number, the template version number and the locking state of the printing template; or temporarily storing the modified target printing template.
12. The print management system of claim 9, wherein the print client is further configured to:
monitoring a printing interface of the printing client;
receiving a printing request sent by the service system through the printing interface;
and acquiring a service system number, a printing template number, a template version number, printing data and an output mode from the printing request.
13. The print management system of claim 12, wherein the print client is further configured to:
inquiring the service system number, the printing template number and the template version number in a local file system of the printing client;
if the corresponding printing template exists, acquiring the printing template corresponding to the printing request from the local file system;
and if the corresponding printing template does not exist, requesting the printing template corresponding to the printing request according to the service system number, the printing template number and the template version number.
14. The print management system of claim 9, wherein the print client is further configured to:
analyzing the printing template to obtain a printing style and a printing canvas;
placing the printing data on the printing canvas according to the printing style to generate a printing document;
outputting the printed document to a printer or as a local file based on the output mode; and
and feeding back a printing result to the service system.
15. An electronic device for printing data, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of printing data as claimed in any one of claims 1 to 7.
16. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out a data printing method according to any one of claims 1 to 7.
CN202010151792.8A 2020-03-06 2020-03-06 Data printing method and printing management system Active CN113360100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010151792.8A CN113360100B (en) 2020-03-06 2020-03-06 Data printing method and printing management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010151792.8A CN113360100B (en) 2020-03-06 2020-03-06 Data printing method and printing management system

Publications (2)

Publication Number Publication Date
CN113360100A true CN113360100A (en) 2021-09-07
CN113360100B CN113360100B (en) 2023-09-01

Family

ID=77524135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010151792.8A Active CN113360100B (en) 2020-03-06 2020-03-06 Data printing method and printing management system

Country Status (1)

Country Link
CN (1) CN113360100B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026338A (en) * 2019-11-14 2020-04-17 用友网络科技股份有限公司 Printing method, printing device and storage medium based on editable template
CN114281276A (en) * 2021-12-06 2022-04-05 浪潮软件股份有限公司 Service document printing method and device and computer readable medium
CN115454363A (en) * 2022-09-14 2022-12-09 北京木屋时代科技有限公司 Instruction implementation method and device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002278731A (en) * 2001-03-15 2002-09-27 Tohoku Ricoh Co Ltd Printing support system and printing system
CN108319435A (en) * 2018-01-24 2018-07-24 北京三快在线科技有限公司 Method of printing, device and the electronic equipment of bill
CN109254739A (en) * 2018-08-23 2019-01-22 北京京东尚科信息技术有限公司 file printing method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002278731A (en) * 2001-03-15 2002-09-27 Tohoku Ricoh Co Ltd Printing support system and printing system
CN108319435A (en) * 2018-01-24 2018-07-24 北京三快在线科技有限公司 Method of printing, device and the electronic equipment of bill
CN109254739A (en) * 2018-08-23 2019-01-22 北京京东尚科信息技术有限公司 file printing method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUYAN PENG等: "Fabrication of Micro-lens Arrays Based on Ink-jet Printing and Photolithographic Hole Templates for Integral Imaging 3-D Display", 《JOURNAL OF DISPLAY TECHNOLOGY》 *
刘向东;黄金国;: "通用身份信息采集打印系统设计与实现", 软件导刊, no. 04 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026338A (en) * 2019-11-14 2020-04-17 用友网络科技股份有限公司 Printing method, printing device and storage medium based on editable template
CN111026338B (en) * 2019-11-14 2023-10-03 用友网络科技股份有限公司 Printing method, printing device and storage medium based on editable template
CN114281276A (en) * 2021-12-06 2022-04-05 浪潮软件股份有限公司 Service document printing method and device and computer readable medium
CN115454363A (en) * 2022-09-14 2022-12-09 北京木屋时代科技有限公司 Instruction implementation method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113360100B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US10708252B2 (en) Configuring credentials to faciltate sharing data in a secure manner
US12111894B2 (en) User experience container level identity federation and content security
CN113360100B (en) Data printing method and printing management system
US7912811B2 (en) Computer-based system and computer program product for collaborative editing of documents
US10769356B2 (en) Synchronizing review comments between source and shared documents
KR101086620B1 (en) Smart office system and server for managing the sames and method for managing the sames
US20220245588A1 (en) Providing a binary data file to a client application using a document model
US20200349120A1 (en) Document collaboration
US11782822B2 (en) Templates for content spaces in a content management system
CN113434098B (en) Printing function realization method, device, electronic equipment, system and storage medium
CN116185383A (en) Draggable self-configuration workflow generation method and system
KR102013620B1 (en) Web based document editing server for changing template of web based document and operating method thereof
US8448183B2 (en) Presentation layer application integration
CN117573635A (en) Drawing management method and system based on PDM system
JP2007179209A (en) Recording/management method of business processes or documents
CN112000816B (en) Data processing method and device
CN112926294A (en) Template file generation method and device
US10083313B2 (en) Remote modification of a document database by a mobile telephone device
US11922116B2 (en) Annotations in a content model of a content management system
JP3818396B2 (en) Printing system, print server, and information providing method thereof
US11783294B1 (en) Templates for content spaces in a content management system
US11783293B1 (en) Templates for content spaces in a content management system
JP7060788B2 (en) Information processing equipment, information processing equipment control methods, and computer programs
WO2023198725A1 (en) Model of a content management system
CN115455915A (en) Form operation method and device

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