Web program rapid development device, development method and related equipment

By using a rapid web application development framework and leveraging JSON configuration files and business processing classes, the cumbersome traditional web business development process is solved, enabling an efficient and flexible development process.

CN110162299BActive Publication Date: 2026-03-17NIO ANHUI HLDG CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-30
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Traditional web business development processes are cumbersome, requiring the writing of a large amount of code, resulting in low development efficiency and a high risk of human error.

Method used

It adopts a rapid web application development framework, including a web application generation module, an interface module, a control module, and a framework kernel module, and achieves rapid generation and extended development through JSON configuration files and business processing classes.

Benefits of technology

It significantly shortens development time, reduces human error, and improves development efficiency and product launch speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110162299B_ABST
    Figure CN110162299B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of web development, and particularly relates to a web program rapid development device, a development method and related equipment, aiming at improving the development efficiency of the web program. The development framework of the present application comprises a web program generation module, an interface module, a control module and a framework kernel module; wherein the web program generation module is configured to generate a target web program based on the interface module, the control module and the framework kernel module; the interface module is configured to display the page of the target web program; the control module is configured to receive a page request and forward it to the framework kernel module for processing, obtain the returned processing result and display it through the interface module; and the framework kernel module is configured to load the target web program, process the data / logic business of the target web program according to the page request and return the processing result to the control module. The present application shortens the time spent on repeated work and reduces the human-induced errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of web development technology, and specifically to a rapid web application development device, development method, and related equipment. Background Technology

[0002] With the development of internet technology, enterprises have widely used web technology in both internal management and user services.

[0003] Traditional web application development processes involve a series of tedious steps, including page design, database structure design, building a B / S architecture platform, writing database-side code, developing business logic code, developing control flow code, developing the user interface layer, and deploying, testing, and adjusting the pages. Therefore, a large amount of code needs to be written, resulting in low development efficiency. Furthermore, writing a large amount of code inevitably leads to more human errors and requires a considerable amount of debugging time. Summary of the Invention

[0004] To address the aforementioned problems in the prior art, this invention proposes a rapid web application development device, development method, and related equipment, which improves development efficiency or reduces errors caused by human factors.

[0005] In a first aspect, the present invention provides a rapid web application development framework, the framework comprising: a web application generation module, an interface module, a control module, and a framework kernel module;

[0006] The web application generation module is configured to generate a target web application based on the interface module, the control module, and the framework kernel module.

[0007] The interface module is configured to: display the page of the target web application, receive data input from the page, and send a page request to the control module;

[0008] The control module is configured to: receive the page request and forward it to the framework kernel module for processing; obtain the processing result returned by the framework kernel module and display it through the interface module;

[0009] The framework kernel module is configured to: load the target web application; process the data / logic of the target web application according to the page request, and return the processing result to the control module.

[0010] Preferably, the web application generation module includes: a basic project generation unit;

[0011] The basic project generation unit is configured to: create a database, and generate a basic database table in the database based on a preset data table; and generate the target web application based on the preset basic functional components and the database.

[0012] Preferably, the web application generation module further includes: a business function module generation unit;

[0013] The business function module generation unit is configured to generate business function components based on a custom data table structure, and then add the business function components to the target web application.

[0014] Preferably, each of the basic functional components and each of the business functional components includes: a JSON configuration file and a business processing class;

[0015] The JSON configuration file includes: a Schema JSON file and one or more Mapping JSON files;

[0016] The Schema JSON file is the configuration file for the page corresponding to the basic functional component or the business functional component; each Mapping JSON file corresponds to a form on the page; and the business processing class is used to execute the corresponding business processing function on the page.

[0017] Preferably, the framework kernel module includes: a component identification and loading unit and a page request processing unit;

[0018] The component identification and loading unit is configured to identify and load components under a preset path based on preset attribute tags;

[0019] The page request processing unit is configured to: parse the JSON configuration file in the corresponding component according to the page request, perform read and write operations on the database according to the parsing result and / or call the business processing class of the corresponding component to perform logical business processing, and send the access result and / or processing result to the control module.

[0020] Preferably, the control module includes: a forwarding unit and a binding unit;

