A method and a component for batch printing based on service interface configuration

By using a dynamic configuration method based on business interfaces and a form-printing component, the high cost and low flexibility of existing form-printing methods under complex business requirements are solved, enabling fast and flexible form-printing operations and reducing enterprise costs.

CN117235164BActive Publication Date: 2026-05-29GREENTOWN TECH IND SERVICES CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREENTOWN TECH IND SERVICES CO LTD
Filing Date
2023-09-30
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, the traditional form printing method for business systems has high code development costs and is not conducive to dynamic expansion when facing complex business requirements. Meanwhile, the support of third-party form printing tools is limited and it is difficult to meet the diverse business form printing needs.

Method used

By analyzing the business's pre-printing requirements, dynamic configuration is performed based on the business system's query interface, including basic pre-printing configuration and content configuration. Pre-printing components are implemented using configuration units, input units, and interface units to complete the pre-printing operation.

Benefits of technology

It simplifies the configuration process for pre-printed forms, reduces development work, meets the complex needs of different businesses, accelerates response speed, and reduces enterprise labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117235164B_ABST
    Figure CN117235164B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of based on service interface configuration's method and the method of printing, method analysis service printing demand, based on service printing demand respectively carries out printing basic configuration and printing content configuration, calls configuration information on service end, completes printing;Component carries out printing basic configuration and printing content configuration with configuration unit, obtains service printing demand with input unit, with interface unit integration interface and with service system, printing unit is based on configuration and service system and is docked, and the printing demand of service printing demand is executed described based on service interface configuration's printing method.The present application is only needed to configure interface and the mapping of content when configuration, it is more simple;Dynamic printing demand configuration is carried out and printing demand is realized, reduces the development work of each service for printing demand;Meet the complex requirements of different services for printing, accelerate the response speed to service demand, reduce enterprise manpower cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic digital data processing; input devices for converting data to be processed into a form that can be processed by a computer; and output devices for transmitting data from a processor to an output device. In particular, it relates to a method and component for form printing based on a service interface configuration. Background Technology

[0002] Information technology is an ideal state in which information technology is highly applied and information resources are highly shared, thereby fully realizing the potential of human intelligence and social material resources, and rationalizing individual behavior, organizational decision-making, and social operation. Continuously using IT to transform traditional economic and social structures is an inevitable trend in the sustained development of information technology. As information technology continues to develop horizontally and vertically, all industries are beginning to have or will have their own business systems.

[0003] Along with business systems comes the management and utilization of various files and data. Pre-printing is one form of this management and utilization. Initially, it referred to printing existing content from documents or vouchers according to a specific format. This method of outputting data using existing formats improved data reading efficiency and optimized reading results. Currently, pre-printing is used in a wider range of business scenarios.

[0004] As business processes become increasingly complex, the requirements for pre-printed templates also increase. Generally, there are two methods for pre-printing templates in business systems: one is through code development, and the other is by using third-party pre-printing tools.

[0005] The former method is more robust and has fewer errors. It only requires writing code directly according to business needs. However, when it is necessary to implement bundled printing for a large number of different business needs, its development cost is relatively high and it is not conducive to dynamic expansion.

[0006] The latter is more convenient and flexible. It can also be dynamically configured and converted based on existing query interfaces, or dynamically written SQL for form printing configuration, which has certain convenience. However, the latter method has very limited support for complex business form printing, and it is generally based on business interface form printing, which can only support form printing configuration for a single query interface. Summary of the Invention

[0007] This invention solves the problems existing in the prior art and provides a form printing method and form printing component based on business interface configuration.

[0008] The technical concept of this invention is that, for different business printing needs, there are already a large number of existing business interfaces that can be used for querying. These interfaces are readily available and can meet all the data requirements of printing. Therefore, based on these interfaces, the printing needs of the business can be dynamically implemented. The administrator first configures the interfaces and printing content for the business printing needs, and then the business can perform printing.

[0009] The technical solution adopted in this invention is a form printing method based on business interface configuration. The method analyzes business form printing requirements, performs basic form printing configuration and form printing content configuration based on the business form printing requirements, and calls the configuration information on the business side to complete the form printing.

[0010] Preferably, the basic configuration of the form printing includes the configuration of the form printing name, the form printing interface and its corresponding information, and the list pagination information.

[0011] Preferably, the form printing interface includes a list query interface, a single data detailed content query interface, and a list and detailed content combination interface; the list query interface is configured with a list query interface address, and the single data detailed content query interface is configured with a detailed content query interface address; the corresponding information also includes the mapping between the list query results and the detailed content query interface.

[0012] Preferably, the configuration of the printed content includes the configuration of printed type, printed tags, and printed data dictionary mapping.

[0013] Preferably, the method includes the following steps:

[0014] Step 1: Obtain the requirements for pre-printed forms;

[0015] Step 2: Read the form printing configuration information;

[0016] Step 3: Analyze the form printing interface type and obtain the form printing solution based on the form printing interface type;

[0017] Step 4: Based on the pre-printing scheme, organize the pre-printing data;

[0018] Step 5: Map and match the pre-printed data to the pre-printed template, and then perform the pre-printing.

[0019] Preferably, for the list query interface, step 3 includes the following steps:

[0020] Step 3.1.1: Determine if the list query is configured for pagination. If yes, proceed to step 3.1.3; otherwise, proceed to the next step.

[0021] Step 3.1.2: Organize query conditions and interface information, and directly perform a list query; proceed to step 3.1.4;

[0022] Step 3.1.3: Organize pagination query conditions to perform pagination list queries until all data has been retrieved;

[0023] Step 3.1.4: Combine the list query results and proceed to step 4.

[0024] Preferably, for the interface for querying detailed content of a single data item, step 3 includes the following steps:

[0025] Step 3.2.1: Organize the query conditions and directly perform a single data query operation;

[0026] Step 3.2.2: Organize the data for querying the detailed content of a single data item using the API, and proceed to Step 4.

[0027] Preferably, for the list and detailed content combined interface, step 3 includes the following steps:

[0028] Step 3.3.1: Determine if the list query is configured for pagination. If it is paginated, proceed to step 3.3.3; otherwise, proceed to the next step.

[0029] Step 3.3.2: Organize the query conditions and interface information, and directly perform a list query; proceed to step 3.3.4;

[0030] Step 3.3.3: Organize pagination query conditions to perform pagination list queries until all data has been queried;

[0031] Step 3.3.4: Combine the list query results and iterate through the list query result data;

[0032] Step 3.3.5: Perform single-page data query based on the list-to-details mapping and cache according to the list structure;

[0033] Step 3.3.6: Combine the single-page query results data in the manner of list query results, and proceed to step 4.

[0034] Preferably, in step 3.3.5, the query results of each list are matched with the single-page query data of the rule, and the single-page details data content interface is called to query and verify the data.

[0035] A form-printing component based on business interface configuration, the component comprising:

[0036] One configuration unit is used for basic configuration and content configuration of form printing;

[0037] One input unit is used to obtain the business's pre-printing requirements;

[0038] An interface unit is used to integrate interfaces and interface with business systems;

[0039] A single printing unit is used to interface with the business system based on configuration and execute the printing method based on the business interface configuration for business printing requirements.

[0040] This invention relates to a form printing method and component based on business interface configuration. The method analyzes business form printing requirements, performs basic form printing configuration and form printing content configuration based on the business form printing requirements, and calls the configuration information on the business side to complete the form printing. The component performs basic form printing configuration and form printing content configuration in the configuration unit, obtains business form printing requirements in the input unit, integrates interfaces and interfaces with the business system in the interface unit, and the form printing unit interfaces with the business system based on the configuration and executes the form printing method based on business interface configuration for the business form printing requirements.

[0041] The beneficial effects of this invention are as follows:

[0042] (1) The configuration only requires configuring the mapping between the interface and the content, which is relatively simple;

[0043] (2) Dynamically configure and implement the form printing requirements to reduce the development work for each business regarding form printing requirements;

[0044] (3) To meet the complex requirements of different businesses for pre-printing, accelerate the response speed to business needs, and reduce the company's human resource costs. Attached Figure Description

[0045] Figure 1 This is a flowchart of the method of the present invention;

[0046] Figure 2 This is a schematic diagram of the component structure of the present invention. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0048] This invention relates to a form printing method based on business interface configuration. The method analyzes business form printing requirements, performs basic form printing configuration and form printing content configuration based on the business form printing requirements, and calls the configuration information on the business side to complete the form printing.

[0049] In fact, the method of the present invention is divided into two parts: configuring the business form printing and performing the form printing operation on the business side. The former is generally completed by an administrator with the necessary permissions.

[0050] The basic configuration for form printing includes the form printing name, form printing interface and its corresponding information, and the configuration of list pagination information.

