CN112989771A - Method for creating and using user-defined form based on control - Google Patents

Method for creating and using user-defined form based on control Download PDF

Info

Publication number
CN112989771A
CN112989771A CN201911211288.6A CN201911211288A CN112989771A CN 112989771 A CN112989771 A CN 112989771A CN 201911211288 A CN201911211288 A CN 201911211288A CN 112989771 A CN112989771 A CN 112989771A
Authority
CN
China
Prior art keywords
control
data
codes
configuration
library
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.)
Pending
Application number
CN201911211288.6A
Other languages
Chinese (zh)
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.)
Guangzhou Faisco Internet Technology Co ltd
Original Assignee
Guangzhou Faisco Internet 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 Guangzhou Faisco Internet Technology Co ltd filed Critical Guangzhou Faisco Internet Technology Co ltd
Priority to CN201911211288.6A priority Critical patent/CN112989771A/en
Publication of CN112989771A publication Critical patent/CN112989771A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for creating and using a user-defined form based on a control, which comprises the following steps: loading a control library; entering a form configuration page, calling corresponding configuration page codes by a system, operating the codes of the page in the codes, and temporarily loading the codes of the control library into a data structure A when the codes of the control library are operated; analyzing the control library; calling the data structure A storing the codes of the temporary control library, subdividing each control in the control library, analyzing the definition codes of each control, and temporarily storing the analyzed control definition codes into the data structure B by the system. The self-defined form can meet the business requirements under different conditions, the development pressure of developers on different business forms is reduced, a plurality of business layers are expanded, and the working efficiency of business personnel can be greatly improved.

Description

