CN112766910A - Document construction method, document generation device, electronic equipment and storage medium - Google Patents

Document construction method, document generation device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112766910A
CN112766910A CN202110084688.6A CN202110084688A CN112766910A CN 112766910 A CN112766910 A CN 112766910A CN 202110084688 A CN202110084688 A CN 202110084688A CN 112766910 A CN112766910 A CN 112766910A
Authority
CN
China
Prior art keywords
document
interface
control
metadata
data
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
CN202110084688.6A
Other languages
Chinese (zh)
Other versions
CN112766910B (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.)
Shenzhen Acme Technology Co ltd
Original Assignee
Shenzhen Acme Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Acme Technology Co ltd filed Critical Shenzhen Acme Technology Co ltd
Priority to CN202110084688.6A priority Critical patent/CN112766910B/en
Publication of CN112766910A publication Critical patent/CN112766910A/en
Application granted granted Critical
Publication of CN112766910B publication Critical patent/CN112766910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Human Computer Interaction (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application provides a document construction method, a document generation device, electronic equipment and a storage medium, and relates to the technical field of data processing. Analyzing received metadata to obtain analysis data, wherein the metadata comprises interface metadata, control metadata, entity metadata and workflow setting data; sending the analysis data to a client so that the client can construct a bill interface by using the analysis data; receiving document interface data returned by a client and judging whether metadata field conditions are met or not; if yes, classifying and storing the bill interface data to a database; the method dynamically constructs the bill, and solves the problems of poor usability and high development cost of the existing bill configuration method.

Description

Document construction method, document generation device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of data processing, in particular to a document construction method, a document generation device, electronic equipment and a storage medium.
Background
Enterprise Resource Planning (ERP) is an Enterprise information management system for integrating and managing material information, fund information and personnel information for Enterprise users, and in practical application, various business documents are required to be used in an Enterprise office process to record a business processing process.
The existing document configuration method, such as an Extensible Markup Language (XML) document, has strict requirements on the format, and is easy to cause file format errors so that documents cannot be normally used, so that the existing document configuration method has a technical threshold, is poor in usability and is high in development cost.
Disclosure of Invention
The embodiment of the application aims to provide a document construction method, a document generation device, an electronic device and a storage medium, which are used for dynamically constructing a document and solve the problems of poor usability and high development cost of the existing document configuration method.
The embodiment of the application provides a bill construction method, which is applied to a server and comprises the following steps:
analyzing the received metadata to obtain analysis data, wherein the metadata comprises interface metadata, control metadata, entity metadata and workflow setting data;
sending the analysis data to a client so that the client can construct a bill interface by using the analysis data;
receiving document interface data returned by a client and judging whether metadata field conditions are met or not;
and if so, storing the bill interface data to a database in a classified manner.
In the implementation process, the metadata is analyzed through the server, specifically, the interface metadata and the control metadata are analyzed to judge which controls are displayed on the interface, the definition of the workflow node is also analyzed to transmit the analyzed data to the client for constructing the interface, and the document interface data is received and stored to realize dynamic construction of the document, and no technical threshold exists, so that the problems that the existing document configuration method is poor in usability and high in development cost are solved.
Further, before the step of parsing the received metadata to obtain parsed data, the method further comprises:
receiving metadata acquired by an entity editing designer defining database entities and entity fields, defining a document interface by an interface editing designer to obtain interface metadata and control metadata, and defining workflow setting data by a workflow definition designer.
In the implementation process, metadata and a business flow required by document construction are defined by the entity editing designer, the interface editing designer and the workflow definition designer, so that a user can dynamically design a desired document interface according to specific business scene requirements.
The embodiment of the application further provides a document generation method, which is applied to a client side, and the method comprises the following steps:
receiving analysis data sent by a server;
processing the control value and the control attribute according to the analysis data to construct a document interface;
if the analyzed data contains document details, constructing document detail display;
and sending the built document interface data to a server for storage.
In the implementation process, a dynamic construction process of a data document interface of the client is given, and the analysis data comprises all information required for constructing the document interface, so that the client constructs and displays the interface according to the analysis data and further comprises a document detail construction process, and different business requirements are met.
Further, the method further comprises:
when the sending of the control value of the document interface is changed, if the current control is the field carrying the entity, searching the control containing the field carrying the entity on the document interface and using the field attribute carrying the entity to carry out automatic assignment operation, wherein the document control attribute comprises the field attribute carrying the entity and the field attribute carrying the entity of the control, and is edited and set through an interface editing designer.
In the implementation process, a document control value processing mechanism is provided, associated assignment operation can be carried out on the client according to the change of the document control value, a server is not needed for control processing, usability is enhanced, and the dynamic data loading requirement is met.
Further, the method further comprises:
when the control value of the document interface is changed, if the current control is the associated control in the condition formula, calculating according to the condition formula, and automatically calculating and assigning the control, wherein the property of the condition formula is edited and set through an interface editing designer.
In the implementation process, the client side realizes the automatic calculation and assignment function of the space when the associated control changes according to the condition formula.
Further, the method further comprises:
when the control generates a trigger event, if the current control is the specified trigger control, calling back the server interface and sending the control attribute and the control value of the single data interface to the server so as to enable the server to perform logic judgment processing, wherein the specified trigger control is the trigger control and the control trigger event type of the document specified by the server;
and receiving an execution instruction returned by the server to operate the execution instruction.
In the implementation process, the triggering control and the control triggering event type of the document are specified by the server, so that not only can logic judgment processing be flexibly performed according to the associated data in the database, but also the work of re-issuing and updating by the client is saved, and the client can perform corresponding operations such as control value modification, control selection data source change, control read-only property modification, control visibility change and the like according to the execution instruction.
The embodiment of the present application further provides a device for dynamically constructing a document, which is applied to a server, and the device includes:
the analysis module is used for analyzing the received metadata to obtain analysis data, wherein the metadata comprises interface metadata, control metadata, entity metadata and workflow setting data;
the sending module is used for sending the analysis data to a client so that the client can construct a bill interface by using the analysis data;
the judging module is used for receiving the receipt interface data returned by the client and judging whether the metadata field conditions are met;
and the storage module is used for storing the bill interface data to a database in a classified manner if the metadata field conditions are met.
In the implementation process, dynamic construction of the document interface is achieved through data interaction between the server and the client, the requirement of a user for constructing the document interface according to specific business scene requirements is met from the practical application requirement, and the problems of high development cost and poor usability of the conventional document page layout are solved.
An embodiment of the present application further provides a document generating apparatus, which is applied to a client, where the apparatus includes:
the receiving module is used for receiving analysis data sent by the server;
the document construction module is used for processing the control value and the control attribute according to the analysis data so as to construct a document interface;
the document detail display module is used for constructing document detail display if the analysis data contains document details;
and the sending module is used for sending the built document interface data to the server for storage.
In the implementation process, the dynamic construction of the document interface is carried out by using all data, namely analysis data, required by the construction of the document interface, the document construction requirements of different business scenes are met, and the problems of high development cost and poor usability of the conventional document page layout are solved.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the computer device execute the document generation method in any one of the above descriptions.
An embodiment of the present application further provides a readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the method for generating a document according to any of the foregoing embodiments is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flow chart of a document construction method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of data transmission in a dynamic document construction process according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for dynamically building a document according to an embodiment of the present application;
FIG. 4 is a flowchart of a document generation method provided in an embodiment of the present application;
FIG. 5 is a flow chart of an auto-correlation assignment event provided in an embodiment of the present application;
FIG. 6 is a flow chart of a method for conditional formula auto-events provided in an embodiment of the present application;
FIG. 7 is a flowchart of a method for customizing an event mechanism according to an embodiment of the present application;
FIG. 8 is a block diagram of a dynamic document builder according to an embodiment of the present disclosure;
fig. 9 is a block diagram of a structure of a document generating apparatus according to an embodiment of the present application.
Icon:
101-PC terminal; 102-a server; 103-a client; 200-an analysis module; 300-a sending module; 400-a judgment module; 500-a save module; 600-a receiving module; 700-document construction module; 800-document detail display module; 900-document sending module; 910-automatic assignment module; 920-conditional formula module; 930-custom event module; 931-control data sending module; 932 — an execution module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a flowchart of a document construction method according to an embodiment of the present application. The method can be applied to a server 102, as shown in fig. 2, and is a data transmission schematic diagram of a dynamic document construction process provided in an embodiment of the present application, for example, a client 103 may be a mobile client 103 such as a mobile phone, an entity editing designer, an interface editing designer, and a workflow definition designer are arranged at a PC 101 to transmit generated metadata to the server 102, and the server 102 sends analysis data to the client 103 to construct a document interface, as shown in fig. 3, for a method flow diagram of a dynamic document construction process, a specific construction process at the server 102 includes the following steps:
step S100: analyzing the received metadata to obtain analysis data, wherein the metadata comprises interface metadata, control metadata, entity metadata and workflow setting data;
the metadata provides all the data needed to build a document interface, and can be adaptively defined and set according to business needs, to increase the flexibility of interface document construction, the metadata may be obtained, for example, by an editor provided at the PC side, and, in particular, defining database entities and entity fields by an entity editing designer, defining a document interface by an interface editing designer to obtain interface metadata and control metadata, defining workflow setting data by a workflow definition designer to obtain metadata, therefore, the application provides a plurality of metadata configuration modes to realize the dynamic construction of the receipt suitable for different business scenes and different types, thereby realizing the flexibility and the practicability of the dynamic construction of the receipt, and in addition, the electronic device for defining and generating metadata may be a PC terminal, or may be other electronic devices, which is not limited herein.
Specifically, the entity editing designer is used for designing entity metadata, and can define the database entity metadata, the defined content includes a database entity and entity fields, the database entity corresponds to a table in a database, the attributes include a table name, an associated program set, an entity type and the like, the entity fields correspond to fields in the database table, and the attributes include a data entity, a field name, a field type, a field length, whether recording is necessary or not, whether the recording is visible or not and the like.
The interface editing designer is a graphical interface editing designer and can define a business document interface, and the defined content comprises document interface attributes, such as name, type, associated entity, authority, style and the like of the document interface, and is stored in a database and called interface metadata; the document interface also comprises control attributes on the document interface, such as control name, control type, control association field, read-only, activation, style and the like, namely the control metadata.
And the workflow definition designer is used for defining a business process, the workflow is associated with a business document, a business document interface associated with the workflow is designated during the definition of the workflow, and meanwhile, the business document interface designates an associated database entity. In the workflow definition designer, the attribute of the workflow can be defined in a self-defined manner, wherein in the attribute of the workflow node, the field attribute of the entity associated with the current workflow node can be set, including the visibility, the bibliographic attribute and the read-only attribute of the entity field, and different bill fields can be displayed according to different workflow nodes through the definition of the workflow node.
The server 102 analyzes the metadata, finds a corresponding business document interface according to the initiated workflow, analyzes according to the interface metadata and control metadata of the business document interface, and judges which controls are to be displayed on the interface, including the attributes of field titles, field types, field default values, whether read-only exists, whether recording is necessary, and the like of fields associated with the controls. Meanwhile, when the entity field associated with the control is analyzed, the entity metadata is also used for judgment, for example, when the definition of the entity metadata is the record-needed, the field is the record-needed, and the data returned by the server 102 to the client 103 contains the information.
In addition to the interface metadata, control metadata, and entity metadata, the definition of the workflow node is also analyzed when the interface control is analyzed, the workflow node definition includes interface field attribute control of the current node, including whether to display, read only, and record, and these attribute controls are transmitted to the client 103 after being analyzed.
Step S200: sending the analysis data to the client 103 so that the client 103 constructs a document interface by using the analysis data;
after the server 102 completes the metadata analysis, the analysis data is returned to the client 103, the analysis data includes all information needed by the client 103 to construct an interface, the client 103 constructs and displays the interface according to the data, such as field titles and data entity field names displayed on the interface, and the interface displays different types of controls according to the field types, such as a text editing box control for a character string type, a date type use date selection control, a time type use time selection control, and a check box control for a coolean type (a data type); and the reference type field can refer to other data entities so as to acquire associated data for selection, a new page is opened for data source selection when the client 103 processes the data, a receipt page is returned after a record is selected, and the data is displayed on the control.
Step S300: receiving receipt interface data returned by the client 103 and judging whether metadata field conditions are met;
step S400: if yes, the data of the single data interface are classified and stored in the database.
The bill interface data can be the bill construction data or the bill modification submission data, so that the method not only provides a dynamic bill creation method, but also provides a bill creation and modification submission method. Wherein, the service end 102 will process the document interface data submitted by the client 103 and judge the read-only attribute and the record-necessary attribute if the metadata field condition is not modifiable and the field record-necessary; and storing the bill interface data into a database according to the interface attribute, the control attribute, the corresponding entity metadata and the field metadata, and storing the bill detail data into a detail entity corresponding to the database.
Example 2
An embodiment of the present application provides a document generation method, which is applied to the client 103 in embodiment 1, and as shown in fig. 4, is a flowchart of the document generation method, where the method specifically includes the following steps:
step S500: receiving analysis data sent by the server 102;
step S600: processing the control value and the control attribute according to the analysis data to construct a document interface;
step S700: if the analyzed data contains the document detail, constructing document detail display;
in the document detail construction process, for a general ERP business document, besides the content of the document, the document also generally comprises associated detail content, one document can have a plurality of document details, and each document detail can have a plurality of detail records. For example, when creating a material receipt in warehouse management, the material receipt includes material details such as material to be applied, number of applications, and amount of money. The system automatically realizes the display of the document detail according to the incidence relation between the data entity and the metadata of the data entity field, and supports the addition, modification and deletion of the detail.
In the document construction process, the client 103 interface display control mainly includes two aspects, on one hand, the processing of the control value by the client 103 includes a control data source, a control selection data source, control assignment, detail table display, detail column display, detail control data source, detail control selection data source, detail control assignment and the like. On the other hand, the client 103 processes the control attributes, including whether to display, edit, record, style control, and the like, and is valid for the document field and the document detail field.
When the interface loads the document which is already created, the client 103 performs interface construction according to metadata returned by the server 102, and also performs assignment processing on a control on the interface according to data returned by the server 102, wherein the assignment process further includes document detail construction display and detail control assignment, and when the details are clicked, the client jumps to a new interface to realize detail editing processing.
Step S800: and sending the built bill interface data to the server 102 for storage.
In addition, the creation and modification submission of the document are processed in combination with the set workflow process, a workflow process example is also created when the document is created, and the document can advance to the next node according to the set workflow and is processed by the next processor.
The method also provides various flexible event processing mechanisms such as an automatic association assignment event, a conditional formula automatic event, a user-defined event and the like, so that the flexibility and the practicability of dynamic construction of the document are improved, and as shown in fig. 5, the method provides an automatic association assignment event flow chart for the embodiment of the application. Editing a control carrying entity and a carrying entity field attribute through an interface editing designer, when a control value of a document interface is changed during the process of analyzing and constructing the document interface by a client 103, if a current control is a carrying entity field, searching the control containing the carrying entity field on the document interface and performing automatic assignment operation by using the carrying entity field attribute, wherein the document control attribute comprises the carrying entity attribute and the carrying entity field attribute of the control, and is edited and set through the interface editing designer.
The interface editing designer provides control property setting functions, the control properties comprise a carrying entity and a carrying entity field property of the control, the carrying entity property represents that an entity field type associated with the control in the current document is an entity type (namely a reference type field), and the carrying entity field property represents a certain field of the entity type. For example, a department control specifies a carrying entity as an "applicant" entity, specifies a carrying entity field as a "department", and when the applicant control in a document is assigned, the department control automatically assigns a value by using the department where the applicant is located.
The server 102 analyzes the interface and the control metadata, and transmits the metadata to the client 103, when the document control value of the interface changes, the client 103 automatically completes the associated assignment operation of other controls according to the metadata, and the process does not need the server 102 to perform control processing any more. In addition, the assignment event is automatically associated, and field processing of document details is supported.
FIG. 6 is a flow chart of a method for formulating an automatic event for a condition. When the control value of the document interface is changed, if the current control is the associated control in the condition formula, calculating according to the condition formula, and automatically calculating and assigning the control, wherein the property of the condition formula is edited and set through an interface editing designer.
The interface editing designer provides a control condition formula attribute setting function, and the value of the condition formula attribute representing the current control is obtained by calculating and automatically assigning other control values in the document including the document detail control and the condition formula. The elements of the conditional formula contain control entity fields such as document detail fields, control accumulation fields, and operation operators. Similarly, the server 102 program will analyze the interface and control metadata and then transmit the interface and control metadata to the client 103, and the client 103 implements an automatic value calculation function of the control according to the condition formula when the associated control changes, such as a commonly used function of aggregating the amounts of a plurality of document details and displaying the aggregated amounts in the master document.
FIG. 7 is a flow chart of a method for customizing an event mechanism. The method specifically comprises the following steps:
step S811: when a trigger event occurs to the control, if the current control is an appointed trigger control, calling back an interface of the server 102 and sending a control attribute and a control value of a single data interface to the server 102 so as to enable the server 102 to perform logic judgment processing, wherein the appointed trigger control is a trigger control and a control trigger event type of a document appointed by the server 102;
step S812: and receiving an execution instruction returned by the server 102 to operate the execution instruction.
By customizing code control through the server 102, not only can logic judgment processing be flexibly carried out according to the associated data in the database, but also the work of re-issuing update by the mobile client 103 is saved. Firstly, the server 102 designates a triggering control and a control triggering event type of the document, wherein the triggering type includes a control value change, a control click event, a control double-click event and the like.
When the value of the control triggered by the client 103 changes, the client 103 automatically calls back the interface of the server 102, and simultaneously returns the attribute and value of the control on the document interface and the attribute and value of each document detail, after the server 102 performs business logic processing in the call-back event, the server returns an execution instruction to the client 103, the client 103 analyzes and executes the execution instruction, and the client 103 can operate the document interface and the control of the client 103, such as modifying the control value, changing the control selection data source, modifying the control read-only attribute, changing the control visibility and the like.
Therefore, the method can meet the dynamic data loading requirements and interface interaction requirements of users and the requirements of combining the ERP system workflow to dynamically control the interface in the approval node, and compared with the document page layout, the method is low in development cost and high in usability.
In addition, the execution instruction of the client 103 is an executable code defined and encapsulated by the client 103, and is used for providing for the server 102 to be called, executing on the interface of the client 103, and performing interface display and interaction control, including processing of control values, such as a control data source, a control selection data source, a control assignment, a detail table display, a detail column display, a detail control data source, a detail control selection data source, a detail control assignment and the like, and processing of control attributes, such as whether a control is displayed, editable or not, whether recording is necessary or not, style control and the like; and meanwhile, interactive operation of interfaces, such as a prompt box and a confirmation box, is also provided.
In addition, a document initialization event is also included: the method is provided by a server 102, is defined at the server 102, and when the server 102 analyzes and initializes a bill interface, the server 102 provides an initialization event, and can perform bill initialization logic processing according to specific business requirements in the event, such as bill control initialization assignment, bill control data source assignment, control attribute control and the like. After the processing is completed, the server 102 returns the metadata to the client 103 together with the metadata for analysis and display.
Unified server 102 control code: optionally, the server 102 may encapsulate the code executed by the client 103, and use a unified server 102 control code, and expose the code to the caller of the server 102 in the manner of the server 102 language, so as to improve the usability of the framework and reduce the coupling between the frameworks, and the caller does not need to consider the implementation and calling method of the client 103 framework. Unified server 102 control code can be used for the document initialization event and the custom event mechanism to operate the interface.
Self-defining menu events: in the method, the custom menu is added and defined in the interface editing designer, is displayed on a menu bar of the document interface and is generally used for specific operations, such as saving operation, examining and approving operation, deleting operation and other custom operations, and the client 103 automatically analyzes and displays the custom menu on the document interface according to metadata of the designer. When the custom menu is clicked, a custom menu event is triggered, which is called back to the server 102 by the client 103, and the logical processing of the menu event is executed in the server 102. The implementation of the custom menu event is based on a uniform custom event mechanism, but a trigger control does not need to be specified at the server 102, and different business logics can be judged and executed according to the name of the menu.
The new interface opening mechanism: optionally, the method of the present application provides a mechanism for opening a new interface on a document interface, and a mechanism for data interaction between an original document interface and the new interface. The mechanism is based on a uniform user-defined event mechanism, and the realization process is as follows: the server 102 designates a trigger control, when the control triggers an event, the client 103 automatically calls back the server 102, performs business logic processing on the server 102, obtains data to be transmitted to a new interface, meanwhile, the server 102 needs to analyze metadata related to the interface according to the opened new interface, executes a document initialization event of the new interface, provides data transmitted by an original document interface in the initialization event, and finally returns an execution code instruction for opening the new interface, the new interface data and the control data to the client 103, and the client 103 executes a new document interface construction process.
The data source processes the event: optionally, an event mechanism for processing data of the selected data source interface of the reference type control by the document interface is provided in the method of the present application. For example, when the staff selects the bill interface and opens the staff selection interface, the staff can be filtered according to the organization control value of the current bill interface and the filtering condition of the organization. The realization process is as follows: the server 102 designates triggered reference type controls, when a user clicks the controls, the client 103 automatically calls back the server 102, and simultaneously returns the attributes and values of the controls on the document interface and the attributes and values of various document details, the server 102 executes a data source processing event to process selectable data sources, and finally returns the processed data sources to the client 103, and the client loads and displays the interface according to the data sources.
According to the document interface design method and the document interface design system, the document interface is designed and described through the interface editing designer, the entity editing designer and the workflow definition designer, and a user can design the document interface dynamically according to specific business scene requirements. Meanwhile, starting from actual application requirements, the construction requirements of the document interface are comprehensively provided, and document detail processing, document control value processing and document control attribute processing are included; the method not only provides a method for dynamically constructing the bill by the client 103, but also provides a method for creating, modifying and submitting the bill. In addition, various receipt event interaction mechanisms are provided, the realization of low codes is ensured to the greatest extent, meanwhile, the diversity and flexibility of receipt service logic realization are ensured, and support is provided for receipt service logic expansibility.
Example 3
An embodiment of the present application provides a dynamic document constructing apparatus, which is applied to the server 102 in embodiment 1, and as shown in fig. 8, is a block diagram of a dynamic document constructing apparatus, where the apparatus includes:
the analysis module 200 is configured to analyze the received metadata to obtain analysis data, where the metadata includes interface metadata, control metadata, entity metadata, and workflow setting data;
a sending module 300, configured to send the analysis data to a client 103, so that the client 103 constructs a document interface by using the analysis data;
the judging module 400 is configured to receive the document interface data returned by the client 103 and judge whether a metadata field condition is satisfied;
and the storage module 500 is configured to store the document interface data into a database in a classified manner if the metadata field condition is met.
An embodiment of the present application further provides a document generating apparatus, which is applied to the client 103 in embodiment 2, and as shown in fig. 9, is a block diagram of a structure of the document generating apparatus, where the apparatus includes:
a receiving module 600, configured to receive analysis data sent by the server 102;
the document construction module 700 is configured to process the control value and the control attribute according to the analysis data to construct a document interface;
the document detail display module 800 is configured to, if the parsed data includes a document detail, construct a document detail display;
and the document sending module 900 is configured to send the constructed document interface data to the server 102 for storage.
The device also includes:
and the automatic assignment module 910 is configured to, when a control value of the document interface is changed, if the current control is a field carrying an entity, search for a control including the field carrying the entity on the document interface and perform an automatic assignment operation using the field attribute carrying the entity, where the document control attribute includes a field attribute carrying the entity and a field attribute carrying the entity of the control, and is edited and set by the interface editing designer.
And the conditional formula module 920 is configured to, when the sending of the control value of the document interface is changed, if the current control is a control associated in the conditional formula, perform calculation according to the conditional formula, and perform automatic calculation and assignment operation on the control, where the property of the conditional formula is edited and set by the interface editing designer.
Custom event module 930, including:
the control data sending module 931 is configured to, when a trigger event occurs to a control, call back an interface of the server 102 and send a control attribute and a control value of a single data interface to the server 102 if the current control is an appointed trigger control, so that the server 102 performs logic judgment processing, where the appointed trigger control is a trigger control and a control trigger event type of a document appointed by the server 102;
the execution module 932 is configured to receive an execution instruction returned by the server 102, so as to operate the execution instruction.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the document building method in embodiment 1 and the document generating method in embodiment 2.
An embodiment of the present application further provides a readable storage medium, where a computer program instruction is stored in the readable storage medium, and when the computer program instruction is read and executed by a processor, the method for constructing a document in embodiment 1 and the method for generating a document in embodiment 2 are executed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules 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 or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a 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 other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A bill construction method is applied to a server side, and comprises the following steps:
analyzing the received metadata to obtain analysis data, wherein the metadata comprises interface metadata, control metadata, entity metadata and workflow setting data;
sending the analysis data to a client so that the client can construct a bill interface by using the analysis data;
receiving document interface data returned by a client and judging whether metadata field conditions are met or not;
and if so, storing the bill interface data to a database in a classified manner.
2. The document construction method according to claim 1, wherein prior to the step of parsing the received metadata to obtain parsed data, the method further comprises:
receiving metadata acquired by an entity editing designer defining database entities and entity fields, defining a document interface by an interface editing designer to obtain interface metadata and control metadata, and defining workflow setting data by a workflow definition designer.
3. A document generation method applied to the client side of any one of claims 1-2, the method comprising:
receiving analysis data sent by a server;
processing the control value and the control attribute according to the analysis data to construct a document interface;
if the analyzed data contains document details, constructing document detail display;
and sending the built document interface data to a server for storage.
4. The document generation method of claim 3, wherein the method further comprises:
when the sending of the control value of the document interface is changed, if the current control is the field carrying the entity, searching the control containing the field carrying the entity on the document interface and using the field attribute carrying the entity to carry out automatic assignment operation, wherein the document control attribute comprises the field attribute carrying the entity and the field attribute carrying the entity of the control, and is edited and set through an interface editing designer.
5. The document generation method of claim 3, wherein the method further comprises:
when the control value of the document interface is changed, if the current control is the associated control in the condition formula, calculating according to the condition formula, and automatically calculating and assigning the control, wherein the property of the condition formula is edited and set through an interface editing designer.
6. The document generation method of claim 3, wherein the method further comprises:
when the control generates a trigger event, if the current control is the specified trigger control, calling back the server interface and sending the control attribute and the control value of the single data interface to the server so as to enable the server to perform logic judgment processing, wherein the specified trigger control is the trigger control and the control trigger event type of the document specified by the server;
and receiving an execution instruction returned by the server to operate the execution instruction.
7. A receipt construction device is applied to a server side, and the device comprises:
the analysis module is used for analyzing the received metadata to obtain analysis data, wherein the metadata comprises interface metadata, control metadata, entity metadata and workflow setting data;
the sending module is used for sending the analysis data to a client so that the client can construct a bill interface by using the analysis data;
the judging module is used for receiving the receipt interface data returned by the client and judging whether the metadata field conditions are met;
and the storage module is used for storing the bill interface data to a database in a classified manner if the metadata field conditions are met.
8. A document generation apparatus, for use in a client as claimed in any one of claims 1-2, the apparatus comprising:
the receiving module is used for receiving analysis data sent by the server;
the document construction module is used for processing the control value and the control attribute according to the analysis data so as to construct a document interface;
the document detail display module is used for constructing document detail display if the analysis data contains document details;
and the sending module is used for sending the built document interface data to the server for storage.
9. An electronic device, characterized in that the electronic device comprises a memory for storing a computer program and a processor running the computer program to cause the computer device to perform a document generation method according to any of claims 3 to 6.
10. A readable storage medium having stored thereon computer program instructions which, when read and executed by a processor, perform a document generation method according to any of claims 3 to 6.
CN202110084688.6A 2021-01-21 2021-01-21 Document construction method, generation method, device, electronic equipment and storage medium Active CN112766910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110084688.6A CN112766910B (en) 2021-01-21 2021-01-21 Document construction method, generation method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110084688.6A CN112766910B (en) 2021-01-21 2021-01-21 Document construction method, generation method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112766910A true CN112766910A (en) 2021-05-07
CN112766910B CN112766910B (en) 2023-10-27

Family

ID=75702567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110084688.6A Active CN112766910B (en) 2021-01-21 2021-01-21 Document construction method, generation method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112766910B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790790A (en) * 1996-10-24 1998-08-04 Tumbleweed Software Corporation Electronic document delivery system in which notification of said electronic document is sent to a recipient thereof
JP2003157210A (en) * 2001-11-20 2003-05-30 Hitachi Ltd Method for collecting data and implementation device therefor
CN1588369A (en) * 2004-09-06 2005-03-02 杭州恒生电子股份有限公司 Relation type data base system and its search and report method
CN102479355A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and device for loading business documents and mobile terminal
WO2013126826A1 (en) * 2012-02-24 2013-08-29 Winshuttle, Llc Dynamic web services workflow system and method
CN103577197A (en) * 2013-11-18 2014-02-12 深圳市远行科技有限公司 Method for achieving android application program dynamic form
CN104376068A (en) * 2014-11-07 2015-02-25 北京思特奇信息技术股份有限公司 Data representation system and method based on dynamic report template
US20170357628A1 (en) * 2016-06-08 2017-12-14 j5 International IP Corporation Spreadsheet-Based Form Design and Data Input
CN109271411A (en) * 2018-09-28 2019-01-25 中国平安财产保险股份有限公司 Report form generation method, device, computer equipment and storage medium
CN109657178A (en) * 2018-11-12 2019-04-19 平安科技(深圳)有限公司 Page table list processing method, device, computer equipment and storage medium
CN110795475A (en) * 2019-09-24 2020-02-14 金蝶软件(中国)有限公司 Report generation method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790790A (en) * 1996-10-24 1998-08-04 Tumbleweed Software Corporation Electronic document delivery system in which notification of said electronic document is sent to a recipient thereof
JP2003157210A (en) * 2001-11-20 2003-05-30 Hitachi Ltd Method for collecting data and implementation device therefor
CN1588369A (en) * 2004-09-06 2005-03-02 杭州恒生电子股份有限公司 Relation type data base system and its search and report method
CN102479355A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and device for loading business documents and mobile terminal
WO2013126826A1 (en) * 2012-02-24 2013-08-29 Winshuttle, Llc Dynamic web services workflow system and method
CN103577197A (en) * 2013-11-18 2014-02-12 深圳市远行科技有限公司 Method for achieving android application program dynamic form
CN104376068A (en) * 2014-11-07 2015-02-25 北京思特奇信息技术股份有限公司 Data representation system and method based on dynamic report template
US20170357628A1 (en) * 2016-06-08 2017-12-14 j5 International IP Corporation Spreadsheet-Based Form Design and Data Input
CN109271411A (en) * 2018-09-28 2019-01-25 中国平安财产保险股份有限公司 Report form generation method, device, computer equipment and storage medium
CN109657178A (en) * 2018-11-12 2019-04-19 平安科技(深圳)有限公司 Page table list processing method, device, computer equipment and storage medium
CN110795475A (en) * 2019-09-24 2020-02-14 金蝶软件(中国)有限公司 Report generation method and device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GOTTFRIED PRASETYADI等: "Heresy: a Serverless Web Application to Store Compressed and Encrypted Document in the Form of URL", 2019 FOURTH INTERNATIONAL CONFERENCE ON INFORMATICS AND COMPUTING (ICIC). PROCEEDINGS, pages 5 *
陈叶能等: "基于 ActiveX 的 EIP 动态报表系统", 软件开发与应用, vol. 26, no. 5, pages 86 - 88 *
黄敏: "多数据源自动化报表的研究与开发", 中国优秀硕士学位论文全文数据库信息科技辑, no. 12, pages 138 - 79 *

Also Published As

Publication number Publication date
CN112766910B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
EP3549013B1 (en) Spreadsheet-based software application development
CN101373431B (en) Enhanced widget composition platform
US10782961B2 (en) Analyzing components related to a software application in a software development environment
US20120210296A1 (en) Automatically creating business applications from description of business processes
US7680823B2 (en) Custom report generation
US20110173529A1 (en) Template processing engine for business systems
US20170185612A1 (en) Dynamically designing web pages
US9229920B1 (en) Compound undo/redo manager for mixed model edits
KR20130110610A (en) Method of constructing database, server performing the same and storage media storing the same
CN101776999A (en) Platform for developing and implementing software system
US20070179642A1 (en) System and method for interactive process management
CN111340447A (en) Configuration-based business process management method and device
CN108228846B (en) Resource file management method and device
US8291380B2 (en) Methods for configuring software package
US20150051929A1 (en) Ad hoc reporting with smart lists
KR101150121B1 (en) Method and apparatus for constructing representations of objects and entities
US20070136358A1 (en) Methods and apparatus for storing data associated with an electronic form
EP1955201A2 (en) Methods and apparatus for processing business objects, electronic forms, and workflows
CN107220044B (en) Method and device for driving business object based on meta-model
US20070143711A1 (en) Methods and apparatus for displaying a setup sequence
CN112766910B (en) Document construction method, generation method, device, electronic equipment and storage medium
KR101989634B1 (en) Creating logic using pre-built controls
US20070136367A1 (en) Methods and apparatus for dynamically modifying a business object definition
JP2007257364A (en) Electronic organization chart processing system, electronic organization chart processing method, and program
CN113704593B (en) Operation data processing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant