A MIS adaptive generator based on object information and its use method

Through the MIS adaptive generator based on object information, the database structure and functional modules of MIS software are dynamically generated and updated, which solves the problem of low efficiency in reconstruction and maintenance of existing MIS software, realizes rapid changes and version management, and reduces development costs. Cost and effort.

CN114115837BInactive Publication Date: 2024-09-20HUBEI OPEN UNIV (HUBEI SCI & TECH VOCATIONAL COLLEGE)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111312001.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing MIS software faces rapid changes in demand, it is difficult to quickly reconstruct basic functional modules and software organizational structures, resulting in increased development and maintenance workloads, higher costs, and serious code redundancy problems.

Method used

An MIS adaptive generator based on object information is used to generate the database structure, interface layer, business logic layer and data access layer through object information management. It combines with common templates to achieve dynamic generation and update, supports user permissions and version management, and realizes MIS software Rapid refactoring and maintenance.

Benefits of technology

It greatly improves the development and maintenance efficiency of MIS software, shortens development time, reduces workload, realizes rapid changes and version management of MIS structure, and avoids code redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114115837B
    Figure CN114115837B
Patent Text Reader

Abstract

The invention discloses an MIS adaptive generator based on object information and a method for using the generator, which can manage each basic module in the MIS in an object form, and adaptively and dynamically construct the interface layer, business logic layer, data access layer and database of the software basic module in combination with the common fragmented interactive interface, business logic and data access template, so as to achieve the purpose of visually managing information such as objects, interfaces, business logic, data access, and MIS internal structures, and dynamically generating or reconstructing MIS basic modules, databases, and internal structures, thereby realizing the quick construction and change of MIS. The workload of the MIS software technology implementation and maintenance links is effectively reduced, and the development and maintenance cycle is shortened, so that the operating cost of the MIS software can be reduced, and the application promotion is suitable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network management, and in particular to an MIS self-adaptive generator based on object information and a use method thereof. Background Art

[0002] Management Information System (MIS) is widely used in today's society. All walks of life are increasingly relying on MIS software to achieve efficient information management. With the continuous development of society, the speed of change of enterprise needs is also accelerating. The corresponding time intervals for MIS software changes, upgrades and replacements are gradually shortening, resulting in an increase in the workload of software development and maintenance per unit time, thereby increasing the cost of using MIS software and restricting the information development of enterprises and institutions.

[0003] To solve this problem, it is necessary to enable MIS software to have the ability to quickly reconstruct, including the reconstruction of basic functional modules and software organizational structure. To this end, more and more solutions have been proposed, such as reducing the workload of software coding by developing and maintaining software in layers, using various frameworks to simplify the software coding process, or generating software code through code generators. However, the following problems still exist:

[0004] First, although the use of framework technology can simplify the software coding process, the program still needs to be modified when the object changes, which fails to fundamentally change the way of manual coding. When changes are frequent, it still brings a large coding workload;

[0005] Second, although generating software code through a code generator does not require manual coding, the parts of the software with the same or similar logic usually do not implement code reuse, which easily leads to code redundancy.

[0006] So how to treat these basic information modules themselves as objects and manage them in an information-based manner? Through a common interface, business logic, data access mode and corresponding generation method, using simple visual operations to automatically generate or reconstruct these module functions and corresponding database structures based on object information, and through information management of the organizational relationship between MIS modules to dynamically generate or update the MIS structure, the development and maintenance efficiency of MIS software can be greatly improved, the development time and development workload can be shortened, thereby better dealing with the above-mentioned problems. Summary of the invention

[0007] The present invention aims to provide an MIS adaptive generator based on object information and a method of use, which manages the basic information module of MIS in the form of objects and generates a corresponding database, and at the same time fragments the basic elements of the management interface layer, business logic layer and data access layer and establishes a general template for each layer, and then combines the object information to generate the corresponding software interaction interface, business logic and data access part. On this basis, the adaptively generated basic information module and custom module are organized and managed through informatization to dynamically form the internal structure of MIS and provide support for user permissions, dynamic menus and version management.

[0008] In view of the above problems, the technical solution adopted by the present invention is as follows:

[0009] An MIS adaptive generator based on object information, characterized in that the generator comprises:

[0010] MIS basic function generation module and corresponding database generation module and MIS structure management part, the MIS basic function generation module and corresponding database generation module are composed of four basic modules: object information management, general view management, general business logic management, and general data access management, and build the MIS database basic structure based on object information, and generate corresponding interface layer, business logic layer, and data access layer based on object and general view basic elements, general business logic basic elements, and general data access basic elements respectively;

[0011] The MIS structure management module consists of version management, user and permission management, system structure management, and system module management. Version management is used to manage MIS versions, system structure management is used for the organization and management of system modules, user and permission management is used to manage users and corresponding permissions in a specific version of MIS, and user and permission management is associated with system module management information; system module management is used to manage the basic information modules generated by object information and general templates in MIS, as well as customized MIS modules.

[0012] Furthermore, the steps of constructing the MIS database infrastructure are:

[0013] Step 1: Map the attributes of the object information into corresponding table fields in the database;

[0014] Step 2: Map the associations between objects into corresponding associations between data tables;

[0015] Step 3: Establish the basic structure of MIS database based on the results of Step 1 and Step 2.

[0016] Furthermore, the steps of generating the interface layer are:

[0017] Step 1: Based on the basic elements of the general view, integrate the interface layout, basic information of the controls and the general interface template to generate the corresponding general interface template;

[0018] Step 2: Generate corresponding controls according to the properties and operation information of the object, combine the controls with the general interface template to form an interactive interface and interactive interface controls, thereby generating an interface layer.

[0019] Furthermore, the steps for generating the business logic layer are:

[0020] Step 1: The business logic management basic module generalizes and informatizes the logic of basic operations such as adding, modifying, deleting, and querying commonly used in MIS to obtain the common business logic basic elements of various operations;

[0021] Step 2: Generate a corresponding business logic layer template based on the obtained general business logic basic elements, and then generate a corresponding business logic layer based on the business logic generation method of the MIS model in combination with the object attribute information.

[0022] Furthermore, the steps of generating the data access layer are:

[0023] Step 1: Classify the common basic elements of database data access such as addition, modification, deletion, and query in MIS, and manage them in a generalized and templated manner to obtain data access templates;

[0024] Step 2: Dynamically generate corresponding SQL statements based on data access information generated during data access such as various data-based logical judgments and data updates in the business logic layer, object operation information and attribute information in the object information, and management information;

[0025] Step 3: Combine the SQL statement with the data access template to generate the data access layer.

[0026] A method for using an MIS self-adaptive generator based on object information, characterized in that the MIS self-adaptive generator works according to the following steps:

[0027] Step 1: Dynamically build tables in the database and the relationships between tables by managing object attributes and relationships between objects. Map object attributes to corresponding table fields in the database, and map relationships between objects to corresponding relationships between data tables, thereby building the basic structure of the MIS database.

[0028] Step 2: Generate corresponding controls based on the object's attributes and operation information and integrate them into the MIS interface. Automatically generate corresponding controls based on the object's attribute data type, enumeration, foreign key association and other information, and integrate each control into the template to form an interactive interface and a way to obtain control values ​​when the interface is submitted;

[0029] Step 3: Integrate basic logic information according to object operation information to form a corresponding business logic layer template, and then generate the corresponding business logic layer in combination with object attribute information;

[0030] Step 4: Dynamically generate corresponding SQL statements based on the data access requirement information, object operation information, attribute information and association information of the business logic layer, and generate the data access layer in combination with the corresponding data access template.

[0031] Furthermore, the object information management includes object basic information, object attribute information, object operation information and object association information.

[0032] The beneficial effects of the present invention are:

[0033] First, the invention has good basic module quick construction and reconstruction capabilities, and MIS developers do not need to spend a lot of time programming and managing databases in some basic information management modules. Whether it is to establish or rebuild the basic information module, adaptive construction or reconstruction can be achieved through simple visual operations;

[0034] Second, the present invention can dynamically control the version and structure of MIS, and can better realize the rapid change of MIS structure and the update and backtracking of software version;

[0035] Third, the present invention constructs and manages MIS based on informationization, which is convenient for management, backup and migration. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A process diagram for constructing MIS basic modules based on object information;

[0037] Figure 2 To generate a process diagram for the business logic layer;

[0038] Figure 3 Generate a process diagram of the business logic layer for the general business logic template combined with object information;

[0039] Figure 4 A process diagram for constructing MIS basic modules based on object information;

[0040] Figure 5 A process diagram for constructing MIS basic modules based on object information;

[0041] Figure 6It is the basic composition and operation flow chart of MIS adaptive generator;

[0042] Figure 7 It is the mapping between objects and data table structures;

[0043] Figure 8 A schematic diagram of generating interface layer controls based on object attribute information;

[0044] Fig. 9 Generate the corresponding business logic layer flowchart according to the object operation and attribute information;

[0045] Fig.10 Flowchart generated for the data access layer;

[0046] Fig.11 It is a schematic diagram of the operation mode of the MIS structure management part;

[0047] Fig.12 A flowchart for building a business logic module based on common business logic blocks;

[0048] Fig.13 Business process diagram to increase operations;

[0049] Fig.14 Schematic diagram of the business logic generated for adding operations;

[0050] Fig.15 Flowchart for establishing data access layer based on object information;

[0051] Fig.16 It is the system module organization management interface in the embodiment;

[0052] Fig.17 It is an interface for information management of basic modules in the form of objects in the embodiment;

[0053] Fig.18 It is the object attribute and operation management interface in the embodiment;

[0054] Fig.19 It is the object association management interface in the embodiment;

[0055] Fig. 20 It is the basic information management interface in the embodiment;

[0056] Fig.21 This is the basic information editing interface in the embodiment. DETAILED DESCRIPTION

[0057] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0058] The core ideas of the present invention include:

[0059] (1) Information management MIS version, users and permissions, system structure, system modules, object information, common views, common business logic, and common data access.

[0060] (2) An MIS allows multiple versions to exist simultaneously. Each version corresponds to a specific state of the MIS software. The MIS version management part is responsible for managing and controlling the various versions of the MIS and can quickly switch between versions when necessary; thus, it is possible to build a new version without affecting the current MIS operation, and directly switch to the new version after the construction is completed, or switch to the previous old version when necessary.

[0061] (3) Under each MIS version, the MIS system structure corresponding to the version is constructed and managed. The system structure controls the functional modules corresponding to the version and the composition of these modules, such as the activation status of the module, the level and affiliation of the module, etc.

[0062] (4) The specific information and status of each functional module in the system structure are managed and controlled by the system module management part, which provides support for system structure management.

[0063] (5) The object information management part mainly manages the basic information, attributes, operations, and relationships between objects.

[0064] ① Object management manages object name, object identification, object operation, generation of corresponding modules, generation of corresponding data tables, etc. Each object generates a data table in the database and a basic management function module based on the object.

[0065] ② Object attribute management manages the attribute name, attribute identifier, data type, width, whether it is allowed to be empty, whether it is allowed to be repeated, whether it is encrypted, whether it is available for query, whether it is allowed to be displayed in the list, whether it is allowed to be edited, whether it is allowed to import and export, the edit box form on the interface, etc. Each attribute belongs to a certain object.

[0066] ③Object association management targets the association characteristics between objects and maps them into associations between corresponding tables in the database.

[0067] ④ Based on the basic information, attributes, operations, and relationships between objects, adaptively build basic structures such as basic tables, relationships between tables, index tables, etc. in the database, providing a basis for data access at the upper level of the software.

[0068] (6) The general view management part mainly manages the basic elements of the view layer and the view interface built based on these basic elements.

[0069] ① The basic elements of the view layer refer to the control elements on the MIS interface (such as text boxes, selection boxes, check boxes, etc.) and the basic page layout.

[0070] ② Dynamically combine these basic elements according to the relevant information of the above objects to construct the corresponding human-computer interaction interface and front-end operation response.

[0071] (7) The general business logic management part mainly manages the basic elements of the business logic layer and the software business logic built based on these basic elements.

[0072] ① The basic elements of the business logic layer refer to the various common basic logics that constitute the business logic layer, such as the judgment of data duplication and data format.

[0073] ② Dynamically combine these basic elements according to the relevant information of the above objects to construct the corresponding overall business logic and form the business logic layer.

[0074] (8) The general data access management part mainly manages the basic data access methods and dynamically generates the data access layer of the current module based on object-related information.

[0075] ① Manage various basic data access methods (such as common data access forms such as adding, modifying, deleting, and querying) as basic data access elements in a universal and information-based manner.

[0076] ② Dynamically combine these basic data access elements according to the above object-related information to build the corresponding overall data access layer, and the data access layer is matched with the database which is also built based on the object-related information.

[0077] (9) Use the above method to construct the basic functional modules corresponding to each object, and realize the purpose of dynamically changing the MIS basic functional modules through the update of object information and each layer (view layer, business logic layer, data access layer); at the same time, dynamically manage the association between these basic functional modules and the system structure, and then through the association between the system structure and the MIS version, realize the correspondence between each version of MIS and the specific functional modules and the organizational structure of the module.

