CN105068812A - Form generation method and device - Google Patents
Form generation method and device Download PDFInfo
- Publication number
- CN105068812A CN105068812A CN201510510466.0A CN201510510466A CN105068812A CN 105068812 A CN105068812 A CN 105068812A CN 201510510466 A CN201510510466 A CN 201510510466A CN 105068812 A CN105068812 A CN 105068812A
- Authority
- CN
- China
- Prior art keywords
- list
- configuration
- rule
- form templat
- structured data
- 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
Landscapes
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The present invention provides a form generation method. The method comprises the following steps: S1, generating a form template, wherein a form configuration file is XML structure data; and S2, selecting the form template according to business logic, and guiding to configure a form according to the form template. The present invention also provides a corresponding device. With the implementation of the form generation method and device, provided by the present invention, by generating a basic form template with good configuration and high reusability, a user just needs to select the template to achieve rapid configuration when reusing the form, thereby improving the form configuration efficiency, and then rapidly reusing an original form. Meanwhile, the user can perform logic configuration of the form according to a configuration background rule method, so that the difficulty of applying an MP form designer is reduced and the MP form designer is simple and easy to understand.
Description
Technical field
The present invention relates to Computer Applied Technology field, more particularly, relate to a kind of list generation method and device.
Background technology
At present, when using .NET platform to develop, normally carry out form data storage with files such as cs, dll, and when carrying out storage list forms data with above-mentioned file, list is not easily multiplexing, replacement amendment efficiency is slow.
Simultaneously, existing list adopts the configuration of MP Form Designer to realize, the cardinal principle of this MP Form Designer is copy the design panel of vswinform to carry out designing form, click when preserving and the XML format data that list UI control refines as regulation are stored, as the data layout of the user name control corresponding conversion in employee's name text frame, as shown in Figure 1, then business processing logic corresponding for control event is also simplified refinement to arrange out, and encapsulation becomes rule of correspondence configuration item one by one, simplifying refinement as derived data is four steps, its function is respectively and creates sql execution parameter variable, derived data reads, point out when data are empty and stop and derived data generation excel.The program can realize list configurableization, but forms traffic logic is similar, and when revising multiplexing, regulated efficiency is not high, greatly consuming time, and even developer is not understandable for user.
Summary of the invention
The technical problem to be solved in the present invention is, the list for exploitation of the prior art is not easily multiplexing, and based on MP Form Designer configuration realize list revise multiplexing time, regulation is not high, greatly consuming time, and not understandable, a kind of list generation method and device are provided.
The present invention's adopted technical scheme that solves the problem there is provided a kind of list generation method, and the method comprises the following steps:
S1, generation form templat, wherein, list configuration file is XML structured data;
S2, select described form templat according to service logic, and according to described form templat boot configuration list.
In above-mentioned list generation method, described step S1 comprises:
S11, arrange out and configure and the high basic list of reusability, for use;
S12, described basic list is converted to described form templat, wherein, list configuration file is converted to XML structured data;
S13, generate the UI thumbnail of described form templat, according to the described XML structured data on described UI thumbnail list described basic list configure the strictly all rules of use, and mark reusable rule configuration scope;
S14, the data of described form templat to be saved in database.
In above-mentioned list generation method, described step S2 comprises:
S21, select described form templat according to service logic;
S22, according to described form templat configuration UI interface, and show corresponding structural drawing according to the XML structured data of UI configuration;
S23, on described structural drawing, analyze described XML structured data, and enumerate out corresponding control set and the primary attribute of correspondence;
S24, configuration backstage rule and method, according to the generate rule rule configuration page of mark, and by this page configuration parameter of regularity, to replace the corresponding corresponding node of backstage XML, create-rule processing logic;
S25, generate list according to described rule treatments logic.
In above-mentioned list generation method, described step S12 also comprises the described list configuration file of backup.
In above-mentioned list generation method, in described step S23, described primary attribute comprises the data source of title, field name, control type and binding; Described step S22 also comprises and adjusts described UI interface according to actual conditions; Described step S24 also comprises and adjusts described backstage rule and method according to actual conditions.
Present invention also offers a kind of list generating apparatus, this device comprises:
Generate form templat module, for generating form templat, wherein, list configuration file is XML structured data; And
Allocation list single module, for selecting described form templat according to service logic, and according to described form templat boot configuration list.
In above-mentioned list generating apparatus, described generation form templat module comprises:
Arranging unit, configuring and the high basic list of reusability, for use for arranging out;
Converting unit, for described basic list is converted to described form templat, wherein, list configuration file is converted to XML structured data;
Generate and indexing unit, for generating the UI thumbnail of described form templat, according to the described XML structured data on described UI thumbnail list described basic list configure the strictly all rules of use, and mark reusable rule configuration scope; And
Database, for preserving the data of described form templat.
In above-mentioned list generating apparatus, described allocation list single module comprises:
Selection unit, for selecting described form templat according to service logic;
First dispensing unit, for configuring UI interface according to described form templat, and shows corresponding structural drawing according to the XML structured data of UI configuration;
Analytic unit, at described structural drawing, analyzes described XML structured data, and enumerates out corresponding control set and the primary attribute of correspondence;
Second dispensing unit, for configuring backstage rule and method, according to the generate rule rule configuration page of mark, and by this page configuration parameter of regularity, to replace the corresponding corresponding node of backstage XML, create-rule processing logic;
Generation unit, for generating list according to described rule treatments logic.
In above-mentioned list generating apparatus, described generation form templat module also comprises backup units, and described backup units is for backing up described list configuration file.
In above-mentioned list generating apparatus, described primary attribute comprises the data source of title, field name, control type and binding; Described form configuration module also comprises the first adjustment unit and the second adjustment unit, and wherein, described first adjustment unit is used for adjusting described UI interface according to actual conditions; Described second adjustment unit is used for adjusting described backstage rule and method according to actual conditions.
Implement list generation method of the present invention and device, configure and the template of the high basic list of reusability by generating, user is when this list multiplexing, only need select this template, realize rapid configuration, thus improve list allocative efficiency, and then the original list of rapid multiplexing.Meanwhile, user can carry out form logic configuration according to configuration backstage rule and method, reduces difficulty during application MP Form Designer, is easily understood.
Accompanying drawing explanation
Fig. 1 is the data layout that in prior art, MP Form Designer configures user name control corresponding conversion when realizing list in employee's name text frame.
Fig. 2 is the roughly process flow diagram that list of the present invention generates embodiment of the method.
Fig. 3 is the particular flow sheet of the list generation embodiment of the method in Fig. 2.
Fig. 4 is the general configuration schematic diagram of list generating apparatus embodiment of the present invention.
Fig. 5 is the detailed construction schematic diagram of the list generating apparatus embodiment in Fig. 4.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 2, be the process flow diagram that list of the present invention generates embodiment of the method.With reference to figure 2, the method comprises the following steps: S1, generation form templat, and wherein, list configuration file is XML structured data; S2, select form templat, and according to this form templat boot configuration list according to service logic.Use the method can the original list of rapid multiplexing, meanwhile, improve list allocative efficiency.
In the above-described embodiments, as shown in Figure 3, step S1 specifically comprises: S11, arrange out and configure and the high basic list of reusability, for use; S12, basic list is converted to form templat, wherein, list configuration file is converted to XML structured data; S13, generate the UI thumbnail of form templat, according to the XML structured data on this UI thumbnail list this basic list configure the strictly all rules of use, and mark reusable rule configuration scope; S14, be saved in database by the data of form templat, these data comprise UI element, backstage rule and method and template sectional drawing.
In the above-described embodiments, as shown in Figure 3, step S2 specifically comprises: S21, according to service logic select form templat; S22, according to form templat configuration UI interface, and show corresponding structural drawing according to the XML structured data of UI configuration; S23, on this structural drawing, analyze this XML structured data, and enumerate out corresponding control set and the primary attribute of correspondence, this primary attribute comprises the data source of title, field name, control type and binding; S24, configuration backstage rule and method, according to the generate rule rule configuration page of mark, and by this page configuration parameter of regularity, to replace the corresponding corresponding node of backstage XML, create-rule processing logic; S25, according to rule treatments logic generate list.
Further, backup list configuration file is also comprised at above-mentioned steps S12.For avoiding when operating, need again to carry out mark of correlation to list configuration file, thus backup list configuration file is conducive to user repeatedly uses.
In the above-described embodiments, above-mentioned steps S22 also comprises according to actual conditions adjustment UI interface.User can modify to the UI interface generated in the process of list according to actual conditions, carries out subsequent operation to facilitate user oneself.
In the above-described embodiments, above-mentioned steps S24 also comprises according to actual conditions adjustment backstage rule and method.User, when analyzing, chooses the vicissitudinous parameter of reality, and marks configuration instruction corresponding to this parameter, to adjust.
In the list generation method of the present embodiment, configure and the form templat of the high basic list of reusability by generating, user is when this list multiplexing, only need select this form templat, realize rapid configuration, thus improve list allocative efficiency, and then the original list of rapid multiplexing.Meanwhile, user can carry out form logic configuration according to configuration backstage rule and method, reduces difficulty during application MP Form Designer, is easily understood.
As shown in Figure 4, be the process flow diagram of list generating apparatus embodiment of the present invention.With reference to figure 4, this device 400 comprises generation form templat module 410 and allocation list single module 420, and wherein, generate form templat module 410, for generating form templat, wherein, list configuration file is XML structured data; Allocation list single module 420, for selecting form templat according to service logic, and according to form templat boot configuration list.Use the method can the original list of rapid multiplexing, meanwhile, improve list allocative efficiency.
Preferably, in the above-described embodiments, as shown in Figure 5, generate form templat module 410 and comprise arrangement unit 411, converting unit 412, generation and indexing unit 413 and database 414, wherein, arrange unit 411, configure and the high basic list of reusability, for use for arranging out; Converting unit 412, for basic list is converted to form templat, wherein, list configuration file is converted to XML structured data; Generate and indexing unit 413, for generating the UI thumbnail of form templat, according to the XML structured data on this UI thumbnail list this basic list configure the strictly all rules of use, and mark reusable rule configuration scope; Database 414, for the data of Resuming form template, these data comprise UI element, backstage rule and method and template sectional drawing.
Preferably, in the above-described embodiments, as shown in Figure 5, form configuration module 420 comprises selection unit 421, first dispensing unit 422, analytic unit 423, second dispensing unit 424 and generation unit 425, wherein, selection unit 421, for selecting form templat according to service logic; First dispensing unit 422, for configuring UI interface according to form templat, and shows corresponding structural drawing according to the XML structured data of UI configuration; Analytic unit 423, at this structural drawing, analyzes this XML structured data, and enumerates out corresponding control set and the primary attribute of correspondence, and this primary attribute comprises the data source of title, field name, control type and binding; Second dispensing unit 424, for configuring backstage rule and method, according to the generate rule rule configuration page of mark, and by this page configuration parameter of regularity, to replace the corresponding node of corresponding backstage XML, create-rule processing logic; Generation unit 425, for generating list according to rule treatments logic.
Further, in the above-described embodiments, generate form templat module 410 and also comprise backup units 415, this backup units 415 is for backing up list configuration file.For avoiding when operating, need again to carry out mark of correlation to list configuration file, thus backup list configuration file is conducive to user repeatedly uses.
Further, in the above-described embodiments, form configuration module 420 also comprises the first adjustment unit 426, and this first adjustment unit 426 is for adjusting UI interface according to actual conditions.User can modify to the UI interface generated in the process of list according to actual conditions, carries out subsequent operation to facilitate user oneself.
Further, in the above-described embodiments, form configuration module 420 also comprises the second adjustment unit 427, and this second adjustment unit is used for according to actual conditions adjustment backstage rule and method.User, when analyzing, chooses the vicissitudinous parameter of reality, and marks configuration instruction corresponding to this parameter, to adjust.
In the list generating apparatus of the present embodiment, configure and the template of the high basic list of reusability by generating, user, when this list multiplexing, only need select this template, realize rapid configuration, thus improves list allocative efficiency, and then the original list of rapid multiplexing.Meanwhile, user can carry out form logic configuration according to configuration backstage rule and method, reduces difficulty during application MP Form Designer, is easily understood.
Summary, the list method of generationing of the present invention and device are configured by generation and the template of the high basic list of reusability, and user is when this list multiplexing, only need select this template, realize rapid configuration, thus improve list allocative efficiency, and then the original list of rapid multiplexing.Meanwhile, user can carry out form logic configuration according to configuration backstage rule and method, reduces difficulty during application MP Form Designer, is easily understood.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.
Claims (10)
1. a list generation method, it is characterized in that, the method comprises the following steps:
S1, generation form templat, wherein, list configuration file is XML structured data;
S2, select described form templat according to service logic, and according to described form templat boot configuration list.
2. according to the list generation method described in claim 1, it is characterized in that, described step S1 comprises:
S11, arrange out and configure and the high basic list of reusability, for use;
S12, described basic list is converted to described form templat, wherein, list configuration file is converted to XML structured data;
S13, generate the UI thumbnail of described form templat, according to the described XML structured data on described UI thumbnail list described basic list configure the strictly all rules of use, and mark reusable rule configuration scope;
S14, the data of described form templat to be saved in database.
3. according to the list generation method described in claim 1, it is characterized in that, described step S2 comprises:
S21, select described form templat according to service logic;
S22, according to described form templat configuration UI interface, and show corresponding structural drawing according to the XML structured data of UI configuration;
S23, on described structural drawing, analyze described XML structured data, and enumerate out corresponding control set and the primary attribute of correspondence;
S24, configuration backstage rule and method, according to the generate rule rule configuration page of mark, and by this page configuration parameter of regularity, to replace the corresponding corresponding node of backstage XML, create-rule processing logic;
S25, generate list according to described rule treatments logic.
4. according to the list generation method described in claim 2, it is characterized in that, described step S12 also comprises the described list configuration file of backup.
5. according to the list generation method described in claim 3, it is characterized in that, in described step S23, described primary attribute comprises the data source of title, field name, control type and binding; Described step S22 also comprises and adjusts described UI interface according to actual conditions; Described step S24 also comprises and adjusts described backstage rule and method according to actual conditions.
6. a list generating apparatus, is characterized in that, this device comprises:
Generate form templat module, for generating form templat, wherein, list configuration file is XML structured data; And
Allocation list single module, for selecting described form templat according to service logic, and according to described form templat boot configuration list.
7. according to the list generating apparatus described in claim 6, it is characterized in that, described generation form templat module comprises:
Arranging unit, configuring and the high basic list of reusability, for use for arranging out;
Converting unit, for described basic list is converted to described form templat, wherein, list configuration file is converted to XML structured data;
Generate and indexing unit, for generating the UI thumbnail of described form templat, according to the described XML structured data on described UI thumbnail list described basic list configure the strictly all rules of use, and mark reusable rule configuration scope; And
Database, for preserving the data of described form templat.
8. according to the list generating apparatus described in claim 6, it is characterized in that, described allocation list single module comprises:
Selection unit, for selecting described form templat according to service logic;
First dispensing unit, for configuring UI interface according to described form templat, and shows corresponding structural drawing according to the XML structured data of UI configuration;
Analytic unit, at described structural drawing, analyzes described XML structured data, and enumerates out corresponding control set and the primary attribute of correspondence;
Second dispensing unit, for configuring backstage rule and method, according to the generate rule rule configuration page of mark, and by this page configuration parameter of regularity, to replace the corresponding corresponding node of backstage XML, create-rule processing logic;
Generation unit, for generating list according to described rule treatments logic.
9. according to the list generating apparatus described in claim 7, it is characterized in that, described generation form templat module also comprises backup units, and described backup units is for backing up described list configuration file.
10. according to Claim 8 described in list generating apparatus, it is characterized in that, described primary attribute comprises the data source of title, field name, control type and binding; Described form configuration module also comprises the first adjustment unit and the second adjustment unit, and wherein, described first adjustment unit is used for adjusting described UI interface according to actual conditions; Described second adjustment unit is used for adjusting described backstage rule and method according to actual conditions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510510466.0A CN105068812B (en) | 2015-08-19 | 2015-08-19 | A kind of list generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510510466.0A CN105068812B (en) | 2015-08-19 | 2015-08-19 | A kind of list generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105068812A true CN105068812A (en) | 2015-11-18 |
CN105068812B CN105068812B (en) | 2018-07-13 |
Family
ID=54498192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510510466.0A Active CN105068812B (en) | 2015-08-19 | 2015-08-19 | A kind of list generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105068812B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105630514A (en) * | 2016-02-24 | 2016-06-01 | 浪潮通用软件有限公司 | Form designing method based on modularization |
CN107315958A (en) * | 2016-04-26 | 2017-11-03 | 北京京东尚科信息技术有限公司 | The legality identification method and device of data object |
CN108121579A (en) * | 2016-11-26 | 2018-06-05 | 上海壹账通金融科技有限公司 | The method and device of alteration ruler file |
CN108446262A (en) * | 2018-02-11 | 2018-08-24 | 杭州连帆科技有限公司 | A kind of list generates, analysis method and device |
CN108469953A (en) * | 2018-03-13 | 2018-08-31 | 深圳市易聆科信息技术股份有限公司 | A kind of generation method of page table list, server and storage medium |
CN110019395A (en) * | 2017-11-30 | 2019-07-16 | 北京神州泰岳软件股份有限公司 | A kind of implementation method and device for inquiring ElasticSearch |
CN111625219A (en) * | 2020-05-22 | 2020-09-04 | 杭州指令集智能科技有限公司 | BO component processing method, device and equipment |
CN111984359A (en) * | 2020-08-31 | 2020-11-24 | 湖南快乐阳光互动娱乐传媒有限公司 | Dynamic generation and rendering method and device for control |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937463A (en) * | 2010-09-10 | 2011-01-05 | 西安交通大学 | Method for automatically generating form for workflow model |
CN102135990A (en) * | 2011-03-11 | 2011-07-27 | 北京神舟航天软件技术有限公司 | Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method |
CN102779040A (en) * | 2012-06-21 | 2012-11-14 | 东莞市微模式软件有限公司 | Method and device for generating user-defined form |
CN103218417A (en) * | 2013-03-27 | 2013-07-24 | 广东全通教育股份有限公司 | Configurable form generation device and form generation method |
CN103383645A (en) * | 2013-07-29 | 2013-11-06 | 北京邮电大学 | Code generation method and system |
CN103440264A (en) * | 2013-08-01 | 2013-12-11 | 广东电网公司 | Method and system for implementing electric power field operation form |
CN104267962A (en) * | 2014-10-09 | 2015-01-07 | 浪潮通用软件有限公司 | Description-based interface UI control configuration method |
-
2015
- 2015-08-19 CN CN201510510466.0A patent/CN105068812B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937463A (en) * | 2010-09-10 | 2011-01-05 | 西安交通大学 | Method for automatically generating form for workflow model |
CN102135990A (en) * | 2011-03-11 | 2011-07-27 | 北京神舟航天软件技术有限公司 | Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method |
CN102779040A (en) * | 2012-06-21 | 2012-11-14 | 东莞市微模式软件有限公司 | Method and device for generating user-defined form |
CN103218417A (en) * | 2013-03-27 | 2013-07-24 | 广东全通教育股份有限公司 | Configurable form generation device and form generation method |
CN103383645A (en) * | 2013-07-29 | 2013-11-06 | 北京邮电大学 | Code generation method and system |
CN103440264A (en) * | 2013-08-01 | 2013-12-11 | 广东电网公司 | Method and system for implementing electric power field operation form |
CN104267962A (en) * | 2014-10-09 | 2015-01-07 | 浪潮通用软件有限公司 | Description-based interface UI control configuration method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105630514A (en) * | 2016-02-24 | 2016-06-01 | 浪潮通用软件有限公司 | Form designing method based on modularization |
CN107315958A (en) * | 2016-04-26 | 2017-11-03 | 北京京东尚科信息技术有限公司 | The legality identification method and device of data object |
CN108121579A (en) * | 2016-11-26 | 2018-06-05 | 上海壹账通金融科技有限公司 | The method and device of alteration ruler file |
CN110019395A (en) * | 2017-11-30 | 2019-07-16 | 北京神州泰岳软件股份有限公司 | A kind of implementation method and device for inquiring ElasticSearch |
CN108446262A (en) * | 2018-02-11 | 2018-08-24 | 杭州连帆科技有限公司 | A kind of list generates, analysis method and device |
CN108469953A (en) * | 2018-03-13 | 2018-08-31 | 深圳市易聆科信息技术股份有限公司 | A kind of generation method of page table list, server and storage medium |
CN111625219A (en) * | 2020-05-22 | 2020-09-04 | 杭州指令集智能科技有限公司 | BO component processing method, device and equipment |
CN111984359A (en) * | 2020-08-31 | 2020-11-24 | 湖南快乐阳光互动娱乐传媒有限公司 | Dynamic generation and rendering method and device for control |
Also Published As
Publication number | Publication date |
---|---|
CN105068812B (en) | 2018-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105068812A (en) | Form generation method and device | |
CN101645010B (en) | System and method for automatically generating code | |
CN110058856A (en) | Page configuration method and device | |
WO2015078343A1 (en) | Development method for web development system, and web development system | |
CN103092621B (en) | The method and device that a kind of chart generates | |
RU2536390C2 (en) | Automated report generation method | |
CN101533349B (en) | Platform-related model of large-granularity components and method of automatic code generation thereof | |
CN102360290A (en) | Form building device and form building method | |
CN110333856A (en) | Serviceization can layout online template generating system and method | |
CN103034658A (en) | Method and system for querying data and exporting report | |
CN102663103A (en) | Configurable method for automatically generating database and accessing data | |
CN103955367A (en) | Method and device for generating pages | |
CN102508669A (en) | Automatic program code generating method | |
US20150066977A1 (en) | Method and system for managing digital resources | |
CN102314358A (en) | Method for deploying conventional applications on cloud platform in SOA (service oriented architecture) way | |
CN106484898A (en) | A kind of method and device of the dynamic generation Web system page | |
CN108664242B (en) | Method and device for generating visual interface, electronic equipment and readable storage medium | |
CN106293669A (en) | A kind of generation method and apparatus of web pages component | |
CN105677324A (en) | Method for automatically generating entity type codes | |
CN104267962A (en) | Description-based interface UI control configuration method | |
CN103226472A (en) | Method for realizing service management software development | |
CN109976803A (en) | A kind of generation method and device of file | |
CN102857949A (en) | Method and device for planning data consistency guarantees | |
CN102830974A (en) | Visual auxiliary development tool for rapid generation of JAVA codes | |
CN103077038A (en) | Method for dynamically generating and compiling .NET item |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |