CN104063764B - The device and method of Visual Production item code - Google Patents

The device and method of Visual Production item code Download PDF

Info

Publication number
CN104063764B
CN104063764B CN201410308834.9A CN201410308834A CN104063764B CN 104063764 B CN104063764 B CN 104063764B CN 201410308834 A CN201410308834 A CN 201410308834A CN 104063764 B CN104063764 B CN 104063764B
Authority
CN
China
Prior art keywords
data
code
module
interface
template
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.)
Active
Application number
CN201410308834.9A
Other languages
Chinese (zh)
Other versions
CN104063764A (en
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.)
Chengdu Zhuorui Technology Co Ltd
Original Assignee
Chengdu Zhuorui Technology Co Ltd
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 Chengdu Zhuorui Technology Co Ltd filed Critical Chengdu Zhuorui Technology Co Ltd
Priority to CN201410308834.9A priority Critical patent/CN104063764B/en
Publication of CN104063764A publication Critical patent/CN104063764A/en
Application granted granted Critical
Publication of CN104063764B publication Critical patent/CN104063764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to computer software technical field, a kind of device and method of Visual Production item code is provided, for generating item code more simply and easily, and realizing complicated logic of business functions.Described device comprises data source modules, data conversion module, framework selection module, predefine template modified module, bottom frame modified module, previewing module and code preservation module.By the present invention, developer can develop software simply and easily based on framework, present invention saves software development time, improves the efficiency of software development, The invention also achieves complicated logic of business functions in addition.

Description

The device and method of Visual Production item code
Technical field
The present invention relates to computer software technical field, particularly a kind of device and method of Visual Production item code.
Background technology
In the computerized information epoch; the exploitation of enterprise-level application software is a very long process; for software developer; a large amount of time usually can be spent to write the code of repetition; in order to reduce mechanical typing and the duplication of labour of software developer; various code generator has been there is in present Software Industry; but current code generator can only generate the code of simple three-decker code or fixing operation function; complicated logic of business functions can not be realized; and preview can not be carried out to effect in generating code process, use inconvenience.
Summary of the invention
The invention provides a kind of device and method of Visual Production item code, for generating item code more simply and easily, and realizing complicated logic of business functions.
In order to solve above technical matters, first aspect of the present invention is to provide a kind of device of Visual Production item code, described device comprises data source modules, data conversion module, pattern framework selection module, predefine template modified module, bottom frame modified module, previewing module and code preservation module
Described data source modules is for obtaining data;
The data that described data conversion module sends for receiving data source modules, and data are converted to unified formatted output to data field storage container, described data field storage container is for listing field information and the description of each data;
Described pattern framework selects module to be used for preference pattern framework, and passes through interface display according to selected pattern framework loading code template;
The Code Template that described predefine template modified module is used for by revising pattern framework carries out interface;
Described bottom frame modified module is used for selecting and revising bottom frame;
Described previewing module is used for the Code Template of preview through amended pattern framework and the Code Template of bottom frame, and passes through interface display;
Described code is preserved module and is used for the template generation code according to preview and preserves.
In the first possibility implementation in first, described interface specifically comprises:
Interface is carried out by pulling interface control, and/or
Add the field in data field storage container to interface control, the data field of interface needs display is set by the data field pulling data field storage container.
In the second possibility implementation in first, the data that data source modules obtains are selected from the text that tables of data, Data View, Word form, Excel form maybe can differentiate character format.
In the third possibility implementation in first, pattern framework selects the pattern framework of model choice to be selected from ASP.net, ASP.net MVC or SSH.
In the 4th kind of possibility implementation in first, the bottom frame that bottom frame modified module is selected is selected from Hibernate, NHibernate or EF.
Second aspect of the present invention is to provide a kind of method of Visual Production item code, and described method comprises:
Steps A: obtain data;
Step B: the data got are converted to unified formatted output to data field storage container, described data field storage container is for listing field information and the description of each data;
Step C: preference pattern framework, passes through interface display according to selected pattern framework loading code template;
Step D: carry out interface by the Code Template revising pattern framework;
Step e: select and revise bottom frame;
Step F: the Code Template of preview through amended pattern framework and the Code Template of bottom frame, and pass through interface display;
Step G: preserve according to the template generation code of preview.
In the first possibility implementation in second, the design of step D median surface specifically comprises:
Interface is carried out by pulling interface control, and/or
Add the field in data field storage container to interface control, developer arranges the data field of interface needs display by the data field pulling data field storage container.
In the second possibility implementation in second, the data obtained in steps A are selected from the text that tables of data, Data View, Word form, Excel form maybe can differentiate character format.
In the third possibility implementation in second, the pattern framework in step C is selected from ASP.net, ASP.net MVC or SSH.
In the 4th kind of possibility implementation in second, the bottom frame in step e is selected from Hibernate, NHibernate or EF.
As can be seen from the above technical solutions, based on the Development Framework selected by developer, developer completes the design at interface and the display of data by pulling visually, therefore developer can develop corresponding software simply and easily, which saves software development time, improves the efficiency of software development.In addition, the present invention dynamically generates item code according to the Code Template of framework, thus achieves complicated logic of business functions.
Accompanying drawing explanation
The apparatus structure block diagram of the Visual Production item code that Fig. 1 provides for the embodiment of the present invention one;
The method flow diagram of the Visual Production item code that Fig. 2 provides for the embodiment of the present invention two.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, clear, complete description is carried out to the specific embodiment of the present invention, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment, neither limitation of the present invention.Based on embodiments of the invention, those of ordinary skill in the art, not paying the every other embodiment obtained under creative work prerequisite, belong to protection scope of the present invention.
As shown in Figure 1, the apparatus structure block diagram of the Visual Production item code that Fig. 1 provides for the embodiment of the present invention one, described device comprises data source modules 101, data conversion module 102, pattern framework selection module 103, predefine template modified module 104, bottom frame modified module 105, previewing module 106 and code preservation module 107.
Data source modules 101 is for obtaining data, and the mode obtaining data can be following a few class: obtain data by Word or Excel form; By text or the XML file acquisition data of standard format; Data are obtained by the mode of database.
The data that data conversion module 102 sends for receiving data source modules, and data are converted to unified formatted output to data field storage container, described data field storage container is for listing field information and the description of each data, wherein field information comprises the title of field, structure, type and the data associated, and field description is the explanation to field information.The data loaded due to data source modules not necessarily meet standard, therefore be converted to the data of unified standard by data after, the code that device can be made to generate meets coding criterion, in addition, the standard due to the data fit in data field storage container, the data field therefore in container just can employ.Give a concrete illustration, if data source is obtained by Word document, its date format may be yyyy/mm/dd or dd/mm/yyyy etc., inconsistent meeting due to form causes the code that generates out undesirable, therefore needs the data converting consolidation form to could generate standard compliant code.
Pattern framework selects module 103 for developer's preference pattern framework, and passes through interface display according to selected pattern framework loading code template.Common code skeleton type has ASP.net, ASP.net MVC, WPF, Silverlight or SSH.Due to the versatility of framed structure, the code therefore generated based on the framework selected can across language, cross-platform realization.
Predefine template modified module 104 carries out interface for developer by the Code Template revising pattern framework.
Particularly, because framework selects module to show interface, therefore developer can pass through interface visually, interface control is carried out having pulled interface, simultaneously, device can be given tacit consent to and adds field in some data field storage container to interface control, developer also can according to other field in the requirement interpolation data field storage container of oneself to interface control, after having added, developer just can arrange the data field of interface needs display by the data field pulling data field storage container.
Bottom frame modified module 105 is selected for developer and is revised bottom frame, and the common type of bottom frame has Hibernate, NHibernate, ORM (Object/Relation Mapping) or EF.
Particularly, according to the bottom frame selected, device can generate the code masterplate of acquiescence, and developer can revise according to the demand of oneself or add code, thus improves the dirigibility of code.
Previewing module 106 for the Code Template of preview through amended pattern framework and the Code Template of bottom frame, and passes through interface display.Respectively pattern framework and bottom frame are revised by aforesaid predefine template modified module and bottom frame modified module, previewing module carries out preview to amended framework template, pass through interface display, developer can judge whether the interface shown meets the demands, " visual " in generating code process that Here it is.
Code is preserved module 107 and is preserved code for the template according to preview.
Need explanation, here template comprises the Code Template of pattern framework and the Code Template of bottom frame, particularly, pass through pattern framework, developer can pull control and data field to realize visualized operation, particularly, developer can according to the demand of oneself next freely arrange in pairs or groups control and data field.By bottom frame, developer can revise according to the demand of oneself or add code, thus the dirigibility of code, integrate and just achieve complicated service logic.Code is preserved module and is used for the code corresponding to the template of preview to be saved in local computer.
The device of the Visual Production item code adopting the embodiment of the present invention one to provide, the method realizing Visual Production item code can with reference to following concrete grammar embodiment.
As shown in Figure 2, the method flow diagram of the Visual Production item code that Fig. 2 provides for the embodiment of the present invention two, described method comprises:
Step 201: obtain data.
Particularly, the mode obtaining data can be following a few class: obtain data by Word or Excel form; By text or the XML file acquisition data of standard format; Data are obtained by the mode of database.
Step 202: the data got are converted to unified formatted output to data field storage container.
Particularly, data step 201 got convert unified formatted output to data field storage container, described data field storage container is for listing field information and the description of each data, wherein field information comprises the title of field, structure, type and the data associated, and field description is the explanation to field information.The data loaded due to data source modules not necessarily meet standard, therefore be converted to the data of standard by data after, the code that device can be made to generate meets coding criterion, in addition, the standard due to the data fit in data field storage container, the data field therefore in container just can employ.
Step 203: preference pattern framework, device is according to selected pattern framework loading code template and pass through interface display.
Particularly, developer selects the pattern framework of code, and common pattern framework type has ASP.net, ASP.net MVC, WPF, Silverlight or SSH.Due to the versatility of framed structure, the code therefore generated based on the framework selected can across language, cross-platform realization.
Step 204: carry out interface by the Code Template revising pattern framework.
Particularly, due to through step 203, device shows interface, therefore developer can pass through interface visually, interface control is carried out having pulled interface, simultaneously, device can be given tacit consent to and adds field in some data field storage container to interface control, developer also can according to other field in the requirement interpolation data field storage container of oneself to interface control, after having added, developer just can arrange the data field of interface needs display by the data field pulling data field storage container.
Step 205: select and revise bottom frame.
Particularly, the common type of bottom frame has Hibernate, NHibernate, ORM (Object/RelationMapping) or EF.According in predefine template modified module, developer is to the amendment of predefine template, and developer modifies to bottom frame.
Step 206: preview through amended template, and passes through interface display.
Need to illustrate, template here comprises the Code Template of amended pattern framework and the Code Template of bottom frame.Respectively pattern framework and bottom frame are revised by abovementioned steps 204 and step 205, previewing module carries out preview to amended framework template, pass through interface display, developer can judge whether the interface shown meets the demands, " visual " in generating code process that Here it is.
Step 207: judge whether interface reaches the effect of anticipation, if reach, forward step 208 to, otherwise then forward step 204 to.
Particularly, developer judges whether according to the interface of the previewing module of display the effect reaching anticipation, if reach the effect of anticipation, forwards step 208 to; If instead do not reach the effect of anticipation, then forward step 204 to and re-start interface, until reach developer's desired effect.
Step 208: the template according to preview preserves code.
Need explanation, here template comprises the Code Template of pattern framework and the Code Template of bottom frame, and by pattern framework, developer can pull control and data field to realize visualized operation, particularly, developer can according to the demand of oneself next freely arrange in pairs or groups control and data field.By bottom frame, developer can revise according to the demand of oneself or add code, thus the dirigibility of code.Finally, the code of correspondence is saved in the disk of local computer according to the pattern framework of amendment and the bottom frame of amendment by device.
Below the Method And Principle realizing " complicated service logic " is described in detail.On the one hand, at pattern framework, developer pulls interface control and data field to realize visualized operation, and developer freely can to arrange in pairs or groups interface control and data field according to the demand of oneself; On the other hand, at bottom frame, developer revises according to the demand of oneself or adds code, thus the dirigibility of code, comprehensively these two aspects just can realize complicated service logic.Such as developer needs to realize a complicated inquiry, because the template code generated in advance does not know that developer needs to do what kind of inquiry, first developer realizes querying condition by pulling control, then at bottom frame, developer, by revising or adding code to realize the Query Result wanted, so just achieves complicated inquiry.

Claims (10)

1. a device for Visual Production item code, is characterized in that described device comprises data source modules, data conversion module, pattern framework selection module, predefine template modified module, bottom frame modified module, previewing module and code preservation module,
Described data source modules is for obtaining data;
The data that described data conversion module sends for receiving data source modules, and data are converted to unified formatted output to data field storage container, described data field storage container is for listing field information and the description of each data;
Described pattern framework selects module to be used for preference pattern framework, and passes through interface display according to selected pattern framework loading code template;
The Code Template that described predefine template modified module is used for by revising pattern framework carries out interface;
Described bottom frame modified module is used for selecting and revising bottom frame;
Described previewing module is used for the Code Template of preview through amended pattern framework and the Code Template of bottom frame, and passes through interface display;
Described code is preserved module and is used for the template generation code according to preview and preserves.
2. device according to claim 1, is characterized in that described interface specifically comprises:
Interface is carried out by pulling interface control, and/or
Add the field in data field storage container to interface control, the data field of interface needs display is set by the data field pulling data field storage container.
3. device according to claim 1 and 2, is characterized in that the data that data source modules obtains are selected from the text that tables of data, Data View, Word form, Excel form maybe can differentiate character format.
4. device according to claim 1 and 2, is characterized in that pattern framework selects the pattern framework of model choice to be selected from ASP.net, ASP.net MVC or SSH.
5. device according to claim 1 and 2, is characterized in that the bottom frame that bottom frame modified module is selected is selected from Hibernate, NHibernate or EF.
6. a method for Visual Production item code, is characterized in that described method comprises:
Steps A: obtain data;
Step B: the data got are converted to unified formatted output to data field storage container, described data field storage container is for listing field information and the description of each data;
Step C: preference pattern framework, passes through interface display according to selected pattern framework loading code template;
Step D: carry out interface by the Code Template revising pattern framework;
Step e: select and revise bottom frame;
Step F: the Code Template of preview through amended pattern framework and the Code Template of bottom frame, and pass through interface display;
Step G: preserve according to the template generation code of preview.
7. method according to claim 6, is characterized in that the design of step D median surface specifically comprises:
Interface is carried out by pulling interface control, and/or
Add the field in data field storage container to interface control, the data field of interface needs display is set by the data field pulling data field storage container.
8. the method according to claim 6 or 7, is characterized in that the data obtained in steps A are selected from the text that tables of data, Data View, Word form, Excel form maybe can differentiate character format.
9. the method according to claim 6 or 7, is characterized in that the pattern framework in step C is selected from ASP.net, ASP.net MVC or SSH.
10. the method according to claim 6 or 7, is characterized in that the bottom frame in step e is selected from Hibernate, NHibernate or EF.
CN201410308834.9A 2014-07-01 2014-07-01 The device and method of Visual Production item code Active CN104063764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410308834.9A CN104063764B (en) 2014-07-01 2014-07-01 The device and method of Visual Production item code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410308834.9A CN104063764B (en) 2014-07-01 2014-07-01 The device and method of Visual Production item code

Publications (2)

Publication Number Publication Date
CN104063764A CN104063764A (en) 2014-09-24
CN104063764B true CN104063764B (en) 2015-08-19

Family

ID=51551463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410308834.9A Active CN104063764B (en) 2014-07-01 2014-07-01 The device and method of Visual Production item code

Country Status (1)

Country Link
CN (1) CN104063764B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293664A (en) * 2015-05-27 2017-01-04 交通银行股份有限公司 Code generating method and device
CN105205539A (en) * 2015-08-25 2015-12-30 携程计算机技术(上海)有限公司 OTA website hotel room management method and system
US9891890B2 (en) * 2015-11-09 2018-02-13 Microsoft Technology Licensing, Llc Generation of an application from template
CN106406884A (en) * 2016-09-19 2017-02-15 深圳市东信时代信息技术有限公司 A .NET MVC mode-based fundamental development framework for WEB background management application systems
CN106484410A (en) * 2016-09-28 2017-03-08 北京赢点科技有限公司 Destination object generation method and device
CN108733433B (en) * 2017-04-21 2021-02-09 北大方正集团有限公司 SQL (structured query language) -based time segment subdivision operation method and system
CN108733416A (en) * 2017-04-21 2018-11-02 北大方正集团有限公司 Date format processing method based on JavaScript and system
CN107341648A (en) * 2017-07-04 2017-11-10 中国人民解放军63796部队 Remote collaborative class multi-systems integration command and display integrated approach
CN112464073B (en) * 2020-11-05 2022-11-11 杭州讯酷科技有限公司 Method for automatically generating detailed page and newly added form page according to query page design result
CN115407998B (en) * 2022-08-22 2023-09-05 深圳市誉辰智能装备股份有限公司 Method for designing upper computer software framework of lithium battery equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399742A (en) * 2013-07-25 2013-11-20 南京大学 Adjustable object structure, system framework and method for transforming existing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070118801A1 (en) * 2005-11-23 2007-05-24 Vizzme, Inc. Generation and playback of multimedia presentations

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399742A (en) * 2013-07-25 2013-11-20 南京大学 Adjustable object structure, system framework and method for transforming existing system

