An intelligent form system based on dynamic roles and permissions
Through an intelligent form system based on dynamic roles and permissions, the form is designed using layer technology and the form content is controlled according to the permission level tag, which solves the problem of users facing irrelevant information in the existing technology, and improves work efficiency and data security.
Patent Information
- Application Number
- CN202510566790.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-04-30
AI Technical Summary
The existing form system cannot display content dynamically based on the user's role and permissions, resulting in the user facing a large amount of irrelevant information and reducing work efficiency.
An intelligent form system based on dynamic roles and permissions is adopted, including system login module, role management module, form design module, form library module and form operation module. The form is designed through layer technology and the display and editing content of the form is controlled according to the permission level label.
It realizes dynamic display of form content based on user permissions, improves work efficiency, avoids the display of irrelevant information, and enhances data security.
Smart Images

Figure CN120105496B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of form systems, and particularly relates to an intelligent form system based on dynamic roles and permissions. Background Art
[0002] With the continuous improvement of the informatization level of enterprises, various management systems play an increasingly important role in the daily operation of enterprises. Among these systems, forms, as a common information entry and display tool, have a wide range of applications. However, traditional form systems often have the following deficiencies:
[0003] Low data security: It is difficult to finely control the access rights of different users to data, which easily leads to data leakage or misoperation.
[0004] Poor user experience: It is unable to dynamically display form content according to the roles and permissions of users, resulting in a large amount of irrelevant information that users need to face during use, reducing work efficiency.
[0005] In view of this, the present invention proposes an intelligent form system based on dynamic roles and permissions and its implementation method to solve the above problems. Summary of the Invention
[0006] The purpose of the present invention is to provide an intelligent form system based on dynamic roles and permissions, which solves the problem that the form system in the prior art cannot dynamically display form content according to the roles and permissions of users, resulting in a large amount of irrelevant information that users need to face during use and reducing work efficiency.
[0007] To solve the above technical problems, the present invention adopts the following technical solutions: An intelligent form system based on dynamic roles and permissions, including
[0008] A system login module, which is used to register an account and log in to the system through the account;
[0009] A role management module, which is used to assign permission level labels to each account;
[0010] A form design module, which is used to design forms and add different access level labels to different cells in the form;
[0011] A form library module, which is used to store the designed forms;
[0012] A form operation module, which is used to retrieve the required form from the form library module or the form process module, and match the permission level label of the account with the access level labels of different cells on the form to control the display content and editable content of the form;
[0013] The form process module is used to submit the filled form to other accounts and receive the forms submitted by other accounts.
[0014] A further technical solution is that the form design module includes a form design unit and a permission design unit. The specific steps for designing a form are as follows:
[0015] Step S1, the form design unit generates a first layer with a white background color.
[0016] Step S2, the form design unit adds a two-dimensional table to the first layer and adjusts the two-dimensional table to form a form.
[0017] Step S3, set fixed cells with preset content in the form, and set active cells corresponding to the fixed cells and capable of inputting content.
[0018] Step S4, switch to the permission design unit. The permission design unit generates a second layer with the same size and transparency corresponding to the first layer, and when switching to the permission design unit, the second layer is placed on top of the first layer.
[0019] Step S5, the permission design unit copies the form on the first layer to the second layer, aligns the form on the first layer and the form on the second layer, and locates and numbers all fixed cells and active cells on the form on the second layer.
[0020] Step S6, use the filling tool of the permission design unit to fill different colors in the form on the second layer according to the access levels required by different fixed cells and active cells, and each color represents an access level label.
[0021] Step S7, after the color filling is completed, save the form. At this time, the first layer is automatically adjusted to the top layer and saved to the form library module.
[0022] An even further technical solution is that the form operation module includes an input unit and a permission automatic recognition unit. The specific steps of the form operation are as follows:
[0023] Step K1, retrieve the required form from the form library module or the form process module.
[0024] Step K2, the permission automatic recognition unit automatically generates a third layer with a white background color on the upper side of the first layer.
[0025] Step K3: The permission automatic recognition unit performs color recognition on the second layer. After the recognition is completed, it matches the permission level label of the account with the access level label in the second layer, confirms the positioning numbers of the fixed cells that meet the access level and their corresponding active cells in the second layer, and matches the fixed cells and their corresponding active cells in the first layer according to these positioning numbers. After the matching is completed, the fixed cells and their corresponding active cells matched in the first layer are copied to the third layer, and the fixed cells and their corresponding active cells in the third layer all carry the positioning numbers of the second layer;
[0026] Step K4: The account operator fills in the form according to the fixed cells and active cells displayed in the third layer through the input unit;
[0027] Step K5: When the form is saved, the input unit copies the content filled in the active cells in the third layer to the active cells in the first layer through the positioning numbers.
[0028] A further technical solution is that when the form flow module submits the filled form to other accounts, it automatically deletes the third layer.
[0029] A further technical solution is that the specific content of adjusting the two-dimensional table in step S2 includes setting the number of rows and columns when adding the two-dimensional table, and performing row width adjustment, column width adjustment, and merging cells after the two-dimensional table is added.
[0030] A further technical solution is that in step S5, the specific steps of positioning numbers for all fixed cells and active cells on the form in the second layer include: Step T1, establishing a two-dimensional coordinate system with the bottom side and the left side of the second layer as the coordinate axes; Step T2, performing positioning numbering according to the positions of the upper left vertices of the fixed cells and active cells in the two-dimensional coordinate system, and each positioning number contains the corresponding two-dimensional coordinates.
[0031] A further technical solution is that in step K3, when matching the fixed cells and their corresponding active cells in the first layer according to these positioning numbers, a two-dimensional coordinate system the same as that of the second layer is established in the first layer, and the fixed cells and their corresponding active cells are matched according to the two-dimensional coordinates in these positioning numbers.
[0032] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. Through the role management module and the form design module, different access level requirements can be established for different cells on the form when the form design is completed. In this way, when operating through the form operation module, only the content that meets the account access level will be presented to the account operator, which enables the account operator to quickly read and fill in the form, and at the same time can avoid the leakage of content with a higher access level. This improves work efficiency and reduces the risk of information leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Specific steps for designing a form of an intelligent form system based on dynamic roles and permissions according to the present invention.
[0034] Figure 2 Specific steps for form operation steps of an intelligent form system based on dynamic roles and permissions according to the present invention.
[0035] Figure 3 A specific implementation schematic diagram of three layers of an intelligent form system based on dynamic roles and permissions in Embodiment 2 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0036] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0037] Figures 1 to 3 The following shows an embodiment of the present invention.
[0038] Embodiment 1:
[0039] To solve the above technical problems, the present invention adopts the following technical solutions: An intelligent form system based on dynamic roles and permissions, including
[0040] A system login module for registering an account and logging into the system through the account; when the user registers an account, information such as name, department, and position needs to be filled in, and these information cannot be changed independently after being filled in, but can only be changed through the administrator's account. These information are convenient for the administrator to confirm according to the department and position when assigning permission level labels to the account.
[0041] A role management module for assigning permission level labels to each account; the role management module can only be accessed through the administrator's account, can view the information of all accounts, and perform operations such as assigning and changing permission level labels to all accounts.
[0042] The form design module is used to design forms and add different access level labels to different cells in the form. The form design module can generally only be entered through an administrator's account or an account that has been granted permissions by the administrator through the role management module, so as to prevent others from modifying the designed form without authorization.
[0043] Form library module, used to store designed forms;
[0044] The form operation module is used to retrieve the required form from the form library module or the form process module, and match the access level labels of different cells on the form according to the permission level labels of the account to control the displayed content and editable content of the form; when the account operator operates the form, the form operation module will automatically control the displayed content and editable content of the form according to the account, which greatly improves the reading and filling speed of the account operator and avoids the mixing of useless information or important information.
[0045] The form process module is used to submit completed forms to other accounts and accept forms submitted by other accounts.
[0046] The form design module includes a form design unit and a permission design unit. The specific steps of designing a form are as follows:
[0047] Step S1, the form design unit generates a first layer with a white background;
[0048] Step S2, add a two-dimensional table to the first layer through the form design unit, and adjust the two-dimensional table to form a form; before setting the form through the design unit, a draft design will be carried out according to the requirements of other personnel through other means, such as other software or drafts, and the form design will be carried out through the form design unit after the style of the form is confirmed. This can avoid the need to modify the form after it is published.
[0049] Step S3, setting a fixed cell with preset content in the form, and setting an active cell corresponding to the fixed cell and into which content can be entered; the preset content is used to correspond to the required content in the active cell. For example, the preset content set in the fixed cell is "size", and the account operator will enter the corresponding content in the active cell corresponding to "size" during the filling process.
[0050] Step S4: Switch to the permission design unit. The permission design unit generates a second layer that is the same size and transparent corresponding to the first layer. When switching to the permission design unit, the second layer is placed on top of the first layer. The present invention controls and dynamically adjusts the permissions of the form by using the layer method, which will not affect the first layer that has saved data. The form on the first layer is only used for data storage, which can avoid errors. The transparency of the second layer is generally set to 100, which can avoid completely blocking the first layer when the second layer is placed on top of the first layer.
[0051] Step S5: The permission design unit copies the form on the first layer to the second layer, aligns the form on the first layer with the form on the second layer, and locates and numbers all fixed cells and active cells on the form of the second layer. When copying the form on the first layer to the second layer, only copy all the borders of the form on the first layer without copying the content, which can reduce the memory size occupied by the second layer. At the same time, the content of the first layer can be seen through the transparency of the second layer. By locating and numbering the fixed cells and active cells on the second layer, it is beneficial to identify each cell.
[0052] Step S6: Use the filling tool of the permission design unit to fill different colors in the form of the second layer according to the access levels required by different fixed cells and active cells. Each color represents an access level label. When designing the form, differentiating the access levels by color can make it clearer to see the access level requirements of each area. For example, the account level label of a technician is "Level 1", and the corresponding access level label that can be accessed is "Permission 1", and the color corresponding to "Permission 1" is "red". When designing the form, only need to fill the fixed cells and active cells that can be accessed by "Level 1" in the form with "red", and the transparency of "red" is generally above 50, which is convenient to see the content on the first layer through "red". This is not only conducive to quickly identifying whether the content covered by different colors meets the access level requirements, but also can quickly identify whether there are positions without adding access level labels.
[0053] Step S7: After the color filling is completed, save the form. At this time, the first layer is automatically adjusted to the top layer and saved to the form library module. Since the background color of the first layer is white, when the first layer is placed on the top layer, the second layer is hidden to prevent other people from viewing.
[0054] The form operation module includes an input unit and a permission automatic recognition unit. The specific steps of the form operation are as follows:
[0055] Step K1: Retrieve the required form from the form library module or the form process module.
[0056] Step K2, the permission automatic recognition unit automatically generates a third layer with a white background color on the upper side of the first layer;
[0057] Step K3, the permission automatic recognition unit performs color recognition on the second layer. After the recognition is completed, it matches the permission level label of the account with the access level label in the second layer, confirms the positioning numbers of the fixed cells that meet the access level and their corresponding active cells in the second layer, and matches the fixed cells and their corresponding active cells in the first layer according to these positioning numbers. After the matching is completed, the fixed cells and their corresponding active cells matched in the first layer are copied to the third layer, and the fixed cells and their corresponding active cells in the third layer all carry the positioning numbers of the second layer; through the third layer, the content that needs to be presented to the account operator can be dynamically adjusted according to the permission. And by using the positioning number as the hub between the cells of each layer, it can avoid misalignment during the process of copying the content to the third layer and copying the content filled in the third layer to the first layer.
[0058] Step K4, the account operator fills in the form through the input unit according to the fixed cells and active cells displayed in the third layer;
[0059] Step K5, when the form is saved, the input unit copies the content filled in the active cells in the third layer to the active cells in the first layer through the positioning number.
[0060] When the form flow module submits the filled form to other accounts, it automatically deletes the third layer. Deleting the third layer can reduce the memory occupancy of the form, and a new third layer will be generated when other accounts open the form to achieve dynamic adjustment of the form display content according to the permission.
[0061] The specific content of adjusting the two-dimensional table in Step S2 includes setting the number of rows and columns when adding the two-dimensional table, and performing row width adjustment, column width adjustment, and merging cells after the two-dimensional table is added. These parameters have been confirmed through a draft before being designed by the form design unit.
[0062] In step S5, the specific steps of positioning and numbering all fixed cells and active cells on the form of the second layer include: step T1, establishing a two-dimensional coordinate system with the bottom side and the left side of the second layer as the coordinate axes; step T2, positioning and numbering according to the positions of the upper left vertices of the fixed cells and active cells in the two-dimensional coordinate system, and each positioning number contains the corresponding two-dimensional coordinates. Using the two-dimensional coordinate system to position and number all cells can number each cell and mark its position in the two-dimensional coordinate system, so as to realize the positioning of each cell.
[0063] A further technical solution is that in step K3, when matching the fixed cells and their corresponding active cells in the first layer according to these positioning numbers, by establishing the same two-dimensional coordinate system as the second layer in the first layer, and matching the fixed cells and their corresponding active cells according to the two-dimensional coordinates in these positioning numbers. By establishing the same two-dimensional coordinate system for the first layer and the second layer, the cell at the same position can be located in the first layer according to the positioning information in the positioning number of a certain cell in the second layer, so that the third layer can use the positioning number to establish a connection between cells with the first layer, and then copy the content filled on the third layer to the first layer.
[0064] Embodiment 2:
[0065] Based on Embodiment 1, as Figure 3 shown, when designing the report form and operating the form, according to the account permissions, the states of the third layer, the first layer and the second layer are displayed. It can be seen from Figure 3 that two permission standards are designed in the second layer, and two slanting lines in the left-right direction in the figure are used to represent two colors. For Figure 3 the account permission level label of the account in Figure 3 is matched with the access level label of the second layer, and only the cells of one color can be accessed. Therefore, in the third layer, only this part of the content is displayed. In
[0066] Although the present invention has been described herein with reference to a number of illustrative embodiments, it should be understood that those skilled in the art can devise many other modifications and implementations that will fall within the scope and spirit of the principles disclosed in this application. More specifically, within the scope of the disclosure, the drawings, and the claims of this application, various variations and improvements can be made to the components and / or the layout of the subject combination layout. In addition to the variations and improvements made to the components and / or the layout, other uses will also be apparent to those skilled in the art.
Claims
1. An intelligent form system based on dynamic roles and permissions, characterized in that, including a system login module for registering an account and logging into the system through the account; a role management module for assigning permission level labels to each account; a form design module for designing forms and adding different access level labels to different cells within the form; a form library module for storing the designed forms; a form operation module for retrieving the required form from the form library module or the form process module, and matching the access level labels of different cells on the form according to the permission level label of the account to control the display content and editable content of the form; a form process module for submitting the filled form to other accounts and receiving forms submitted by other accounts; the form design module includes a form design unit and a permission design unit, and the specific steps for designing a form are as follows: Step S1, the form design unit generates a first layer with a white background color; Step S2, the form design unit adds a two-dimensional table to the first layer and adjusts the two-dimensional table to form a form; Step S3, set fixed cells with preset content and active cells corresponding to the fixed cells and capable of inputting content in the form; Step S4, switch to the permission design unit, the permission design unit generates a second layer with the same size and transparency corresponding to the first layer, and when switching to the permission design unit, the second layer is placed on top of the first layer; Step S5, the permission design unit copies the form on the first layer to the second layer, and aligns the form on the first layer with the form on the second layer, and locates and numbers all fixed cells and active cells on the form on the second layer; Step S6, use the filling tool of the permission design unit to fill different colors in the form on the second layer according to the access levels required by different fixed cells and active cells, and each color represents an access level label; Step S7, after the color filling is completed, save the form, at this time the first layer is automatically adjusted to the top layer and saved to the form library module.
2. The intelligent form system based on dynamic roles and permissions according to claim 1, characterized in that: the form operation module includes an input unit and a permission automatic recognition unit, and the specific steps of the form operation are as follows: Step K1, retrieve the required form from the form library module or the form process module; Step K2, the permission automatic recognition unit automatically generates a third layer with a white background color on the upper side of the first layer; Step K3, the permission automatic recognition unit performs color recognition on the second layer, after the recognition is completed, matches the permission level label of the account with the access level labels in the second layer, confirms the positioning numbers of the fixed cells and their corresponding active cells that meet the access level in the second layer, and matches the fixed cells and their corresponding active cells in the first layer according to these positioning numbers. After the matching is completed, copy the fixed cells and their corresponding active cells matched in the first layer to the third layer, and the fixed cells and their corresponding active cells on the third layer all carry the positioning numbers of the second layer; Step K4, the account operator fills in the form through the input unit according to the fixed cells and active cells displayed on the third layer; Step K5: When the form is saved, the input unit copies the content filled in the active cell in the third layer to the active cell in the first layer through the positioning number.
3. An intelligent form system based on dynamic roles and permissions according to claim 2, characterized in that: When the form process module submits the filled form to other accounts, it automatically deletes the third layer.
4. An intelligent form system based on dynamic roles and permissions according to claim 1, characterized in that: The specific content of adjusting the two-dimensional table in step S2 includes setting the number of rows and columns when adding the two-dimensional table, and performing row width adjustment, column width adjustment, and merging cells after the two-dimensional table is added.
5. The intelligent form system based on dynamic roles and permissions according to claim 2, characterized in that: In step S5, the specific steps for positioning and numbering all fixed cells and active cells on the form in the second layer include: Step T1, establishing a two-dimensional coordinate system with the bottom side and the left side of the second layer as the coordinate axes; Step T2, performing positioning and numbering according to the positions of the upper left vertices of the fixed cells and active cells in the two-dimensional coordinate system, and each positioning number includes the corresponding two-dimensional coordinates.
6. An intelligent form system based on dynamic roles and permissions according to claim 2, characterized in that: In step K3, when matching the fixed cells and their corresponding active cells in the first layer according to these positioning numbers, a two-dimensional coordinate system identical to that of the second layer is established in the first layer, and the fixed cells and their corresponding active cells are matched according to the two-dimensional coordinates in these positioning numbers.
Citation Information
Patent Citations
Table document processing method and device, electronic equipment and storage medium
CN116894432A