Method for creating and using user-defined form based on control
Technical Field
The invention relates to the technical field of automatic office systems, in particular to a method for creating and using a user-defined form based on a control.
Background
In the society that now demands efficiency, the efficiency of office collaboration within a company becomes more important. In a company, a plurality of documents are often submitted, such as leave requests, rest, field work, and the like, and each time the documents are submitted and processed, the submitter needs to find the corresponding responsible person for confirmation and signature, which wastes a lot of time in communication and greatly increases the communication cost. And if developers are required to develop different sheets according to different services, the development cost is increased. Therefore, a method for creating and using a control-based custom form is proposed.
Disclosure of Invention
Based on the technical problems in the background art, the invention provides a method for creating and using a control-based user-defined form.
The invention provides a method for creating and using a user-defined form based on a control, which comprises the following steps:
s1: loading a control library; entering a form configuration page, calling corresponding configuration page codes by a system, operating the codes of the page in the codes, and temporarily loading the codes of the control library into a data structure A when the codes of the control library are operated;
s2: analyzing the control library; calling a data structure A storing codes of a temporary control library, subdividing each control in the control library, analyzing definition codes of each control, and temporarily storing the analyzed control definition codes into a data structure B by a system;
s3: rendering a control library; the system firstly takes out the definition code of each control from the data structure B, analyzes the definition code of the control icon and the character in the definition code, calls the definition code according to the definition control icon and the character, renders the definition icon and the character of each control in a front-end page, forms a control library and is used by a form editor;
s4: dragging the control from the control library to enter a blank form to generate a user-defined form;
s5: attribute configuration of dragged controls in the forms is carried out, different business properties are given to each control, and corresponding business forms are generated;
s6: the generated business form is matched with a self-defined flow system in a company to circulate;
s7: the form judges the flow direction according to the data; in any node of the flow, after receiving an instruction for completing the current task, the server judges the data in the key control item, judges the rule set in the flow, and searches the next task node of the flow according to the judgment result;
s8: establishing data connection between a front end and a server; the front end carries out access detection on the server through url, the server analyzes the header information and returns a data packet, and the front end receives the data packet to establish connection with the server;
s9: modifying the form data in the circulation node; and displaying the data of the work order on a page, clicking an editing button to enter a work order data editing page, editing the data of the work order control allowed to be edited, clicking to store after the editing is finished, automatically returning the system to the work order page, and displaying the modified data.
Preferably, the specific step of dragging the control in S4 is: clicking the definition icon of the corresponding control, generating a corresponding control instance in a blank form, and dragging the control to the position of the form which is expected to correspond according to the characteristics of the service.
Preferably, the attribute configuration in S5 includes a basic attribute configuration and a high-level attribute configuration, where the basic attribute configuration includes a title configuration, a prompt text configuration, and a check condition configuration, and the high-level attribute configuration includes an option configuration, an option setting configuration, and a selectable range configuration.
Preferably, the configuration of the drag control in S5 further relates to the correlation with specific services: the member control is associated with the personnel in the company, the form editor is used for defining the range, and the member control is associated with the personnel in the company in the defined range; and the department control is associated with the organization architecture inside the company, the range is defined by the form editor, and the department control is associated with the organization architecture inside the company within the defined range.
Preferably, the service form generated in S5 belongs to an instance, and has uniqueness and variability.
Preferably, the specific step of performing the rule determination set in the flow in S7 is: and the server processes the acquired flow information into query statements, queries data, maps the data, judges whether the data is reasonable, takes out the standard value in the rule, compares the data with the standard value to obtain a result and returns the result.
The beneficial effects of the invention are as follows:
1. the user-defined forms can meet business requirements under different conditions, the development pressure of developers on different business forms is reduced, a plurality of business layers are expanded, and the working efficiency of business personnel can be greatly improved.
2. From the perspective of a user-defined form, the filling items are abstracted into controls, the controls can be dragged and configured according to business requirements, and the sheet is used for carrying out internal cooperation and working of a company, so that the development pressure of developers is reduced, the communication cost between a submitter and a processor is reduced, and the internal working and cooperation efficiency of the company is greatly improved.
Drawings
FIG. 1 is a schematic flow chart of a method for creating and using a control-based custom form according to the present invention;
FIG. 2 is a schematic diagram illustrating specific steps of rule judgment of a method for creating and using a control-based user-defined form according to the present invention;
FIG. 3 is a schematic diagram of specific steps of establishing a data connection between a front end and a server according to the method for creating and using a control-based custom form of the present invention;
FIG. 4 is a schematic diagram illustrating specific steps of data transmission between a front-end page and a server according to the method for creating and using a control-based customized form of the present invention;
FIG. 5 is a schematic diagram of specific steps of data loading and processing of a method for creating and using a control-based custom form according to the present invention;
fig. 6 is a schematic diagram illustrating specific steps of a rendering process of a method for creating and using a control-based customized form according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1, a method for creating and using a control-based custom form includes the following steps:
loading a control library: entering a form configuration page, calling corresponding configuration page codes by a system, operating the codes of the page in the codes, and temporarily loading the codes of the control library into a data structure A when the codes of the control library are operated;
analyzing the control library: calling a data structure A storing codes of a temporary control library, subdividing each control in the control library, analyzing definition codes of each control, and temporarily storing the analyzed control definition codes into a data structure B by a system;
rendering a control library; the system firstly takes out the definition code of each control from the data structure B, analyzes the definition code of the control icon and the character in the definition code, calls the definition code according to the definition control icon and the character, renders the definition icon and the character of each control in a front-end page, forms a control library and is used by a form editor;
dragging a control from a control library to enter a blank form, clicking the control and dragging, recording initial positions of a mouse and the control when the control is clicked by a system, obtaining a changed position of the mouse after the mouse is moved by the system when the control is dragged, subtracting the changed position of the mouse from the initial position when the control is clicked to obtain a corresponding position offset, adding the initial position of the control and the calculated position offset to obtain a position of the control after the control is dragged, and then moving the control to a corresponding position coordinate by the system, which is equivalent to the control being successfully moved by a user to generate a user-defined form;
the method comprises the steps of carrying out attribute configuration of a control dragged in a form, wherein the attribute configuration comprises basic attribute configuration and advanced attribute configuration, the basic attribute configuration comprises title configuration, prompt text configuration and verification condition configuration, the advanced attribute configuration comprises option configuration, option setting configuration and optional range configuration, the attribute configuration endows each control with different business properties, a corresponding business form is generated, the generated business form belongs to an example, the example is generated in the definition of an original form, has uniqueness, has an identification id of the example, is different from other examples generated by the same form definition, and has variability, and data in the business form example can be changed without causing the change of other form examples; in the circulation process, the configured attributes in the form and the submitted data can be judged to a certain extent according to the service requirements of the process, and the trend of the following process is determined;
setting a title of the control to show what contents the control should fill in; setting a prompt text of the control, displaying an example when the control fills in the content, and further reminding a user of what content should be filled in; if the control is a selection control, providing option configuration for an editor to configure, and allowing a user to select when filling in the form; setting the explanatory text of the control to show that the following complex control is filled in to carry out further detailed explanation, and can also show further explanation of the content of the whole form; when the control is associated with the information in the company, the setting of the selectable range can be carried out, which indicates that the control can be selected from the defined range when being selected;
the generated business form is matched with a user-defined flow system in a company to circulate: and acquiring definition codes of corresponding controls from the data structure B, generating corresponding form examples according to the form definitions, and endowing the created form examples with a unique identification id, wherein data filling in the form examples is to fill in data of each control when a submitter submits the form, and the data can be modified by an acceptor in the following process.
And the form judges the flow direction according to the data: in any node of the flow, after receiving an instruction for completing a current task, a server acquires form data to which the current flow belongs from a database, processes and analyzes the form data, judges data in a key control item according to the analyzed and processed data, judges a rule set in the flow, and searches a next task node of the flow according to a judgment result;
referring to fig. 2, the specific steps of rule determination are as follows: the method comprises the steps that after a server side obtains an instruction, corresponding flow information is obtained, the flow information is processed into a database query condition, the condition is processed into a query statement of a database, after the server side queries data, the server side carries out mapping processing on control id-data, the server side uses the data after mapping processing to carry out inspection, whether the processed data meet the condition or not is judged, the server side obtains a rule set in the flow, a standard value in the rule is taken out, the server side compares the inspected data with the standard value in the rule to obtain a result, and finally the server side returns the obtained result.
Referring to fig. 3, a data connection between the front end and the server is established: judging whether the url can successfully initiate the request, the server side receiving the request of the front end and returning a corresponding data packet to indicate that the server side can access, analyzing the header information carried by the request initiated by the front end and judging whether the request of the front end is legal or not, the front end receiving the data packet returned by the server side and retransmitting the data packet after judging that the request can be successfully initiated to indicate that the two sides start to establish corresponding data connection;
modifying the form data in the circulation node; the front page transmits the parameters related to the form to the server, the server searches the form data according to the parameters, the server acquires and processes the form data and then transmits the data with the front page, in the detail page of the form, the front end loads, processes and renders the data to the page according to the data transmitted by the server, clicking an editing button on a detail page of the form, entering a data modification interface of the form, and in the data modification interface, the control with data filled in the form is modified in data and is stored through a storage button, after the form data is connected with the server, the modified data is transmitted, the transmitted data is processed at the server side and then stored in the database, the server returns the corresponding form data to the front-end page again, and the front-end page displays the modified data on the form detail page again;
referring to fig. 4, the data transmission between the front page and the server includes the following steps: the front end packages the key parameters of the form and transmits the packaged key parameters to the server in a field-value form, and the server judges the parameters and judges whether the parameters meet the requirement rules of the server; after the server side judges the data, the data are reprocessed, the key parameter data are assembled into query statements, a query request is sent to a database, the database forms query conditions according to the key parameters, and then the data meeting the conditions are returned; after the server side acquires data from the database, judging whether the data is empty, if the data is empty, indicating that no data meeting the conditions exists, directly returning an empty data set to the front end, and if the data is not empty, further processing the inquired data; the server processes and packages the non-empty data and returns the data meeting the requirements to the front-end page.
Referring to fig. 5, the specific steps of data loading and processing are as follows: the method comprises the steps that a front-end page temporarily stores acquired data into a data structure, traverses each control in the data structure, acquires the numerical value of each control, and verifies the numerical value of each control, wherein the verification is the configuration of the high-level attribute of the control when a form is configured before, the front-end page verifies the data, after the fact that no problem exists, the data is reset into the control corresponding to the form, and then the control with the data is rendered to the front-end page according to the definition in a control library;
referring to fig. 6, the process of rendering includes: front page loading control library code, then resolving and storing control library definition code, front page setting numerical value and rendering, front page loading form detail page, system calling corresponding detail page code, and in these codes, operating the page code, and when operating the code of control library, temporarily loading the code of control library into a data structure, conveniently calling these codes when generating control example, when resolving control library code, firstly calling data structure storing temporary control library code, taking out the code inside, resolving it, the resolving process is that each control in control library is subdivided, according to the definition code of each control, the system temporarily stores these definitions into another data structure, and through resolving control library code, after the definition of each control is acquired, matching of the control definition is carried out on the data which is previously set into the control, the problem that mapping is inconsistent between the data and the control definition is solved, codes defining control icons and characters are called, the control containing modified data is rendered on a front-end page, and a control type form is formed.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (6)