[0051] The form printing interface includes a list query interface, a single data item detailed content query interface, and a list and detailed content combination interface; the list query interface is configured with a list query interface address, and the single data item detailed content query interface is configured with a detailed content query interface address; the corresponding information also includes the mapping between the list query results and the detailed content query interface.

[0052] The configuration of the printed content includes the configuration of printed type, printed label, and printed data dictionary mapping.

[0053] In this invention, the printed name includes, but is not limited to, the corresponding business name and the unique identifier (ID) for printing;

[0054] List pagination information refers to whether the list is paginated, which is usually indicated by 0 or 1.

[0055] In this invention, the type of form printing is divided into multi-data form printing or single-page form printing, which is generally identified by 0 or 1.

[0056] "Tag matching" refers to the corresponding tags in the query results.

[0057] In this invention, it should be noted that during the actual configuration process, permission information also needs to be configured. That is, the lists and data information that business terminals with different permissions can obtain by form printing will be different, and their form printing templates will also be different to some extent.

[0058] The method is described below with reference to embodiments, and the method includes the following steps:

[0059] Step 1: Obtain the form printing requirements and obtain the form printing ID based on the form printing request; In the specific implementation process, user verification is also required here. For users with different permissions, the data they can obtain will be different, that is, their final form printing data and corresponding templates may be different.

[0060] Step 2: Read the form printing configuration information;

[0061] Step 3: Analyze the form printing interface type and obtain the form printing solution based on the form printing interface type;

[0062] If it is a list query, the form printing scheme is obtained through the list query interface. If it is a query for detailed content of a single data item, the form printing scheme is obtained through the query for detailed content of a single data item. If it is a combination of list and detailed content, the form printing scheme is obtained through the combination of list and detailed content interface.

[0063] For the list query interface, step 3 of the list query logic includes the following steps:

[0064] Step 3.1.1: Determine if the list query is configured for pagination. If yes, proceed to step 3.1.3; otherwise, proceed to the next step.

[0065] Step 3.1.2: Organize query conditions and interface information, and directly perform a list query; proceed to step 3.1.4;

[0066] Step 3.1.3: Organize the pagination query conditions to perform a paginated list query until all data is retrieved; the pagination query conditions here can be set to retrieve 1000 records per page until the data is empty.

[0067] Step 3.1.4: Combine the list query results, organize the list query interface data, and proceed to Step 4.

[0068] For the single data detail query interface, step 3 of the single data detail query logic includes the following steps:

[0069] Step 3.2.1: Organize the query conditions and directly perform a single data query operation;

[0070] Step 3.2.2: Organize the data for querying the detailed content of a single data item using the API, and proceed to Step 4.

[0071] For the list and detailed content combination interface, the list and detailed content combination logic is accessed, and step 3 includes the following steps:

[0072] Step 3.3.1: Determine if the list query is configured for pagination. If it is paginated, proceed to step 3.3.3; otherwise, proceed to the next step.

[0073] Step 3.3.2: Organize the query conditions and interface information, and directly perform a list query; proceed to step 3.3.4;

[0074] Step 3.3.3: Organize the pagination query conditions to perform a paginated list query until all data is retrieved; the pagination query conditions here can be set to retrieve 1000 records per page until the data is empty.

[0075] Step 3.3.4: Combine the list query results and iterate through the list query result data;

[0076] Step 3.3.5: Perform single-page data query based on the list-to-details mapping and cache according to the list structure;

[0077] In step 3.3.5, the query results of each list are matched with the single-page query data of the rules, and the single-page details data content interface is called to query and verify the data.

[0078] Step 3.3.6: Combine the single-page query results data in the manner of list query results, and use it as the data for the list and detailed content combination interface to print the data, and proceed to step 4.

[0079] Step 4: Based on the pre-printing scheme, organize the pre-printing data;

[0080] Step 5: Map and match the pre-printed data to the pre-printed template and perform pre-printing; specifically, iterate and map the pre-printed data according to the set pre-printed template and the data structure of the query results, assemble the pre-printed data, and perform the pre-printing operation.

[0081] In this invention, this method not only enables rapid data acquisition and printing based on different business types, but also avoids unnecessary data risks through interface calls.

[0082] In this invention, when an error occurs during the overprinting process, data can be traced back based on the final overprint template to easily locate the location of the error. This allows for reprinting or partial reprinting. When partial reprinting is selected, it is only necessary to hide the part of the overprint template that was correctly overprinted, thus avoiding data duplication and disorder caused by reprinting and facilitating data collection and processing.

