CN113535166A - Modular page generation method - Google Patents
Modular page generation method Download PDFInfo
- Publication number
- CN113535166A CN113535166A CN202110692764.1A CN202110692764A CN113535166A CN 113535166 A CN113535166 A CN 113535166A CN 202110692764 A CN202110692764 A CN 202110692764A CN 113535166 A CN113535166 A CN 113535166A
- Authority
- CN
- China
- Prior art keywords
- interface
- user
- query
- matrix
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Computational Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Human Computer Interaction (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for generating a modular page, which overcomes the problem that the prior art can not generate page codes on line and comprises the following steps: designing a table structure according to user requirements; automatically generating a set interface mode according to the self-established table; selecting a page template, operating keys according to functions preset by the page template, and selecting a required interface by a user; extracting a data characteristic value through a QR algorithm; generating an online code according to the characteristic value; the invention can freely select the query condition and the edit condition by the user, thereby being convenient for operation; the interfaces are provided with corresponding codes, so that the online generation speed is saved; the reuse of the internal functions of the page is realized.
Description
Technical Field
The invention relates to the field of code generation, in particular to a modular page generation method.
Background
Most functions of project pages are similar, some functions can be repeatedly used, but redevelopment is needed when new pages are built, time and labor are wasted, data of the project pages are complex at present, the front end and the rear end of a popular integral framework in the industry are separated, needed personnel are more, the time and the labor are wasted when all the personnel are in butt joint, the code entry threshold is higher, and common personnel are complex to modify, so that a customized form can be generated according to the needs of a user, codes corresponding to the content of the form are generated, and the generation of online codes for the form is particularly important.
For example, a page construction method for automatically generating initial fields disclosed in chinese patent literature, whose publication number CN112417824A, includes connecting data sources, obtaining commonly used fields, and sorting the commonly used fields according to the degree of use; when a user creates a form page, an initial field is automatically generated; responding to the increasing operation of dragging the field from the field control area by the user and the modification and deletion operation of the existing field in the form area; and when the user clicks, automatically generating a background logic code, saving the file and providing the URL of the file. According to the technical scheme, after the system is connected with the data source, data in the data source are automatically acquired and are subjected to summarizing analysis, fields in the data source are analyzed and judged, when a user creates a new form, an initial field is automatically generated, the workload of the user is greatly reduced, the working efficiency of the user is improved, the automation of form generation is realized, and the hidden danger of error and leakage caused by manual field setting is avoided. The technical scheme can only realize the generation of the initial field, but cannot generate the online code, cannot modify the code, and is inconvenient to operate, time-consuming and labor-consuming.
Disclosure of Invention
The invention aims to solve the problem that the page code cannot be generated online in the prior art, and provides a modular page generation method to realize rapid generation of pages.
In order to achieve the purpose, the invention adopts the following technical scheme: a modular page generation method comprises the following steps:
s1: designing a table structure according to user requirements;
s2: automatically generating a set interface mode according to the self-established table;
s3: selecting a page template, operating keys according to functions preset by the page template, and selecting a required interface by a user;
s4: extracting a data characteristic value through a QR algorithm;
s5: generating an online code according to the characteristic value;
when a form is designed, most functions of a project page are similar, some functions can be reused, when a user uses the system, a table structure can be built according to needs, data needed by the user can be added, then the system automatically generates interface modes of a newly-added interface, a modified interface, a deleted interface, a list query interface, a paging query interface, a tree query interface, an imported information interface and an exported information interface according to the user self-built table, a QR algorithm is used for extracting characteristic values of a data matrix, and the system can generate an online code according to the characteristic values.
Preferably, in step S1, the table structure mainly includes data structure basic information and field information, the data structure basic information includes a table or interface name, a data source, a description and the item, and the field information includes a field name, an attribute name, a field type, a length, a decimal precision, a default value and a primary key.
The user can freely select the data structure by editing the query condition and the editing condition, the basic information of the table structure required by the user is established, the information can be freely selected, and then the system can generate the online code after extracting the characteristic value by a series of algorithms.
Preferably, the interface modes set in step S2 include an add interface, a modify interface, a delete interface, a list query interface, a paging query interface, a tree query interface, an import information interface, and an export information interface.
Preferably, the function operation keys in step S3 include an inquiry key, a reset key, a new modification and deletion key, and an import and export key, and the page template includes a list template and a tree list template.
Preferably, in step S4, the QR algorithm performs QR decomposition on the matrix, that is:
let a have columns a, b, i.e. a ═ a b, and a result is matrix Q and matrix R, i.e.:
in the formula, q1,q2Representing an orthonormal vector in the matrix, T representing the transpose of the matrix, Q being an orthonormal matrix, R being a nonsingular upper triangular matrix, a, b being two orthonormal vectors, a ≠ b, aTq2When the formula is 0, the original formula can be simplified as follows:
the eigenvalue calculation formula is:
where λ represents the eigenvalue, a represents the matrix generated by the user input data, W represents the weight vector, i represents the individual online code elements, and n represents the total number of elements.
Preferably, the query key comprises a query condition, the query condition is selected by a user, the newly added key comprises an editing condition, and the editing condition is selected by the user.
Preferably, the tree list template and the tree structure include add, edit and query keys, the add and edit keys include edit conditions, the edit conditions are selected by the user, the query keys include query conditions, and the query conditions are selected by the user.
Therefore, the invention has the following beneficial effects:
1. the query condition and the edit condition can be freely selected by a user, so that the operation is convenient;
2. the interfaces are provided with corresponding codes, so that the online generation speed is saved;
3. the reuse of the function is realized.
Drawings
FIG. 1 is a flowchart of the method of the present embodiment.
Detailed Description
The present embodiment is further described with reference to the following drawings and detailed description.
The embodiment provides a method for generating a modular page, as shown in fig. 1, including the following steps:
s1: designing a table structure according to user requirements;
s2: automatically generating a set interface mode according to the self-established table;
s3: selecting a page template, operating keys according to functions preset by the page template, and selecting a required interface by a user;
s4: extracting a data characteristic value through a QR algorithm;
in step S4, the QR algorithm performs QR decomposition on the matrix, that is:
let a have columns a, b, i.e. a ═ a b, and a result is matrix Q and matrix R, i.e.:
in the formula, q1,q2Representing an orthonormal vector in the matrix, T representing the transpose of the matrix, Q being an orthonormal matrix, R being a nonsingular upper triangular matrix, a, b being two orthonormal vectors, a ≠ b, aTq2When the formula is 0, the original formula can be simplified as follows:
the eigenvalue calculation formula is:
in the formula, lambda represents a characteristic value, A represents a matrix generated by user input data, W represents a weight vector, i represents an individual online code element, n represents the total number of elements, and after the characteristic value is extracted through a QR algorithm, the system can generate an online code of a user design table structure according to the characteristic value.
S5: generating an online code according to the characteristic value;
firstly, a table structure is designed according to user requirements, the table structure mainly comprises data structure basic information and field information, the data structure basic information comprises a table or interface name, a data source, description and the items, and the field information comprises a field name, an attribute name, a field type, a length, decimal accuracy, a default value and a main key. The user can freely combine and edit the basic information to generate the table structure required by the user.
And automatically generating set interface modes such as a newly added interface, a modified interface, a deleted interface, a list query interface, a paging query interface, a tree-shaped query interface, an imported information interface and an exported information interface according to the table structure system, wherein the functional operation keys provided for the user comprise a query key, a reset key, a newly added modified deleted key and an imported exported key, and the page template comprises a list template and a tree list template.
The user can also start the inquiry key when selecting the page template, the inquiry key comprises inquiry conditions, the inquiry conditions are selected by the user, the newly-added key comprises editing conditions, the editing conditions are selected by the user, in addition, the tree structure of the tree list template comprises the newly-added, editing and inquiry keys, the newly-added and editing keys are provided with editing conditions, the editing conditions can be selected by the user, the inquiry key also comprises the inquiry conditions, and the inquiry conditions can be selected by the user.
The working process of the invention is as follows: when a user uses the system, a table structure is built according to the query condition and the edit condition as required, the data required by the user is added, then the system automatically generates interface modes of a new interface, a modification interface, a deletion interface, a list query interface, a paging query interface, a tree-shaped query interface, an import information interface and an export information interface according to the self-built table of the user, and then a feature value is extracted from a data matrix by using a QR algorithm, and the system can generate an online code according to the feature value.
The present invention is not limited to the above-described embodiments, and the above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Any modification, equivalent transformation, improvement, etc. made in accordance with the technical spirit of the present invention fall within the scope of the claimed invention.
Claims (7)
1. A modular page generation method is characterized by comprising the following steps:
s1: designing a table structure according to user requirements;
s2: automatically generating a set interface mode according to the self-established table;
s3: selecting a page template, operating keys according to functions preset by the page template, and selecting a required interface by a user;
s4: extracting a data characteristic value through a QR algorithm;
s5: and generating an online code according to the characteristic value.
2. The method for generating a modular page as claimed in claim 1, wherein the table structure in S1 mainly includes data structure basic information and field information, the data structure basic information includes table or interface name, data source, description and the item, the field information includes field name, attribute name, field type, length, decimal precision, default value and primary key.
3. The method as claimed in claim 1, wherein the interface modes set in S2 include an add interface, a modify interface, a delete interface, a list query interface, a paging query interface, a tree query interface, an import information interface, and an export information interface.
4. The method for generating a modular page as claimed in claim 1, wherein the function operation keys in S3 include an inquiry key, a reset key, an add-modify-delete key, and an import-export key, and the page template includes a list template and a tree list template.
5. The method for generating a modular page as claimed in claim 1, wherein the QR algorithm in S4 performs QR decomposition on the matrix, that is:
let data matrix a have columns a, b, i.e., a ═ ab ], and matrix Q and matrix R are derived from a, i.e.:
in the formula, q1,q2Representing an orthonormal vector in the matrix, T representing the transpose of the matrix, Q being an orthonormal matrix, R being a nonsingular upper triangular matrix, a, b being two orthonormal vectors, a ≠ b, aTq2When the formula is 0, the original formula can be simplified as follows:
the eigenvalue calculation formula is:
where λ represents the eigenvalue, a represents the matrix generated by the user input data, W represents the weight vector, i represents the individual online code elements, and n represents the total number of elements.
6. The method as claimed in claim 4, wherein the query button comprises a query condition, the query condition is selected by the user, the newly added button comprises an edit condition, and the edit condition is selected by the user.
7. The method as claimed in claim 4, wherein the tree list template and the tree structure include add, edit and query buttons, the add and edit buttons include edit conditions, the edit conditions are selected by the user, the query buttons include query conditions, and the query conditions are selected by the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692764.1A CN113535166B (en) | 2021-06-22 | 2021-06-22 | Modularized page generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692764.1A CN113535166B (en) | 2021-06-22 | 2021-06-22 | Modularized page generation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113535166A true CN113535166A (en) | 2021-10-22 |
CN113535166B CN113535166B (en) | 2023-10-13 |
Family
ID=78125673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692764.1A Active CN113535166B (en) | 2021-06-22 | 2021-06-22 | Modularized page generation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113535166B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160292143A1 (en) * | 2015-04-01 | 2016-10-06 | RTO Benefits, LLC | System and method for automated online wizard generation |
CN110494882A (en) * | 2017-02-08 | 2019-11-22 | 白鹰Cec公司 | DSS and its correlation technique |
CN110751361A (en) * | 2019-09-03 | 2020-02-04 | 福建省农村信用社联合社 | Bank demand item level management method and system |
CN111221522A (en) * | 2020-01-13 | 2020-06-02 | 大汉软件股份有限公司 | Automatic code generation method of front-end and back-end separation architecture for government intensive application development |
CN112966537A (en) * | 2021-02-10 | 2021-06-15 | 北京邮电大学 | Form identification method and system based on two-dimensional code positioning |
-
2021
- 2021-06-22 CN CN202110692764.1A patent/CN113535166B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160292143A1 (en) * | 2015-04-01 | 2016-10-06 | RTO Benefits, LLC | System and method for automated online wizard generation |
CN110494882A (en) * | 2017-02-08 | 2019-11-22 | 白鹰Cec公司 | DSS and its correlation technique |
CN110751361A (en) * | 2019-09-03 | 2020-02-04 | 福建省农村信用社联合社 | Bank demand item level management method and system |
CN111221522A (en) * | 2020-01-13 | 2020-06-02 | 大汉软件股份有限公司 | Automatic code generation method of front-end and back-end separation architecture for government intensive application development |
CN112966537A (en) * | 2021-02-10 | 2021-06-15 | 北京邮电大学 | Form identification method and system based on two-dimensional code positioning |
Non-Patent Citations (1)
Title |
---|
王瑾: "基于Web网络技术的皮革企业集成化信息管理系统设计", 《中国皮革》, vol. 50, no. 06 * |
Also Published As
Publication number | Publication date |
---|---|
CN113535166B (en) | 2023-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6132698B2 (en) | Tabular multidimensional data conversion method and apparatus | |
JP3213585B2 (en) | Data search method and apparatus, data search system, recording medium | |
CN103440232A (en) | Automatic sScientific paper standardization automatic detecting and editing method | |
CN106528684A (en) | Method and system for establishing engineering material database | |
CN103440233A (en) | Automatic sScientific paper standardization automatic detecting and editing system | |
CN104933162B (en) | A kind of conversion method of CSV data from metadata mark to RDF data | |
CN111858567A (en) | Method and system for cleaning government affair data through standard data elements | |
JP2003228580A (en) | Controller and method for controlling document knowledge, program, and recording medium | |
CN113535166B (en) | Modularized page generation method | |
US11301441B2 (en) | Information processing system and information processing method | |
CN107844464A (en) | Filing system and method based on data insertion | |
JP2002366401A (en) | Integral data mart structure, and operation supporting system | |
JP2005056085A (en) | Data structure conversion program | |
CN111104744B (en) | Auxiliary type selection method for sand and stone crushing equipment | |
Arslan et al. | A new structure representation for RNA and fast RNA substructure search | |
WO2015172401A1 (en) | Inter-program communication and reprograming software design, implementation and man-machine interaction method | |
Sugibuchi et al. | Interactive web-wrapper construction for extracting relational information from web documents | |
CN117171381B (en) | Interactive graph data construction method, system and device based on structured data table | |
CN106293776A (en) | A kind of power system EMTPE assists compiling system | |
CN116136839B (en) | Method, system and related equipment for generating legal document face manuscript | |
CN112162746B (en) | Automatic program construction method based on network knowledge convergence and iterative search | |
KR100368913B1 (en) | Csv report generation | |
Bunke et al. | A tool for versatile and user-friendly document correction | |
CN116126308A (en) | Method and system for constructing optimization algorithm | |
JP2004341770A (en) | Data management system and data management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310051 floor 23-25, building 2, No. 352, BINKANG Road, Binjiang District, Hangzhou, Zhejiang Province Applicant after: Zhejiang zhongkong Information Industry Co.,Ltd. Address before: 310051 floor 23-25, building 2, No. 352, BINKANG Road, Binjiang District, Hangzhou, Zhejiang Province Applicant before: ZHEJIANG SUPCON INFORMATION TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |