CN107807810A - The design method and device of a kind of program frame - Google Patents

The design method and device of a kind of program frame Download PDF

Info

Publication number
CN107807810A
CN107807810A CN201710930564.9A CN201710930564A CN107807810A CN 107807810 A CN107807810 A CN 107807810A CN 201710930564 A CN201710930564 A CN 201710930564A CN 107807810 A CN107807810 A CN 107807810A
Authority
CN
China
Prior art keywords
data
code
database
list
button
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.)
Pending
Application number
CN201710930564.9A
Other languages
Chinese (zh)
Inventor
李亚强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201710930564.9A priority Critical patent/CN107807810A/en
Publication of CN107807810A publication Critical patent/CN107807810A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of design method of program frame and device, wherein method comprises the following steps:Step 1:The information of program to be created is collected by the first list, described information is preserved to database;Step 2:Create form lists, addition and modification list;Step 3:Data processing code is created, database addition code, database update code and database delete code;Step 4:Create data and list code, create data modification button, data increase button and data and delete button;Step 5:Create database table, relevant field and field attribute;Step 6:Complete code is generated, creates the file for including the complete code.This programme can reduce the development cost of software.

Description

The design method and device of a kind of program frame
Technical field
The present invention relates to the design method and device in programmatics field, more particularly to a kind of program frame.
Background technology
Application is one of classification of computer software, refers to be write by certain application purpose for user Software.
More next with the development of internet, more enterprises or individual demand make various web applications, but objective The demand at family is ever-changing, it is necessary to which programmer customizes research and development according to the requirement of client, and Software Industry personnel's recruitment cost is very high, most Whole cost will marry again client with consumer, causing the development cost of software high.
The content of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of design method of program frame and device, energy Enough reduce the development cost of software.
The technical proposal of the invention is realized in this way:
A kind of design method of program frame, comprises the following steps:
Step 1:The information of program to be created is collected by the first list, described information is preserved to database;
Step 2:Create form lists, addition and modification list;The form lists include corresponding with first list List Container Type, project name, description information and way of submission;
Step 3:Data processing code is created, database addition code, database update code and database delete code; The data processing code is used to receive the data in the step 2;The database addition code is used to add data to Database;The database update code is used to change database data;The database deletes code and is used to delete database Data;
Step 4:Create data and list code, create data modification button, data increase button and data and delete button;Institute State data and list code for listing data;The data modification button carries out data modification by the modification list;It is described Data increase button and add data to database by database addition code;The data delete button and pass through data Delete code deletion database data in storehouse;
Step 5:Create database table, relevant field and field attribute;
Step 6:Complete code program is generated, creates the file for including complete code.
Preferably, described information includes:
Project name, form types, data attribute, project order, data length, verification mode.
Preferably, the data processing code is additionally operable to the form of the data in verification step 2, and by incongruent data Carry out format conversion.
Preferably, the list Container Type includes text box, text area, password box, radio box, hides text box, be multiple Select the editor of frame, combobox and non-HTML standard.
Preferably, the complete code includes source code.
The invention also provides a kind of design device of program frame, including:
Preserving module, for collecting the information of program to be created by the first list, described information is preserved to database;
First creation module, for creating form lists, addition and modification list;The form lists include and described the List Container Type, project name, description information and way of submission corresponding to one list;
Second creation module, for creating data processing code, database addition code, database update code and data Delete code in storehouse;The data processing code is used to receive the data in first creation module;The database adds generation Code is used to add data to database;The database update code is used to change database data;The database is deleted Code is used to delete database data;
3rd creation module, code is listed for creating data, create data modification button, data increase button and data Delete button;The data list code and are used to list data;The data modification button enters line number by the modification list According to modification;The data increase button adds code by the database and adds data to database;The data are deleted Button deletes code deletion database data by database;
4th creation module, for creating database table, relevant field and field attribute;
Generation module, for generating complete code program, create the file for including complete code.
Preferably, the preserving module includes information unit, and described information unit includes:
Project name, form types, data attribute, project order, data length, verification mode.
Preferably, second creation module includes authentication unit, and the authentication unit is used to verify the first creation module In data form, and by incongruent data carry out format conversion.
Preferably, first creation module includes list Container Type unit, and the list Container Type unit includes Text box, text area, password box, radio box, the RichText Edition for hiding text box, check box, combobox and non-HTML standard Device.
Preferably, the complete code includes source code.
The design method and device of program frame proposed by the present invention, by collecting the information of program to be created, and create List, form design is carried out, automatically generates the program code and database structure that can be run, so as to which user can be according to generation Program code, which fills in essential information, can just generate a perfect web form program, can be participated in without professional programmers, Reduce the development cost of software.
Brief description of the drawings
Fig. 1 is the flow chart of the design method for the program frame that the embodiment of the present invention proposes;
Fig. 2 is the structured flowchart of the design device for the program frame that the embodiment of the present invention proposes.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
As shown in figure 1, the embodiment of the present invention proposes a kind of design method of program frame, comprise the following steps:
Step 101:The information of program to be created is collected by the first list, information is preserved to database;
Step 102:Create form lists, addition and modification list;Form lists include list corresponding with the first list Container Type, project name, description information and way of submission;
Step 103:Data processing code is created, database addition code, database update code and database delete generation Code;The data that data processing code is used in receiving step 102;Database addition code is used to add data to database; Database update code is used to change database data;Database deletes code and is used to delete database data;
Step 104:Create data and list code, create data modification button, data increase button and data and delete button; Data list code and are used to list data;Data modification button carries out data modification by changing list;Data increase button leads to Cross database addition code and add data to database;Data delete button and delete code deletion database number by database According to;
Step 105:Create database table, relevant field and field attribute;
Step 106:Complete code program is generated, creates the file for including complete code.
The design method of program frame proposed by the present invention, by collecting the information of program to be created, and list is created, entered Row form design, the program code and database structure that can be run are automatically generated, so as to which user can be according to the program generation of generation Code, which fills in essential information, can just generate a perfect web form program, can be participated in without professional programmers, reduce soft The development cost of part.
In a preferred embodiment of the invention, information includes:
Project name, form types, data attribute, project order, data length, verification mode.
In a preferred embodiment of the invention, data processing code is additionally operable to the lattice of the data in verification step 102 Formula, and incongruent data are subjected to format conversion.
In a preferred embodiment of the invention, list Container Type includes text box, text area, password box, single choice Frame, the editor for hiding text box, check box, combobox and non-HTML standard.
In a preferred embodiment of the invention, complete code includes source code.
As shown in Fig. 2 the embodiment of the present invention is the invention also provides a kind of design device of program frame, including:
Preserving module 201, for collecting the information of program to be created by the first list, information is preserved to database;
First creation module 202, for creating form lists, addition and modification list;Form lists include and the first table List Container Type, project name, description information and way of submission corresponding to list;
Second creation module 203, for creating data processing code, database addition code, database update code and Database deletes code;Data processing code is used to receive the data in the first creation module;Database addition code is used for will Data are added to database;Database update code is used to change database data;Database deletes code and is used to delete data Storehouse data;
3rd creation module 204, code is listed for creating data, create data modification button, data increase button and Data delete button;Data list code and are used to list data;Data modification button carries out data modification by changing list;Number Code is added by database according to increase button and adds data to database;Data delete button and delete code by database Delete database data;
4th creation module 205, for creating database table, relevant field and field attribute;
Generation module 206, for generating complete code, create the file for including complete code.
In a preferred embodiment of the invention, preserving module includes information unit, and information unit includes:
Project name, form types, data attribute, project order, data length, verification mode.
In a preferred embodiment of the invention, the second creation module includes authentication unit, and authentication unit is used to verify The form of data in first creation module, and incongruent data are subjected to format conversion.
In a preferred embodiment of the invention, the first creation module includes list Container Type unit, list container Type units include text box, text area, password box, radio box, hiding text box, check box, combobox and non-HTML standard Editor.
In a preferred embodiment of the invention, complete code includes source code.
The design method and device of program frame proposed by the present invention, by collecting the information of program to be created, and create List, form design is carried out, automatically generates the program code and database structure that can be run, so as to which user can be according to generation Program code, which fills in essential information, can just generate a perfect web form program, can be participated in without professional programmers, Reduce the development cost of software.
The program frame that the embodiment of the present invention is designed, the ordinary people that program can be ignorant of by programmer or commonly are simply defeated Enter some programs and run necessary condition, then by programming automatic generation some computers recognizable code and database data Table structure, these codes can directly be run, can also be by programmer's secondary development of specialty.Due to these codes in strict accordance with Specification generate, so generation after be all can directly error-free operation, so whole process efficiency improves than traditional development mode A lot.
Then user adds sub-project, be able to can wrapped in use, can create master project title and data table name first Containing attributes such as title, data type, form types;Wherein sub-project can be added unrestrictedly;Add and complete when whole sub-projects Can be put after preservation obtain code come trial operation come test result be expected it is whether consistent.
If client has requirements at the higher level, programmer can be according to the source code secondary development generated;Code can include The functions such as whole web form is submitted, modification, deletion.
In summary, the embodiment of the present invention can at least realize following effect:
In embodiments of the present invention, by collecting the information of program to be created, and list is created, carries out form design, from The program code and database structure that dynamic generation can be run, so as to which user can fill in essential information according to the program code of generation A perfect web form program can be just generated, can be participated in without professional programmers, reduce the development cost of software.
In embodiments of the present invention, data processing code is used for the form for verifying the data in the first creation module, and will Incongruent data carry out format conversion, so as to evade known sql injection loopholes, ensure the normalization and peace of code Entirely.
In embodiments of the present invention, complete code includes source code, so as to which application developer can be according to having generated Source code secondary development.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of design method of program frame, it is characterised in that comprise the following steps:
Step 1:The information of program to be created is collected by the first list, described information is preserved to database;
Step 2:Create form lists, addition and modification list;The form lists include table corresponding with first list Single container type, project name, description information and way of submission;
Step 3:Data processing code is created, database addition code, database update code and database delete code;It is described Data processing code is used to receive the data in the step 2;The database addition code is used to add data to data Storehouse;The database update code is used to change database data;The database deletes code and is used to delete database data;
Step 4:Create data and list code, create data modification button, data increase button and data and delete button;The number It is used to list data according to code is listed;The data modification button carries out data modification by the modification list;The data Increase button adds code by the database and adds data to database;The data are deleted button and deleted by database Except code deletion database data;
Step 5:Create database table, relevant field and field attribute;
Step 6:Complete code program is generated, creates the file for including complete code.
2. the design method of program frame as claimed in claim 1, it is characterised in that described information includes:
Project name, form types, data attribute, project order, data length, verification mode.
3. the design method of program frame as claimed in claim 1, it is characterised in that the data processing code is additionally operable to test The form of the data in step 2 is demonstrate,proved, and incongruent data are subjected to format conversion.
4. the design method of program frame as claimed in claim 1, it is characterised in that the list Container Type includes text Frame, text area, password box, radio box, the editor for hiding text box, check box, combobox and non-HTML standard.
5. the design method of program frame as claimed in claim 1, it is characterised in that the complete code includes source code.
A kind of 6. design device of program frame, it is characterised in that including:
Preserving module, for collecting the information of program to be created by the first list, described information is preserved to database;
First creation module, for creating form lists, addition and modification list;The form lists include and first table List Container Type, project name, description information and way of submission corresponding to list;
Second creation module, for creating data processing code, database addition code, database update code and database are deleted Except code;The data processing code is used to receive the data in first creation module;The database addition code is used In adding data to database;The database update code is used to change database data;The database deletes code For deleting database data;
3rd creation module, code is listed for creating data, create data modification button, data increase button and data and delete Button;The data list code and are used to list data;The data modification button carries out data by the modification list and repaiied Change;The data increase button adds code by the database and adds data to database;The data delete button Code deletion database data is deleted by database;
4th creation module, for creating database table, relevant field and field attribute;
Generation module, for generating complete code program, create the file for including complete code.
7. the design device of program frame as claimed in claim 6, it is characterised in that the preserving module includes information list Member, described information unit include:
Project name, form types, data attribute, project order, data length, verification mode.
8. the design device of program frame as claimed in claim 6, it is characterised in that second creation module includes checking Unit, the authentication unit is used for the form for verifying the data in the first creation module, and incongruent data are entered into row format Conversion.
9. the design device of program frame as claimed in claim 6, it is characterised in that first creation module includes list Container Type unit, the list Container Type unit include text box, text area, password box, radio box, hide text box, The editor of check box, combobox and non-HTML standard.
10. the design device of program frame as claimed in claim 6, it is characterised in that the complete code includes source code.
CN201710930564.9A 2017-10-09 2017-10-09 The design method and device of a kind of program frame Pending CN107807810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930564.9A CN107807810A (en) 2017-10-09 2017-10-09 The design method and device of a kind of program frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930564.9A CN107807810A (en) 2017-10-09 2017-10-09 The design method and device of a kind of program frame

