Business form building method and device, equipment and storage medium
By setting data permissions in the back-end business form workspace and using information digest algorithms for permission management, the problem of low form building efficiency in the logistics management field in existing technologies is solved, and an efficient and convenient form building process is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI DONGPU INFORMATION TECH CO LTD
- Filing Date
- 2023-01-11
- Publication Date
- 2026-05-15
AI Technical Summary
Existing methods for building business forms cannot quickly meet the customized needs of the logistics management field, and further development is required to adapt to business requirements.
By creating a back-end business form workspace with data permission settings, table data is obtained and field and field attribute values are set. The information digest algorithm is used for permission settings, separating field settings from permission settings, thus achieving efficient form construction.
It improves the efficiency and convenience of form creation, reduces the workload and errors caused by manual settings, especially in scenarios involving data entry of a large number of fields.
Smart Images

Figure CN115982171B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of warehousing and logistics, and in particular to a method, apparatus, equipment, and storage medium for creating business forms. Background Technology
[0002] With the acceleration of the digitalization process in society, the industry urgently needs development methods and tools with faster barriers to entry and higher efficiency, and low-code technology has emerged to meet this need.
[0003] Most existing form building methods are designed for general use, especially commercially available form-driven low-code products, which do not have a functional focus on the logistics management field. Summary of the Invention
[0004] The main objective of this invention is to address the problem that existing business form development often fails to quickly meet the customized needs of the logistics industry, requiring further development.
[0005] The first aspect of this invention provides a method for constructing a business form, the method comprising:
[0006] Create a back-end business form workspace with data permission settings; obtain table data; based on the table data, set the fields and field attribute values of the table data to obtain a business form containing fields; based on the back-end business form workspace, set data permissions for the business form containing fields to obtain a complete and usable business form.
[0007] Optionally, in a first implementation of the first aspect of the present invention, the step of creating a middle- and back-end business form workspace with data permission setting functionality includes:
[0008] Create a unique user ID; obtain IDAAS member data and configure system-level permissions; match the unique user ID with the IDAAS member data to obtain the member's associated enterprise personal information; configure business form-level permissions based on the member's associated enterprise personal information to obtain a back-end business form workspace with data permission setting function.
[0009] Optionally, in a second implementation of the first aspect of the present invention, configuring business form-level permissions based on the enterprise personal information associated with the member to obtain a back-end business form workspace with data permission setting function includes:
[0010] Obtain a set of table data field names for which permissions need to be set; classify the field names in the set of table data field names to obtain associated field names, which are field names associated with business form-level permissions; sort the associated field names and calculate the first message digest algorithm value of the sorted associated field names; store the first message digest algorithm value corresponding to the associated field name and the business form-level permission corresponding to the associated field name in a one-to-one correspondence to obtain a back-end business form workspace with data permission setting function.
[0011] Optionally, in a third implementation of the first aspect of the present invention, the step of sorting the associated field names and calculating the first information digest algorithm value of the sorted associated field names includes:
[0012] The associated field code is determined based on the associated field name; the associated field codes are sorted, and the first message digest algorithm value of the sorted associated field codes is calculated.
[0013] Optionally, in a fourth implementation of the first aspect of the present invention, the step of setting the fields and field attribute values of the table data to obtain a business form containing fields based on the table data includes: creating a business form based on the table data using a visual form design module; setting the fields and field attribute values of the business form; setting data validation rules for the fields; and performing data validation on the business form to obtain a business form containing fields.
[0014] Optionally, in a fifth implementation of the first aspect of the present invention, the step of setting data permissions for the field-containing business form according to the middle and back-end business form workspace to obtain a complete and usable business form includes:
[0015] The field names of the business forms containing fields are classified to obtain a first field name and a second field name. The first field name is the field name associated with business form-level permissions; the second field name is the field name not associated with business form-level permissions.
[0016] The system-level permissions of the second field name are determined based on the system-level permissions stored in the middle and back-end business form workspace.
[0017] Sort the first field names and calculate the second message digest algorithm value of the sorted first field names;
[0018] Based on the first digest algorithm value and the second digest algorithm value stored in the middle and back-end business form workspace, the business form level permission of the first field name is determined, and a complete and usable business form is obtained.
[0019] Optionally, in a sixth implementation of the first aspect of the present invention, the step of sorting the first field names and calculating the second information digest algorithm value of the sorted first field names includes:
[0020] The field names of the business forms containing fields are classified to obtain a first field name and a second field name. The first field name is the field name associated with business form-level permissions; the second field name is the field name not associated with business form-level permissions.
[0021] The system-level permissions of the second field name are determined based on the system-level permissions stored in the back-end business form workspace.
[0022] The encoding of the first field is determined based on the first field name;
[0023] Sort the first field encoding; and calculate the third message digest algorithm value of the sorted first field encoding;
[0024] Based on the first digest algorithm value and the third digest algorithm value stored in the middle and back-end business form workspace, the business form level permission of the first field name is determined, and a complete and usable business form is obtained.
[0025] A second aspect of the present invention provides a business form building device, comprising:
[0026] The creation module is used to create a middle and back-end business form workspace with data permission settings.
[0027] The retrieval module is used to retrieve table data;
[0028] The field setting module is used to set the fields and field attribute values of the table data according to the table data, so as to obtain a business form containing fields;
[0029] The permission setting module is used to set data permissions for the field-containing business forms based on the middle and back-end business form workspace, so as to obtain a complete and usable business form.
[0030] Optionally, in a first implementation of the second aspect of the present invention, the permission configuration module includes:
[0031] The system comprises the following modules: a set acquisition module for acquiring a set of table data field names for which permissions need to be set; a first classification module for classifying the field names in the set of table data field names to obtain associated field names, wherein the associated field names are field names associated with business form-level permissions; a first calculation module for sorting the associated field names and calculating the first information digest algorithm value of the sorted associated field names; and a function setting module for storing the first information digest algorithm value corresponding to the associated field name and the business form-level permission corresponding to the associated field name in a one-to-one correspondence, thereby obtaining a back-end business form workspace with data permission setting function.
[0032] Optionally, in a second implementation of the second aspect of the present invention, the permission setting module includes:
[0033] The second classification module is used to classify the field names of the business form containing fields to obtain a first field name and a second field name. The first field name is a field name associated with business form-level permissions; the second field name is a field name not associated with business form-level permissions. The system-level permission setting module is used to determine the system-level permissions of the second field name based on the system-level permissions stored in the middle and back-end business form workspace. The second calculation module is used to sort the first field name and calculate the second information digest algorithm value of the sorted first field name. The business form-level permission setting module is used to determine the business form-level permissions of the first field name based on the first information digest algorithm value and the second information digest algorithm value stored in the middle and back-end business form workspace, thereby obtaining a complete and usable business form.
[0034] A third aspect of the present invention provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a circuit; the at least one processor invokes the instructions in the memory to cause the electronic device to execute the business form construction method described above.
[0035] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the business form construction method described above.
[0036] The present invention has the following beneficial effects:
[0037] This invention addresses data entry scenarios typically involving connecting to databases, importing local Excel or CSV files. Due to the large number of fields in the data, manual settings are extremely labor-intensive and prone to errors. This invention separates field settings from permission settings, enabling more efficient form configuration, convenient operation, and improved work efficiency. Attached Figure Description
[0038] Figure 1 This is a first flowchart of a business form construction method provided in an embodiment of the present invention;
[0039] Figure 2 This is a second flowchart of the business form construction method provided in an embodiment of the present invention;
[0040] Figure 3 This is a third flowchart of the business form construction method provided in the embodiments of the present invention;
[0041] Figure 4 This is a schematic diagram of the structure of the business form building device provided in an embodiment of the present invention;
[0042] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention; Detailed Implementation
[0043] This invention provides a method, apparatus, device, and storage medium for building business forms. The method includes: creating a back-end business form workspace with data permission settings; acquiring table data; setting fields and field attribute values of the table data to obtain a business form containing fields; and setting data permissions for the business form containing fields according to the back-end business form workspace to obtain a complete and usable business form. This invention addresses data entry scenarios typically involving database connections, local Excel files, and CSV file imports. Due to the large number of fields in the data, manual setting is extremely labor-intensive and prone to errors. This invention separates field setting from permission setting, enabling more efficient form setup, convenient operation, and improved work efficiency.
[0044] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0045] In this invention, table data refers to raw, unprocessed data, such as data in an Excel spreadsheet. Obtaining table data specifically involves raw data entry, such as connecting to a database, importing from a local Excel file, or importing from a CSV file.
[0046] Regarding the definition of fields in the forms of this invention, for example, in a contract form, these fields include the contract signing date, the signatory, the customer's name, and the customer's industry. Generally, a form may contain hundreds of fields.
[0047] The permissions in this invention refer to granting separate authorization for the content of fields that a user can view. For example, allowing user A to view the contract signing time and the signatory of the contract in the form, but not allowing user A to view the customer name and the customer's industry.
[0048] The field attribute values of this invention refer to the configuration that controls the field, including: 1) field name; 2) field code; 3) field default value; 4) field hint; 5) description text; 6) field validation rules; and 7) field searchable attribute value setting rules. Field default values include whether the field is required, whether it is read-only, whether it is hidden on the fill page, whether it is hidden on the list page, whether it supports retrieval, and whether the field is a number or text.
[0049] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of the business form construction method in this invention includes:
[0050] 101. Create a middle and back office business form workspace with data permission settings;
[0051] In this embodiment, the creation of a business form is divided into two parts, one of which is data permission settings. By creating a back-end business form workspace with data permission settings, the data permission settings function in the business form can be implemented efficiently.
[0052] 102. Retrieve table data;
[0053] In this embodiment, table data refers to raw, unprocessed data, such as data in an Excel file. Obtaining table data specifically involves raw data entry, such as connecting to a database, importing from a local Excel file, or importing from a CSV file.
[0054] 103. Based on the table data, set the fields and field attribute values of the table data to obtain a business form containing fields;
[0055] In this embodiment, after obtaining table data through methods such as connecting to a database, importing from a local Excel file, or importing from a CSV file, a usable business form is obtained by setting the field and field attribute values of the table data, since the table data contains a large amount of data and fields.
[0056] 104. Based on the middle and back-end business form workspace, set data permissions for the field-containing business forms to obtain complete and usable business forms.
[0057] In this embodiment, the forms and data management pages in the system are used to establish relationships between the fields of the forms. This invention adopts a method of incomplete separation between the front-end and back-end to form a complete and usable business system.
[0058] This invention addresses data entry scenarios typically involving connecting to databases, importing local Excel or CSV files. Due to the large number of fields in the data, manual settings are extremely labor-intensive and prone to errors. This invention separates field settings from permission settings, enabling more efficient form configuration, convenient operation, and improved work efficiency.
[0059] Please see Figure 2 The second embodiment of the business form construction method in this invention includes:
[0060] 201. Create a middle and back-end business form workspace with data permission settings; specifically including:
[0061] 2011. Create unique user IDs; retrieve IDAAS member data and configure system-level permissions;
[0062] In this embodiment, according to user needs, the back-end business form workspace system is stored, including the established wsid, the creation of unique user IDs, and the acquisition of IDAAS member data.
[0063] 2012. Match the user's unique ID with the IDAAS member data to obtain the member's associated enterprise personal information;
[0064] In this embodiment, the data on the relationship between members and departments in the tree structure corresponding to the organizational structure is matched based on the idaas member data. The required members are then imported, and the obtained information is stored in the backend user system database.
[0065] 2013. Based on the enterprise personal information associated with the members, configure business form-level permissions to obtain a middle and back-end business form workspace with data permission setting functions. Specifically, this includes:
[0066] 20131. Retrieve the set of table data field names for which permissions need to be set;
[0067] In this embodiment, table data was obtained by connecting to a database, importing local Excel and CSV files. The table data contains a large number of field names. By combining all the field names into a table data field name set, it is easier to set permissions later. Since the number of fields in the data is huge, it is impossible to set them one by one in the conventional manual way. Therefore, it is necessary to integrate all field names into a table data field name set in advance.
[0068] 20132. Classify the field names in the table data field name set to obtain associated field names, wherein the associated field names are the field names associated with business form-level permissions;
[0069] In this embodiment, a set of table data field names is obtained. Since different tables may have different permission settings for field names, but some field names have fixed permission settings across all tables—for example, usernames are visible to the sales department in all forms—this field name is actually unrelated to the business form. Therefore, in this embodiment, the field names need to be categorized to obtain associated field names. Since business forms often contain hundreds of fields, this step allows for the elimination of fields that do not require permission settings.
[0070] 20133. Sort the associated field names and calculate the first message digest algorithm value of the sorted associated field names;
[0071] A message digest algorithm is an algorithm that processes information into a summary. In simple terms, like this article, if it's long, readers won't read the entire text immediately; instead, they'll often read the summary first to get a brief overview of the main content. Similarly, in the field of cryptography, there's a similar operation, which is the background for the development of message digest algorithms. Common message digest algorithms include MD2 / 4 / 5, SHA1 / SHA224 / SHA256 / SHA384, SM3, and MAC algorithms.
[0072] This invention can be implemented using any of the algorithms described above. By calculating the message digest algorithm value, this invention can more accurately determine the combination of associated field names, thereby effectively setting permissions for all associated fields.
[0073] Specifically, for example, the set of field names includes the following:
[0074] Username, address, region 1, region 2, region 3, region 4... gender, price, unit price, total price, quantity.
[0075] After sorting the set of field names, we get:
[0076] Unit price, address, price, region 1, region 2, region 3, region 4... quantity, gender, username, total price.
[0077] The first message digest values obtained by applying the MD5 algorithm to the above set of field names are as follows:
[0078] 289d234d445b4f43dadh1jj1355d4ki
[0079] As can be seen, the MD5 algorithm can integrate a set of dozens or even hundreds of field names into a 32-bit First Message Digest value, thereby effectively matching the corresponding permission settings.
[0080] 20134. Store the first information digest algorithm value corresponding to the associated field name and the business form-level permission corresponding to the associated field name one by one to obtain the middle and back office business form workspace with data permission setting function.
[0081] In this embodiment, by storing the permission settings of the first information digest algorithm value and the associated field name in a one-to-one correspondence, a middle and back office business form workspace with data permission setting function is obtained.
[0082] 202. Retrieve table data;
[0083] 203. Based on the table data, set the fields and field attribute values of the table data to obtain a business form containing fields; specific steps include:
[0084] 2031. Based on the visual form design module, create a business form according to the table data; set the fields and field attribute values of the business form; set data validation rules for the fields; perform data validation on the business form to obtain a business form containing fields.
[0085] In this embodiment, a form is created by applying a visual form layout module based on the visual form design area module; the component name and parent node path are obtained through fields, the new path of the element is obtained, and whether the path is moved is determined. If it is not a path, it is a newly added component; the dragItem = getCloneItem method is used to compare the upper and lower positions of the path and determine which component with the old path is executed first; the global configuration of the current form is obtained.
[0086] Furthermore, specifically, the default options for obtaining field attribute values in this invention include: 1) field name; 2) field code; 3) field default value; 4) field hint; 5) description text; 6) field validation rules; and 7) field queryable attribute value setting rules.
[0087] To enable more efficient identification of different fields, field codes are set to help users match the same field, facilitating the selection of target fields for table data or report dimension configuration within the same system. For example, user name and customer name actually have the same meaning, and without setting field codes, users may not be able to realize that they actually mean the same thing.
[0088] In this embodiment of the invention, data validation rules can also be added to the fields, or the legality can be validated by writing backend database functions and data union relationships with data fields, and data that does not conform to the rules can be intercepted, displaying that the current field data is empty; through this step, unreasonable field data can be effectively eliminated.
[0089] The visual form design in this embodiment of the invention adopts a common method in the prior art, which is a well-known technology and will not be described in detail here. When the user clicks "Preview," the front-end performs dynamic form rendering, returns the JSON file through the render() function of the corresponding component in the config, and generates a front-end visual form preview area. The user can enter a new tab for web page preview mode by clicking the "Preview" button. When the user clicks "Save," the back-end stores the content saved by the form field attributes, obtains the form data page, and generates a table data management page.
[0090] 204. Based on the aforementioned back-end business form workspace, set data permissions for the field-containing business forms to obtain complete and usable business forms. Specifically, this includes:
[0091] 2041. Classify the field names of the business form containing fields to obtain a first field name and a second field name. The first field name is the field name associated with the business form level permissions; the second field name is the field name not associated with the business form level permissions.
[0092] In this embodiment, after obtaining the field names, they need to be categorized. The first field name is the field name associated with business form-level permissions; the second field name is the field name not associated with business form-level permissions. For example, the categorization method for the field name set is as follows:
[0093] Username, address, region 1, region 2, region 3, region 4, gender, price, unit price, total price, quantity.
[0094] Username and address permission settings are not associated with business forms; the permission settings for username and address are the same across all forms. However, permission settings for Region 1, Region 2, Region 3, Region 4, Gender, Price, Unit Price, and Total Price are associated with business forms, and different permission settings may exist in different forms.
[0095] 2042. Determine the system-level permissions of the second field name based on the system-level permissions stored in the middle and back-end business form workspace;
[0096] In this embodiment, the permissions for username and address are set according to the system-level permissions stored in the back-end business form workspace.
[0097] 2043. Sort the first field names and calculate the second message digest algorithm value of the sorted first field names;
[0098] For the first field name, a message digest algorithm value needs to be calculated for the set of first field names, resulting in a 32-bit character string. Based on this unique 32-bit character string, the permission settings for all field names in the first field name set can be obtained.
[0099] 2044. Based on the first information digest algorithm value and the second information digest algorithm value stored in the middle and back-end business form work area, determine the business form level permission of the first field name, and obtain the complete and usable business form.
[0100] As can be seen, this invention employs an information digest algorithm to match the set of field names with the permission settings one by one. Using this invention significantly reduces the workload of permission settings.
[0101] Please see Figure 3 The second embodiment of the business form construction method in this invention includes:
[0102] 301. Create a middle and back-end business form workspace with data permission settings; specifically including:
[0103] 3011. Create a unique user ID; retrieve IDAAS member data and configure system-level permissions;
[0104] 3012. Match the user's unique ID with the IDAAS member data to obtain the enterprise personal information associated with the member;
[0105] 3013. Based on the enterprise personal information associated with the members, configure business form-level permissions to obtain a middle and back-end business form workspace with data permission setting functions. Specifically, this includes:
[0106] 30131. Retrieve the set of table data field names for which permissions need to be set;
[0107] 30132. Classify the field names in the table data field name set to obtain associated field names, wherein the associated field names are the field names associated with business form-level permissions;
[0108] 30133. Determine the associated field code based on the associated field name; sort the associated field codes and calculate the first message digest algorithm value of the sorted associated field codes;
[0109] In this embodiment, if a field name is obtained, due to the continuous increase in form categories, some field names may be similar but are not actually the same field name, and their permission settings will also be different. In order to more efficiently identify different fields, field codes are set to help users match the same field, making it easier to select the target field for table data or report dimension configuration within the same system; for example, user name and customer name actually have the same meaning, and without setting field codes, users may not be able to discover that they actually have the same meaning.
[0110] For example, the set of field names is as follows:
[0111] Username, User Level, User Characteristics, Address, Region 1, Region 2, Region 3, Region 4, Gender, Price, Unit Price, Total Price, Quantity.
[0112] Encode this set of field names using a method that the system can recognize:
[0113] yh1, yh2, yh3, dz1, qy1, qy2, qy3, qy4, xb1, pr1, dj1, sl1.
[0114] By sorting the codes as described above, different field names can be effectively distinguished. This sorting also facilitates the calculation of message digest algorithm values.
[0115] 30134. Store the first information digest algorithm value corresponding to the associated field name and the business form-level permission corresponding to the associated field name one by one to obtain the middle and back office business form workspace with data permission setting function.
[0116] 302. Retrieve table data;
[0117] 303. Based on the table data, set the fields and field attribute values of the table data to obtain a business form containing fields; specific steps include:
[0118] 3031. Based on the visual form design module, create a business form according to the table data; set the fields and field attribute values of the business form; set data validation rules for the fields; perform data validation on the business form to obtain a business form containing fields.
[0119] 304. Based on the aforementioned back-end business form workspace, set data permissions for the field-containing business forms to obtain complete and usable business forms. Specifically, this includes:
[0120] 3041. Classify the field names of the business form containing fields to obtain a first field name and a second field name. The first field name is the field name associated with the business form level permissions; the second field name is the field name not associated with the business form level permissions.
[0121] 3042. Determine the system-level permissions of the second field name based on the system-level permissions stored in the middle and back-end business form workspace; determine the first field code based on the first field name;
[0122] For example, the set of field names is as follows:
[0123] Username, User Level, User Characteristics, Address, Region 1, Region 2, Region 3, Region 4... Gender, Price, Unit Price, Total Price, Quantity.
[0124] The system identified the field as follows:
[0125] yh1, yh2, yh3, dz1, qy1, qy2, qy3, qy4...xb1, pr1, dj1, sl1.
[0126] 3043. Sort the first field encoding; and calculate the third message digest algorithm value of the sorted first field encoding;
[0127] Sort the first field's encoding to get:
[0128] dj1, dz1, pr1, qy1, qy2, qy3, qy4, sl1...xb1, yh1, yh2, yh3.
[0129] Calculate the third message digest algorithm value encoded by the first field of the sorting, and obtain:
[0130] 6415d69f207ff01d1b715a32ba0cb408
[0131] 3044. Based on the first information digest algorithm value and the third information digest algorithm value stored in the middle and back-end business form work area, determine the business form level permission of the first field name, and obtain a complete and usable business form.
[0132] As can be seen, this invention employs an algorithm that combines sorted field encoding with message digest values to match the set of field names with the permission settings one by one. Using this invention significantly reduces the workload of setting permissions.
[0133] The above describes the business form construction method in the embodiments of the present invention. The following describes the business form construction apparatus in the embodiments of the present invention. Please refer to [link / reference]. Figure 4One embodiment of the business form building device in this invention includes:
[0134] 401. A creation module is used to create a middle and back-end business form workspace with data permission setting functions; specifically, the creation module in this embodiment includes:
[0135] The module for creating a unique ID for a user is used to create a unique ID for that user. The module for configuring the configuration is used to obtain IDAAS member data and configure system-level permissions. The module for matching the unique ID of the user with the IDAAS member data is used to obtain the personal information of the enterprise associated with the member. The module for configuring permissions is used to configure business form-level permissions based on the personal information of the enterprise associated with the member, thereby obtaining a middle and back office business form workspace with data permission setting functions.
[0136] 402. The retrieval module is used to retrieve table data;
[0137] 403. Field setting module, used to set the fields and field attribute values of the table data according to the table data, so as to obtain a business form containing fields;
[0138] 404. The permission setting module is used to set data permissions for the field-containing business form based on the back-end business form workspace, thereby obtaining a complete and usable business form. Specifically, the permission setting module in this embodiment includes:
[0139] The second classification module is used to classify the field names of the business form containing fields to obtain a first field name and a second field name. The first field name is a field name associated with business form-level permissions; the second field name is a field name not associated with business form-level permissions. The system-level permission setting module is used to determine the system-level permissions of the second field name based on the system-level permissions stored in the middle and back-end business form workspace. The second calculation module is used to sort the first field name and calculate the second information digest algorithm value of the sorted first field name. The business form-level permission setting module is used to determine the business form-level permissions of the first field name based on the first information digest algorithm value and the second information digest algorithm value stored in the middle and back-end business form workspace, thereby obtaining a complete and usable business form.
[0140] In this embodiment, the forms and data management pages in the system are used to establish relationships between the fields of the forms. This invention adopts a method of incomplete separation between the front-end and back-end to form a complete and usable business system.
[0141] This invention addresses data entry scenarios typically involving connecting to databases, importing local Excel or CSV files. Due to the large number of fields in the data, manual settings are extremely labor-intensive and prone to errors. This invention separates field settings from permission settings, enabling more efficient form configuration, convenient operation, and improved work efficiency.
[0142] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of the business form construction method in this invention includes:
[0143] Figure 5 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present invention. The electronic device 500 can vary significantly due to differences in configuration or performance. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the electronic device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the electronic device 500.
[0144] Electronic device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 550, and / or one or more operating systems 531, such as Windows Server, MacOSX, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The illustrated electronic device structure does not constitute a limitation on electronic devices and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0145] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the business form construction method.
[0146] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0147] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0148] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for constructing a business form, characterized in that, The method for building the business form includes: Create a middle and back office business form workspace with data permission settings; Retrieve table data; Based on the table data, set the fields and field attribute values of the table data to obtain a business form containing fields; Based on the middle and back-end business form workspace, data permission settings are performed on the field-containing business forms to obtain complete and usable business forms; The creation of a middle and back-end business form workspace with data permission settings includes: Create a unique user ID; Retrieve IDAAS member data and configure system-level permissions; The user's unique ID is matched with the idaas member data to obtain the member's associated enterprise personal information; Based on the enterprise personal information associated with the members, configure business form-level permissions to obtain a middle and back office business form workspace with data permission setting function; The step of configuring business form-level permissions based on the enterprise personal information associated with the member to obtain a middle and back office business form workspace with data permission setting function includes: Retrieve the set of table data field names for which permissions need to be set; The field names in the table data field name set are classified to obtain associated field names, which are field names associated with business form-level permissions; Sort the associated field names and calculate the first message digest algorithm value of the sorted associated field names; The first information digest algorithm value corresponding to the associated field name and the business form-level permission corresponding to the associated field name are stored one by one to obtain the middle and back office business form work area with data permission setting function. The step of sorting the associated field names and calculating the first information digest algorithm value of the sorted associated field names includes: Determine the associated field code based on the associated field name; The associated field codes are sorted, and the first message digest algorithm value of the sorted associated field codes is calculated.
2. The business form construction method according to claim 1, characterized in that, The step of setting the fields and field attribute values of the table data based on the table data to obtain a business form containing fields includes: Based on the visual form design module, business forms are created according to the table data; Set the fields and field attribute values for the business form; Set data validation rules for the field; The business form is validated to obtain a business form containing fields.
3. A business form creation device, characterized in that, include: The creation module is used to create a middle and back-end business form workspace with data permission settings. The retrieval module is used to retrieve table data; The field setting module is used to set the fields and field attribute values of the table data according to the table data, so as to obtain a business form containing fields; The permission setting module is used to set data permissions for the field-containing business forms based on the middle and back-end business form workspace, so as to obtain a complete and usable business form; The creation of a middle and back-end business form workspace with data permission settings includes: Create a unique user ID; Retrieve IDAAS member data and configure system-level permissions; The user's unique ID is matched with the idaas member data to obtain the member's associated enterprise personal information; Based on the enterprise personal information associated with the members, configure business form-level permissions to obtain a middle and back office business form workspace with data permission setting function; The step of configuring business form-level permissions based on the enterprise personal information associated with the member to obtain a middle and back office business form workspace with data permission setting function includes: Retrieve the set of table data field names for which permissions need to be set; The field names in the table data field name set are classified to obtain associated field names, which are field names associated with business form-level permissions; Sort the associated field names and calculate the first message digest algorithm value of the sorted associated field names; The first information digest algorithm value corresponding to the associated field name and the business form-level permission corresponding to the associated field name are stored one by one to obtain the middle and back office business form work area with data permission setting function. The step of sorting the associated field names and calculating the first information digest algorithm value of the sorted associated field names includes: Determine the associated field code based on the associated field name; The associated field codes are sorted, and the first message digest algorithm value of the sorted associated field codes is calculated.
4. An electronic device comprising a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the electronic device to perform the steps of the business form construction method as described in claim 1 or 2.
5. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements each step of the business form construction method as described in claim 1 or 2.