[0021] The forwarding unit is configured to receive the page request sent by the interface module and forward it to the framework kernel module for processing.

[0022] The binding unit is configured to bind the JSON configuration file corresponding to the page request and the data or processing results obtained by the framework kernel module, and display them through the interface module.

[0023] Preferably, the basic database tables include: a login table, a permission table, a menu table, a job table, a department table, and initial data.

[0024] Preferably, the basic project generation unit is further configured to: copy a preset general page to the corresponding directory of the target web application;

[0025] The preset general pages include: query page, add page, update page, delete page, and preview page.

[0026] Preferably, the basic project generation unit is further configured to set custom local pages in the Schema Json file.

[0027] Preferably, the business processing class includes: one or more preset processing functions and / or processing functions obtained by modifying the preset processing functions and / or extended processing functions.

[0028] Preferably, the page request processing unit is further configured to cache the page configuration file.

[0029] Preferably, the page request processing unit is further configured to: perform error checking on the data input to the current page according to preset verification rules and / or extended verification rules.

[0030] A second aspect of the present invention provides a rapid web application development method, based on the aforementioned rapid web application development framework, the development method comprising:

[0031] Create a database and generate basic database tables in the database based on the preset data tables;

[0032] The target web application is generated based on the pre-set basic functional components and the database.

[0033] Preferably, the development method further includes:

[0034] Business function components are generated based on a custom data table structure, and these components are then added to the target web application.

[0035] Preferably, both the basic functional components and the business functional components include: a JSON configuration file and a business processing class;

[0036] The JSON configuration file includes: a Schema JSON file and one or more Mapping JSON files.

[0037] Preferably, the development method further includes:

[0038] Copy the preset generic page to the corresponding directory of the target web application.

[0039] Preferably, the development method further includes:

[0040] Set up custom local pages in the Schema JSON file.

[0041] Preferably, the development method further includes:

[0042] Modify and / or add extended processing functions to the pre-defined processing functions in the business processing class.

[0043] Preferably, the development method further includes:

[0044] Add extended validation rules.

[0045] In a third aspect, the present invention provides a web application, wherein the web application is developed using the rapid web application development method described above.

[0046] In a fourth aspect, the present invention provides a storage device storing a program adapted to be loaded and executed by a processor to implement the rapid web application development method described above.

[0047] A fifth aspect of the invention also provides a processing apparatus comprising:

[0048] A processor, suitable for executing programs;

[0049] A memory adapted to store the program;

[0050] The program is adapted to be loaded and executed by the processor to implement the rapid web application development method described above.

[0051] Compared with the closest prior art, the present invention has the following beneficial effects:

[0052] The rapid development framework of this invention includes pre-defined operations for common pages and supports extended development, enabling the rapid generation of a unified framework without sacrificing flexibility. Therefore, this invention significantly reduces the time web application developers spend on repetitive and tedious tasks, reduces human error, thereby accelerating product launches and greatly improving work efficiency.

[0053] Solution 1: A rapid web application development framework, characterized in that the development framework includes: a web application generation module, an interface module, a control module, and a framework kernel module;

[0054] The web application generation module is configured to generate a target web application based on the interface module, the control module, and the framework kernel module.

[0055] The interface module is configured to: display the page of the target web application, receive data input from the page, and send a page request to the control module;

[0056] The control module is configured to: receive the page request and forward it to the framework kernel module for processing; obtain the processing result returned by the framework kernel module and display it through the interface module;

[0057] The framework kernel module is configured to: load the target web application; process the data / logic of the target web application according to the page request, and return the processing result to the control module.

[0058] Option 2: Based on the development framework described in Option 1, the feature is that...

[0059] The web application generation module includes: a basic project generation unit;

[0060] The basic project generation unit is configured to: create a database, and generate a basic database table in the database based on a preset data table; and generate the target web application based on the preset basic functional components and the database.

[0061] Option 3: According to the development framework described in Option 2, the web application generation module further includes: a business function module generation unit;

[0062] The business function module generation unit is configured to generate business function components based on a custom data table structure, and then add the business function components to the target web application.

[0063] Option 4: According to the development framework described in Option 3, each of the basic functional components and each of the business functional components includes: a JSON configuration file and a business processing class;