[0078] First, the MIS model should be constructed based on the general template and object information. The idea of ​​establishing the model is: fragment the basic elements of the management interface layer, business logic layer and data access layer and establish a general template based on this, dynamically integrate the basic elements of each layer based on the object information and generate the corresponding template and MIS database, that is, establish several general templates in each layer. By integrating the object information with the interface template, business logic template and data access template respectively, the corresponding interface layer, business logic layer and data access layer are constructed. When the object information changes, the database structure is automatically reconstructed, and the object information is re-integrated with the three-layer general template to reconstruct the three-layer architecture of the MIS, so that the parts of the software with the same or similar interface, logic and data access methods are constructed based on the same template. And the basic elements mentioned here refer to the basic elements that constitute the interface layer, business logic layer and data access layer. For example, the various interface controls such as text boxes, drop-down selection boxes, check boxes, etc. that constitute the interface layer, manage the front-end codes corresponding to these controls as basic elements, and dynamically associate and combine related basic elements according to the characteristics of each object to generate the interface layer; for example, the various common overall logics that constitute the business logic layer are decomposed into various basic logic elements, such as the judgment of data duplication, the judgment of data format, etc.

[0079] (1) Object information management and dynamic database construction

[0080] Manage objects and their attributes, operations and relationships in an informationized form, map object identifiers and attribute information into tables and fields in database tables, and map relationships between objects into relationships between tables in the database.

[0081] ① Object attribute management: manage the name, identifier, data type, size limit, value range, whether to allow null, whether to allow duplication, whether to list as a query field, encryption characteristics, etc. of object attributes in an informationized form, and generate the corresponding table structure in the database. When the attribute information is changed, the structure of the corresponding table is automatically updated synchronously, and at the same time, it provides the necessary foundation for building the interface layer, business logic layer and data access layer in combination with the general template.

[0082] ② Object association management: The association relationship between information management objects is mapped to the association between corresponding tables in the database and the management and control of primary and foreign keys. While providing a basis for operations such as association updates of data tables, it also provides support for the operation of the data access layer, business logic layer and interface layer.

[0083] (2) Generation of three-tier architecture

[0084] Establish interfaces, business logic and general data access models for basic operations such as adding, modifying, deleting, querying, importing and exporting, and adaptively generate basic operations corresponding to each object by integrating the information of each object.

[0085] ① Construction of the interface layer: It is a web-based interface layer, which includes two aspects: the structural layout of the page and the controls for human-computer interaction:

[0086] a. Page structure layout: The page structure is used to build the page layout, and its content is stored in XML format and managed in an informationized manner. Each page structure can be used to create a page template, or it can be embedded in other page structures as a substructure to form a logical new structure, thereby providing a logical page layout basis for creating page templates. Figure 1 As shown, in each page structure, the regions where substructures or page unit blocks can be embedded are marked (such as A, B, C, D, and E regions in this figure). The substructure represented by Figure (b) is embedded in the region marked with B in Figure (a) to generate the page structure shown in Figure (c), forming regions A, C, D, and E. Other page structures can be embedded again in these regions, and corresponding page unit blocks can also be embedded;

[0087] b. Controls for human-computer interaction: Dynamically generate a human-computer interaction interface in the corresponding area based on object attributes, operations, and associated information. Taking the example of adding or modifying the input method of the operation interface, this operation usually persists the object to the database. The text-type attributes of non-enumerated properties in the object accept input in the form of text boxes, the enumerated properties accept input in the form of selection boxes, the remark-type attributes accept input in the form of text areas, and the foreign key attributes accept input in the form of selection boxes that are pre-bound to the primary key of the associated object. In the query operation, the attributes allowed to be queried in the object attribute information are screened and the query interface is constructed in combination with the associated information, such as query field options, selection boxes for enumerated type attributes, query result display tables, etc. The information entered and submitted by the user in the interface layer will be sent to the business logic layer, which is also dynamically constructed based on the object, for processing.

[0088] ② Construction of business logic layer: The business logic layer is dynamically constructed by combining general business logic algorithm templates with relevant information of specific objects. Figure 2 As shown, a corresponding XML file is generated based on the object information stored in the database. When the program of the business logic part is executed, the object attribute data, the attributes that are not allowed to be empty, the attributes that are not allowed to be repeated, the attribute size limit, the object association attributes and other information are extracted from the XML respectively, and then the business logic layer is generated in combination with the general business logic layer algorithm template.

[0089] The general business logic algorithm template is based on the specific business logic of the basic information module, and integrates the basic business logic unit blocks to establish the business logic of operations such as adding, modifying, deleting, querying, importing, and exporting. The general business logic template is combined with object attributes, associated information, and operation information to generate a business logic layer, which is responsible for the business logic control of the current object operation, such as Figure 3 Taking the business logic part of adding operation as an example, according to the module to which the information submitted by the interface layer belongs (i.e. the object mentioned above), the corresponding object information XML file is accessed, the attribute information in the XML is obtained and matched to the business logic template to generate the corresponding business logic layer, thereby realizing the business logic control of the information submitted by the interface layer.

[0090] ③Construction of data access layer: First, construct two general data access modes: query mode and non-query mode, which receive SQL query statements and SQL non-query statements respectively to perform corresponding data access. When executing query operations, the corresponding SQL query statements are dynamically generated according to the object identifier (table name), attribute identifier (field name), data type and object association (table association) information, and run based on the query mode; when performing operations such as adding, modifying, deleting information and creating, modifying, and deleting tables, the corresponding non-query SQL statements are generated according to the object identifier, attribute identifier, and data type information, and run based on the non-query mode.

[0091] Secondly, based on the ideas and elements of the above model, the MIS model is established. This model makes the user interface, business logic, data access and objects of MIS universal, templated, informationized and visualized. Based on this, the various parts of the MIS basic module are dynamically constructed, and the version, module, structure, user and authority of MIS are managed informationized. By informationizing the elements of MIS construction, the purpose of dynamically generating MIS is achieved. Figure 4 As shown, this model consists of MIS version, users and permissions, system structure, system modules, general views, general business logic, general data access, object information management modules and basic database (Data Base, DB) for storing and building MIS information. The MIS database tables and inter-table associations are built based on the attributes and association information of the objects to form the basic part of the MIS database; the corresponding operation information is generated according to the object attributes and behaviors, and the operation information is integrated with the informationized view template, business logic template, and data access template to dynamically generate the corresponding interface layer, business logic layer, and data access layer, thereby building a three-tier MIS architecture that matches the database, and saving the three-tier architecture information of the object to the basic database for building the MIS. It specifically includes:

[0092] (1) Version management

[0093] To achieve the control of the version and status of the MIS software itself, MIS only corresponds to a certain version at a certain moment. The version information of MIS is stored in the basic database for building MIS, which records the status of each version of MIS. Each version information corresponds to the corresponding system structure information and user and permission information. Since the system structure, modules, user permissions, etc. below are all managed by information technology, it is supported to build and test the new version while the MIS is running, and switch directly when the new version is built; or roll back from the current version status to the previous version status. Through version management, MIS can be quickly updated or rolled back to a specific state, so as to better cope with the control of MIS changes.

[0094] (2) System structure and module management

[0095] The system structure information records the organizational structure between modules at all levels under the MIS and the status of each module under the structure, which corresponds to a number of module information. The module information records the functional modules at all levels in the MIS, which are divided into two categories: basic modules and custom modules:

[0096] ① Basic module: It is a module for managing basic information in MIS, such as the management modules of on-campus units, positions, majors, classes, faculty, students, etc. in the digital campus. In addition to its own significance and value, this part of information is also the information foundation for supporting custom modules. The basic module is adaptively generated by combining the general interface, business logic, data access template and module object information described above to realize information management.

[0097] ② Custom modules: These are modules designed based on basic information according to specific needs, such as some statistical analysis, process control and special function modules. These modules are usually implemented by programmers through programming.

[0098] (3) General view management

[0099] It manages the structure of the page view, controls and the general view template generated based on them in an informationized form, providing the necessary foundation for the subsequent generation of the interface layer by combining module object information and operations.

[0100] (4) General business logic management

[0101] The basic business logic of MIS is fragmented and decomposed into several unit logic blocks and managed in an informationized form. When constructing the basic unit module of MIS, business logic templates are generated according to business logic needs, providing the necessary foundation for the subsequent business logic layer of the software generated by combining object information.

[0102] (5) General data access management

[0103] By combining object structure information with object-relation mapping (ORM), data access management based on object structure is realized. The basic data access mode is divided into query and non-query. A data access template is established. When building the MIS basic unit module, SQL statements are dynamically generated according to object attributes and operations, and the data access layer of the software is generated in combination with the data access template.

[0104] (6) Object information management

[0105] By informatizing the object attributes, behaviors, and relationships between objects, the basic modules and databases of MIS software are built based on object information. The database tables and relationships between tables are adaptively built according to the object attributes and relationships between objects to form the basic structure of the MIS database; the basic object information is combined with the above interface, business logic, and data access templates to build the software interface layer, business logic layer, and data access layer, thereby realizing the interaction between these three layers and between the data access layer and the database, such as Figure 5 shown.

[0106] Finally, based on the above MIS generation model, a MIS adaptive generator is established. The MIS adaptive generator includes:

[0107] (1) Basic structure and function

[0108] This generator is divided into the MIS basic module and the corresponding database generation part and the MIS structure management part. Among them, the MIS basic module and the corresponding database generation part are composed of objects, views, business logic, and data access management. The MIS database infrastructure is constructed based on object information. The corresponding interface layer, business logic layer, and data access layer are generated based on object information and views, business logic, and data access information, respectively, to achieve adaptive generation of the MIS basic information management module based on object information and three-tier architecture templates. The MIS structure management part is composed of version management, user and permission management, system structure management, and system module management. Version management is responsible for the management and control of MIS versions, which corresponds to the system structure and users and permissions of each version. The system structure is responsible for the organization and management of system modules, such as the module hierarchy, operating status, etc., which corresponds to the system module information; user and permission management is responsible for the management and control of users and corresponding permissions in a specific version of MIS, and permission information is associated with system module information; system module management is responsible for managing the basic information modules generated by object information and general templates in MIS, as well as custom MIS modules designed by programmers according to personalized needs. The basic composition and operation process of the MIS generator are shown in the attached figure. Figure 6 As shown, it specifically includes:

[0109] ① Database adaptive generation: dynamically build tables in the database and the relationships between tables by managing object attributes and relationships between objects. Map the object attributes to the corresponding table fields in the database, and map the relationships between objects to the corresponding relationships between data tables, thereby building the basic structure of the MIS database. Figure 7 As shown, the identification names of object 1 and object 2 correspond to tables 1 and 2 in the database respectively, and the internal attribute identifiers of the objects correspond to the fields of their respective data tables respectively. Each table has a "primary key ID". When object 2 is associated with object 1, the foreign key attribute of object 2 is mapped to the foreign key field of table 2 and associated with the "primary key ID" of table 1.

[0110] ② Generation of basic modules: MIS basic modules are generated by combining object information with views, business logic, and data access templates. They are divided into:

[0111] a. Generation of interface layer: The view management part is responsible for the management of interface layout, basic information of controls, and general interface templates. On the basis of integrating the interface layout and establishing the corresponding general template, the corresponding controls are generated according to the attributes and operation information of the object and integrated into the MIS interface. Taking the common editing interface as an example, on the basis of establishing the editing interface template, according to the following Figure 8 The data types, enumeration conditions, foreign key associations and other information of each object attribute shown automatically generate corresponding controls, and integrate each control into the template to form an interactive interface and a method for obtaining control values ​​when the interface is submitted.

[0112] b. Generation of business logic layer: The business logic management part generalizes and manages the logic of basic operations such as adding, modifying, deleting, and querying in MIS in an informationized manner. It integrates basic logic information according to object operation information to form a corresponding business logic layer template, and then generates the corresponding business logic layer in accordance with the business logic generation method of the model described above in combination with object attribute information. The basic process is shown in the attached figure. Fig. 9 shown.

[0113] c. Generation of data access layer

[0114] The data access management part classifies the basic database access operations such as adding, modifying, deleting, and querying in MIS into a universal and templated management mode. It dynamically generates the corresponding SQL statements based on the data access requirement information, object operation information, attribute information, and association information of the business logic layer, and generates the data access layer in combination with the corresponding data access template. The basic process is as follows: Fig.10 shown.

[0115] ③MIS structure management

[0116] Version management is responsible for controlling the version status of MIS and managing the information of each version. The version information corresponds to the MIS structure information and the user and permission information. The permission information is managed based on the MIS structure information, and the MIS structure information records the organizational structure relationship of each module in the MIS. There is a many-to-one relationship between the version and the MIS structure, a many-to-one relationship between the user permission and the MIS structure, and a many-to-many relationship between the MIS structure and the module. The basic operation mode of this part is shown in the attached figure. Fig.11 shown.

[0117] (2) Generator Implementation Process

[0118] The present invention uses ASP.NET technology to implement the MIS generation manager, and on this basis successfully generates a certain university teaching evaluation management system software. The implementation of the main parts of the management system software is described below.

[0119] ①Management of object information

