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

Dynamic field printing method, system and related device Download PDF

Info

Publication number
CN114356252B
CN114356252B CN202111620107.2A CN202111620107A CN114356252B CN 114356252 B CN114356252 B CN 114356252B CN 202111620107 A CN202111620107 A CN 202111620107A CN 114356252 B CN114356252 B CN 114356252B
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.)
Active
Application number
CN202111620107.2A
Other languages
Chinese (zh)
Other versions
CN114356252A (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

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

Landscapes

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

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, acquiring 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 a calculation result of the dynamic printing field to the field identifier. The method of the embodiment of the application can meet the personalized printing display requirements of different users, and compared with the traditional printing data adjustment scheme, the development workload can be effectively reduced, the user experience can be effectively improved by the calculation expression which is matched and used in the middle, and the printing requirements of different clients can be met 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 dynamic field printing method, a system and a related device.
Background
Most of the existing enterprise application systems support printing of the existing data on the bill or report model, but different clients have different printing display requirements on the same set of business data, such as different suppliers have different printing display content requirements on tax rate fields; in this regard, corresponding enterprise data print adjustment systems are currently typically developed for different customers to meet the print needs of the users, but it is not negligible that such targeted solutions make system development effort large and difficult to cope with the later print needs of the users.
Accordingly, there is a need to provide a solution that can effectively self-adjust print data to meet the print display needs of different customers.
Disclosure of Invention
The embodiment of the application provides a dynamic field printing method, a system and a related device, which are used for custom adjusting printing data by configuring a computing expression.
A first aspect of an embodiment of the present application provides a dynamic field printing method, including:
configuring a computing expression of a target business object and a field identifier used for binding the computing expression, so that a printing template determines printing display data pointed by the computing expression by binding the field identifier;
acquiring an expression reference field and a function reference field which are correspondingly used in the computing expression, wherein the expression reference field and the function reference field are correspondingly associated with service domain model data of the target service object;
calculating the expression reference field and the function reference field into dynamic printing fields according to the calculation expression;
matching the calculated result of the dynamic printing field with the field identifier so that the calculated result is output to an output control of the printing template as printing data through the field identifier.
Optionally, the calculating the expression reference field and the function reference field as dynamic print fields according to the calculation expression includes:
and calculating the expression reference field and the function reference field according to the calculation expression to obtain a dynamic printing field for accessing the business field model data corresponding to the expression reference field and the function reference field in a multistage manner.
Optionally, the calculating the expression reference field and the function reference field as dynamic print fields according to the calculation expression includes:
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 business field model data corresponding to the expression reference field and the function reference field.
Optionally, after the configuring the computing expression of the target service object and the field identifier used for binding the computing expression, before the obtaining the expression reference field and the function reference field correspondingly used in the computing expression, the method further includes:
and generating a print task of the target business object according to the target bill data and the print template configured with the preset print field.
Optionally, after the generating the print job of the target business object, before the acquiring the expression reference field and the function reference field correspondingly used in the computing expression, the method further includes:
acquiring all service domain model information and function library information associated with the target service object by analyzing the calculation expression;
the obtaining the expression reference field and the function reference field correspondingly used in the computing expression comprises the following steps:
and extracting the business domain model data corresponding to and associated with the expression reference field and the function reference field from all the business domain model information and function library information associated with the target business object.
Optionally, after the matching the calculation result of the dynamic print field to the field identifier, the method further includes:
and outputting the preset printing fields configured in the printing template and the calculation result to the printing template as printing data so as to obtain a self-defined printing display interface.
Optionally, before the calculating the expression reference field and the function reference field according to the calculation expression into dynamic print fields, the method further includes:
a runtime environment is created that supports computing the computing expression.
A second aspect of an embodiment of the present application provides a dynamic field printing system, including:
the processing unit is used for configuring a calculation expression of a target business object and a field identifier used for binding the calculation expression, so that the printing template determines the printing display data pointed by the calculation expression by binding the field identifier;
the acquisition unit is used for acquiring an expression reference field and a function reference field which are correspondingly used in the calculation expression, wherein the expression reference field and the function reference field are correspondingly related to the business field model data of the target business object;
the processing unit is further configured to calculate the expression reference field and the function reference field into dynamic printing fields according to the calculation expression;
the processing unit is further configured to match a calculation result of the dynamic print field to the field identifier, so that the calculation result is output as print data to an output control of the print 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 into a dynamic printing field for accessing, in multiple stages, service domain model data associated with 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 service domain model data associated with 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 the 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 the 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.
Optionally, the processing unit is further configured to output, as print data, a preset print field configured in the print template and the calculation result to the print template, so as to obtain a customized print display interface.
Optionally, the processing unit is further configured to create a running environment supporting operation of the computing expression.
A third aspect of the present embodiment provides a dynamic field printing apparatus, including:
a central processing unit, a memory and an input/output interface;
the memory is a short-term memory or a persistent memory;
the central processor is configured to communicate with the memory and to execute instruction operations in the memory to perform the method described in the first aspect of the embodiments of the present application or any particular implementation of the first aspect.
A fourth aspect of the embodiments provides a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform a method as described in the first aspect of the embodiments or any specific implementation of the first aspect of the embodiments.
A fifth aspect of the embodiments of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method as described in the first aspect of the embodiments of the present application or any specific implementation of the first aspect.
From the above technical solutions, the embodiments of the present application have 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 printing data required by a user is output to a printing template through binding of the field identifier. Therefore, the method of the embodiment of the application not only can meet the personalized printing display requirements of different users, but also can effectively reduce the development workload compared with the traditional printing data adjustment scheme, and the computing expression which is matched and used in the middle can effectively improve the user experience, so that the printing requirements of different clients can be met more flexibly and simply.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be 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 may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic flow chart of a dynamic field printing method according to an embodiment of the present application;
FIG. 2 is a field identifier configuration interface diagram of an embodiment of the present application;
FIG. 3 is an expression editor interface diagram of an embodiment of the application;
FIG. 4 is a print template design and a print preview of an embodiment of the present application;
FIG. 5 is another flow chart of the dynamic field printing method according to the embodiment of the present application;
FIG. 6 is another expression editor interface diagram of an embodiment of the application;
FIG. 7 is another expression editor interface diagram of an embodiment of the 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 often adopted to meet different print display requirements of a client under the same set of service data:
<1>, print plug-in intervention protocol: business developers adjust print data by developing print plugins supported by enterprise application systems targeted. <2>, print data readjustment scheme: using a third party tool to perform simple calculation adjustment on the data displayed during printing; if the enterprise application system binds the fields under the data field model through the Excel template, a print Excel file is generated, wherein the Excel template can readjust the print data by utilizing the library function of the Excel.
The two schemes can meet different printing display requirements of clients under the same set of business data, but have defects for enterprise application systems:
<1>, print plug-in intervention protocol: the business scene of the enterprise application system is complex, and the printing scene is also the same, when each bill needs to be interfered by a printing plug-in, a developer is required to consume a large amount of labor cost to carry out corresponding matching adjustment. <2>, print data readjustment scheme: because of the complex bill data, part of business logic cannot intervene deeply, for example, a third party tool Excel has difficulty in filtering out certain printed fields.
In the embodiment of the present application, a dynamic field is understood to be a virtual field dynamically calculated during adjustment of print data, and has two kinds of information, namely a calculation expression and a field identifier (hereinafter or referred to as dynamic field identifier). The expression reference field, commonly referred to as a field name (such as a vendor field of a purchase order, a default tax rate field of a vendor, and an accounting dimension field shown in fig. 6) that can be directly obtained by translating a computing expression, can be understood as business object data that can be directly accessed or directly referenced by a translator of the platform; the function reference field refers to a field name (such as the coding of the accounting dimension, the name of the accounting dimension and the type of the accounting dimension shown in fig. 6) which is required to be obtained by the business function according to the business logic, and can be understood as business object data which cannot be directly obtained by the platform and is required to be indirectly obtained by the business function; the most clear difference between the two fields is that indirect reference fields (i.e., function reference fields) cannot be directly translated and shown in the expression translation region, whereas direct reference fields (i.e., expression reference fields) can be directly translated and shown in the expression translation region.
Referring to fig. 1 to 4, a first aspect of the present application provides an embodiment of a dynamic field printing method, including:
101. the computing expression and field identifier are configured.
The calculation expression in the embodiment of the present application may be understood as a logic expression composed of one or more of numbers, operators, fields, digital grouping symbols, free variables and constraint variables, so as to obtain a meaningful arrangement method of the final result, where the used fields and functions are often derived from a function library of a dynamic service domain model (the service domain model may also be referred to as a service bill model, a common expense reimbursement bill model and a purchase order model).
Illustratively, the design process of the print template may specifically include: custom configuring a computational expression of a target business object (e.g., vendor) through an expression editor interface of a print template as shown in fig. 3; and, by the field identifier configuration interface of the print template as shown in fig. 2, the field identifier (e.g., ticket type Custom Ticket Type) for binding the calculation expression is configured in a customized manner, so that the print template finally determines the print display data pointed to by the calculation expression by binding the field identifier, thereby realizing the print display requirement as shown in fig. 4 (the output result of the ticket type column is "value added tax").
102. An expression reference field and a function reference field are obtained.
In one specific implementation, the modeling manner of the business domain model may be "model-element-attribute" such that each element supports different business characteristics, for example, a material field (element layer, for example, a provider as one of the basic material fields) under the purchase order model (model layer), and supports acquiring its coding field, name field, and associated carrying field (attribute layer); and the configuration of the computational expression may use an expression reference field and a function reference field to correspond to the associated business domain model data (e.g., vendor field and its attributes, encodings).
Therefore, in order to output the data on the bill or the account table in the form of the corresponding required calculation result according to the calculation logic of the calculation expression, the data on the bill or the account table can be displayed by the printing to be targeted, and the expression reference field and the function reference field which are correspondingly used in the calculation expression need to be acquired first.
103. A dynamic print field is calculated.
Since the calculation expression in the embodiment of the present application is a dynamic operation expression configured by the user (the dynamic state can be understood as which fields are displayed during printing, and the user outside the developer also has a set 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 according to the operation logic contained in the calculation expression, so that the dynamic printing field representing the printing requirement of the user can be calculated.
104. The calculation result of the dynamic printing field is matched to the field identifier.
In practical applications, the calculation result of the dynamic printing field (herein or referred to as the dynamic printing field result) can be understood as data that meets the printing requirement of the user after being logically calculated, so that the calculation result of the dynamic printing field can be output to the output control of the printing template as printing data through the field identifier by matching the calculation result of the dynamic printing field with 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 printing data required by a user is output to a printing template through binding of the field identifier. Therefore, the method of the embodiment of the application not only can meet the personalized printing display requirements of different users, but also can effectively reduce the data redundancy and the development workload compared with the traditional printing data adjustment scheme, and the computing expression which is matched and used in the middle can effectively improve the user experience.
Referring to fig. 2 to 8, another embodiment of a dynamic field printing method is provided, including:
501. the computing expression and field identifier are configured.
502. A print job for the target business object is generated.
When a user initiates a print request to a certain bill, a print task related to a target business object is generated according to the designated bill and the designed print template, so as to drive and execute operations such as a follow-up acquired expression reference field, a function reference field and the like. The designed printing template may include preset printing fields (e.g., document number and purchase date as shown in fig. 4).
503. Acquiring all service domain model information and function library information associated with a target service object;
because the contents such as the fields and the like correspondingly used in the calculation expression are often derived from a business bill model and a function library, the data of one bill in the enterprise application system are very much, and if all the data in one bill are directly selected for access before printing and outputting, no small performance loss exists; therefore, all the business domain model information and function library information associated with the target business object are acquired in a targeted manner through analyzing the calculation expression, but not all the massive information associated with each business object in the bill, so that the performance loss and the system operation cost are reduced.
504. An expression reference field and a function reference field are obtained.
And extracting the service domain model data corresponding to the relation between the expression reference field and the function reference field instead of the information corresponding to the field of irrelevant printing requirements in the acquired all service domain model information and function library information related to the target service object in a targeted way so as to reduce the loss of system operation time and the like.
505. A dynamic print field is calculated.
In the actual application process, the running environment created by the enterprise application system can support all functions dynamically compiled by script languages such as operation Python or JavaScript, so that a user-defined calculation expression of the script language can be utilized to realize a richer and more robust calculation characteristic scene, rather than supporting only a general calculation scene defined in the platform as in the prior art (namely, if a script logic function required by a user is not provided in the platform, a corresponding required expression printing result cannot be realized through the platform); the embodiment of the application uses the photon Python to create an operation environment to support all functions dynamically compiled by the operation Python scripting language, and the operation environment specifically can include:
1) General operations such as calculating a sum, converting a display, and judging whether the display is non-judgment are supported, for example: if the user does not want to print the total amount in the display order (related to the gift), the total amount may instead be displayed as: 0 x number of gifts + unit price of non-gift x number of non-gifts.
2) And supporting calculation logic according to the calculation expression, and calculating the expression reference field and the function reference field into dynamic printing fields for accessing the business field model data corresponding to the expression reference field and the function reference field in multiple stages. Illustratively, the results of the single level access may be as shown in FIG. 4, with only one level of fields printed and displayed therein: "value-added tax" (which is a lower expanded field attributed to the provider field layer shown in fig. 3); the printing result of the multi-stage access may specifically be that two stages of fields are displayed: "vendor. Default tax rate", or, display three-level field: "vendor. Default tax rate. Code".
3) And supporting calculation logic according to the calculation expression, calculating the expression reference field and the function reference field into dynamic printing fields for formatting business field model data corresponding to and associated with the expression reference field and the function reference field. Illustratively, when the business domain model is a fee reimbursement bill model and the business object is a credential:
3.1 if the customer's print requirements are different accounting dimensions for the linefeed printout, the configuration of the computational expression may be as shown in FIG. 6. It should be noted that, an elastic domain field formatting function FlexFormat (flexKey, format string, separator) is correspondingly used, which is a domain model function; flexKey represents an elastic domain field identification or an elastic domain subfield identification; formatting string represents a single dimension formatting display rule, and the placeholder words of the formatting display rule in fig. 6 are: type-accounting dimension (e.g., asset class, cost item); encoding a Code; name of type Name (house, building, material cost); the separator represents a separator between the dimension values, which may be a line feed symbol "\r".
Thus, according to the calculation expression shown in fig. 6, the calculated dynamic print field result is shown in the third column of fig. 8.
3.2 if the customer's print requirement is to filter out the accounting dimension field of "expense item", the configuration of the computational expression may be as shown in FIG. 7. It should be noted that "/", join (filter (x.find (' expense item ') < 0), flexFormat (' FDetailID ', ' Type: code, name ', ' v) [0]. GetString (2052). Split ('/')))) is a clause within else, wherein:
(a) The field formatting function FlexFormat uses the following accounting dimensions to format the result as follows:
"type 1: code 1, name 1/type 2: code 2, name 2/type 3: code 3, name 3).
(b) A split function split, which may specifically be a python language compiled function, splits the accounting dimension formatted value at (a) according to different accounting dimensions as boundaries 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 filter (x (x.find () < 0), array, which may be specifically a python language compiled function, is used to determine the type according to each accounting dimension value, for example, if the second string (the content in each "{ }" is a string) includes the name of the required filtering type, then the type 2 is considered as the type that needs to be filtered, and the following set is obtained correspondingly:
"{ type 1: code 1, name 1}, { type 3: code 3, name 3 }).
(d) A concatenation function join (array), which may be specifically a function compiled in the python language, for concatenating the aggregate results obtained at (c) to display a string result that outputs:
"type 1: code 1, name 1/type 3: code 3, name 3).
Thus, according to the calculation expression shown in fig. 7, the calculated dynamic print field result is shown in the fourth column of fig. 8.
506. The calculation result of the dynamic printing field is matched to the field identifier.
The calculation result of the dynamic print field may be specifically the final result as described in 3.1 or 3.2 above.
507. The print data is output to a print template.
And correspondingly outputting the preset printing fields and the calculation result configured in the printing template to a control of the printing template as printing data to obtain a self-defined printing display interface.
Step 501 is similar to step 101, steps 504 to 506 are similar to steps 102 to 104, and detailed description thereof will be omitted.
Referring to fig. 9, a second aspect of the present application provides an embodiment of a dynamic field printing system, including:
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 print template determines print display data referred to by the calculation expression by binding the field identifier;
an obtaining unit 902, configured to obtain an expression reference field and a function reference field that are correspondingly used in the computing expression, where the expression reference field and the function reference field correspond to service domain model data of an associated target service object;
the processing unit 901 is further configured to calculate, according to the calculation expression, an expression reference field and a function reference field into a dynamic printing field;
the processing unit 901 is further configured to match the calculation result of the dynamic print field to the field identifier, so that the calculation result is output as print data to the output control of the print template through the field identifier.
In this embodiment of the present application, the operations performed by each unit of the dynamic field printing system are similar to those described in the foregoing first aspect or any one of the specific method embodiments of the first aspect, and are not described in detail.
Referring to fig. 10, a dynamic field printing apparatus 1000 according to an embodiment of the present application may include one or more central processing units (CPUs, central processing units) 1001 and a memory 1005, where the memory 1005 stores one or more application programs or data.
Wherein the memory 1005 may be volatile storage or persistent storage. The program stored in the memory 1005 may include one or more modules, each of which may include a series of instruction operations in the dynamic field printing apparatus. Still further, the central processor 1001 may be configured to communicate with the memory 1005, and execute a series of instruction operations in the memory 1005 on the dynamic field printing apparatus 1000.
Dynamic field printing apparatus 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 ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The cpu 1001 may perform the operations performed by the foregoing first aspect or any specific method embodiment of the first aspect, which are not described herein.
It should be understood that, in various embodiments of the present application, the sequence number of each step does not mean that the execution sequence of each step should be determined by the function and the internal logic, and should not limit the implementation process of the embodiments of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system or apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a service server, or a network device, etc.) to perform all or part of the steps of the methods described in 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, random access memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (8)