[0064] The JSON configuration file includes: a Schema JSON file and one or more Mapping JSON files;

[0065] The Schema JSON file is the configuration file for the page corresponding to the basic functional component or the business functional component; each Mapping JSON file corresponds to a form on the page; and the business processing class is used to execute the corresponding business processing function on the page.

[0066] Option 5: The development framework described in Option 4 is characterized in that the framework kernel module includes: a component identification and loading unit and a page request processing unit;

[0067] The component identification and loading unit is configured to identify and load components under a preset path based on preset attribute tags;

[0068] The page request processing unit is configured to: parse the JSON configuration file in the corresponding component according to the page request, perform read and write operations on the database according to the parsing result and / or call the business processing class of the corresponding component to perform logical business processing, and send the access result and / or processing result to the control module.

[0069] Option 6: According to the development framework described in Option 5, the control module includes: a forwarding unit and a binding unit;

[0070] The forwarding unit is configured to receive the page request sent by the interface module and forward it to the framework kernel module for processing.

[0071] The binding unit is configured to bind the JSON configuration file corresponding to the page request and the data or processing results obtained by the framework kernel module, and display them through the interface module.

[0072] Option 7: Based on the development framework described in Option 2, the basic database tables include: a login table, a permission table, a menu table, a job table, a department table, and initial data.

[0073] Option 8: According to the development framework described in Option 4, the basic project generation unit is further configured to: copy the preset general pages to the corresponding directory of the target web application;

[0074] The preset general pages include: query page, add page, update page, delete page, and preview page.

[0075] Option 9: According to the development framework described in Option 8, the basic project generation unit is further configured to set custom local pages in the Schema Json file.

[0076] Option 10: According to the development framework described in Option 9, the business processing class includes: one or more preset processing functions and / or processing functions obtained by modifying the preset processing functions and / or extended processing functions.

[0077] Solution 11: According to the development framework described in Solution 5, the page request processing unit is further configured to cache the page configuration file.

[0078] Solution 12: According to the development framework described in Solution 11, the page request processing unit is further configured to: perform error checking on the data input to the current page according to preset verification rules and / or extended verification rules.

[0079] Solution 13: A rapid web application development method, characterized in that it is developed based on any one of the rapid web application development frameworks described in Solutions 1-12, and the development method includes:

[0080] Create a database and generate basic database tables in the database based on the preset data tables;

[0081] The target web application is generated based on the pre-set basic functional components and the database.

[0082] Option 14: The development method according to Option 13, characterized in that the development method further includes:

[0083] Business function components are generated based on a custom data table structure, and these components are then added to the target web application.

[0084] Option 15: The development method according to Option 14, characterized in that both the basic functional components and the business functional components include: a JSON configuration file and a business processing class;

[0085] The JSON configuration file includes: a Schema JSON file and one or more Mapping JSON files.

[0086] Solution 16: The development method according to Solution 15, characterized in that the development method further includes:

[0087] Copy the preset generic page to the corresponding directory of the target web application.

[0088] Solution 17. The development method according to Solution 16, characterized in that the development method further includes:

[0089] Set up custom local pages in the Schema JSON file.

[0090] Solution 18: The development method according to Solution 17, characterized in that the development method further includes:

[0091] Modify and / or add extended processing functions to the pre-defined processing functions in the business processing class.

[0092] Option 19: The development method according to Option 18, characterized in that the development method further includes:

[0093] Add extended validation rules.

[0094] Scheme 20: A web application, characterized in that the development method of the web application is any one of Schemes 13-19, which is a rapid web application development method.

[0095] Solution 21: A storage device storing a program, characterized in that the program is adapted to be loaded and executed by a processor to implement the rapid web application development method described in any one of Solutions 13-19.

[0096] Option 22: A processing device, comprising:

[0097] A processor, suitable for executing programs;

[0098] A memory adapted to store the program;

[0099] The program is characterized in that it is adapted to be loaded and executed by the processor to implement the rapid web application development method described in any one of schemes 13-19. Attached Figure Description

[0100] Figure 1 This is a schematic diagram illustrating the structure of an embodiment of the web application rapid development framework of the present invention;