1. A method for creating and using a self-defined form based on a control type is characterized by comprising the following steps:
s1: loading a control library; entering a form configuration page, calling corresponding configuration page codes by a system, operating the codes of the page in the codes, and temporarily loading the codes of the control library into a data structure A when the codes of the control library are operated;
s2: analyzing the control library; calling a data structure A storing codes of a temporary control library, subdividing each control in the control library, analyzing definition codes of each control, and temporarily storing the analyzed control definition codes into a data structure B by a system;
s3: rendering a control library; the system firstly takes out the definition code of each control from the data structure B, analyzes the definition code of the control icon and the character in the definition code, calls the definition code according to the definition control icon and the character, renders the definition icon and the character of each control in a front-end page, forms a control library and is used by a form editor;
s4: dragging the control from the control library to enter a blank form to generate a user-defined form;
s5: attribute configuration of dragged controls in the forms is carried out, different business properties are given to each control, and corresponding business forms are generated;
s6: the generated business form is matched with a self-defined flow system in a company to circulate;
s7: the form judges the flow direction according to the data; in any node of the flow, after receiving an instruction for completing the current task, the server judges the data in the key control item, judges the rule set in the flow, and searches the next task node of the flow according to the judgment result;
s8: establishing data connection between a front end and a server; the front end carries out access detection on the server through url, the server analyzes the header information and returns a data packet, and the front end receives the data packet to establish connection with the server;
s9: modifying the form data in the circulation node; and displaying the data of the work order on a page, clicking an editing button to enter a work order data editing page, editing the data of the work order control allowed to be edited, clicking to store after the editing is finished, automatically returning the system to the work order page, and displaying the modified data.
2. The method for creating and using the control-based custom form according to claim 1, wherein the step of dragging the control in S4 is as follows: clicking the definition icon of the corresponding control, generating a corresponding control instance in a blank form, and dragging the control to the position of the form which is expected to correspond according to the characteristics of the service.
3. The method of claim 2, wherein the property configurations in S5 include a basic property configuration and a high-level property configuration, wherein the basic property configuration includes a title configuration, a prompt text configuration, and a check condition configuration, and wherein the high-level property configuration includes an option configuration, an option setting configuration, and a selectable scope configuration.
4. The method for creating and using a control-based custom form according to claim 3, wherein the configuration of the drag control in S5 further involves the correlation with specific services: the member control is associated with the personnel in the company, the form editor is used for defining the range, and the member control is associated with the personnel in the company in the defined range; and the department control is associated with the organization architecture inside the company, the range is defined by the form editor, and the department control is associated with the organization architecture inside the company within the defined range.
5. The method for creating and using a control-based custom form according to claim 4, wherein the business form generated in S5 belongs to an instance and has uniqueness and variability.
6. The method for creating and using the control-based custom form according to claim 5, wherein the specific steps of determining the rule set in the process in S7 are as follows: and the server processes the acquired flow information into query statements, queries data, maps the data, judges whether the data is reasonable, takes out the standard value in the rule, compares the data with the standard value to obtain a result and returns the result.
CN201911211288.6A 2019-12-02 2019-12-02 Method for creating and using user-defined form based on control Pending CN112989771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911211288.6A CN112989771A (en) 2019-12-02 2019-12-02 Method for creating and using user-defined form based on control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911211288.6A CN112989771A (en) 2019-12-02 2019-12-02 Method for creating and using user-defined form based on control