1. A dynamic field printing method, comprising:
configuring a computing expression of a target business object and a field identifier used for binding the computing expression, so that a printing template determines printing display data pointed by the computing expression by binding the field identifier;
acquiring an expression reference field and a function reference field which are correspondingly used in the computing expression, wherein the expression reference field and the function reference field are correspondingly associated with service domain model data of the target service object;
calculating the expression reference field and the function reference field into dynamic printing fields according to the calculation expression; the dynamic printing field is at least used for accessing the service domain model data corresponding to the expression reference field and the function reference field in a single-stage or multi-stage mode;
matching the calculated result of the dynamic printing field with the field identifier so that the calculated result is output to an output control of the printing template as printing data through the field identifier.
2. The dynamic field printing method according to claim 1, wherein the calculating the expression reference field and the function reference field as dynamic print fields according to the calculation 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 business field model data corresponding to the expression reference field and the function reference field.
3. The dynamic field printing method according to claim 1, wherein after the configuration of the computing expression of the target business object and the field identifier for binding the computing expression, before the obtaining of the expression reference field and the function reference field correspondingly used in the computing expression, the method further comprises:
and generating a print task of the target business object according to the target bill data and the print template configured with the preset print field.
4. The method according to claim 3, wherein after the generating the print job of the target business object, before the acquiring the expression reference field and the function reference field correspondingly used in the calculation expression, the method further comprises:
acquiring all service domain model information and function library information associated with the target service object by analyzing the calculation expression;
the obtaining the expression reference field and the function reference field correspondingly used in the computing expression comprises the following steps:
and extracting the business domain model data corresponding to and associated with the expression reference field and the function reference field from all the business domain model information and function library information associated with the target business object.
5. The dynamic field printing method according to claim 1, wherein after the matching of the calculation result of the dynamic print field to the field identifier, the method further comprises:
and outputting the preset printing fields configured in the printing template and the calculation result to the printing template as printing data so as to obtain a self-defined printing display interface.
6. A dynamic field printing system, comprising:
the processing unit is used for configuring a calculation expression of a target business object and a field identifier used for binding the calculation expression, so that the printing template determines the printing display data pointed by the calculation expression by binding the field identifier;
the acquisition unit is used for acquiring an expression reference field and a function reference field which are correspondingly used in the calculation expression, wherein the expression reference field and the function reference field are correspondingly related to the business field model data of the target business object;
the processing unit is further configured to calculate the expression reference field and the function reference field into dynamic printing fields according to the calculation expression; the dynamic printing field is at least used for accessing the service domain model data corresponding to the expression reference field and the function reference field in a single-stage or multi-stage mode;
the processing unit is further configured to match a calculation result of the dynamic print field to the field identifier, so that the calculation result is output as print data to an output control of the print template through the field identifier.
7. A dynamic field printing apparatus, comprising:
a central processing unit, a memory and an input/output interface;
the memory is a short-term memory or a persistent memory;
the central processor is configured to communicate with the memory and to execute instruction operations in the memory to perform the method of any of claims 1 to 5.
8. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 5.
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 CN114356252A (en) 2022-04-15
CN114356252B true 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 (13)

* 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
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
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8453053B2 (en) * 2009-03-06 2013-05-28 Ecava Sdn. Bhd. Rapid software report development tool with auto database handling and menu tool-bar plug-in for application report access
US8941874B2 (en) * 2012-11-07 2015-01-27 Xerox Corporation Method and apparatus for automatically entering data in a print order based upon a prose attribute entry
US8982414B2 (en) * 2013-03-15 2015-03-17 Xerox Corporation Method and apparatus for automatically updating a prose attribute entry based upon print job parameters of a print job order
CN112099801A (en) * 2020-11-03 2020-12-18 广州市玄武无线科技股份有限公司 Excel analysis method and system based on metadata driving
CN113326682A (en) * 2021-06-07 2021-08-31 深圳前海微众银行股份有限公司 Electronic form generation method and device

Patent Citations (13)

* 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
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
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
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

Also Published As

Publication number Publication date
CN114356252A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US11210460B2 (en) Templating process for a multi-page formatted document
CN108292231B (en) Method and system for generating applications from data
CN110704519B (en) Service bill conversion method and device, storage medium and computer equipment
US20080040310A1 (en) Method, system and program product for developing a data model in a data mining system
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
CN103226545A (en) Data format conversion system, and method and system for batch loans information import
CN103389895A (en) Method and system for generating front end page
US20020138570A1 (en) System for and method of automatically migrating data among multiple legacy applications and accessible storage formats
CN111274045A (en) Multi-platform docking method and device, computer equipment and readable storage medium
CN105488125A (en) Page access method and apparatus
CN111241803A (en) Method and device for generating text file, computer equipment and readable storage medium
US10984184B2 (en) Maintenance of a metafile using spreadsheet software
CN114356252B (en) Dynamic field printing method, system and related device
CN105302556A (en) Calculation realization method and system and server apparatus
KR100762712B1 (en) Method for transforming of electronic document based on mapping rule and system thereof
CN114218914A (en) Service matching method and related device
CN105550250A (en) Access log processing method and apparatus
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
CN113703753B (en) Method and device for product development and product development system
CN101390089A (en) Scalable algorithm for sharing edi schemas
US9002870B2 (en) System, method and computer program product for EDI-to-EDI translations
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN113296785A (en) Document generation method, system, device and readable storage medium
JP2011233104A (en) Information processing system, information processor, information processing method, program, and recording 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