[0101] Figure 2 This is a schematic diagram illustrating the structure of another embodiment of the web application rapid development framework of the present invention;

[0102] Figure 3 This is a schematic diagram illustrating the main steps of an embodiment of the rapid web application development method of the present invention. Detailed Implementation

[0103] Preferred embodiments of the present invention will now be described with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.

[0104] This invention utilizes a self-developed JSON configuration solution. Compared to the cumbersome code writing involved in traditional page development, the development interface requires fewer steps, and developers can modify the default code as needed, offering strong consistency and flexibility. One of the highlights of this development kit is its virtually code-free development interface; a standard web page can be implemented with just a few lines of JSON code (and programmers can rewrite the default code as needed for customization). The web application rapid development framework of this invention primarily uses the following programming languages: PHP, Python, Javascript, and PL / SQL.

[0105] Figure 1 This is a schematic diagram illustrating the structure of an embodiment of the rapid web application development framework of the present invention. Figure 1 As shown, the web application rapid development framework 10 of this embodiment includes: an interface module 11, a control module 12, a framework kernel module 13, and a web application generation module 14.

[0106] The interface module 11 is configured to: display the page of the target web application, receive data input from the page, and send a page request to the control module; the control module 12 is configured to: receive the page request and forward it to the framework kernel module for processing; obtain the processing result returned by the framework kernel module and display it through the interface module; the framework kernel module 13 is configured to: load the target web application; process the data / logic business of the target web application according to the page request and return the processing result to the control module; and the web application generation module 14 is configured to: generate the target web application based on the interface module, the control module, and the framework kernel module.

[0107] In this embodiment, the web application generation module 14 includes a basic project generation unit 141. The basic project generation unit 141 is specifically configured to: create a database and generate basic database tables in the database based on preset data tables; and generate a target web application based on preset basic functional components and the database. The basic database tables include: a login table, a permission table, a menu table, a job table, a department table, etc., as well as the initial data in these tables.

[0108] Optionally, the basic project generation unit 141 is also configured to copy pre-set general pages to the corresponding directory of the target web application. The pre-set general pages include: query pages, add pages, update pages, delete pages, and preview pages, etc.

[0109] Each basic functional component includes: a JSON configuration file and a business processing class. Among them, the JSON configuration file includes: a Schema Json file, and one or more Mapping Json files; the Schema Json file is the configuration file for the page corresponding to the basic functional component; each Mapping Json file corresponds to a form in the page; the business processing class is used to execute the corresponding business processing function in the page. One or more processing functions are preset in the business processing class, and we can also modify the preset processing functions therein, or write additional extended processing functions.

[0110] In this embodiment, the web program generation module 14 is actually a web project generation tool that matches the framework. The compiled basic web project, including basic functional components and resource files, is preset in the generation tool. When creating a new project using this tool, first create an empty database, then configure the database connection address in the tool, select the corresponding database type, fill in the corresponding solution name, and the virtual directory of the program to be generated. The tool will record this information for use in subsequent operations. Click the generation button in the tool, and the tool will generate the basic database tables required by the system in the database, such as: login table, permission table, menu table, position table, etc., as well as some initial data, such as the default superuser and the initial system menu (login management, position management, menu management, and department management, etc.), according to the configured database connection and the belonging database type by using the preset sql script file in the tool. The tool copies the preset basic functional components to the directory configured by the user, and then generates a virtual site, and the user can access this basic web application, which contains basic system functions, such as login management, position management, menu management, and department management, etc.

[0111] In traditional web project development, the Query, View, and Modify pages for each entity are cumbersome, requiring repetitive code writing and wasting significant manpower. This embodiment solves this problem by using a generic page approach. The generic pages in this embodiment mainly include: QueryPage, CreatePage, ModifyPage, and ViewPage. When accessing a page, the URL is appended with the path parameter of the entity name (e.g., QueryPage?Path=Signature / SignList, which retrieves the SignList Schema JSON object from the Signature folder under the Schema JSON directory; the Schema JSON references the Mapping JSON to obtain the entity object). One Schema JSON file can correspond to multiple Mapping JSON files, allowing different entities to be loaded on the same page. After obtaining the Schema JSON path parameter, the program locates the corresponding JSON file, i.e., the JSON file under the Module. By parsing the various attributes in the Schema JSON and Mapping JSON, the framework's built-in generic pages (QueryPage, CreatePage, ModifyPage, ViewPage) are used to generate uniform style controls or lists for the functional interface.

[0112] When the generic page cannot meet our needs, we can also set up custom local pages in the Schema JSON file. We write the content we need in the custom page, and set the path of the custom local page through attributes such as QueryButtonCustom, QueryButtonBottom, and QueryButtonExcel in the Schema JSON file. The generic page reads these attribute values; if they are empty, it uses the framework's default page; otherwise, it uses the custom local page and then loads it into the generic page. This achieves the implementation of custom extended pages for specific functions.

[0113] In this embodiment, the framework kernel module 13 includes: a component identification and loading unit 131 and a page request processing unit 132.

[0114] The component identification and loading unit 131 is configured to identify and load components under a preset path according to preset attribute tags; the page request processing unit 132 is configured to parse the JSON configuration file in the corresponding component according to the page request, perform read and write operations on the database and / or call the business processing class of the corresponding component to perform logical business processing according to the parsing results, and send the access results and / or processing results to the control module.

[0115] Even if the Schema JSON, Mapping JSON, and assembly files generated by business processing classes from different projects are placed into another project with the same framework, the component identification and loading unit 131 can automatically obtain dynamic library information and register them. Only a menu configuration in the menu management is needed for normal use; it's plug-and-play like a component. This solves the drawbacks of repetitive programming in traditional development systems, allowing modules to be freely assembled.

[0116] Optionally, the page request processing unit 132 is also configured to cache the page configuration file.

[0117] The rapid development framework in this embodiment makes extensive use of caching technology, which improves system performance without affecting development and debugging. The use of caching technology not only improves operating efficiency but also achieves seamless integration between development and operation.

[0118] Optionally, the page request processing unit 132 is further configured to: perform error checking on the data input on the current page according to preset validation rules and / or extended validation rules.

[0119] In this embodiment, the framework kernel module pre-defines more than 20 commonly used validation rules, which can be associated with the fields that need to be checked. Meanwhile, client programs can also extend and develop constraint classes suitable for this framework according to user needs. The page request processing unit 132 can automatically perform some data validation based on the data types configured in the Mapping JSON. For example, when a field is of type Int, it automatically checks that the data must be an integer when creating or modifying a new field; otherwise, it prompts the user to re-enter the data. Similarly, when the Len attribute of a field is 50, it automatically checks that the length of the entered data cannot exceed 50.

[0120] Alternatively, we can create our own constraint class (i.e., add extended validation rules) and inherit from BaseDataValid in the framework to implement our own checking logic; add the constraint class in the AddDataValids method of the business processing class corresponding to the interface that needs to use the constraint.

[0121] In this embodiment, the control module 12 includes: a forwarding unit 121 and a binding unit 122.

[0122] The forwarding unit 121 is configured to receive page requests sent by the interface module 11 and forward them to the framework kernel module 13 for processing; the binding unit 122 is configured to bind the JSON configuration file corresponding to the page request and the data or processing results obtained by the framework kernel module 13, and display them through the interface module 11.

[0123] Figure 2 This is a schematic diagram illustrating the structure of another embodiment of the web application rapid development framework of the present invention. Figure 2 As shown, the web application rapid development framework 20 in this embodiment includes: an interface module 21, a control module 22, a framework kernel module 23, and a web application generation module 24.

[0124] The configurations of the interface module 21, control module 22, and framework kernel module 23 are respectively related to... Figure 1 The interface module 11, control module 12, and framework kernel module 13 are the same, so they will not be described again here.

[0125] The difference is that, in addition to the basic project generation unit 241, the web application generation module 24 in this embodiment also includes a business function module generation unit 242.

[0126] Among them, the configuration of the basic project generation unit 241 and Figure 1 The basic project generation unit 141 is the same as in the previous example, and will not be described again here. The business function module generation unit 242 is configured to generate business function components based on a custom data table structure, and then add these components to the target web application to obtain the extended target web application. Like the basic function components, each business function component also includes: a JSON configuration file and a business processing class. The JSON configuration file includes: a Schema JSON file and one or more Mapping JSON files. The Schema JSON file is the configuration file for the page corresponding to the business function component; each Mapping JSON file corresponds to a form on that page.

[0127] In this embodiment, the business function module generation unit 242 can import database design files (pre-designed table structures) or directly import data tables from the database. It then automatically identifies the data type of each field in each table and automatically matches the control type based on the data type. For example, time is a Time type, gender is a Radio control, and city is a Select type (dropdown). We can also manually adjust the control types. The framework provides more than 10 commonly used controls. After configuration, clicking the generate button will automatically generate Schema JSON and Mapping JSON files. The Schema JSON references the Mapping JSON. At runtime, the framework parses and caches the JSON files according to the JSON paths configured for each menu. When a user accesses the query or edit page, the framework renders the corresponding HTML and CSS controls based on the control types of these fields.

[0128] In addition to the two JSON files, the business function module generation unit 242 also generates a business processing class (DataHandler). This class is tagged with the framework-defined TableReloverAttribute attribute, which includes properties such as RegisterName and Author. A group of classes can be placed under a module / assembly. When the project starts, the component identification and loading unit of the framework kernel module uses reflection to identify and load classes with the TableReloverAttribute attribute, and then maps and caches the corresponding configuration file according to the registration name. When a business request is received, the page request processing unit of the framework kernel module can find the corresponding business processing class from the mapping table through the RegisterName configured in the Schema JSON and instantiate it. This business processing class contains pre-defined processing functions, such as assigning the current time to the modification time field of the table. Programmers can override this function according to the actual situation to achieve the purpose of extended development. Generally, the functions of adding, deleting, modifying, and querying data do not need to override this function; it is only overridden when special logic needs to be implemented.

[0129] Given the importance of Mapping JSON and Schema JSON in this invention, these two types of documents will be specifically described below.

[0130] (1) Mapping JSON:

[0131] exist Figure 1 and Figure 2 In this embodiment, MappingJson is the most important JSON format file, which is stored in the Json\Mapping path in the root directory of the web project.

[0132] Each Mapping JSON file is essentially a field mapping for a form in a backend database table. It's shared by the framework's core module, control module, and interface module, enabling data processing and display all within the same Mapping JSON file. This makes developing web applications much more convenient.

[0133] In the Mapping JSON file, tags such as DataName, ColumnName, DisplayString, Len, ColumnKey, ColumnType, IsEmpty, and Default provide the framework program with the necessary data information. The program uses this information to automatically assign values ​​to the relevant properties, add corresponding data validations, etc., so that it is not necessary to write it in the JSON file and then write it in the program, which greatly reduces the amount of code.

[0134] Meanwhile, the Mapping JSON provides ample display information for the UI module through tags such as DataName, ColumnName, DisplayString, DisplayData, ExtensionData, and CtrlType. By analyzing this JSON file, the UI module automatically generates interfaces such as Create, Modify, View, and Query. Typically, the UI module can complete the display without writing any code.

[0135] The CtrlType control types include: TextBox, Hide, View, CheckBox, File, Password, Select, TextArea, Radio, ViewHide, RadioList, MultiCheck, UploadFile, ViewUploadFile, ViewMultiCheck, HtmlCtrl, DetailHtmlCtrl, and ViewTextArea. The framework generates corresponding HTML controls based on different types configured in the JSON. For example, the generated HTML control type for TextBox is... <input type=”text”> The HTML control type generated by Hide is <input type=”hidden”> The HTML control type generated for CheckBox is

[0136] <input type=”checkbox”> .

[0137] All the formats of Mapping JSON are defined in Mapping.info and Mapping.json, which are stored in the JSON directory.

[0138] Below is an example of a Mapping JSON file, which was generated directly by an auxiliary generation tool and then fine-tuned.

[0139]

[0140]

[0141]

[0142] (2) Schema Json:

[0143] exist Figure 1 and Figure 2 In this embodiment, Schema JSON is the most feature-rich and also the most complex JSON format. It is stored in the Json\Schema path of the web root directory.

[0144] The Schema JSON file is a DataCollection service registered with the system. Each file is actually a description of a function and is used by the framework kernel module, control module, and interface module.

[0145] The DataProcessor tag in the Schema JSON specifies which registered DataProcessor will be used. The corresponding DataProcessor will read the information in the Schema JSON and then generate the appropriate behavior. Different DataProcessors represent different editing page modes, such as single-table, multi-table, and master-detail tables.

[0146] Meanwhile, the Schema JSON defines whether each table needs to be displayed and its display format through tags such as DataHandler, Style, Query, MasterSlave, Main, and Type. This allows the UI module to automatically assemble the required interface by analyzing this JSON file.

[0147] Schema JSON combines Mapping JSON and the DataHandler class for business processing to create various functionalities. This example's development framework provides approximately ten form models, covering commonly used web page patterns. Furthermore, because Schema JSON is shared between the program and the display, no programming is required for functionality; development can be completed simply by configuring the relevant Schema JSON and having the framework parse it.

[0148] The main schemas supported by Schema JSON in this embodiment are shown in Table 1:

[0149] Table 1

[0150]

[0151] Below is an example of a Schema JSON file (single table schema):

[0152]

[0153] Based on the same technical concept as the aforementioned rapid web application development framework, this invention also proposes a rapid web application development method. Figure 3 This is a schematic diagram illustrating the main steps of an embodiment of the rapid web application development method of the present invention. Figure 3 As shown, the development method of this embodiment mainly includes steps S10-S20:

[0154] Step S10: Create a database and generate basic database tables in the database based on the preset data tables;

[0155] Step S20: In the generation tool, the target web application is generated based on the preset basic functional components and database.

[0156] At this point, we have implemented a basic web application that can start and run, containing the basic functions pre-built by the framework.

[0157] Optionally, the development method of this embodiment may further include:

[0158] Step S30: Copy the preset general page to the corresponding directory of the target web application.

[0159] Optionally, the development method of this embodiment may further include:

[0160] Step S40: Set up a custom local page in the Schema JSON file.

[0161] Optionally, the development method of this embodiment may further include:

[0162] Step S50: Generate business function components based on the custom data table structure, and add the business function components to the target web application.

[0163] After starting the target web application with the added business function components, you can create a menu corresponding to the business function components in the "Menu Management" included in the basic components; then configure the permissions of the newly created menu and buttons in "Job Management", and then log in again to use the business function normally.

[0164] Optionally, the development method of this embodiment may further include:

[0165] Step S60: Modify and / or add extended processing functions to the pre-defined processing functions in the business processing class.

[0166] Optionally, the development method of this embodiment may further include:

[0167] Step S70: Add extended verification rules.

[0168] Although the steps in the above embodiments are described in the above order, those skilled in the art will understand that in order to achieve the effect of this embodiment, different steps do not need to be executed in such an order. They can be executed simultaneously (in parallel) or in a reverse order. These simple variations are all within the protection scope of this invention.

[0169] Based on the above development method embodiments, the present invention also proposes an embodiment of a web application, which is obtained by using the rapid web application development method described above.

[0170] Furthermore, the present invention also proposes an embodiment of a storage device in which a program is stored, the program being adapted to be loaded and executed by a processor to implement the rapid web application development method described above.

[0171] Furthermore, the present invention also proposes an embodiment of a processing device, comprising: a processor and a memory. The processor is adapted to execute a program, the memory is adapted to store the program, and the program is adapted to be loaded and executed by the processor to implement the rapid web application development method described above.

[0172] Those skilled in the art will recognize that the method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of electronic hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the invention.

[0173] The technical solution of the present invention has been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of the present invention.

Claims