Publications (1)

Publication Number Publication Date
CN112989771A true CN112989771A (en) 2021-06-18

Family

ID=76330931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911211288.6A Pending CN112989771A (en) 2019-12-02 2019-12-02 Method for creating and using user-defined form based on control

Country Status (1)

Country Link
CN (1) CN112989771A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301795A (en) * 2023-01-28 2023-06-23 广西数字大脑智能科技有限责任公司 Development platform for page visual configuration and code writing
CN116301795B (en) * 2023-01-28 2024-06-04 广西数字大脑智能科技有限责任公司 Development platform for page visual configuration and code writing

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286908A (en) * 2019-07-01 2019-09-27 广州凡科互联网科技股份有限公司 A method of based on control formula customizing form

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286908A (en) * 2019-07-01 2019-09-27 广州凡科互联网科技股份有限公司 A method of based on control formula customizing form

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301795A (en) * 2023-01-28 2023-06-23 广西数字大脑智能科技有限责任公司 Development platform for page visual configuration and code writing
CN116301795B (en) * 2023-01-28 2024-06-04 广西数字大脑智能科技有限责任公司 Development platform for page visual configuration and code writing

Similar Documents

Publication Publication Date Title
US8595230B1 (en) Intelligent identification of form field elements
JP2722268B2 (en) Method of transmitting information between computer programs running simultaneously
US7299201B2 (en) System and method for designing and operating an electronic store
US11126968B2 (en) Custom application builder for supply chain management
CN106598591B (en) Webpage dynamic menu generation method and device
US20050203869A1 (en) Hierarchical database apparatus, components selection method in hierarchical database, and components selection program
CN108874680B (en) Automatic software testing method and system
JPH01116767A (en) Application of interface for part list between conceptual design tool and cad/cam environment
CN110286908A (en) A method of based on control formula customizing form
IL189152A (en) Designating, setting and discovering parameters for spreadsheet documents
CN101196899A (en) Method and system for processing the input in an XML form
CN101414301A (en) Content management system that renders multiple types of data to different applications
CN107784068A (en) Acquisition methods, device, storage medium, processor and the service end of data variation
US7765165B2 (en) Engine to present user interface based on a logical structure, such as one for a customer relationship management system
KR100910336B1 (en) A system and method for managing the business process model which mapped the logical process and the physical process model
US20230013569A1 (en) Combined local and server context menus
CN105786846A (en) Website platform component capable of generating modules in user-defined manner
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
US20040122807A1 (en) Methods and systems for performing search interpretation
CN112989771A (en) Method for creating and using user-defined form based on control
CN114706580A (en) Front-end webpage development method and device, storage medium and electronic equipment
US20230038691A1 (en) Workflow instruction interpretation for web task automation
US20050033764A1 (en) Interactive editor for data driven systems
CN113434119A (en) Business processing method and device based on process control
CN110413518B (en) Control object library generation method and device and computer readable storage medium

Legal Events

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