CN114356252A - Dynamic field printing method, system and related device - Google Patents

Dynamic field printing method, system and related device Download PDF

Info

Publication number
CN114356252A
CN114356252A CN202111620107.2A CN202111620107A CN114356252A CN 114356252 A CN114356252 A CN 114356252A CN 202111620107 A CN202111620107 A CN 202111620107A CN 114356252 A CN114356252 A CN 114356252A
Authority
CN
China
Prior art keywords
field
expression
printing
reference field
dynamic
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
CN202111620107.2A
Other languages
Chinese (zh)
Other versions
CN114356252B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN202111620107.2A priority Critical patent/CN114356252B/en
Publication of CN114356252A publication Critical patent/CN114356252A/en
Application granted granted Critical
Publication of CN114356252B publication Critical patent/CN114356252B/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/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/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • 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

Abstract

The embodiment of the application discloses a dynamic field printing method, a system and a related device, wherein the method comprises the steps of configuring a calculation expression of a target business object and a field identifier for binding the calculation expression, obtaining an expression reference field and a function reference field which are correspondingly used in the calculation expression, calculating the expression reference field and the function reference field into a dynamic printing field according to the calculation expression, and matching the calculation result of the dynamic printing field to the field identifier. The method of the embodiment of the application can meet personalized printing display requirements of different users, can effectively reduce development workload compared with a traditional printing data adjustment scheme, can effectively improve user experience by using the calculation expression which is matched and used instantly in the process, and can meet printing requirements of different customers more flexibly and simply.

Description

