Intelligent form system based on dynamic roles and permissions
By designing an intelligent form system based on dynamic roles and permissions, the problem that traditional form systems cannot dynamically display form content based on user roles and permissions is solved, and the effect of improving work efficiency and reducing the risk of data leakage is achieved.
Patent Information
- Application Number
- CN202510566790.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-04-30
AI Technical Summary
Traditional form systems cannot dynamically display form content based on user roles and permissions, resulting in users facing a large amount of irrelevant information during use, reducing work efficiency and risking data leakage.
Design an intelligent form system based on dynamic roles and permissions, including system login module, role management module, form design module, form library module, form operation module and form process module. Through the collaborative work of these modules, the display and editable content of the form are dynamically controlled according to the user's role and permissions.
It realizes dynamic display of form content based on user roles and permissions, improves user's work efficiency, reduces the display of irrelevant information, and reduces the risk of data leakage.
Smart Images

Figure CN120105496A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of form systems, and in particular to an intelligent form system based on dynamic roles and permissions. Background Art
[0002] As the degree of enterprise informatization continues to improve, various management systems play an increasingly important role in the daily operation of enterprises. In these systems, forms are a common information entry and display tool with a wide range of applications. However, traditional form systems often have the following shortcomings:
[0003] Low data security: It is difficult to precisely control the access rights of different users to data, which can easily lead to data leakage or misoperation.
[0004] Poor user experience: The form content cannot be dynamically displayed according to the user's role and permissions, resulting in users having to face a large amount of irrelevant information 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 an implementation method thereof 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, so as to solve the problem that the form system in the prior art cannot dynamically display the form content according to the user's role and permissions, resulting in the user having to face a large amount of irrelevant information during use, thereby reducing work efficiency.
[0007] To solve the above technical problems, the present invention adopts the following technical solution: an intelligent form system based on dynamic roles and permissions, comprising:
[0008] System login module, used to register an account and log into the system through the account;
[0009] The role management module is used to assign permission level labels to each account;
[0010] The form design module is used to design forms and add different access level labels to different cells in the form;
[0011] Form library module, used to store designed forms;
[0012] The form operation module is used to call 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 label of the account to control the display content and editable content of the form;
[0013] The form process module is used to submit completed forms to other accounts and accept 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, and the specific steps of designing the form are:
[0015] Step S1, the form design unit generates a first layer with a white background;
[0016] Step S2, adding a two-dimensional table to the first layer through the form design unit, and adjusting the two-dimensional table to form a form;
[0017] Step S3, setting a fixed cell with preset content in the form, and setting an active cell corresponding to the fixed cell and capable of inputting content;
[0018] Step S4, switching 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 the upper layer of the first layer;
[0019] Step S5, the permission design unit copies the form of the first layer to the second layer, aligns the form of the first layer with the form of the second layer, and positions and numbers all fixed cells and active cells on the form of the second layer;
[0020] Step S6, using 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;
[0021] Step S7, after 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] A further technical solution is that the form operation module includes an input unit and an automatic authority identification unit, and the form operation steps are as follows:
[0023] Step K1, retrieve the required form from the form library module or form flow module;
[0024] Step K2, the automatic authority identification unit automatically generates a third layer with a white background on the upper side of the first layer;
[0025] Step K3, the automatic authority recognition unit performs color recognition on the second layer. After the recognition is completed, the authority level label of the account is matched with the access level label in the second layer, and the positioning numbers of the fixed cells and the corresponding active cells that meet the access level are confirmed in the second layer, and the fixed cells and the corresponding active cells are matched in the first layer according to these positioning numbers. After the matching is completed, the matched fixed cells and the corresponding active cells in the first layer are copied to the third layer, and the fixed cells and the 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 through the input unit according to the fixed cells and active cells displayed in the third layer;
[0027] 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.
[0028] A further technical solution is that the form process module automatically deletes the third layer when submitting the completed form to other accounts.
[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 adjusting the row width, column width 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 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 edge and left edge of the second layer as coordinate axes; step T2, positioning and numbering the fixed cells and active cells according to the positions of the upper left corner vertices 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 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.
[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, so that the account operator can quickly read and fill in the form, and at the same time, the leakage of content with a higher access level can be avoided. This improves work efficiency and reduces the risk of information leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 The present invention provides specific steps for designing a form for an intelligent form system based on dynamic roles and permissions.
[0034] Figure 2 The present invention provides a form operation system based on dynamic roles and permissions.
[0035] Figure 3 This is a specific implementation diagram of three layers of an intelligent form system based on dynamic roles and permissions in Example 2 of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with 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 intended to limit the present invention.
[0037] Figures 1 to 3 An embodiment of the present invention is shown.
[0038] Embodiment 1:
[0039] To solve the above technical problems, the present invention adopts the following technical solution: an intelligent form system based on dynamic roles and permissions, comprising:
[0040] The system login module is used to register an account and log into the system through the account. When registering an account, the user needs to fill in information such as name, department, and position. After filling in this information, it cannot be changed independently and can only be changed through the administrator's account. This information is convenient for the administrator to confirm according to the department and position when assigning account permission level labels.
[0041] The role management module is used to assign permission level labels to each account. The role management module can only be accessed through an administrator's account, which can view information of all accounts and assign and change permission level labels for 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 of the same size and transparency corresponding to the first layer, and when switching to the permission design unit, the second layer is placed on the upper layer of the first layer; the present invention uses a layer method to control and dynamically adjust the permissions of the form, which will not have any impact on the first layer that stores 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 the second layer being completely blocked when it is placed on the upper layer of the first layer.
[0051] Step S5, the permission design unit copies the form of the first layer to the second layer, and the form of the first layer is aligned with the form of the second layer, and all fixed cells and active cells are positioned and numbered on the form of the second layer; when copying the form of the first layer to the second layer, only all borders of the form of the first layer are copied, but not the content, which can reduce the memory size occupied by the second layer, and at the same time, the content of the first layer can be seen with the help of the transparency of the second layer. By positioning and numbering the fixed cells and active cells on the second layer, it is helpful to identify each cell.
[0052] Step S6, fill different colors in the form of the second layer according to the required access levels of different fixed cells and active cells through the filling tool of the permission design unit, and each color represents an access level label; when designing the form, the access levels are distinguished by color, so that the access level requirements of each area can be seen more clearly. For example, the technician's account level label is "Level One", and the corresponding access level label that can be accessed is "Permission One". The color corresponding to "Permission One" is "red". In this way, when designing the form, you only need to fill the fixed cells and active cells that can be accessed by "Level One" in the form with "red", and the transparency of "red" is generally above 50, so that it is easy to see the content on layer one 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 locations where access level labels have not been added.
[0053] Step S7, after 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 it.
[0054] The form operation module includes an input unit and an automatic authority identification unit. The form operation steps are as follows:
[0055] Step K1, retrieve the required form from the form library module or form flow module;
[0056] Step K2, the automatic authority identification unit automatically generates a third layer with a white background on the upper side of the first layer;
[0057] Step K3, the automatic authority recognition unit performs color recognition on the second layer. After the recognition is completed, the authority level label of the account is matched with the access level label in the second layer, and the positioning numbers of the fixed cells and the corresponding active cells that meet the access level are confirmed in the second layer, and the fixed cells and the corresponding active cells are matched in the first layer according to these positioning numbers. After the matching is completed, the matched fixed cells and the corresponding active cells in the first layer are copied to the third layer, and the fixed cells and the corresponding active cells in the third layer all carry the positioning number 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 authority. And by using the positioning number as the hub between the cells of each layer, it can avoid the content from being misplaced in the process of copying 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 cell in the third layer to the active cell in the first layer through the positioning number.
[0060] The form flow module automatically deletes the third layer when submitting the completed form to other accounts. Deleting the third layer can reduce the memory usage of the form, and a new third layer will be generated when other accounts open the expression to achieve dynamic adjustment of the form display content by permissions.
[0061] The specific contents of adjusting the two-dimensional table in step S2 include setting the number of rows and columns when adding the two-dimensional table, and adjusting the row width, column width and merging cells after the two-dimensional table is added. These parameters have been confirmed through the draft before designing through the form design unit.
[0062] The specific steps of positioning and numbering all fixed cells and active cells on the sheet of the second layer in step S5 include: step T1, establishing a two-dimensional coordinate system with the bottom edge and left edge of the second layer as coordinate axes; step T2, positioning and numbering the fixed cells and active cells according to the positions of the upper left corner vertices in the two-dimensional coordinate system, and each positioning number contains the corresponding two-dimensional coordinates. Positioning and numbering all cells in the two-dimensional coordinate system can number each cell and mark its position in the two-dimensional coordinate system at the same time, 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 the corresponding active cells in the first layer according to the positioning numbers, the same two-dimensional coordinate system as the second layer is established in the first layer, and the fixed cells and the corresponding active cells are matched according to the two-dimensional coordinates in the positioning numbers. By establishing the same two-dimensional coordinate system with the first layer and the second layer, the positioning information in the positioning number of a cell in the second layer can be used to locate the cell at the same position in the first layer, so that the third layer can use the positioning number to establish a connection between the cells in the first layer, thereby copying the content filled in the third layer to the first layer.
[0064] Embodiment 2:
[0065] On the basis of Example 1, Figure 3 As shown in the figure, when designing a report or operating a form, the third layer and the status of the first and second layers are displayed according to the account permissions. Figure 3 As can be seen, two permission standards are designed in the second layer. The two colors are represented by two diagonal lines tilted in the left and right directions. Figure 3 The account permission level label of the account in the second layer matches the access level label of the second layer, and can only access cells of one color, so in the third layer, only the content of this part is displayed. Figure 3 The third layer indents the cells that are not displayed in the middle. In the specific implementation process, this part of the content can be indented according to the up, down, left, and right relationships between the cells, so that the content displayed on the third layer is more compact.
[0066] Although the present invention is described herein with reference to a number of illustrative embodiments of the present invention, it will be appreciated that those skilled in the art may devise many other modifications and implementations that fall within the scope and spirit of the principles disclosed herein. More specifically, within the scope of the present disclosure, drawings, and claims, a variety of variations and modifications may be made to the components and / or layout of the subject combination layout. In addition to the variations and modifications made to the components and / or 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: include System login module, used to register an account and log into the system through the account; The role management module is used to assign permission level labels to each account; The form design module is used to design forms and add different access level labels to different cells in the form; Form library module, used to store designed forms; The form operation module is used to call 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 label of the account to control the display content and editable content of the form; The form process module is used to submit completed forms to other accounts and accept forms submitted by other accounts.
2. According to claim 1, a smart form system based on dynamic roles and permissions is characterized by: The form design module includes a form design unit and a permission design unit. The specific steps of designing a form are as follows: Step S1, the form design unit generates a first layer with a white background; Step S2, adding a two-dimensional table to the first layer through the form design unit, and adjusting the two-dimensional table to form a form; Step S3, setting a fixed cell with preset content in the form, and setting an active cell corresponding to the fixed cell and capable of inputting content; Step S4, switching 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 the upper layer of the first layer; Step S5, the permission design unit copies the form of the first layer to the second layer, aligns the form of the first layer with the form of the second layer, and positions and numbers all fixed cells and active cells on the form of the second layer; Step S6, using 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; Step S7, after 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.
3. According to claim 2, a smart form system based on dynamic roles and permissions is characterized in that: The form operation module includes an input unit and an automatic authority identification unit. The form operation steps are as follows: Step K1, retrieve the required form from the form library module or form flow module; Step K2, the automatic authority identification unit automatically generates a third layer with a white background on the upper side of the first layer; Step K3, the automatic authority recognition unit performs color recognition on the second layer. After the recognition is completed, the authority level label of the account is matched with the access level label in the second layer, and the positioning numbers of the fixed cells and the corresponding active cells that meet the access level are confirmed in the second layer, and the fixed cells and the corresponding active cells are matched in the first layer according to these positioning numbers. After the matching is completed, the matched fixed cells and the corresponding active cells in the first layer are copied to the third layer, and the fixed cells and the corresponding active cells in 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 in 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.
4. The intelligent form system based on dynamic roles and permissions according to claim 3 is characterized by: The form flow module automatically deletes the third layer when submitting the completed form to other accounts.
5. The intelligent form system based on dynamic roles and permissions according to claim 2, 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 adjusting the row width, column width and merging cells after the two-dimensional table is added.
6. The intelligent form system based on dynamic roles and permissions according to claim 2, characterized in that: The 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 edge and left edge of the second layer as coordinate axes; step T2, positioning and numbering according to the position of the upper left corner vertex of the fixed cells and active cells in the two-dimensional coordinate system, and each positioning number contains the corresponding two-dimensional coordinates.
7. The intelligent form system based on dynamic roles and permissions according to claim 3 is characterized by: 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
Method and system for rapidly creating forms
CN102902767A
Form dynamic management method and system based on authority management
CN110163577A
Access control authority management system based on users and roles
CN110401655A
Table document processing method and device, electronic equipment and storage medium
CN116894432A
Dynamic form generation method and device, equipment and storage medium
CN118228698A