1. A web program rapid development device characterized by comprising: The development device comprises a web program generation module, an interface module, a control module and a framework kernel module; The web program generation module is configured to generate a target web program based on the interface module, the control module and the framework kernel module; The interface module is configured to display a page of the target web program, receive data input by the page and send a page request to the control module; The control module is configured to receive the page request and forward it to the framework kernel module for processing, obtain a processing result returned by the framework kernel module and display the processing result through the interface module; The framework kernel module is configured to load the target web program, process data / logic business of the target web program according to the page request and return a processing result to the control module; The web program generation module comprises a basic project generation unit, which is configured to create a database, generate basic database tables in the database according to preset data tables, and generate the target web program according to preset basic function components and the database; The framework kernel module comprises a component identification and loading unit and a page request processing unit; The component identification and loading unit is configured to identify and load components under a preset path according to preset attribute tags; The page request processing unit is configured to parse a JSON configuration file in a corresponding component according to the page request, perform read / write operations on the database according to a parsing result and / or perform logic business processing by calling a business processing class of the corresponding component, and send an access result and / or a processing result to the control module.

2. The development device according to claim 1, characterized by The web program generation module further comprises a business function module generation unit; The business function module generation unit is configured to generate a business function component according to a self-defined data table structure and add the business function component to the target web program.

3. The development device according to claim 2, characterized by Each of the basic function components and each of the business function components comprises a JSON configuration file and a business processing class; The JSON configuration file comprises one Schema Json file and one or more Mapping Json files; The Schema Json file is a configuration file of a page corresponding to the basic function component or the business function component, each of the Mapping Json files corresponds to a form in the page, and the business processing class is used to execute a corresponding business processing function in the page.

4. The development device according to claim 1, characterized by The control module comprises a forwarding unit and a binding unit; The forwarding unit is configured to receive the page request sent by the interface module and forward it to the framework kernel module for processing; The binding unit is configured to bind a JSON configuration file corresponding to the page request and data or a processing result obtained by the framework kernel module and display them through the interface module.

5. The development device according to claim 1, characterized by The basic database tables comprise a login table, an authority table, a menu table, a position table, a department table and initial data.

6. The development device according to claim 3, characterized by The basic project generating unit is further configured to copy the preset universal page to a corresponding directory of the target web program. The preset universal page includes a query page, an addition page, an update page, a deletion page, and a preview page.

7. The development device according to claim 6, characterized by The basic project generating unit is further configured to set a customized local page in the Schema Json file.

8. The development device according to claim 7, characterized by The business processing class includes one or more preset processing functions, and / or processing functions obtained by modifying the preset processing functions, and / or extended processing functions.

9. The development device according to claim 1, characterized by The page request processing unit is further configured to cache a page configuration file.

10. The development device according to claim 9, characterized by The page request processing unit is further configured to perform error checking on data input in a current page according to preset checking rules and / or extended checking rules.

11. A web program rapid development method characterized by comprising: The web program rapid development device according to any one of claims 1-10 is developed by a development method including: creating a database, and generating a basic database table in the database according to a preset data table; generating the target web program according to preset basic function components and the database.

12. The development method according to claim 11, characterized by, The development method further includes: generating a business function component according to a customized data table structure, and adding the business function component to the target web program.

13. The development method according to claim 12, characterized by, The basic function component and the business function component each include a JSON configuration file and a business processing class. The JSON configuration file includes a Schema Json file and one or more Mapping Json files.

14. The development method according to claim 13, characterized by, The development method further includes: copying the preset universal page to a corresponding directory of the target web program.

15. The development method according to claim 14, characterized by, The development method further includes: setting a customized local page in the Schema Json file.

16. The development method according to claim 15, characterized by, The development method further includes: modifying the preset processing functions in the business processing class and / or adding extended processing functions.

17. The development method according to claim 16, characterized by, The development method further includes: adding extended checking rules.

18. A web program product, characterized in that The program is adapted to be loaded and executed by a processor to implement the web program rapid development method according to any one of claims 11-17.

19. A storage device having stored therein a program, characterized by The program is adapted to be loaded and executed by a processor to implement the web program rapid development method according to any one of claims 11-17.

20. A processing device, comprising: a processor adapted to execute a program; a memory adapted to store the program; characterized in that the program is adapted to be loaded and executed by the processor to implement the web program rapid development method according to any one of claims 11-17.

Citation Information

Patent Citations

  • Automatically generating web forms from database schema

    CN101460950A

  • The operating method of user interface framework for web-based application construction

    KR101572509B1

  • Web application generator

    US20010037490A1