[0120] Object information management mainly includes four parts: basic object information, object attribute information, object operation information, and object association information. The basic object information includes the name and identification name, as shown in Table 1. When establishing the table corresponding to the object in the database, the object identification name is used as the table name. When establishing the data access layer, the identification name is used as the basis for generating relevant SQL statements, providing the premise for the interaction between the data access layer and the database. The object name is used to generate corresponding labels when establishing the interface layer, such as module titles, menu items, etc.

[0121] Table 1 Basic information of objects

[0122]

[0123] Object attribute information is associated with object basic information, records the attribute data of the object, and provides support for further establishing the structure of the table in the database and the three-layer structure of the MIS, as shown in Table 2. The attribute name is mainly used to generate the corresponding field label when establishing the interface layer, and the attribute identifier is used to generate the field name of the corresponding table in the database, the control ID of the interface layer, and the construction basis of the SQL statement of the data access layer. The attribute type is used to generate the field type of the database table, the corresponding control of the interface layer, and the construction basis of the SQL statement of the data access layer. The attribute width is used to generate the field width of the database table, the input width limit of the interface control, and the logical judgment of the business logic layer. The value range of the attribute is used to generate the logical judgment of the business logic layer. Other restrictive information of the attribute (such as whether it is allowed to be empty, whether it is allowed to be repeated, whether it is a query field, etc.) is used to generate the field limit of the database table, the input and output limit of the interface layer, the logical judgment of the business logic layer, and the construction basis of the SQL statement of the data access layer.

[0124] Table 2 Basic information of object attributes

[0125]

[0126] The object association information records the primary and foreign key information of the associated and associated objects, based on which the association relationship between tables in the database, the linkage of interface layer controls, the business logic association judgment and the SQL multi-table association query basis are established, as shown in Table 3.

[0127] Table 3 Object association information

[0128]

[0129] Object operation information mainly records the operation characteristics of the object, and it is also associated with the basic information of the object. As shown in Table 4, the object operation information combines attributes, associated information and corresponding general templates to generate the operation interface, business logic and data access SQL statements of the corresponding functional module, thereby realizing the construction of the interface layer, business logic layer and data access layer.

[0130] Table 4 Object operation information

[0131]

[0132] ② Management of general templates: Template the interface layer, business logic layer, and data access layer to provide a basis for the subsequent generation of corresponding modules in combination with object information. Manage and combine them according to the characteristics of operations such as adding, modifying, deleting, querying, importing, and exporting. Take adding operations as an example to introduce the construction method of the three-layer template:

[0133] a. Interface template (mainly introduces the management and generation of interface control codes): All kinds of interface controls are managed in an informationized form. When generating interface layer templates, corresponding controls are retrieved and combined according to object properties to form an interface layer control group. By setting specific tags in the control code and replacing them with corresponding parameters when generating interface templates, automatic generation of interface layer controls is achieved. Taking a common text box as an example, its basic code is as follows:

[0134] <input type="text"

[0135] style="width:$w$px;height:$h$px;……"

[0136] name="$n$"id="$i$">

[0137] When generating the interface layer template, the text box width and height values ​​are set through visual operations to replace "$w$" and "$h$", and the object attribute identifier is used to replace "$n$" and "$i$". When submitting, the content in the text box can be obtained through the object attribute identifier, and then the object in the MIS is constructed and handed over to the business logic layer for processing.

[0138] b. Business logic template: Fragment the business logic and decompose it into several common logic blocks. When generating business logic, call and combine the corresponding logic blocks as needed to form a business logic template, and then combine the object attributes and operation information to form the corresponding business logic layer, as shown in the attached figure. Fig.12 shown.

[0139] Take the business logic of adding an operation as an example. Assuming that the number in an object attribute cannot be empty, is 8 digits long, and cannot be repeated, the process of adding an operation is as follows: Fig.13 As shown. Fig.13 It can be seen that it is necessary to call the data empty judgment logic block, data length judgment logic block, and data duplication logic block in the general business logic block to combine and generate a business logic template, and on this basis, match the number attribute with it to form this part of the business logic. The business logic generation mode here is as follows Fig.14 As shown, the XML file formed based on the object attribute information records the attribute set that is not allowed to be empty, the attribute value length limit set, and the attribute set that is not allowed to be repeated (from the above assumption, it can be seen that there are only numbers in the attribute set here). According to the category of the attribute set, the corresponding general business logic block is called and combined to form a business logic template, and then the business logic of adding operations is generated in combination with the above three attribute sets (here only the numbers are included).