Publications (1)

Publication Number Publication Date
CN107807810A true CN107807810A (en) 2018-03-16

Family

ID=61584126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930564.9A Pending CN107807810A (en) 2017-10-09 2017-10-09 The design method and device of a kind of program frame

Country Status (1)

Country Link
CN (1) CN107807810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346726A (en) * 2020-03-16 2021-02-09 成都华微电子科技有限公司 Method for automatically generating design code based on form information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9104878B1 (en) * 2013-12-11 2015-08-11 Appercut Security Ltd. Automated source code scanner for backdoors and other pre-defined patterns
CN104834507A (en) * 2014-02-10 2015-08-12 广东天心天思软件有限公司 Frame driving method of application construction platform
CN104951311A (en) * 2015-07-03 2015-09-30 北京京东尚科信息技术有限公司 Page making method and device
CN106021211A (en) * 2016-05-18 2016-10-12 山东达创网络科技股份有限公司 Intelligent form system and generation method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9104878B1 (en) * 2013-12-11 2015-08-11 Appercut Security Ltd. Automated source code scanner for backdoors and other pre-defined patterns
CN104834507A (en) * 2014-02-10 2015-08-12 广东天心天思软件有限公司 Frame driving method of application construction platform
CN104951311A (en) * 2015-07-03 2015-09-30 北京京东尚科信息技术有限公司 Page making method and device
CN106021211A (en) * 2016-05-18 2016-10-12 山东达创网络科技股份有限公司 Intelligent form system and generation method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346726A (en) * 2020-03-16 2021-02-09 成都华微电子科技有限公司 Method for automatically generating design code based on form information
CN112346726B (en) * 2020-03-16 2023-12-12 成都华微电子科技股份有限公司 Method for automatically generating design codes based on form information

Similar Documents

Publication Publication Date Title
US20210081605A1 (en) Method, system, and computing device for facilitating private drafting
US20180075138A1 (en) Electronic document management using classification taxonomy
US11985131B2 (en) Descendent case role alias
CN104133772B (en) Automatic test data generation method
AU2018253478B2 (en) Testing insecure computing environments using random data sets generated from characterizations of real data sets
US7913161B2 (en) Computer-implemented methods and systems for electronic document inheritance
CN115617327A (en) Low code page building system, method and computer readable storage medium
CN104123227A (en) Method for automatically generating testing cases
US10296505B2 (en) Framework for joining datasets
Farid The Normap methodology: Lightweight engineering of non-functional requirements for agile processes
CN102810057A (en) Log recording method
KR20140074920A (en) Automatic relationship detection for reporting on spreadsheet data
CN104915262B (en) A kind of check system and its method based on EXCEL data structures
CN104572067A (en) Associating a visualization of user interface with source code
CN104008441A (en) Task management system and method for automatically submitting files into version library
CN108469955A (en) A kind of Android injection frames based on note
CN103020318A (en) Method for maintenance of database tables in database
CN107807810A (en) The design method and device of a kind of program frame
US8392442B2 (en) Method and computer program product for creating content management systems
Verma et al. Automated Test case generation using UML diagrams based on behavior
US10482279B2 (en) Pattern-less private data detection on data sets
Rubinger et al. Contracting the facebook api
Ratanotayanon et al. Cross-artifact traceability using lightweight links
Squire et al. The diffusion of pastebin tools to enhance communication in floss mailing lists
CN108170420A (en) Construction method, device and the computer readable storage medium of application package

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180316