Also Published As

Publication number Publication date
CN104063764A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN104063764B (en) The device and method of Visual Production item code
CN102541541B (en) Interface creating method and device
CN109062567B (en) B/S structure-based information management system rapid development platform
US20140067836A1 (en) Visualizing reporting data using system models
CN102360291B (en) Service-oriented business rule design method based on business rule engine
CN103761288A (en) Visual chart custom generation system and visual chart custom generation method
CN101976199A (en) Object-oriented middleware distributed system development platform
CN106227742A (en) Dynamic web page based on B/S pattern generates method, server and system
US20190114155A1 (en) System configured from non-developer-oriented application platform
He et al. A metamodel for the notation of graphical modeling languages
CN111125254A (en) Database synchronization method and device, electronic equipment and computer readable medium
Pérez-Soler et al. Towards Conversational Syntax for Domain-Specific Languages using Chatbots.
CN108829653A (en) A kind of generation method of report, device, equipment and medium
US20110179397A1 (en) Systems and methods for metamodel transformation
CN114594927A (en) Low code development method, device, system, server and storage medium
CN102375743B (en) SOA(Service-Oriented Architecture) system development method based on model and template
CN104834715A (en) Website generating method and system based on components and container
US20130166610A1 (en) Computer System and Computerized Method for Storing Business Objects and Business Mapping Data
CN104166551A (en) Application interface developing method and developing device
Campagna et al. Implementing metaplanning with business process management
CN117057318A (en) Domain model generation method, device, equipment and storage medium
CN104320387A (en) Local module customizing method, terminal and server
CN103561113A (en) Web Service interface generating method and device
CN116069303A (en) Code generation method, device, equipment and storage medium
CN104156209A (en) Cross-platform application interface modeling method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant