A general function configuration system and method based on XML

Through a general function configuration system based on XML, using XML configuration files and modular design, the problem of high cost and long cycle of information system development is solved, and the rapid development and high efficiency of the information system are achieved. The page view content is described through XML configuration files. , integrates common functions of information systems and simplifies the development process.

CN115061683BActive Publication Date: 2024-09-27SHANXIN SOFTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210677646.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-09-27
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

The development cost of existing information systems is high and the software development and delivery cycle is long. This is mainly due to the high correlation between system functions and page programs, resulting in a low reuse rate of common functions. There is a lack of systems and methods for integrating common functions and quickly realizing page program development. .

Method used

A general function configuration system based on XML is adopted, including information system client, server and data server. The page view content is described through XML configuration files. The XML file parsing module, data processing module and page view parsing module are used to realize the parameterization of the general function module. and page generation, supporting functions such as organizational structure management, user management, operation rights management, data rights management and log management, and realizing flexible configuration of menus.

Benefits of technology

By describing the page view content through XML configuration files, it integrates the general functions of the information system, realizes flexible menu configuration, reduces the software development and delivery cycle, improves development efficiency, and simplifies the development process of the information system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115061683B
    Figure CN115061683B
Patent Text Reader

Abstract

The embodiment of the present application provides a general function configuration system and method based on XML. The system includes an information system client, an information system server and a data server. The information system server includes a general function module, an XML configuration file, an XML file parsing module, a data processing module and a page view parsing module. The information system client is connected to the information system server in communication. The XML file parsing module is connected to the XML configuration file in communication. The data processing module is connected to the data server, the general function module, the XML file parsing module and the page view parsing module in communication. The content to be displayed in the page view is described by the XML configuration file. All content is presented in the form of XML node attributes, and the general functions of the information system are integrated to realize flexible configuration of the menu. It is convenient to quickly realize the development of the information system, reduce the software development and delivery cycle, and improve development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of general information systems, and in particular to a general function configuration system and method based on XML. Background Art

[0002] With the rapid development of Internet technology, network-based information systems have also developed rapidly.

[0003] Traditional information systems are mostly customized and developed according to different functional requirements. Since there is a high correlation between system functions and page programs, each information system product includes system management functions and matching page programs, which makes the reuse rate of common functions low, resulting in a long software product development and delivery cycle, leading to high information system development costs.

[0004] However, the prior art lacks a system and method that integrates common functions and facilitates rapid implementation of page program development. Summary of the invention

[0005] The present application provides a general function configuration system and method based on XML to solve the technical problem of the lack of systems and methods that integrate general functions and facilitate rapid implementation of page program development.

[0006] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:

[0007] In the first aspect, the embodiment of the present application discloses a general function configuration system based on XML, including an information system client, an information system server and a data server, wherein the information system server includes a general function module, an XML configuration file, an XML file parsing module, a data processing module and a page view parsing module, wherein:

[0008] Data server, used to save the results of data processing and provide data support for configuration files;

[0009] The XML file parsing module is used to receive client requests, load the corresponding XML configuration file, traverse all nodes of the XML configuration file, map the XML configuration file node values ​​and attributes to the corresponding type of entity class for parameterization, and send the entity class to the data processing module;

[0010] The data processing module is used to process the data items in the entity class, and read the business data from the database to the entity class according to the user's data permissions, and finally send the processed entity class to the page view parsing module;

[0011] The page view parsing module is used to parse the data in the entity class into the page view and generate the final system page according to the user's operation permission range. The data types in the entity class include various data controls used for data display in the page view.

[0012] The information system client is connected in communication with the information system server, the XML file parsing module is connected in communication with the XML configuration file, the data processing module is connected in communication with the data server, the general function module, the XML file parsing module and the page view parsing module.

[0013] Optionally, the general function modules include an organizational structure management module, a user management module, an operation authority management module, a data authority management module and a log management module.

[0014] The organizational structure management module is used to create and modify the organizational structure to which the user belongs, and display it in the form of a tree;

[0015] User management module, used to add, modify, delete and view system users;

[0016] The operation authority management module is used to authorize and cancel the user's operation authority based on menus and buttons;

[0017] The data rights management module is used to define the scope of data that users can view and operate based on the organizational structure to which they belong;

[0018] The log management module is used to record and display the user's operation track on the system in order to review the user operation.

[0019] Optional XML configuration files include data display files, data modification files, data addition files, data deletion files, and data viewing files.

