CN111459424B - Printing method and system - Google Patents

Printing method and system Download PDF

Info

Publication number
CN111459424B
CN111459424B CN202010242730.8A CN202010242730A CN111459424B CN 111459424 B CN111459424 B CN 111459424B CN 202010242730 A CN202010242730 A CN 202010242730A CN 111459424 B CN111459424 B CN 111459424B
Authority
CN
China
Prior art keywords
printing
message
template
elements
integrated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010242730.8A
Other languages
Chinese (zh)
Other versions
CN111459424A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010242730.8A priority Critical patent/CN111459424B/en
Publication of CN111459424A publication Critical patent/CN111459424A/en
Application granted granted Critical
Publication of CN111459424B publication Critical patent/CN111459424B/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/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Human Computer Interaction (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention provides a printing method and a printing system, wherein the method comprises the following steps: acquiring printing templates and printing messages corresponding to a plurality of transactions stored in a cache in advance; determining the relative coordinates of all printing elements in all printing templates; integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template; integrating the message elements in all the printing messages to obtain an integrated printing message; and generating a final printed page by utilizing the integrated printing template and the integrated printing message. In the scheme, a printing template and a printing message corresponding to each service are obtained from a cache. And integrating all the printing templates and the printing messages respectively to obtain an integrated printing template and an integrated printing message, and generating a final printing page by utilizing the integrated printing template and the integrated printing message. And a printing page is not required to be generated every transaction, all certificates are integrated into one printing page after all transactions are processed for clients, so that the processing efficiency of the business is improved and the service experience of the clients is improved.

Description

Printing method and system
Technical Field
The invention relates to the technical field of data processing, in particular to a printing method and a printing system.
Background
When a customer deals with business at a banking website, a plurality of transactions are usually involved, and when each transaction is handled for the customer, a bank teller prints a certificate and signs the certificate with the customer. On the one hand, however, it takes time to print a certificate every transaction, and the transaction efficiency of the business is low. On the other hand, every time a credential is printed, a name needs to be signed by the client, and the client needs to store a plurality of credentials, so that the service experience of the client is poor.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a printing method and system, so as to solve the problems of low handling efficiency, poor service experience of clients, and the like in the current business handling manner.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
the first aspect of the embodiment of the invention discloses a printing method, which comprises the following steps:
acquiring a printing template and a printing message corresponding to a plurality of transactions stored in a cache in advance, wherein each transaction corresponds to one printing template and one printing message;
determining the relative coordinates of all printing elements in all the printing templates;
integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template;
integrating all the message elements in the printing message to obtain an integrated printing message;
and generating a final printing page by utilizing the integrated printing template and the integrated printing message.
Preferably, the determining the relative coordinates of all print elements in all the print templates includes:
sequencing printing elements in the printing templates according to absolute ordinate to each printing template to obtain sequenced printing templates;
and determining the relative coordinates of all the printing elements in all the sequenced printing templates by using a preset ordinate offset value and an inter-template offset value, wherein the ordinate offset value indicates the longitudinal distance of the current printing element relative to the last printing element, and the inter-template offset value indicates the longitudinal distance of the first printing element of the current printing template relative to the last printing element of the last printing template.
Preferably, the integrating all the message elements in the print message to obtain an integrated print message includes:
analyzing each printed message to obtain a message element corresponding to each printed message, wherein the message element at least comprises an ID of the message element;
performing message element ID de-duplication processing on all the message elements;
and merging all the message elements subjected to message element ID de-duplication processing to obtain an integrated printing message.
Preferably, the generating a final printed page by using the integrated printing template and the integrated printing message includes:
performing printing logic processing on the integrated printing template and the integrated printing message to obtain an initial printing page;
and performing de-duplication processing and null value removing processing on the printing page elements in the initial printing page to obtain a final printing page, wherein the printing page elements after the deleted printing page elements are moved upwards by a preset ordinate offset value, and the ordinate offset value indicates the distance between the current printing element in the integrated printing template and the last printing element.
Preferably, after the de-duplication processing and the nulling processing are performed on the print page elements in the initial print page, the method further includes:
and setting an area for printing the electronic seal or stamping seal at a preset position of the initial printing page.
Preferably, after the final printed page is generated, the method further includes:
and clearing the printing template and the printing message in the cache.
A second aspect of an embodiment of the present invention discloses a printing system, the system comprising:
the acquisition unit is used for acquiring printing templates and printing messages corresponding to a plurality of transactions stored in a cache in advance, wherein each transaction corresponds to one printing template and one printing message;
a determining unit, configured to determine relative coordinates of all print elements in all the print templates;
the template integrating unit is used for integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template;
the message integration unit is used for integrating the message elements in all the printing messages to obtain an integrated printing message;
and the printing page generating unit is used for generating a final printing page by utilizing the integrated printing template and the integrated printing message.
Preferably, the determining unit is specifically configured to: and sequencing the printing elements in the printing templates according to absolute ordinate to obtain sequenced printing templates, and determining the relative coordinates of all the printing elements in all the sequenced printing templates by using preset ordinate offset values and inter-template offset values, wherein the ordinate offset values indicate the longitudinal distance of the current printing element relative to the last printing element, and the inter-template offset values indicate the longitudinal distance of the first printing element of the current printing template relative to the last printing element of the last printing template.
Preferably, the message integration unit is specifically configured to: analyzing each printed message to obtain message elements corresponding to each printed message, wherein the message elements at least comprise the IDs of the message elements, performing message element ID duplication removal processing on all the message elements, and merging all the message elements subjected to the message element ID duplication removal processing to obtain an integrated printed message.
Preferably, the print page generating unit is specifically configured to: and performing printing logic processing on the integrated printing template and the integrated printing message to obtain an initial printing page, and performing de-duplication processing and de-null value processing on printing page elements in the initial printing page to obtain a final printing page, wherein the printing page elements after the deleted printing page elements are moved upwards by a preset ordinate offset value, and the ordinate offset value indicates the distance between the current printing element in the integrated printing template and the last printing element.
Based on the printing method and system provided by the embodiment of the invention, the method comprises the following steps: acquiring printing templates and printing messages corresponding to a plurality of transactions stored in a cache in advance; determining the relative coordinates of all printing elements in all printing templates; integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template; integrating the message elements in all the printing messages to obtain an integrated printing message; and generating a final printed page by utilizing the integrated printing template and the integrated printing message. In the scheme, each transaction is processed, a printing template and a printing message corresponding to the transaction are stored in a cache, and after all the transactions are processed, the printing template and the printing message corresponding to each service are obtained from the cache. And integrating all the printing templates and the printing messages respectively to obtain an integrated printing template and an integrated printing message, and generating a final printing page by utilizing the integrated printing template and the integrated printing message. And a printing page is not required to be generated every transaction, all certificates are integrated into one printing page after all transactions are processed for clients, so that the processing efficiency of the business is improved and the service experience of the clients is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a printing method according to an embodiment of the present invention;
FIG. 2 is a flow chart for determining the relative coordinates of a print element according to an embodiment of the present invention;
FIG. 3 is a flowchart of an embodiment of the present invention for obtaining an integrated print message;
FIG. 4 is another flow chart of a printing method according to an embodiment of the present invention;
fig. 5 is a block diagram of a printing system according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As known from the background art, when a bank deals with a service for a client at present, a certificate is printed for each transaction to give the client a signature, the handling efficiency of the service is low, the client needs to sign and store a plurality of certificates for many times, and the service experience of the client is poor.
Therefore, the embodiment of the invention provides a printing method and a printing system, wherein each transaction is processed, a printing template and a printing message corresponding to the transaction are stored in a cache, and after all the transactions are processed, all the printing templates and the printing messages in the cache are respectively integrated to obtain an integrated printing template and an integrated printing message. And generating a final printed page by utilizing the integrated printing template and the integrated printing message, and integrating all certificates into one printed page so as to improve the business handling efficiency and the service experience of clients.
Referring to fig. 1, a flowchart of a printing method provided by an embodiment of the present invention is shown, where the printing method includes:
step S101: and obtaining printing templates and printing messages corresponding to the multiple transactions stored in the cache in advance.
It should be noted that, when a customer handles a service, the customer may be involved in handling multiple transactions, and after receiving a completion instruction for indicating that the handling of one transaction is completed, the customer stores a print template and a print message corresponding to the one transaction in a cache.
It can be understood that each transaction corresponds to a printing template and a printing message, and the printing message is the data to be printed to the customer, and the printing template of each transaction has a corresponding relationship with the printing message.
For example: setting a button for finishing the current transaction on a device interface of a bank teller for finishing the transaction, clicking the button when the bank teller finishes the current transaction for a client, and storing a printing template and a printing message corresponding to the current finished transaction into a cache.
It will be appreciated that the print template and the print message may be stored in the same cache, or different cache partitions may be provided for storing the print template and the print message respectively, which is not specifically limited herein.
Step S102: the relative coordinates of all print elements in all print templates are determined.
It will be appreciated that each item (field) in the print template is a print element, and that the print template has a plurality of print elements therein, each print element including, but not limited to, a field name (e.g., a client number) and a field location (coordinates).
In the specific implementation process of step S102, it should be noted that, for each print template, the current coordinates of the print element in the print template are absolute coordinates, where the absolute coordinates are the top margin and the left margin of the print element relative to the corresponding print template, i.e., absolute coordinates= (top margin, left margin). For example: for a certain print element in a certain print template, the absolute coordinates of the print element are pos= "1000 (Y-axis coordinates), 500 (X-axis coordinates)", indicating that the print element is 100mm from the top edge of the print template and 50mm from the left edge of the print template.
1000 is a special unit for printing, 100mm is indicated, and the coordinates of the printing element are the front Y-axis coordinates and the rear X-axis coordinates.
Before all the printing templates need to be combined, the relative coordinates of all the printing elements in all the printing templates need to be determined, the positions of each printing element are distinguished, and the phenomenon that the coordinates of the printing elements overlap is avoided, for example: the relative coordinates of a certain print element are offset= "50, 500",50 indicating that the print element is 5mm from the last print element on the Y-axis, 50mm from the left.
That is, the absolute coordinates of the print elements in the different print templates may coincide or have overlapping portions, and if the absolute coordinates of all the print elements are not converted into relative coordinates, a phenomenon in which the print elements overlap occurs when integrating all the print templates, and thus it is necessary to determine the relative coordinates of all the print elements in all the print templates.
It will be appreciated that when converting the absolute coordinates of the print element to relative coordinates, the absolute ordinate (the coordinates on the Y-axis) is converted to relative ordinate, and the absolute abscissa is unchanged, i.e. relative abscissa=absolute abscissa.
For example: the absolute coordinates of the print element are pos= "1000, 500" converted into the relative coordinates offset= "50, 500".
Step S103: and integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template.
In the process of embodying step S103, after converting the absolute coordinates of each print element into relative coordinates, the position of each print element can be distinguished. And integrating all the printing templates into one template based on the relative Y-axis coordinates by utilizing the relative coordinates of each printing element, thus obtaining the integrated printing template.
Step S104: and integrating the message elements in all the printing messages to obtain an integrated printing message.
In the specific implementation process of step S104, the print messages corresponding to each print template are integrated, that is, the message elements in all the print messages are integrated, so as to obtain an integrated print message.
It can be understood that the message element is the data filled in the printing element of the printing template, and the column in the printing element is matched with the message element through the ID. That is, the field of the print element having the same ID and located in the same print template is filled with the message element, i.e., the field of the print element having the same ID is matched with the message element.
It should be noted that, every time a transaction is completed, the printing template and the printing message corresponding to the transaction have a package name, and the package name is used for distinguishing multiple transactions. That is, it may be determined whether the print element and the message element belong to a print template corresponding to the same transaction according to the package names of the print element and the message element.
It is to be understood that the execution sequence of the steps S102 to S104 includes, but is not limited to, the above sequence, and the steps S104, S102 and S103 may be executed first, and the execution sequence is not specifically limited herein.
Step S105: and generating a final printed page by utilizing the integrated printing template and the integrated printing message.
In the specific implementation process of step S105, the integrated print template and the integrated print message are subjected to print logic processing, so as to obtain an initial print page. That is, the message elements in the integrated printing message are filled in the corresponding columns of the printing elements to obtain the initial printing page, and the printing page elements in the initial printing page consist of the printing elements in the integrated printing template and the message elements in the integrated printing message.
It will be appreciated that the same page element may appear in the initial page, i.e. page elements having the same field and the same message element, for example: columns such as organization number, teller number and date and corresponding message elements will appear in each transaction, that is, the initial printed page will have multiple times of data such as organization number, teller number and date. Therefore, it is necessary to perform a de-duplication process on the printed page elements in the initial printed page, and for the duplicated printed page elements, only one copy is left, and the remaining duplicated printed page elements are deleted.
After deleting the repeated page elements, the page elements after deleting the page elements are moved upwards by a preset ordinate offset value, for example: after a printed page element is deleted, the printed page element following the printed page element is moved up 50 (5 mm), and the ordinate offset value indicates the longitudinal distance of the current printed element relative to the previous printed element in the integrated print template.
It will be appreciated that there may be blank page elements in the initial page, and thus the nulling process is performed on the page elements in the initial page. And traversing all the printing page elements by using an automatic null value removing algorithm, determining the printing page elements with null values, and deleting the printing page elements with null values.
After deleting the print page element having the null value, the print page element following the deleted print page element is moved upward by a preset ordinate offset value.
In the above way, the de-duplication process and the de-nulling process are performed on the print page elements in the initial print page, so as to obtain a final print page and print the final print page.
Preferably, before the final printed page is obtained, an area for printing the electronic seal or stamp is set at a preset position of the initial printed page after the de-duplication process and the nullification process. For example: an area (circular area or rectangular area) of a specified size is set at the end of the initial print page, and the area can be used for printing an electronic seal or stamping.
Also for example: a rectangular area with the length of 45mm and the width of 28mm is arranged at the tail of the initial printing page and is used for printing an electronic seal or stamping.
From the foregoing, when a business is transacted for a customer, print templates and print messages of a plurality of transactions corresponding to the business are stored. Preferably, in order to avoid the dead halt caused by excessive data stored in the buffer, or to avoid repeated printing, after the final printed page is generated and printed, the printing template and the printing message in the buffer are cleared, i.e. the buffer is released.
In the embodiment of the invention, each transaction is processed, the printing template and the printing message corresponding to the transaction are stored in the buffer memory, and after all the transactions are processed, the printing template and the printing message corresponding to each business are obtained from the buffer memory. And integrating all the printing templates and the printing messages respectively to obtain an integrated printing template and an integrated printing message, and generating a final printing page by utilizing the integrated printing template and the integrated printing message. The method does not need to generate a printing page every transaction, but integrates all certificates into one printing page after all transactions are transacted for clients, and only needs to print once, so that the transaction efficiency of the business is improved and the service experience of the clients is improved.
The above-mentioned process of determining the relative coordinates of the printing element referred to in step S102 of fig. 1 according to the embodiment of the present invention, referring to fig. 2, shows a flowchart of determining the relative coordinates of the printing element according to the embodiment of the present invention, including the steps of:
step S201: and sequencing the printing elements in the printing templates according to absolute ordinate to each printing template to obtain the sequenced printing templates.
In the process of implementing step S201 specifically, it should be noted that, each print template has its own absolute coordinates (including an absolute ordinate and an absolute abscissa), and the absolute ordinate of each print element in the print template does not increase sequentially. Therefore, the print elements in each print template need to be ordered in absolute ordinate, and the positions of the print elements in each print template are first individually sorted.
It will be appreciated that in the same print template, the print elements in the print template are ordered first according to the absolute ordinate, and if print elements with the same absolute ordinate appear, the print elements are ordered according to the absolute abscissa.
When a plurality of transactions are handled for a customer, the transaction sequence is referred to, and the transaction numbers are numbered according to the transaction sequence, and the printing templates and the printing messages are numbered according to the transaction sequence.
When the print elements of each print template are ordered, the print templates may be ordered sequentially according to the transaction order, or the print templates may be ordered according to other orders, which is not particularly limited herein.
Step S202: and determining the relative coordinates of all printing elements in all the sequenced printing templates by using a preset ordinate offset value and an inter-template offset value.
It will be appreciated that when integrating (or splicing) a plurality of printing templates into one template, in order to distinguish printing templates corresponding to different transactions, each printing template may be displayed in sequence in one printing page (integrated printing template) according to the transaction order. Such as: and integrating the printing templates from top to bottom in the printing templates into the printing template of the first transaction, the printing template of the second transaction and the printing template of the last transaction.
Presetting an ordinate offset value and an inter-template offset value, wherein the ordinate offset value refers to: for print elements in the same print template, the longitudinal distance of the current print element relative to the previous print element. The inter-template offset value refers to: the longitudinal distance of the first print element of the current print template relative to the last print element of the previous print template.
It should be noted that, the ordinate offset value in step S202 is identical to the ordinate offset value in step S105 of fig. 1 in the above-described embodiment of the present invention.
From the foregoing, to avoid overlapping coordinates of the print elements, it is necessary to distinguish the position of each print element by using the relative coordinates of all print elements. Thus, using the ordinate offset value, relative coordinates of the print elements of all of the ordered print templates are determined in sequence, based on the first print element of the ordered print template corresponding to the first transaction, for example: each print element following the first print element of the ordered print template corresponding to the first transaction is a distance of 50 (5 mm) from the last print element on the Y-axis.
It should be noted that, the coordinate value of the first printing element of the ordered printing template corresponding to the first transaction may be calibrated according to the actual situation.
It will be appreciated that in determining the relative coordinates of all print elements, it may be involved in determining the relative coordinates of print elements for different print templates, i.e. to distinguish between print templates corresponding to different transactions in an integrated print template, setting an inter-template offset value for distinguishing between different print templates.
The inter-template offset value indicates: the longitudinal distance of the first print element of the current print template relative to the last print element of the previous print template.
That is, after determining the relative coordinates of each print element of the current print template (referred to as the first print template), the first print element of the next print template (referred to as the second print template) is offset from the last print element of the first print template by the inter-template offset value on the Y-axis, and the second and subsequent print elements of the second print template are each offset from the last print element on the Y-axis by the ordinate offset value.
For example: the second and subsequent print elements of the first print template are each 50 (5 mm) from the last print element on the Y-axis, the first print element of the second print template is 100 (10 mm) from the last print element of the first print template on the Y-axis, and the second and subsequent print elements of the second print template are each 50 (5 mm) from the last print element on the Y-axis. That is, the inter-template offset value was 100 (10 mm).
By the method, the relative coordinates of all printing elements in all printing templates are determined, namely, repositioning is carried out on each printing element (absolute coordinates are converted into relative coordinates), mutual interference among all printing elements is eliminated, and then all printing templates are integrated into one template by utilizing the relative coordinates of all printing elements, so that the integrated printing template is obtained.
In the embodiment of the invention, the printing elements in each printing template are firstly ordered according to the absolute ordinate, and then the relative coordinates of all the printing elements in all the ordered printing templates are determined by using the preset ordinate offset value and the offset value between the templates. And integrating all the printing templates into an integrated printing template by utilizing the relative coordinates of all the printing elements, so that all the certificates are integrated in one printing page, the business handling efficiency is improved, and the service experience of a client is improved.
Referring to fig. 3, a flowchart of the process of obtaining an integrated print message related to step S104 in fig. 1 in the embodiment of the present invention is shown, where the process includes the following steps:
step S301: and analyzing each printed message to obtain a message element corresponding to each printed message.
It should be noted that, the format of the print message is extensible markup language (Extensible Markup Language, XML), and the message element at least includes the ID of the message element.
In the specific implementation step S301, each print message is parsed and useless content is removed, so as to obtain a message element including at least Key data of the print message, where the Key data is in a Key-Value pair (Key-Value).
Step S302: and carrying out message element ID de-duplication processing on all the message elements.
In the process of implementing step S302 specifically, it may be understood that, after all the print messages are parsed, message elements with the same ID may appear in the obtained message elements. And carrying out message element ID duplication removal processing on the message elements with the same ID, wherein the message element ID duplication removal processing method comprises the following steps: renaming the message elements with the same ID, and changing the original ID into an ID formed by adding the packet name to the ID.
For example: assuming that the ID of the message element a (referred to as ID 1) is the same as the ID of the message element B (referred to as ID 2), after performing the message element ID deduplication process, the ID of the message element a is: the packet name of the ID1+ message element A, and the ID of the message element B is: packet name of id2+ message element B.
For the content related to the packet name, refer to the content in step S104 in fig. 1 in the above embodiment of the present invention, and will not be described herein again.
Step S303: and merging all the message elements subjected to message element ID de-duplication processing to obtain an integrated printing message.
In the specific implementation step S303, after performing the message element ID deduplication processing on all the message elements, merging all the message elements to obtain an integrated print message. That is, all the print messages are combined into one message to obtain the integrated print message.
In the embodiment of the invention, after the message element ID de-duplication processing is carried out on all the message elements, all the message elements are combined to obtain the integrated printing message, and all the certificates are integrated in one printing page by utilizing the integrated printing message and the integrated printing template, so that the business handling efficiency and the customer service experience are improved.
For better explaining the contents of the embodiments of the present invention described above in fig. 1 to 3, it should be noted that fig. 4 is only for illustration.
Referring to fig. 4, another flowchart of a printing method according to an embodiment of the present invention is shown, the printing method including the steps of:
step S401: and obtaining a printing template and a printing message corresponding to each transaction.
In one implementation, a "current transaction complete" button is provided on the device interface of the bank teller transacting the transaction. When a customer transacts business, when a bank teller transacts the current transaction for the customer, clicking a 'current transaction completion' button, and storing a printing template and a printing message corresponding to the current completed transaction into a cache, thereby acquiring the printing template and the printing message corresponding to each transaction transacted by the bank teller for the customer.
Step S402: and acquiring a printing instruction.
In one implementation, a "print" button is provided on the equipment interface for the bank teller to transact the transaction, and when the bank teller completes all transactions for the customer, the bank teller clicks the "print" button, and then obtains the print instruction.
Step S403: integrating all the printing templates.
Step S404: and integrating all the printing messages.
Step S405: a final printed page is generated.
Step S406: releasing the cache.
It should be noted that, the execution principles of step S401 to step S406 can be referred to the contents of fig. 1 to 3 in the above embodiment of the present invention, and will not be described herein again.
In the embodiment of the invention, when a customer transacts a business, each transaction is completed, the printing template and the printing message corresponding to the transaction are stored in the cache. After all transactions are processed, according to the received printing instruction, integrating all printing templates and all printing messages to generate a final printing page, and generating a printing page for each transaction processing is not needed, and all certificates are integrated into one printing page after all transactions are processed for clients, so that the processing efficiency of the business is improved, and the service experience of the clients is improved.
Corresponding to the printing method provided by the embodiment of the present invention, referring to fig. 5, the embodiment of the present invention further provides a structural block diagram of a printing system, where the printing system includes: an acquisition unit 501, a determination unit 502, a template integration unit 503, a message integration unit 504, and a print page generation unit 505;
the acquiring unit 501 is configured to acquire print templates and print messages corresponding to a plurality of transactions stored in the cache in advance, where each transaction corresponds to one print template and one print message.
A determining unit 502 is configured to determine relative coordinates of all print elements in all print templates.
In a specific implementation, the determining unit 502 is specifically configured to: and sequencing the printing elements in the printing templates according to absolute ordinate to obtain sequenced printing templates aiming at each printing template, determining the relative coordinates of all the printing elements in all the sequenced printing templates by using a preset ordinate offset value and an inter-template offset value, wherein the ordinate offset value indicates the longitudinal distance of the current printing element relative to the last printing element, and the inter-template offset value indicates the longitudinal distance of the first printing element of the current printing template relative to the last printing element of the last printing template.
And a template integrating unit 503, configured to integrate all the printing templates by using the relative coordinates of each printing element to obtain an integrated printing template.
The message integrating unit 504 is configured to integrate the message elements in all the print messages to obtain an integrated print message.
In a specific implementation, the packet integrating unit 504 is specifically configured to: analyzing each printed message to obtain message elements corresponding to each printed message, wherein the message elements at least comprise the IDs of the message elements, performing message element ID duplication removal processing on all the message elements, and combining all the message elements subjected to the message element ID duplication removal processing to obtain the integrated printed message.
The print page generating unit 505 is configured to generate a final print page by using the integrated print template and the integrated print message.
In a specific implementation, the print page generation unit 505 specifically functions to: and performing printing logic processing on the integrated printing template and the integrated printing message to obtain an initial printing page, performing de-duplication processing and de-null value processing on printing page elements in the initial printing page to obtain a final printing page, wherein the printing page elements after the deleted printing page elements are moved upwards by a preset ordinate offset value, and the ordinate offset value indicates the distance between the current printing element in the integrated printing template and the last printing element.
Preferably, in combination with the content in fig. 5 according to the embodiment of the present invention, the print page generating unit 505 is further configured to: and setting an area for printing the electronic seal or stamping seal at a preset position of the initial printing page.
Preferably, in connection with the content of fig. 5, the printing system further includes:
and the clearing unit is used for clearing the printing template and the printing message in the cache.
In summary, the embodiments of the present invention provide a printing method and a system, which store a printing template and a printing message corresponding to a transaction into a buffer memory when the transaction is processed, and obtain the printing template and the printing message corresponding to each service from the buffer memory after all transactions are processed. And integrating all the printing templates and the printing messages respectively to obtain an integrated printing template and an integrated printing message, and generating a final printing page by utilizing the integrated printing template and the integrated printing message. And a printing page is not required to be generated every transaction, all certificates are integrated into one printing page after all transactions are processed for clients, so that the processing efficiency of the business is improved and the service experience of the clients is improved.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of printing, the method comprising:
acquiring a printing template and a printing message corresponding to a plurality of transactions stored in a cache in advance, wherein each transaction corresponds to one printing template and one printing message;
sequencing the printing elements in the printing templates according to absolute ordinate to each printing template to obtain sequenced printing templates;
determining the relative coordinates of all the printing elements in all the sequenced printing templates by using a preset ordinate offset value and an inter-template offset value, wherein the ordinate offset value indicates the longitudinal distance of the current printing element relative to the last printing element, and the inter-template offset value indicates the longitudinal distance of the first printing element of the current printing template relative to the last printing element of the last printing template;
integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template, wherein the integrated printing template is a template obtained by integrating all the printing templates by utilizing the relative coordinates of each printing element;
integrating all the message elements in the printing message to obtain an integrated printing message, wherein the integrated printing message is a printing message obtained by merging all the message elements after carrying out message element ID de-duplication treatment on all the message elements;
and generating a final printing page by utilizing the integrated printing template and the integrated printing message.
2. The method according to claim 1, wherein integrating the message elements in all the print messages to obtain an integrated print message comprises:
analyzing each printed message to obtain a message element corresponding to each printed message, wherein the message element at least comprises an ID of the message element;
performing message element ID de-duplication processing on all the message elements;
and merging all the message elements subjected to message element ID de-duplication processing to obtain an integrated printing message.
3. The method of claim 1, wherein generating a final printed page using the integrated print template and the integrated print message comprises:
performing printing logic processing on the integrated printing template and the integrated printing message to obtain an initial printing page;
and performing de-duplication processing and null value removing processing on the printing page elements in the initial printing page to obtain a final printing page, wherein the printing page elements after the deleted printing page elements are moved upwards by a preset ordinate offset value, and the ordinate offset value indicates the distance between the current printing element in the integrated printing template and the last printing element.
4. A method according to claim 3, wherein after the de-duplication process and the de-null value process are performed on the print page elements in the initial print page, further comprising:
and setting an area for printing the electronic seal or stamping seal at a preset position of the initial printing page.
5. The method of claim 1, wherein after the generating the final printed page, further comprising:
and clearing the printing template and the printing message in the cache.
6. A printing system, the system comprising:
the acquisition unit is used for acquiring printing templates and printing messages corresponding to a plurality of transactions stored in a cache in advance, wherein each transaction corresponds to one printing template and one printing message;
the determining unit is used for sequencing the printing elements in the printing templates according to the absolute ordinate to obtain sequenced printing templates; determining the relative coordinates of all the printing elements in all the sequenced printing templates by using a preset ordinate offset value and an inter-template offset value, wherein the ordinate offset value indicates the longitudinal distance of the current printing element relative to the last printing element, and the inter-template offset value indicates the longitudinal distance of the first printing element of the current printing template relative to the last printing element of the last printing template;
the template integrating unit is used for integrating all the printing templates by utilizing the relative coordinates of each printing element to obtain an integrated printing template, wherein the integrated printing template is a template obtained by integrating all the printing templates by utilizing the relative coordinates of each printing element;
the message integration unit is used for integrating all the message elements in the printing message to obtain an integrated printing message, wherein the integrated printing message is a printing message obtained by merging all the message elements after the message element ID de-duplication treatment is carried out on all the message elements;
and the printing page generating unit is used for generating a final printing page by utilizing the integrated printing template and the integrated printing message.
7. The system of claim 6, wherein the message integration unit is specifically configured to: analyzing each printed message to obtain message elements corresponding to each printed message, wherein the message elements at least comprise the IDs of the message elements, performing message element ID duplication removal processing on all the message elements, and merging all the message elements subjected to the message element ID duplication removal processing to obtain an integrated printed message.
8. The system according to claim 6, wherein the print page generation unit is specifically configured to: and performing printing logic processing on the integrated printing template and the integrated printing message to obtain an initial printing page, and performing de-duplication processing and de-null value processing on printing page elements in the initial printing page to obtain a final printing page, wherein the printing page elements after the deleted printing page elements are moved upwards by a preset ordinate offset value, and the ordinate offset value indicates the distance between the current printing element in the integrated printing template and the last printing element.
CN202010242730.8A 2020-03-31 2020-03-31 Printing method and system Active CN111459424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010242730.8A CN111459424B (en) 2020-03-31 2020-03-31 Printing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010242730.8A CN111459424B (en) 2020-03-31 2020-03-31 Printing method and system

Publications (2)

Publication Number Publication Date
CN111459424A CN111459424A (en) 2020-07-28
CN111459424B true CN111459424B (en) 2023-06-20

Family

ID=71682392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010242730.8A Active CN111459424B (en) 2020-03-31 2020-03-31 Printing method and system

Country Status (1)

Country Link
CN (1) CN111459424B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008151541A1 (en) * 2007-06-07 2008-12-18 Huawei Technologies Co., Ltd. Method, system and device for realizing the electronic bill
CN106406779A (en) * 2016-09-29 2017-02-15 贾琨 Electronic invoice printing method, system and equipment
CN109614058A (en) * 2018-12-17 2019-04-12 中国银行股份有限公司 A kind of Method of printing and printing equipment
CN110399108A (en) * 2019-08-16 2019-11-01 中国银行股份有限公司 Voucher print processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008151541A1 (en) * 2007-06-07 2008-12-18 Huawei Technologies Co., Ltd. Method, system and device for realizing the electronic bill
CN106406779A (en) * 2016-09-29 2017-02-15 贾琨 Electronic invoice printing method, system and equipment
CN109614058A (en) * 2018-12-17 2019-04-12 中国银行股份有限公司 A kind of Method of printing and printing equipment
CN110399108A (en) * 2019-08-16 2019-11-01 中国银行股份有限公司 Voucher print processing method and device

Also Published As

Publication number Publication date
CN111459424A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN109542980B (en) Data processing method, device, equipment and medium for block chain
JP4077909B2 (en) Form processing device
CN112329419A (en) Document editing method, device, server, terminal and storage medium
CN110399108B (en) Voucher printing processing method and device
CN112116116B (en) Bank outlet recommendation method and device
CN104021219A (en) Method and device for generating data template
CN104867250A (en) Business handling material handling method and device
CN111401002A (en) Method, device and computer storage medium for automatically identifying PDF electronic receipt information
CN111459424B (en) Printing method and system
CN107203601A (en) Data processing method and device applied to accounting processing
CN111179062B (en) Certificate repair method and device
CN107016613B (en) Data modification method and device
CN111104853A (en) Image information input method and device, electronic equipment and storage medium
JP5304397B2 (en) Form processing apparatus and form processing program
CN110457272B (en) Bill batch processing method and device
CN108885622A (en) The system and method for mostly main synchronous duplication optimization
CN112016269A (en) Policy data marking method and device
CN112597851A (en) Signature acquisition method and device, electronic equipment and storage medium
JP2014235619A (en) Image information processing apparatus and image information processing method
CN101520881B (en) Electronic signing tool and information displaying method and information displaying system thereof
JP2020166554A (en) Customer data maintenance system, method, and program
CN109753253B (en) Method, apparatus, system, and medium for document matching printing
CN117670344A (en) Transaction certificate generation method, device, electronic equipment and storage medium
CN111046064B (en) Method for acquiring book copyright information, electronic equipment and computer storage medium
CN107590657B (en) Bank data processing 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