[0083] This invention also relates to a form printing component based on business interface configuration, the component comprising:

[0084] One configuration unit is used for basic configuration and content configuration of form printing;

[0085] One input unit is used to obtain the business's pre-printing requirements;

[0086] An interface unit is used to integrate interfaces and interface with business systems;

[0087] A single printing unit is used to interface with the business system based on configuration and execute the printing method based on the business interface configuration for business printing requirements.

[0088] In this invention, the method can be implemented by configuring a form printing component on the query end, and the form printing component is implemented by encapsulating data and methods.

[0089] In this invention, the component's configuration unit provides a configuration port or configuration interface, enabling authorized administrators to perform basic configuration and content configuration for form printing.

[0090] The component's input unit provides an input interface, allowing the application side of the business system to submit requests and obtain the final printed result;

[0091] That is, the component can ultimately be presented in a visual interface.

[0092] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0093] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0094] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0095] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0096] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0097] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for overlay printing based on business interface configuration, characterized in that: The method analyzes the business's form printing requirements, performs basic form printing configuration and form printing content configuration based on the business's form printing requirements, and calls the configuration information on the business side to complete the form printing. The method includes the following steps: Step 1: Obtain the requirements for pre-printed forms; Step 2: Read the form printing configuration information; the form printing basic configuration includes the form printing name, form printing interface and its corresponding information, and list pagination information configuration. The form printing interface includes the list query interface, the single data detailed content query interface, and the list and detailed content combination interface. Step 3: Analyze the form printing interface type and obtain the form printing solution based on the form printing interface type; for the combined list and detailed content interface, Step 3 includes the following steps: Step 3.3.1: Determine if the list query is configured for pagination. If it is paginated, proceed to step 3.3.3; otherwise, proceed to the next step. Step 3.3.2: Organize the query conditions and interface information, and directly perform a list query; proceed to step 3.3.4; Step 3.3.3: Organize pagination query conditions to perform pagination list queries until all data has been queried; Step 3.3.4: Combine the list query results and iterate through the list query result data; Step 3.3.5: Perform single-page data query based on the list-to-details mapping and cache according to the list structure; Step 3.3.6: Combine the single-page query results data in a list query format, and proceed to step 4; Step 4: Based on the pre-printing scheme, organize the pre-printing data; Step 5: Map and match the pre-printed data to the pre-printed template, and then perform the pre-printing.

2. The method for overlay printing based on business interface configuration according to claim 1, characterized in that: The corresponding list query interface is configured with the list query interface address, and the corresponding single data detailed content query interface is configured with the detailed content query interface address; the corresponding information also includes the mapping between the list query results and the detailed content query interface.

3. The method for overlay printing based on business interface configuration according to claim 1, characterized in that: The configuration of the printed content includes the configuration of printed type, printed label, and printed data dictionary mapping.

4. The method for overlay printing based on business interface configuration according to claim 1, characterized in that: For the list query interface, step 3 includes the following steps: Step 3.1.1: Determine if the list query is configured for pagination. If yes, proceed to step 3.1.3; otherwise, proceed to the next step. Step 3.1.2: Organize query conditions and interface information, and directly perform a list query; proceed to step 3.1.4; Step 3.1.3: Organize pagination query conditions to perform pagination list queries until all data has been retrieved; Step 3.1.4: Combine the list query results and proceed to step 4.

5. The method for overlay printing based on business interface configuration according to claim 1, characterized in that: For the detailed content query interface for a single data entry, step 3 includes the following steps: Step 3.2.1: Organize the query conditions and directly perform a single data query operation; Step 3.2.2: Organize the data for querying the detailed content of a single data item using the API, and proceed to Step 4.

6. The method for overlay printing based on business interface configuration according to claim 1, characterized in that: In step 3.3.5, the query results of each list are matched with the single-page query data of the rules, and the single-page details data content interface is called to query and verify the data.

7. A form printing component based on business interface configuration, characterized in that: The components include: One configuration unit is used for basic configuration and content configuration of form printing; One input unit is used to obtain the business's pre-printing requirements; An interface unit is used to integrate interfaces and interface with business systems; A single printing unit is used to interface with the business system based on configuration and to execute the printing method based on the business interface configuration as described in any one of claims 1 to 6 for business printing requirements.