[0020] The data display file includes the number of rows of data displayed per page and the total number of pages, which are used to construct the data set display table and query condition page;

[0021] Both the data modification file and the data addition file include data specification verification, which is used to construct the addition and modification pages of a single data;

[0022] The data deletion file includes the logic check of the deleted data and is used to construct the data deletion page;

[0023] Data viewing file, used to construct the data viewing page.

[0024] Optionally, the XML configuration file node includes multiple nodes, including a root node, and the root node includes

[0025] The type child node is used to define the page view type;

[0026] The title child node is used to define the title of the page view;

[0027] The navitree child node is used to define the navigation tree of the page view;

[0028] The filterpanel child node is used to define the data filter control of the page view;

[0029] Toolbar child node, used to define the toolbar in the page view;

[0030] The data sub-node is used to define the data that needs to be displayed in the entire page view;

[0031] The operbuts child node is used to define the operation buttons in the data row;

[0032] The hyperbuts child node is used to define the field link action button in the data row.

[0033] Optionally, the page view is the information system page that finally displays the data content to the user.

[0034] Optionally, the filterpanel child node includes the component child node, and the toolbar child node, the operbuts child node, and the hyperbuts child node all include the button child node.

[0035] The component subnode is used to define the data filter controls in the data filter panel;

[0036] The button subnode is used to define the type and display content of the operation button.

[0037] Optionally, the data filter controls include a text input box, a date selection box, a radio button, and a multi-select drop-down box.

[0038] In a second aspect, the embodiment of the present application discloses a general function configuration method based on XML, including an information system client sending a page request to an information system server;

[0039] The XML file parsing module of the information system server determines whether there is an XML configuration file matching the page request. If the XML configuration file matching the page request exists, the XML configuration file is read and parsed, the node values ​​and attributes of the XML configuration file are mapped to the entity class of the corresponding type for parameterization, and the entity class is sent to the data processing module. If the XML configuration file matching the page request does not exist, information indicating that the XML configuration file matching the page request does not exist is fed back to the information system client.

[0040] The data processing module of the information system server processes data according to the data authority of the data authority management module in the general function module and executes the business configuration program;

[0041] The log management module of the information system server records the user's operation track to the database and sends the entity class to the page view parsing module;

[0042] The page view parsing module of the information system server generates the final data page according to the page view parsing of the operation authority range of the operation authority management module in the general function module, and returns the data page to the information system client to respond to the page request of the information system client.

[0043] Optionally, the XML file parsing module of the information system server determines whether there is an XML configuration file matching the page request, including:

[0044] Determine whether there is a template matching the page request in the template cache of the XML configuration file matching the page request;

[0045] When the template matching the page request does not exist, reload the template matching the page request.

[0046] The beneficial effects of this application are:

[0047] The embodiment of the present application provides a general function configuration system based on XML, including an information system client, an information system server and a data server. The information system server includes a general function module, an XML configuration file, an XML file parsing module, a data processing module and a page view parsing module. The information system client is connected to the information system server in communication, the XML file parsing module is connected to the XML configuration file in communication, and the data processing module is connected to the data server, the general function module, the XML file parsing module and the page view parsing module in communication. The content to be displayed in the page view is described by the XML configuration file, and all the content is presented in the form of XML node attributes, and the general functions of the information system are integrated to realize flexible configuration of the menu. It is convenient to quickly realize the development of the information system, reduce the software development and delivery cycle, and improve development efficiency.

[0048] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0050] Figure 1 A schematic diagram of the structure of a general function configuration system based on XML provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of a component sub-node provided in an embodiment of the present application;

[0052] Figure 3 A flowchart of a general function configuration method based on XML provided in an embodiment of the present application;

[0053] Figure 4 Another flowchart of a general function configuration method based on XML provided in an embodiment of the present application;

[0054] in:

[0055] 1-information system client, 2-information system server, 21-general function module, 211-organizational structure management module, 212-user management module, 213-operation authority management module, 214-data authority management module, 215-log management module, 22-XML configuration file, 23-XML file parsing module, 24-data processing module, 25-page view parsing module, 3-data server. DETAILED DESCRIPTION

[0056] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0057] See also Figure 1The embodiment of the present application provides a general function configuration system based on XML, including an information system client 1, an information system server 2 and a data server 3. The information system server 2 includes a general function module 21, an XML configuration file 22, an XML file parsing module 23, a data processing module 24 and a page view parsing module 25. The data server 3 is used to save the results of data processing and provide data support for the configuration file; the XML file parsing module 23 is used to receive a client request, load the corresponding XML configuration file 22, and traverse all nodes of the XML configuration file 22, map the node values ​​and attributes of the XML configuration file 22 to the entity class of the corresponding type for parameterization, and send the entity class to the data processing module; The processing module 24 is used to process the data items in the entity class, and read the business data from the database to the entity class according to the user's data permissions, and finally send the processed entity class to the page view parsing module; the page view parsing module 25 is used to parse the data in the entity class into the page view, and generate the final system page according to the user's operation permission range, wherein the data type in the entity class includes various data controls for data display in the page view; the information system client 1 is communicated with the information system server 2, the XML file parsing module 23 is communicated with the XML configuration file 22, and the data processing module 24 is communicated with the data server 3, the general function module 21, the XML file parsing module 23 and the page view parsing module 25.

[0058] The content to be displayed in the page view is described through the XML configuration file 22. All the content is presented in the form of XML node attributes, and the general functions of the information system are integrated to realize the flexible configuration of the menu. It is convenient to quickly realize the development of the information system, reduce the software development and delivery cycle, and improve the development efficiency.

[0059] In some embodiments, the general function module 21 includes an organizational structure management module 211, a user management module 212, an operation authority management module 213, a data authority management module 214 and a log management module 215.

[0060] The organizational structure management module 211 is used to create and modify the organizational structure to which the user belongs, and display it in the form of a tree;

[0061] User management module 212, used for adding, modifying, deleting and viewing system users;

[0062] The operation authority management module 213 is used to authorize and cancel the user's operation authority based on menus and buttons;

[0063] Data authority management module 214, used to define the scope of data that a user can view and operate based on the organizational structure to which the user belongs;

[0064] The log management module 215 is used to record and display the user's operation track on the system so as to review the user's operation.

[0065] It integrates the common functions of information systems and realizes flexible configuration of menus. It is convenient to quickly realize the development of information systems, shorten the software development and delivery cycle, and improve development efficiency.

[0066] In some embodiments, the XML configuration file 22 includes a data display file, a data modification file, a data addition file, a data deletion file, and a data viewing file. The data display file includes the number of rows and total pages of data displayed per page, which is used to construct a data set display table and a query condition page; the data modification file and the data addition file both include data specification verification, which is used to construct a single data addition and modification page; the data deletion file includes a logical verification of deleted data, which is used to construct a data deletion page; the data viewing file is used to construct a data viewing page. The XML configuration files 22 all conform to the XML file format to write business logic.

[0067] In some embodiments, the XML configuration file 22 node includes multiple nodes, including a root node, and the root node includes a type child node for defining a page view type;

[0068] The title child node is used to define the title of the page view;

[0069] The navitree child node is used to define the navigation tree of the page view;

[0070] The filterpanel child node is used to define the data filter control of the page view;

[0071] Toolbar child node, used to define the toolbar in the page view;

[0072] The data sub-node is used to define the data that needs to be displayed in the entire page view;

[0073] The operbuts child node is used to define the operation buttons in the data row;

[0074] The hyperbuts child node is used to define the field link action button in the data row.

[0075] In some embodiments, the XML configuration file 22 hierarchy is shown as follows:

[0076] <win>

[0077] <type>< / type>

[0078] <title>< / title>

[0079] <navitree>< / navitree>

[0080] <filterpanel>

[0081] <component>< / component>

[0082] < / filterpanel>

[0083] <toolbar>

[0084] <button>< / button>

[0085] < / toolbar>

[0086] <data>< / data>

[0087] <operbuts>

[0088] <button>< / button>

[0089] < / operbuts>

[0090] <hyperbuts>

[0091] <button>< / button>

[0092] < / hyperbuts>

[0093] < / win>

[0094] like Figure 2As shown in the figure, the component child node is used as an example to explain the detailed definition of the page view data filter control. The data filter control is defined as a child node of the page configuration file. The child node has multiple attributes. The following is an example of a drop-down control: Figure 2 As shown, the main element of the data filter panel is a drop-down box control, and the page view control is laid out in a table format, starting from the first cell in the upper left corner. The horizontal cell number of the control is positionx, and the vertical cell number is positiony, recorded as (positionx, positiony), the control width is width, the control height is height, the content display width is cwidth, the content display height is cheight, and desc is used to indicate the function of the control.

[0095] The specific properties of the subnode component are shown in Table 1:

[0096] Table 1