Dynamic field printing method, system and related device
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a method, a system and a related device for printing a dynamic field.
Background
Although most of the existing enterprise application systems support the existing data on the printing document or report model, different customers have different printing and displaying requirements on the same business data, for example, different suppliers have different requirements on the printing and displaying contents of tax rate fields; in contrast, currently, corresponding enterprise data printing adjustment systems are usually developed for different customers to meet the printing requirements of the users, but the targeted solution causes a large workload of system development and is difficult to meet the printing requirements of the users in the later period.
Therefore, it is necessary to provide a solution that can effectively adjust print data by itself to meet print display requirements of different customers.
Disclosure of Invention
The embodiment of the application provides a dynamic field printing method, a dynamic field printing system and a related device, which are used for self-definitively adjusting printing data through configuring a computational expression.
A first aspect of an embodiment of the present application provides a method for printing a dynamic field, including:
configuring a calculation expression of a target business object and a field identifier for binding the calculation expression, so that a printing template determines printing display data referred by the calculation expression by binding the field identifier;
obtaining an expression reference field and a function reference field which are correspondingly used in the computational expression, wherein the expression reference field and the function reference field are correspondingly associated with the service field model data of the target service object;
calculating the expression reference field and the function reference field into a dynamic printing field according to the calculation expression;
matching the calculation result of the dynamic printing field to the field identifier so that the calculation result is output as printing data to an output control of the printing template through the field identifier.
Optionally, said computing said expression reference field and said function reference field as a dynamic print field according to said computational expression comprises:
and calculating the expression reference field and the function reference field according to the calculation expression to form a dynamic printing field for accessing the business field model data corresponding to the expression reference field and the function reference field in multiple levels.
Optionally, said computing said expression reference field and said function reference field as a dynamic print field according to said computational expression comprises:
and calculating the expression reference field and the function reference field according to the calculation expression to form a dynamic printing field for formatting and processing the business field model data corresponding to the expression reference field and the function reference field.
Optionally, after configuring the computational expression of the target business object and the field identifier for binding the computational expression, and before obtaining the expression reference field and the function reference field used in the computational expression correspondingly, the method further includes:
and generating a printing task of the target business object according to the target document data and the printing template configured with a preset printing field.
Optionally, after the generating of the print job of the target business object and before the obtaining of the expression reference field and the function reference field used in the calculation expression correspondingly, the method further includes:
analyzing the calculation expression to obtain all service field model information and function library information associated with the target service object;
the obtaining of the expression reference field and the function reference field used correspondingly in the computational expression includes:
and extracting the service field model data correspondingly associated with the expression reference field and the function reference field from all the service field model information and function library information associated with the target service object.
Optionally, after the matching of the calculation result of the dynamic printing field to the field identifier, the method further comprises:
and outputting the preset printing field configured in the printing template and the calculation result as printing data to the printing template so as to obtain a self-defined printing display interface.
Optionally, before the computing the expression reference field and the function reference field into the dynamic print field according to the computational expression, the method further comprises:
creating a runtime environment that supports computing the computational expression.
A second aspect of the embodiments of the present application provides a dynamic field printing system, including:
the processing unit is used for configuring a computational expression of a target business object and a field identifier for binding the computational expression, so that the printing template determines the printing display data referred by the computational expression by binding the field identifier;
an obtaining unit, configured to obtain an expression reference field and a function reference field that are used correspondingly in the computational expression, where the expression reference field and the function reference field correspond to service domain model data associated with the target service object;
the processing unit is further used for calculating the expression reference field and the function reference field into a dynamic printing field according to the calculation expression;
the processing unit is further configured to match a calculation result of the dynamic printing field to the field identifier, so that the calculation result is output as printing data to an output control of the printing template through the field identifier.
Optionally, the processing unit is specifically configured to calculate, according to the calculation expression, the expression reference field and the function reference field to be dynamic printing fields for accessing, in multiple levels, service domain model data corresponding to the expression reference field and the function reference field.
Optionally, the processing unit is specifically configured to calculate, according to the calculation expression, the expression reference field and the function reference field into a dynamic print field for formatting and processing business domain model data corresponding to the expression reference field and the function reference field.
Optionally, the processing unit is further configured to generate a print job of the target business object according to the target document data and the print template configured with a preset print field.
Optionally, the processing unit is further configured to obtain all service domain model information and function library information associated with the target service object by analyzing the calculation expression;
the processing unit is specifically configured to extract, from all service domain model information and function library information associated with the target service object, service domain model data associated with the expression reference field and the function reference field correspondingly.
Optionally, the processing unit is further configured to output a preset print field configured in the print template and the calculation result as print data to the print template, so as to obtain a customized print display interface.
Optionally, the processing unit is further configured to create a runtime environment that supports operation of the computational expression.
A third aspect of the embodiments of the present application provides a dynamic field printing apparatus, including:
the system comprises a central processing unit, a memory and an input/output interface;
the memory is a transient memory or a persistent memory;
the central processing unit is configured to communicate with the memory and execute the instructions in the memory to perform the method described in the first aspect of the embodiments of the present application or any specific implementation manner of the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, including instructions that, when executed on a computer, cause the computer to perform a method as described in the first aspect of embodiments of the present application or any specific implementation manner of the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product comprising instructions that, when run on a computer, cause the computer to perform a method as described in the first aspect of embodiments of the present application or any implementation manner of the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the dynamic field printing method, the expression reference field and the function reference field can be calculated into the dynamic printing field through the self-defined calculation expression, so that the printing data required by the user is output to the printing template through the binding of the field identifier. Therefore, the method of the embodiment of the application can meet personalized printing display requirements of different users, can effectively reduce development workload compared with a traditional printing data adjustment scheme, can effectively improve user experience by using the calculation expression which is instantly matched and used in the process, and can meet printing requirements of different customers more flexibly and simply.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic flowchart of a dynamic field printing method according to an embodiment of the present application;
FIG. 2 is a field identifier configuration interface diagram according to an embodiment of the present application;
FIG. 3 is an expression editor interface diagram of an embodiment of the present application;
FIG. 4 is a print template design drawing and a print preview drawing of an embodiment of the present application;
FIG. 5 is another flowchart illustrating a method for printing dynamic fields according to an embodiment of the present application;
FIG. 6 is another expression editor interface diagram of an embodiment of the present application;
FIG. 7 is another expression editor interface diagram of an embodiment of the present application;
FIG. 8 is another print preview of an embodiment of the present application;
FIG. 9 is a schematic diagram of a dynamic field printing system according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a dynamic field printing apparatus according to an embodiment of the present application.
Detailed Description
In the conventional technology, the following two print data adjustment schemes are usually adopted to meet different print display requirements of a client under the same set of service data:
<1>, print plug-in intervention scheme: the business developer adjusts the printing data by specifically developing the printing plug-ins supported by the enterprise application system. <2>, print data readjustment scheme: utilizing a third-party tool to perform simple calculation adjustment on the data displayed during printing; for example, the enterprise application system binds fields under the document field model through an Excel template to generate a print Excel file, wherein the Excel template can readjust print data by using a library function of Excel.
Although the two schemes can meet different printing and displaying requirements of customers under the same set of business data, the two schemes have the defects aiming at enterprise application systems:
<1>, print plug-in intervention scheme: the business scene of the enterprise application system is complex, and the printing scene is the same, so that when each document needs to be printed and intervened by a plug-in, a large amount of labor cost is consumed by developers to carry out corresponding matching adjustment. <2>, print data readjustment scheme: due to the complicated document data, part of business logic cannot deeply intervene, for example, a third-party tool Excel has difficulty in filtering out some printing fields.
In the embodiment of the present application, a dynamic field is understood to be a virtual field that is dynamically calculated during adjustment of print data, and has both information of a calculation expression and a field identifier (referred to as a dynamic field identifier). An expression reference field, which often refers to a field name that can be directly obtained by translating a calculation expression (e.g., a supplier field of a purchase order, a default tax rate field of a supplier, as shown in fig. 3, and an accounting dimension field, as shown in fig. 6), may be understood as business object data that can be directly accessed or directly referenced through a translator of a platform; the function reference field usually refers to a field name (such as the encoding of the accounting dimension, the name of the accounting dimension, and the type of the accounting dimension shown in fig. 6) that the service function needs to acquire according to the service logic, which may be understood as service object data that the platform cannot directly acquire and needs to indirectly acquire through the service function; the most clear difference between the two fields is that the indirect reference field (i.e. function reference field) cannot be directly translated and is shown in the expression translation area, and the direct reference field (i.e. expression reference field) can be directly translated and is shown in the expression translation area.
Referring to fig. 1 to 4, a first aspect of the present application provides an embodiment of a dynamic field printing method, including:
101. a computational expression and a field identifier are configured.
The computational expression in the embodiment of the present application may be understood as a logical expression composed of one or more of numbers, operators, fields, number grouping symbols, free variables, and constraint variables, and a meaningful arrangement method capable of obtaining a final result, where the fields and functions used in the logical expression are usually derived from a function library of a dynamic business domain model (the business domain model may also be referred to as a business document model, and a common cost reimbursement order model and a common purchase order model).
Illustratively, the design process of the printing template may specifically include: custom configuring a computational expression of a target business object (e.g., a vendor) through an expression editor interface of a print template as shown in FIG. 3; and, a field identifier (for example, a bill Type Custom packet Type) for binding the computational expression is configured in a self-defined manner through a field identifier configuration interface of the printing template shown in fig. 2, so that the printing template finally determines the printing display data to which the computational expression refers by binding the field identifier, thereby realizing the printing display requirement shown in fig. 4 (the output result of the bill Type column is "value added tax").
102. An expression reference field and a function reference field are obtained.
In one specific implementation, the business domain model may be modeled as "model-element-attribute" such that each element supports different business characteristics, e.g., a material field (element layer, e.g., as a supplier of one of the basic data fields) under the purchase order model (model layer) supports obtaining its code field, name field, and associated carrying field (attribute layer); and the configuration of the computational expression may be used with the expression reference field and the function reference field to correspond to the associated business domain model data (e.g., the vendor field and its attributes, encoding).
Therefore, in order to output data on the document or the account table as a corresponding required calculation result according to the calculation logic of the calculation expression, that is, to display the data on the document or the account table by printing in a targeted manner, an expression reference field and a function reference field which are correspondingly used in the calculation expression need to be acquired first.
103. A dynamic print field is calculated.
Because the calculation expression in the embodiment of the application is a dynamic operation formula configured by a user (the dynamic state here can be understood as that which fields are displayed during printing, and a user other than a developer also has a setting authority), and is used for intervening in which data is displayed during printing through the operation logic contained in the calculation expression, the expression reference field and the function reference field can be calculated into a dynamic printing field representing the printing requirement of the user according to the operation logic contained in the calculation expression.
104. The result of the calculation of the dynamic print field is matched to the field identifier.
In practical applications, the calculation result of the dynamic printing field (referred to as the dynamic printing field result) may be understood as that data meeting the printing requirement of the user after logic calculation is output, so that the calculation result of the dynamic printing field is matched with the field identifier, and the calculation result is output as printing data to the output control of the printing template through the field identifier and then displayed on the printing preview interface.
According to the dynamic field printing method, the expression reference field and the function reference field can be calculated into the dynamic printing field through the self-defined calculation expression, so that the printing data required by the user is output to the printing template through the binding of the field identifier. Therefore, the method of the embodiment of the application can meet personalized printing display requirements of different users, can effectively reduce data redundancy and development workload compared with a traditional printing data adjustment scheme, and can effectively improve user experience by using the calculation expression which is ready to use.
Referring to fig. 2 to 8, the present application provides another embodiment of a dynamic field printing method, including:
501. a computational expression and a field identifier are configured.
502. And generating a printing task of the target business object.
When a user initiates a printing request to a certain document, a printing task related to a target business object needs to be generated according to the specified document and a designed printing template, so as to drive and execute subsequent operations of acquiring an expression reference field, a function reference field and the like. The designed printing template may include preset printing fields (such as document number and purchase date shown in fig. 4).
503. Acquiring all service field model information and function library information associated with a target service object;
because the contents of fields and the like correspondingly used in the calculation expression are usually from a business document model and a function library, and the data of one document in an enterprise application system is very much, if all the data in one document is directly selected for access before printing and outputting, the performance loss is not small; therefore, it is necessary to obtain all the service domain model information and function library information associated with the target service object, rather than all the massive information associated with each service object in the document, in a targeted manner by analyzing the calculation expression, so as to reduce performance loss and system operation cost.
504. An expression reference field and a function reference field are obtained.
And in all the acquired business field model information and function library information related to the target business object, the business field model data corresponding to the expression reference field and the function reference field is pertinently extracted, but the information corresponding to the field irrelevant to the printing requirement is not extracted, so that the loss of the system such as the operation time length is reduced.
505. A dynamic print field is calculated.
In the actual application process, the operating environment created by the enterprise application system should support all functions dynamically compiled by operating scripting languages such as Python or JavaScript, so that the scripting languages are used for self-defining the computational expressions, and more rich and robust computational characteristic scenes can be realized, instead of only supporting a general computational scene defined inside the platform as in the prior art (that is, if no scripting logic function required by a user is provided inside the platform, a corresponding required expression printing result cannot be realized through the platform); in the embodiment of the present application, an Iron Python is used to create an operating environment to support the operation of all functions dynamically compiled by a Python scripting language, and the operating environment may specifically include:
1) support general operations such as calculating the sum, converting the display and judging whether, for example: if the user does not want to print out the total amount in the displayed order (relating to a gift), the total amount may instead be displayed as: 0 x the number of gifts + the unit price of the non-gifts x the number of non-gifts.
2) And the dynamic printing field of the business field model data corresponding to the expression reference field and the function reference field is accessed in multiple stages by supporting the calculation of the expression reference field and the function reference field according to the operation logic of the calculation expression. Illustratively, the result of a single level access may be as shown in FIG. 4, with only one level fields printed and displayed: "value-added tax" (which is a lower expansion field belonging to the supplier field layer shown in fig. 3); the printing result of the multi-level access may specifically be that two levels of fields are displayed: "supplier. default tax rate", or, display three levels of fields: "supplier default tax rate code".
3) And the dynamic printing field for formatting and processing the business field model data corresponding to the expression reference field and the function reference field is calculated by supporting the operation logic for calculating the expression. Exemplarily, when the business domain model is a charge reimbursement form model and the business object is a certificate:
3.1, if the printing requirement of the client is the different accounting dimension of the line feed printout, the configuration of the calculation expression can be as shown in FIG. 6. It should be noted that, an elastic domain field formatting function FlexFormat (flexKey, format string, parser) is correspondingly used, which is a domain model function; the flexKey represents an elastic domain field identification or an elastic domain subfield identification; FormatString represents the formatting display rule of a single dimension, and the placeholders of the formatting display rule in FIG. 6 are: type — accounting dimension (e.g., asset class, expense item); coding the Code; type Name (house and building, material cost); the separator indicates a separator between the dimension values, and may be a line break "\ r".
Thus, according to the computational expression shown in FIG. 6, the computed result of the dynamic print field is shown in the third column of FIG. 8.
3.2, if the printing requirement of the client is to filter out the accounting dimension field of 'expense item', the configuration of the calculation expression can be as shown in FIG. 7. It should be noted that "/". join (filter (lambdax: (x.find ('expense item') <0), flexform ('FDetailID', 'Type: Code, Name', '/') [0]. GetString (2052). split ('/'))) is a clause in else, where:
(a) and a field formatting function FlexFormat, and the following checking dimension formatting results are used as follows:
"type 1: code 1, name 1/type 2: code 2, name 2/type 3: code 3, name 3 ".
(b) Splitting the function split, which may be specifically a function compiled by python language, to split the formatted value of the accounting dimension at (a) according to different accounting dimensions as boundaries, so as to obtain the following result:
"{ { type 1: code 1, name 1, { type 2: code 2, name 2}, { type 3: code 3, name 3} } ".
(c) The filter function (x: (x.find () <0), array), which may be specifically a function compiled in python language, is used to determine the type according to each calculated dimension value, for example, if the second string (the content in each "{ }" is a string) contains the name of the required filtering type, then type 2 is considered as the type to be filtered, and accordingly the following set can be obtained:
"{ { type 1: code 1, name 1, { type 3: code 3, name 3} } ".
(d) And (c) a splicing function join (array), which may be specifically a function compiled in python language, for splicing the set result obtained in (c) to display and output a string result as follows:
"type 1: code 1, name 1/type 3: code 3, name 3 ".
Thus, according to the computational expression shown in FIG. 7, the computed result of the dynamic print field is shown in the fourth column of FIG. 8.
506. The result of the calculation of the dynamic print field is matched to the field identifier.
The result of the calculation of the dynamic print field may specifically be the final result as explained in the above 3.1 or 3.2.
507. And outputting the printing data to the printing template.
And correspondingly outputting the preset printing fields and the calculation results configured in the printing template to a control of the printing template as printing data so as to obtain a self-defined printing display interface.
Step 501 is similar to step 101, and steps 504 to 506 are similar to steps 102 to 104, which are not described again.
Referring to fig. 9, a second aspect of the present application provides an embodiment of a dynamic field printing system, comprising:
a processing unit 901, configured to configure a calculation expression of a target business object and a field identifier for binding the calculation expression, so that the printing template determines, by binding the field identifier, print display data referred by the calculation expression;
an obtaining unit 902, configured to obtain an expression reference field and a function reference field that are used correspondingly in a computational expression, where the expression reference field and the function reference field correspond to service field model data of an associated target service object;
a processing unit 901, further configured to calculate the expression reference field and the function reference field into a dynamic print field according to the calculation expression;
the processing unit 901 is further configured to match the calculation result of the dynamic printing field to the field identifier, so that the calculation result is output as printing data to the output control of the printing template through the field identifier.
In this embodiment of the present application, operations executed by each unit of the dynamic field printing system are similar to those described in the foregoing first aspect or any specific method embodiment of the first aspect, and details are not repeated.
Referring to fig. 10, the dynamic field printing apparatus 1000 according to the embodiment of the present application may include one or more Central Processing Units (CPUs) 1001 and a memory 1005, where the memory 1005 stores one or more applications or data.
The memory 1005 may be volatile memory or persistent storage, among others. The program stored in the memory 1005 may include one or more modules, each of which may include a series of instruction operations in a dynamic field printing apparatus. Still further, the central processing unit 1001 may be arranged to communicate with the memory 1005, and execute a series of instruction operations in the memory 1005 on the dynamic field printing apparatus 1000.
The dynamic field printing device 1000 may also include one or more power supplies 1002, one or more wired or wireless network interfaces 1003, one or more input-output interfaces 1004, and/or one or more operating systems, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The central processing unit 1001 may perform the operations performed by any of the foregoing first aspect or the specific method embodiments of the first aspect, which are not described in detail herein.
It should be understood that, in the various embodiments of the present application, the size of the serial number of each step does not mean the execution sequence, and the execution sequence of each step should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system or apparatus, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a service server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (10)

1. A method for printing a dynamic field, comprising:
configuring a calculation expression of a target business object and a field identifier for binding the calculation expression, so that a printing template determines printing display data referred by the calculation expression by binding the field identifier;
obtaining an expression reference field and a function reference field which are correspondingly used in the computational expression, wherein the expression reference field and the function reference field are correspondingly associated with the service field model data of the target service object;
calculating the expression reference field and the function reference field into a dynamic printing field according to the calculation expression;
matching the calculation result of the dynamic printing field to the field identifier so that the calculation result is output as printing data to an output control of the printing template through the field identifier.
2. The dynamic field printing method according to claim 1, wherein said calculating said expression reference field and said function reference field as dynamic print fields according to said computational expression comprises:
and calculating the expression reference field and the function reference field according to the calculation expression to form a dynamic printing field for accessing the business field model data corresponding to the expression reference field and the function reference field in multiple levels.
3. The dynamic field printing method according to claim 1, wherein said calculating said expression reference field and said function reference field as dynamic print fields according to said computational expression comprises:
and calculating the expression reference field and the function reference field according to the calculation expression to form a dynamic printing field for formatting and processing the business field model data corresponding to the expression reference field and the function reference field.
4. The dynamic field printing method according to claim 1, wherein after configuring the calculation expression of the target business object and the field identifier for binding the calculation expression, and before obtaining the expression reference field and the function reference field used correspondingly in the calculation expression, the method further comprises:
and generating a printing task of the target business object according to the target document data and the printing template configured with a preset printing field.
5. The method according to claim 4, wherein after the generating of the print job of the target business object and before the obtaining of the expression reference field and the function reference field used correspondingly in the computational expression, the method further comprises:
analyzing the calculation expression to obtain all service field model information and function library information associated with the target service object;
the obtaining of the expression reference field and the function reference field used correspondingly in the computational expression includes:
and extracting the service field model data correspondingly associated with the expression reference field and the function reference field from all the service field model information and function library information associated with the target service object.
6. The dynamic field printing method as claimed in claim 1, wherein after said matching of the result of said dynamically printed field to said field identifier, said method further comprises:
and outputting the preset printing field configured in the printing template and the calculation result as printing data to the printing template so as to obtain a self-defined printing display interface.
7. A dynamic field printing system, comprising:
the processing unit is used for configuring a computational expression of a target business object and a field identifier for binding the computational expression, so that the printing template determines the printing display data referred by the computational expression by binding the field identifier;
an obtaining unit, configured to obtain an expression reference field and a function reference field that are used correspondingly in the computational expression, where the expression reference field and the function reference field correspond to service domain model data associated with the target service object;
the processing unit is further used for calculating the expression reference field and the function reference field into a dynamic printing field according to the calculation expression;
the processing unit is further configured to match a calculation result of the dynamic printing field to the field identifier, so that the calculation result is output as printing data to an output control of the printing template through the field identifier.
8. A dynamic field printing apparatus, comprising:
the system comprises a central processing unit, a memory and an input/output interface;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory and execute the operations of the instructions in the memory to perform the method of any of claims 1 to 6.
9. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 6.
10. A computer program product comprising instructions for causing a computer to perform the method according to any one of claims 1 to 6 when the computer program product is run on a computer.
CN202111620107.2A 2021-12-27 2021-12-27 Dynamic field printing method, system and related device Active CN114356252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111620107.2A CN114356252B (en) 2021-12-27 2021-12-27 Dynamic field printing method, system and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111620107.2A CN114356252B (en) 2021-12-27 2021-12-27 Dynamic field printing method, system and related device

Publications (2)

Publication Number Publication Date
CN114356252A true CN114356252A (en) 2022-04-15
CN114356252B CN114356252B (en) 2024-03-19

Family

ID=81102639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111620107.2A Active CN114356252B (en) 2021-12-27 2021-12-27 Dynamic field printing method, system and related device

Country Status (1)

Country Link
CN (1) CN114356252B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609531A (en) * 2009-07-29 2009-12-23 金蝶软件(中国)有限公司 Data processing method in a kind of enterprise resource planning and device
CN101720458A (en) * 2007-06-30 2010-06-02 多米诺印刷科学有限公司 improvements in or relating to marking and/or coding
US20100229084A1 (en) * 2009-03-06 2010-09-09 Ecava Sdn. Bhd. Rapid software report development tool with auto database handling and menu tool-bar plug-in for application report access
CN102789372A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Printing method and device
CN103246733A (en) * 2013-05-13 2013-08-14 浪潮集团山东通用软件有限公司 Dynamic form system based on metadata and generation method thereof
US20140126024A1 (en) * 2012-11-07 2014-05-08 Xerox Corporation Method and apparatus for automatically entering data in a print order based upon a prose attribute entry
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system
US20140268192A1 (en) * 2013-03-15 2014-09-18 Xerox Corporation Method and apparatus for automatically updating a prose attribute entry based upon print job parameters of a print job order
US8874621B1 (en) * 2011-10-09 2014-10-28 LockPath, Inc. Dynamic content systems and methods
CN108733332A (en) * 2018-06-19 2018-11-02 山东浪潮通软信息科技有限公司 A kind of general printing template Metadata design method
CN108875853A (en) * 2017-05-10 2018-11-23 北大方正集团有限公司 The processing method and processing device of data label printing
CN111931475A (en) * 2020-06-28 2020-11-13 重庆锐云科技有限公司 Dynamic subscription book generation method, system, computer equipment and storage medium
CN112035414A (en) * 2020-08-31 2020-12-04 山东浪潮通软信息科技有限公司 Metadata streaming method, device and computer readable medium
CN112099801A (en) * 2020-11-03 2020-12-18 广州市玄武无线科技股份有限公司 Excel analysis method and system based on metadata driving
CN112685945A (en) * 2021-01-11 2021-04-20 北京理工大学 Magnetic-structure multi-physical-field topological optimization design method for additive manufacturing
CN112748915A (en) * 2020-12-30 2021-05-04 山东浪潮通软信息科技有限公司 Stimusoft-based method and device for dynamically extending business function
CN113268464A (en) * 2021-06-07 2021-08-17 平安科技(深圳)有限公司 Log display method and device, electronic equipment and storage medium
CN113326682A (en) * 2021-06-07 2021-08-31 深圳前海微众银行股份有限公司 Electronic form generation method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720458A (en) * 2007-06-30 2010-06-02 多米诺印刷科学有限公司 improvements in or relating to marking and/or coding
US20100229084A1 (en) * 2009-03-06 2010-09-09 Ecava Sdn. Bhd. Rapid software report development tool with auto database handling and menu tool-bar plug-in for application report access
CN101609531A (en) * 2009-07-29 2009-12-23 金蝶软件(中国)有限公司 Data processing method in a kind of enterprise resource planning and device
CN102789372A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Printing method and device
US8874621B1 (en) * 2011-10-09 2014-10-28 LockPath, Inc. Dynamic content systems and methods
US20140126024A1 (en) * 2012-11-07 2014-05-08 Xerox Corporation Method and apparatus for automatically entering data in a print order based upon a prose attribute entry
US20140268192A1 (en) * 2013-03-15 2014-09-18 Xerox Corporation Method and apparatus for automatically updating a prose attribute entry based upon print job parameters of a print job order
CN103246733A (en) * 2013-05-13 2013-08-14 浪潮集团山东通用软件有限公司 Dynamic form system based on metadata and generation method thereof
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system
CN108875853A (en) * 2017-05-10 2018-11-23 北大方正集团有限公司 The processing method and processing device of data label printing
CN108733332A (en) * 2018-06-19 2018-11-02 山东浪潮通软信息科技有限公司 A kind of general printing template Metadata design method
CN111931475A (en) * 2020-06-28 2020-11-13 重庆锐云科技有限公司 Dynamic subscription book generation method, system, computer equipment and storage medium
CN112035414A (en) * 2020-08-31 2020-12-04 山东浪潮通软信息科技有限公司 Metadata streaming method, device and computer readable medium
CN112099801A (en) * 2020-11-03 2020-12-18 广州市玄武无线科技股份有限公司 Excel analysis method and system based on metadata driving
CN112748915A (en) * 2020-12-30 2021-05-04 山东浪潮通软信息科技有限公司 Stimusoft-based method and device for dynamically extending business function
CN112685945A (en) * 2021-01-11 2021-04-20 北京理工大学 Magnetic-structure multi-physical-field topological optimization design method for additive manufacturing
CN113268464A (en) * 2021-06-07 2021-08-17 平安科技(深圳)有限公司 Log display method and device, electronic equipment and storage medium
CN113326682A (en) * 2021-06-07 2021-08-31 深圳前海微众银行股份有限公司 Electronic form generation method and device

Also Published As

Publication number Publication date
CN114356252B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN108292231B (en) Method and system for generating applications from data
US8756489B2 (en) Method and system for dynamic assembly of form fragments
CN101122899B (en) Report generation method and device
US20190171696A1 (en) Web-intrinsic interactive documents
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN108572825B (en) User interface processing method, device and equipment
CN104133772A (en) Automatic test data generation method
JP7209306B2 (en) Online work system for Excel documents based on templates
CN111694565A (en) Data visualization application development method and system
CN113760276A (en) Method and device for generating page code
US11604662B2 (en) System and method for accelerating modernization of user interfaces in a computing environment
JP6002302B2 (en) Web application generation system, Web application generation system control method, Web application generation system program, Web application generation device, Web application generation device control method, and Web application generation device program
CN117077650B (en) Document generation system, method, equipment and medium based on dynamic template configuration
CN114356252A (en) Dynamic field printing method, system and related device
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
JP6795767B2 (en) Information processing device and its processing method and program
CN113703753B (en) Method and device for product development and product development system
CN114218914A (en) Service matching method and related device
CN107491460B (en) Data mapping method and device of adaptation system
WO2022099913A1 (en) Interface configuration method and apparatus, and device and medium
CN113282328A (en) Application program updating method, computer device and computer storage medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
JP2011233104A (en) Information processing system, information processor, information processing method, program, and recording medium
CN117056539B (en) Method and device for generating pptx format file in real time and electronic equipment
CN113486269B (en) WEB-based electronic form data processing method, computing device and storage medium

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