[0140] c. Data access template: Establish basic data access classes, encapsulate query and non-query general data access methods. On the basis of establishing the corresponding tables of each object through the database generation method in the model described above, establish query and non-query data access operation methods according to object operation information, generate corresponding SQL statements based on object identification, attribute identification, attribute type, association information, operation information, etc., and call the corresponding general data access method to implement data access, thereby building a data access layer. The process is shown in the attached figure. Fig.15 shown.

[0141] Example:

[0142] In order to verify the effectiveness of the generation manager proposed in this invention, it is applied to the development of a teaching evaluation management system project in a certain university. All basic functional modules and component structures of the teaching evaluation management system are managed in an informationized form, and the system component structure and module operation status can be changed arbitrarily. The system module organization management interface is shown in the attached figure. Fig.16 shown.

[0143] Among the 46 first-level modules of the system, 33 basic information modules are managed in the form of objects. Through the information management objects and their attributes, operations, associations and other key elements, the corresponding MIS basic information management modules and databases are adaptively generated. The corresponding management interface of the generator is as follows: Fig.17 , Fig.18 and Fig.19 The interactive interface, business logic, and data access parts of the MIS basic module are generated based on the basic general templates and object information of each layer. The basic information management interface is shown in Fig. 20 As shown, the basic information editing interface is as follows Fig.21 There are 13 more modules that are customized based on the basic modules and integrated into the module and organizational structure management of the generator.

[0144] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. An adaptive MIS generator based on object information, It is characterized in that The generator includes: MIS basic function generation module and corresponding database generation module and MIS structure management module, The MIS basic function generation module and the corresponding database generation module are composed of four basic modules: object information management, general view management, general business logic management, and general data access management; Build the MIS database infrastructure based on object information, And generate the corresponding interface layer, business logic layer, and data access layer based on objects and general view basic elements, general business logic basic elements, and general data access basic elements respectively; The MIS structure management module consists of version management, user and authority management, system structure management, and system module management. Version management, used to control MIS versions; System structure management, used for the organization and management of system modules; User and permission management, used to control users and corresponding permissions in a specific version of MIS; System module management is used to manage the basic information modules generated by object information and general templates in MIS, as well as customized MIS modules; and user and authority management is associated with system module management information; The object information management includes object basic information, object attribute information, object operation information and object association information; and, The steps of constructing the MIS database infrastructure are: Step 1: Map the attributes of the object information into corresponding table fields in the database; Step 2: Map the associations between objects into corresponding associations between data tables; Step 3: Establish the basic structure of MIS database based on the results of steps 1 and 2; The steps for generating the interface layer are: Step 1: Based on the basic elements of the general view, integrate the interface layout, basic information of the controls and the general interface template to generate the corresponding general interface template; Step 2: Generate corresponding controls according to the properties and operation information of the object, combine the controls with the general interface template to form an interactive interface and interactive interface controls, thereby generating an interface layer; The steps for generating the business logic layer are: Step 1: The business logic management module generalizes and informatizes the logic of common basic operations of adding, modifying, deleting, and querying in MIS to obtain the common business logic basic elements of various operations; Step 2: Generate a corresponding business logic layer template according to the obtained general business logic basic elements, and then generate a corresponding business logic layer according to the business logic generation method of the MIS model in combination with the object attribute information; The steps for generating the data access layer are: Step 1: Classify the common basic elements of adding, modifying, deleting and querying the database in MIS, and manage them in a general and templated manner to obtain data access templates; Step 2: Dynamically generate corresponding SQL statements based on various data-based logical judgments and data access information generated during data update data access in the business logic layer, object operation information and attribute information in object information, and management information; Step 3: Combine the SQL statement with the data access template to generate the data access layer.

2. A method for using the object information-based MIS adaptive generator according to claim 1, It is characterized in that The MIS adaptive generator works as follows: Step 1: Dynamically build tables in the database and the relationships between tables by managing object attributes and relationships between objects. Map object attributes to corresponding table fields in the database, and map relationships between objects to corresponding relationships between data tables, thereby building the basic structure of the MIS database. Step 2: Generate corresponding controls based on the object's attributes and operation information and integrate them into the MIS interface. Automatically generate corresponding controls based on the object's attribute data type, enumeration, and foreign key association information, and integrate each control into the template to form an interactive interface and a way to obtain control values ​​when the interface is submitted; Step 3: Integrate basic logic information according to object operation information to form a corresponding business logic layer template, and then generate the corresponding business logic layer in combination with object attribute information; Step 4: Dynamically generate corresponding SQL statements based on the data access requirement information, object operation information, attribute information and association information of the business logic layer, and generate the data access layer in combination with the corresponding data access template.