[0097] Serial number Keywords describe 1 name Control name, globally unique 2 desc Content description, displayed in front of the control to indicate the function of the control 3 type Types of controls 4 positionx Control horizontal coordinate position information 5 positiony Control ordinate position information 6 valuse Content information of the control 7 width Width of control 8 height Control height 9 cwidth Width of the content of the control 10 chight Control content height

[0098] The entity class parameterization is specifically defined as: the XML file parsing module reads the node values ​​and attribute information of the configuration file, and then assigns the values ​​to the corresponding entity class.

[0099] In some embodiments, the page view is the information system page containing data content that is ultimately presented to the user.

[0100] In some embodiments, the filterpanel subnode includes a component subnode, and the toolbar subnode, the operatorbuts subnode, and the hyperbuts subnode all include a button subnode.

[0101] The component subnode is used to define the data filter controls in the data filter panel;

[0102] The button subnode is used to define the type and display content of the operation button.

[0103] In some embodiments, the data filter control includes a text input box, a date selection box, a radio button, and a multi-select drop-down box.

[0104] Corresponding to the aforementioned embodiment of a general function configuration system based on XML, as Figure 3 and Figure 4 As shown, the present application also provides an embodiment of a general function configuration method based on XML. The method specifically comprises the following steps:

[0105] S110: The information system client sends a page request to the information system server.

[0106] S120: The XML file parsing module of the information system server determines whether there is an XML configuration file matching the page request. If so, the XML configuration file is read and parsed, the node values ​​and attributes of the XML configuration file are mapped to entity classes of corresponding types for parameterization, and the entity classes are sent to the data processing module. If the XML configuration file matching the page request does not exist, information indicating that the XML configuration file matching the page request does not exist is fed back to the information system client.

[0107] In some embodiments, the XML file parsing module of the information system server determines whether there is an XML configuration file matching the page request, including:

[0108] Determine whether there is a template matching the page request in the template cache of the XML configuration file matching the page request;

[0109] When the template matching the page request does not exist, reload the template matching the page request.

[0110] S130: The data processing module of the information system server processes data according to the data authority of the data authority management module in the general function module and executes the business configuration program.

[0111] S140: The log management module of the information system server records the user's operation track to the database, and sends the entity class to the page view parsing module.

[0112] S150: The page view parsing module of the information system server generates a final data page according to the page view parsing of the operation authority range of the operation authority management module in the general function module, and returns the data page to the information system client to respond to the page request of the information system client.

[0113] As can be seen from the above embodiments, the embodiment of the present application provides a general function configuration system based on XML, including an information system client, an information system server and a data server. The information system server includes a general function module, an XML configuration file, an XML file parsing module, a data processing module and a page view parsing module. The information system client is connected to the information system server in communication, the XML file parsing module is connected to the XML configuration file in communication, and the data processing module is connected to the data server, the general function module, the XML file parsing module and the page view parsing module in communication. The content to be displayed in the page view is described by the XML configuration file, and all content is presented in the form of XML node attributes, and the general functions of the information system are integrated to realize flexible configuration of the menu. It is convenient to quickly realize the development of the information system, reduce the software development and delivery cycle, and improve development efficiency.

[0114] Since the above embodiments are all described by citing and combining with other embodiments, different embodiments have the same parts, and the same and similar parts between the embodiments in this specification can be referred to each other. No further detailed description is given here.

[0115] It should be noted that, in this specification, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such circuit structure, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the circuit structure, article or device including the element.

[0116] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure of the invention herein. The present application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the content of the claims.

[0117] The above-described embodiments of the present application do not constitute a limitation on the protection scope of the present application.

Claims

1. A general function configuration system based on XML, characterized in that: include: An information system client (1), an information system server (2) and a data server (3), wherein the information system server (2) comprises a general function module (21), an XML configuration file (22), an XML file parsing module (23), a data processing module (24) and a page view parsing module (25), wherein: The data server (3) is used to store the results of data processing and provide data support for the configuration file; The XML file parsing module (23) is used to receive a client request, load the corresponding XML configuration file (22), traverse all nodes of the XML configuration file (22), map the node values ​​and attributes of the XML configuration file (22) to the entity class of the corresponding type for parameterization, and send the entity class to the data processing module; The data processing module (24) is used to process the data items in the entity class and read the business data from the database to the entity class according to the user's data authority, and finally send the processed entity class to the page view parsing module; The page view parsing module (25) is used to parse the data in the entity class into a page view and generate a final system page according to the user's operation authority range, wherein the data type in the entity class includes various data controls used for data display in the page view; The information system client (1) is in communication connection with the information system server (2), the XML file parsing module (23) is in communication connection with the XML configuration file (22), and the data processing module (24) is in communication connection with the data server (3), the general function module (21), the XML file parsing module (23) and the page view parsing module (25); The XML configuration file (22) includes a data display file, a data modification file, a data addition file, a data deletion file and a data viewing file. The data display file includes the number of rows of data displayed per page and the total number of pages, which are used to construct a data set display table and a query condition page; The data modification file and the data addition file both include data specification verification, which is used to construct a new addition and modification page for a single piece of data; The data deletion file includes a logic check of the deleted data and is used to construct a data deletion page; The data viewing file is used to construct a data viewing page.

2. The XML-based general function configuration system according to claim 1, characterized in that: The general function module (21) comprises an organizational structure management module (211), a user management module (212), an operation authority management module (213), a data authority management module (214) and a log management module (215). The organizational structure management module (211) is used to create and modify the organizational structure to which the user belongs, and display it in the form of a tree; The user management module (212) is used to add, modify, delete and view system users; The operation authority management module (213) is used to authorize and cancel the user's operation authority based on menus and buttons; The data authority management module (214) is used to define the scope of data that a user can view and operate based on the organizational structure to which the user belongs; The log management module (215) is used to record and display the user's operation traces on the system so as to review the user's operations.

3. The XML-based general function configuration system according to claim 1, characterized in that: The XML configuration file (22) includes multiple nodes, including a root node. The root node includes The type child node is used to define the page view type; The title child node is used to define the title of the page view; The navitree child node is used to define the navigation tree of the page view; The filterpanel child node is used to define the data filter control of the page view; Toolbar child node, used to define the toolbar in the page view; The data sub-node is used to define the data that needs to be displayed in the entire page view; The operbuts child node is used to define the operation buttons in the data row; The hyperbuts child node is used to define the field link action button in the data row.

4. The XML-based general function configuration system according to claim 3, characterized in that: The page view is the information system page containing data content that is finally presented to the user.

5. The XML-based general function configuration system according to claim 3, characterized in that: The filterpanel subnode includes a component subnode, and the toolbar subnode, the operbuts subnode, and the hyperbuts subnode all include a button subnode. The component sub-node is used to define the data filter control in the data filter panel; The button sub-node is used to define the type and display content of the operation button.

6. The XML-based general function configuration system according to claim 5, characterized in that: The data filter controls include a text input box, a date selection box, a radio button, and a multiple-selection drop-down box.

7. A general function configuration method based on XML, characterized in that: include: The information system client sends a page request to the information system server; The XML file parsing module of the information system server determines whether there is an XML configuration file matching the page request. If the XML configuration file matching the page request exists, the XML configuration file is read and parsed, the node values ​​and attributes of the XML configuration file are mapped to the entity class of the corresponding type for parameterization, and the entity class is sent to the data processing module. If the XML configuration file matching the page request does not exist, information indicating that the XML configuration file matching the page request does not exist is fed back to the information system client. The data processing module of the information system server processes data according to the data authority of the data authority management module in the general function module and executes the business configuration program; The log management module of the information system server records the user's operation track to the database and sends the entity class to the page view parsing module; The page view parsing module of the information system server generates the final data page according to the operation authority range of the operation authority management module in the general function module, and returns the data page to the information system client to respond to the page request of the information system client; The XML configuration file includes a data display file, a data modification file, a data addition file, a data deletion file and a data viewing file. The data display file includes the number of rows of data displayed per page and the total number of pages, which are used to construct a data set display table and a query condition page; The data modification file and the data addition file both include data specification verification, which is used to construct a new addition and modification page for a single piece of data; The data deletion file includes a logic check of the deleted data and is used to construct a data deletion page; The data viewing file is used to construct a data viewing page.

8. The XML-based general function configuration method according to claim 7, characterized in that: The XML file parsing module of the information system server determines whether there is an XML configuration file matching the page request, including: Determine whether there is a template matching the page request in the template cache of the XML configuration file matching the page request; When the template matching the page request does not exist, the template matching the page request is reloaded.

Citation Information

Patent Citations

  • Visualization system and implementation method based on IBM host

    CN104199647A

  • Data monitoring and code automatic generation and deployment system and method

    CN106095408A

  • Control method and system based on communication service data check result display

    CN108769103A

  • Mobile application development and deployment

    US20150128110A1