CN104462545A - Page construction method and device based on three-layer model - Google Patents

Page construction method and device based on three-layer model Download PDF

Info

Publication number
CN104462545A
CN104462545A CN201410822052.7A CN201410822052A CN104462545A CN 104462545 A CN104462545 A CN 104462545A CN 201410822052 A CN201410822052 A CN 201410822052A CN 104462545 A CN104462545 A CN 104462545A
Authority
CN
China
Prior art keywords
model
page
data
configuration
layer
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
Application number
CN201410822052.7A
Other languages
Chinese (zh)
Other versions
CN104462545B (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.)
State Grid Corp of China SGCC
Beijing China Power Information Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing China Power Information 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 State Grid Corp of China SGCC, Beijing China Power Information Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410822052.7A priority Critical patent/CN104462545B/en
Publication of CN104462545A publication Critical patent/CN104462545A/en
Application granted granted Critical
Publication of CN104462545B publication Critical patent/CN104462545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a page construction method and device based on a three-layer model to shorten development and maintenance time and reduce operation and maintenance cost. The method comprises the steps of establishing the three-layer model, calling configuration tools corresponding to term model parts in the three-layer model respectively, configuring the term model parts with the configuration tools, saving configuration information generated during term model configuration, and generating an operation page according to the configuration information. The embodiment of the invention further provides a page construction device based on the three-layer model. By the adoption of the page construction method and device based on the three-layer model, development and maintenance time can be shortened, operation and maintenance cost can be reduced.

Description

A kind of page building method based on three layer model and device
Technical field
The present invention relates to page structure field, particularly relate to a kind of page building method based on three layer model and device.
Background technology
Along with improving constantly of social informatization degree, information industry competition is more fierce, the exploitation of Government and enterprise to information-based application system is had higher requirement, how to improve page development efficiency, the demand how meeting the various mutability of client becomes the focus of industry research, is also the difficult problem that page Construct Tool needs solution badly.
The flow process of the page building method existed on the market is at present mainly: first open page designer, if containing display data in the page to be constructed, can import relevant database table and use in order to follow-up binding data in page designer; When designing the pattern such as page layout, control, the intrinsic template used under providing conventional scene, also can carry out self-definition design according to page need, adds the page elements such as layout, control; After page display effect has designed, if containing display data in the page to be constructed, need in page designer, carry out database table and field binding in addition; The process of data binding is generally that database table and grid control are bound, or in database table in field and grid control field bind successively; Preview can be carried out to the constructed page after amendment and adjustment, check operational effect.
But, because all settings are all in page designer, exploitation and maintenance time can be extended, increase O&M cost.
Summary of the invention
Embodiments provide a kind of page building method based on three layer model and device, exploitation and maintenance time can be shortened, reduce O&M cost.
The embodiment of the present invention has the following advantages: by creating three layer model, different configuration tools is used to configure respectively each layer model in three layer model, after having configured, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
Term " first ", " second ", " the 3rd " " 4th " etc. (if existence) in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.The embodiments described herein should be appreciated that the data used like this can be exchanged in the appropriate case, so that can be implemented with the order except the content except here diagram or description.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Refer to Fig. 1, the page building method embodiment based on three layer model in the embodiment of the present invention comprises:
101, three layer model is created;
In the present embodiment, in order to support page structure rapidly and efficiently, create three layer model.
102, the configuration tool of the item model difference correspondence in this three layer model is transferred;
After having created this three layer model, transfer the configuration tool of each layer model difference correspondence in this three layer model, this each layer model that is to say a model.
103, this model is configured respectively by this configuration tool;
After completing the transferring of configuration tool, configure this each layer model respectively by this configuration tool.
104, the configuration information generated in the process of this model of configuration is preserved;
Due to configure this model process in can produce configuration information, this configuration information is saved in xml format.
It should be noted that, can also save in other formats, specifically be not construed as limiting herein.
105, according to this configuration information generating run page.
By processing accordingly this configuration information, optionally, this configuration information being resolved, obtaining running the page.
In the present embodiment, by creating three layer model, different configuration tools is used to configure respectively, after having configured each layer model in three layer model, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
For the ease of understanding, be described in detail the page building method based on three layer model in the embodiment of the present invention below, refer to Fig. 2, another embodiment of the page building method based on three layer model in the embodiment of the present invention comprises:
201, create the three layer model be made up of item model, this model is followed successively by data model, display model and INTERFACE MODEL from the bottom up;
In the present embodiment, create three layer model, wherein this three layer model is made up of item model, and this model is followed successively by data model, display model and INTERFACE MODEL from the bottom up, is wherein loosely-coupled relation between three layer model.
It should be noted that, because this three layer model is loosely-coupled relation each other, facilitate the design and amendment that run page structure.
It should be noted that, this data model runs the business datum collection needing in the page to show; Essential information, data set inquiry word segment information, data set querying condition information, data set organization query language (SQL, Structured Query Language) statement information is comprised in data model.Wherein data set SQL statement information is exactly run the SQL statement that in page presentation, required business datum collection needs.
It should be noted that, this display model is based on this data model, can design the display effect of this data model.On this data model, design this display model, make to run data configuration in page structure more flexible, effectively can process the situation that the corresponding multiple display model of a data model or multiple data model share a display model.Comprise essential information, title display information, form display information, row display information in display model, wherein these row display information comprises displaying type, pattern, the expression formula of row.
It should be noted that, this INTERFACE MODEL is based on this data model, this display model, and this INTERFACE MODEL determines the bandwagon effect of the structure, running page; Comprise layout control, basic control, data control, control property information, data source binding, Wire Parameters and event-action definition in this INTERFACE MODEL, also comprise other controls, be specifically not construed as limiting herein; Wherein, data source binding be this data model and this display model, in this INTERFACE MODEL, data model needed for the page of the operation that only needs to have selected the data source of user's needs just to configure and display model.
202, the data model configuration tool that this data model is corresponding is transferred, the display model configuration tool that this display model is corresponding, the page designer instrument that this INTERFACE MODEL is corresponding;
In order to be configured data model, display model and INTERFACE MODEL.Need to transfer data model configuration tool corresponding to this data model, the display model configuration tool that this display model is corresponding, the page designer instrument that this INTERFACE MODEL is corresponding.
It should be noted that, this data model configuration tool for carrying out the design of this data model, and carries out the preview of this data model; The table related to by configuration data set and field, automatic or manual generates the SQL statement of required business datum collection; This data model configuration tool also has other functions, is specifically not construed as limiting herein.
It should be noted that, this display model configuration tool is used for carrying out this display model design, and carries out display model preview; Carry out showing relevant configuration based on data model, a data model, can configure multiple display model according to needs; This display model configuration tool also has other functions, is specifically not construed as limiting herein.
It should be noted that, this page designer instrument provides abundant webpage representation control, can by patten's design layout, the control of towing, design effect What You See Is What You Get; Realization runs page data control and data source is bound; Can the binding event of dynamic-configuration control, general purpose event process or customized event process can be selected; In page designer, the dynamic parameter arranged in input control and data model can be bound; This page designer also has other functions, is specifically not construed as limiting herein.
203, this model is configured respectively by this configuration tool;
Respectively data model, display model and INTERFACE MODEL are configured by this data model configuration tool, display model configuration tool and page designer instrument, optionally, by this data model configuration tool amendment SQL statement.
204, the configuration information generated in the process of this model of configuration is saved with expandable mark language XML form;
In the process that this model is configured, data model configuration information, display model configuration information, INTERFACE MODEL configuration information can be generated, above-mentioned configuration information is preserved in a database by XML format.
It should be noted that, can also be saved by extended formatting, specifically be not construed as limiting herein.Meanwhile, it is not unique for preserving herein in a database, can also be kept at other places, specifically be not construed as limiting herein.
205, by service end runtime engine, this configuration information is resolved, this configuration information after resolving is sent to client runtime engine with the data interchange format of lightweight (JSON, JavaScript Object Notation);
The configuration information of this three layer model is resolved by runtime engine, runtime engine is divided into service end runtime engine and client runtime engine, the XML configuration information of this three layer model is resolved by this service end runtime engine, and the configuration information after parsing turns back to this client runtime engine with JSON form.
It should be noted that, this client runtime engine can also be turned back to by extended formatting here, specifically be not construed as limiting herein.
206, carry out resolving this configuration information further by this client runtime engine and obtain this operation page.
After the configuration information after resolving turns back to this client runtime engine with JSON form, this client runtime engine carries out resolving this configuration information further and obtains running the page.
In the present embodiment, by creating three layer model, different configuration tools is used to configure respectively, after having configured each layer model in three layer model, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
Secondly, the present embodiment designs display model on this data model, and the data configuration during the page is constructed is more flexible.
Again, present embodiments provide a kind of method according to the configuration information generating run page, add the selectivity of scheme.
It should be noted that, the present embodiment can also comprise: bind this data model and this display model by data source configuration tool, data source configuration tool can also configure whether paging and whether automatically load data, this data source configuration tool also has other functions, specifically be not construed as limiting, wherein this data source configuration tool is configuration tool corresponding to this data source herein.
For the ease of understanding, be described in detail the page building method based on three layer model in the embodiment of the present invention below, refer to Fig. 3, another embodiment of the page building method based on three layer model in the embodiment of the present invention comprises:
301, create the three layer model be made up of item model, this model is followed successively by data model, display model and INTERFACE MODEL from the bottom up;
In the present embodiment, create three layer model, wherein this three layer model is made up of item model, and this model is followed successively by data model, display model and INTERFACE MODEL from the bottom up, is wherein loosely-coupled relation between three layer model.
It should be noted that, because this three layer model is loosely-coupled relation each other, facilitate the design and amendment that run page structure.
It should be noted that, this data model runs the business datum collection needing in the page to show; Essential information, data set inquiry word segment information, data set querying condition information, data set organization query language (SQL, Structured Query Language) statement information is comprised in data model.Wherein data set SQL statement information is exactly run the SQL statement that in page presentation, required business datum collection needs.
It should be noted that, this display model is based on this data model, can design the display effect of this data model.On this data model, design this display model, make to run data configuration in page structure more flexible, effectively can process the situation that the corresponding multiple display model of a data model or multiple data model share a display model.Comprise essential information, title display information, form display information, row display information in display model, wherein these row display information comprises displaying type, pattern, the expression formula of row.
It should be noted that, this INTERFACE MODEL is based on this data model, this display model, and this INTERFACE MODEL determines the bandwagon effect of the structure, running page; Comprise layout control, basic control, data control, control property information, data source binding, Wire Parameters and event-action definition in this INTERFACE MODEL, also comprise other controls, be specifically not construed as limiting herein; Wherein, data source binding be this data model and this display model, in this INTERFACE MODEL, data model needed for the page of the operation that only needs to have selected the data source of user's needs just to configure and display model.
302, the data model configuration tool that this data model is corresponding is transferred, the display model configuration tool that this display model is corresponding, the page designer instrument that this INTERFACE MODEL is corresponding;
In order to be configured data model, display model and INTERFACE MODEL.Need to transfer data model configuration tool corresponding to this data model, the display model configuration tool that this display model is corresponding, the page designer instrument that this INTERFACE MODEL is corresponding.
It should be noted that, this data model configuration tool for carrying out the design of this data model, and carries out the preview of this data model; The table related to by configuration data set and field, automatic or manual generates the SQL statement of required business datum collection; This data model configuration tool also has other functions, is specifically not construed as limiting herein.
It should be noted that, this display model configuration tool is used for carrying out this display model design, and carries out display model preview; Carry out showing relevant configuration based on data model, a data model, can configure multiple display model according to needs; This display model configuration tool also has other functions, is specifically not construed as limiting herein.
It should be noted that, this page designer instrument provides abundant webpage representation control, can by patten's design layout, the control of towing, design effect What You See Is What You Get; Realization runs page data control and data source is bound; Can the binding event of dynamic-configuration control, general purpose event process or customized event process can be selected; In page designer, the dynamic parameter arranged in input control and data model can be bound; This page designer also has other functions, is specifically not construed as limiting herein.
303, this model is configured respectively by this configuration tool;
Respectively data model, display model and INTERFACE MODEL are configured by this data model configuration tool, display model configuration tool and page designer instrument, optionally, by this data model configuration tool amendment SQL statement.
304, the configuration information generated in the process of this model of configuration is saved with expandable mark language XML form;
In the process that this model is configured, data model configuration information, display model configuration information, INTERFACE MODEL configuration information can be generated, above-mentioned configuration information is preserved in a database by XML format.
It should be noted that, can also be saved by extended formatting, specifically be not construed as limiting herein.Meanwhile, it is not unique for preserving herein in a database, can also be kept at other places, specifically be not construed as limiting herein.
305, by this configuration information generating code;
When this configuration information is preserved in a database, also just describe completing of layoutprocedure, then by this configuration information generating code.
306, this operation page is obtained according to this code.
Corresponding process is carried out to this code and obtains this operation page.
In the present embodiment, by creating three layer model, different configuration tools is used to configure respectively, after having configured each layer model in three layer model, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
Secondly, the present embodiment designs display model on this data model, and the data configuration during the page is constructed is more flexible.
Again, present embodiments provide the another kind of method according to the configuration information generating run page, add the selectivity of scheme.
It should be noted that, the present embodiment can also comprise: bind this data model and this display model by data source configuration tool, data source configuration tool can also configure whether paging and whether automatically load data, this data source configuration tool also has other functions, specifically be not construed as limiting, wherein this data source configuration tool is configuration tool corresponding to this data source herein.
For the ease of understanding, with the application scenarios of a reality, the page building method based on three layer model in the embodiment of the present invention is described below:
In State Grid Corporation of China employee reimbursement system, in order to rapid build forms pages, three layer model is created by configuration tool, wherein data model is created by data model configuration tool, and display model is created by display model configuration tool, and INTERFACE MODEL is created by page designer instrument, data model is positioned at the bottom, display model is positioned at middle layer, and INTERFACE MODEL is positioned at the superiors, and this three layer model is loosely-coupled each other.After having created three layer model, use configuration tool to modify configuration, the SQL statement that usage data model configuration tool amendment is corresponding, use display model configuration tool to revise configuration about data set display effect.By data model and display model being bound by data source configuration tool, in INTERFACE MODEL, the data source selecting user to need just has configured runs data model needed for the page and display model.After having configured, the configuration information produced in layoutprocedure is stored in three layer model, by the acting in conjunction of service end runtime engine and client runtime engine, generates forms pages.
Introduce the page constructing apparatus based on three layer model in the embodiment of the present invention below, refer to 4, an embodiment based on the page constructing apparatus of three layer model in the embodiment of the present invention comprises:
Creating unit 401, for creating three layer model;
Transfer unit 402, for transferring the configuration tool of the item model difference correspondence in this three layer model of this creating unit 401 establishment;
Dispensing unit 403, for being transferred this configuration tool that unit 402 transfers configured this model in this three layer model that this creating unit 401 creates respectively by this;
Storage unit 404, is configured for preserving this dispensing unit 403 configuration information generated in the process of this model;
Generation unit 405, for this configuration information generating run page preserved according to this storage unit 404.
In the present embodiment, by creating three layer model, dispensing unit 403 uses different configuration tools to configure respectively each layer model in three layer model, after having configured, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
For the ease of understanding, be described in detail the page constructing apparatus based on three layer model below, refer to Fig. 5, another embodiment of the page constructing apparatus based on three layer model in the embodiment of the present invention comprises:
Creating unit 501, for creating three layer model;
Transfer unit 502, for transferring the configuration tool of the item model difference correspondence in this three layer model of this creating unit 501 establishment;
Dispensing unit 503, for being transferred this configuration tool that unit 502 transfers configured this model in this three layer model that this creating unit 501 creates respectively by this;
Storage unit 504, is configured for preserving this dispensing unit 503 configuration information generated in the process of this model;
Generation unit 505, for this configuration information generating run page preserved according to this storage unit 504.
The embodiment of the present invention also comprises:
Data source configuration tool 506, for binding this data model and this display model, this data source configuration tool is configuration tool corresponding to this data source;
Unit of transferring wherein in the present embodiment comprises:
Transfer subelement 5021, for transferring data model configuration tool corresponding to this data model, the display model configuration tool that this display model is corresponding, the page designer instrument that this INTERFACE MODEL is corresponding.
Dispensing unit 503 comprises:
Data model configuration tool 5031, for designing and preview this data model, generates SQL or manual input SQL configure dynamic parameter and meet complicated business demand;
Display model configuration tool 5032, for designing and preview this display model, carries out showing relevant configuration based on this data model;
Page designer instrument 5033, control is represented for what provide this operation page, realize the data control of this operation page and the binding of data source, realize the dynamic parameter arranged in this data model and the binding running the input control in the page, this data source is as the source of the display data of this operation page.
Storage unit 504 comprises:
Preserve subelement 5041, for being saved with expandable mark language XML form by the configuration information generated in the process of this model of configuration.
Generation unit 505 comprises:
First resolves subelement 5051, for being resolved by this configuration information by service end runtime engine;
Send subelement 5052, for the configuration information after parsing being sent to client runtime engine with the data interchange format JSON of lightweight by this service end runtime engine;
Second resolves subelement 5053, obtains this operation page for being carried out resolving this configuration information further by this client runtime engine;
In the present embodiment, by creating three layer model, dispensing unit 503 uses different configuration tools to configure respectively each layer model in three layer model, after having configured, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
Secondly, the present embodiment designs display model on this data model, and the data configuration during the page is constructed is more flexible.
Again, present embodiments provide a kind of method according to the configuration information generating run page, add the selectivity of scheme.
For the ease of understanding, be described in detail the page constructing apparatus based on three layer model below, refer to Fig. 6, another embodiment of the page constructing apparatus based on three layer model in the embodiment of the present invention comprises:
Creating unit 601, for creating three layer model;
Transfer unit 602, for transferring the configuration tool of the item model difference correspondence in this three layer model of this creating unit 601 establishment;
Dispensing unit 603, for being transferred this configuration tool that unit 602 transfers configured this model in this three layer model that this creating unit 601 creates respectively by this;
Storage unit 604, is configured for preserving this dispensing unit 603 configuration information generated in the process of this model;
Generation unit 605, for this configuration information generating run page preserved according to this storage unit 604.
The embodiment of the present invention also comprises:
Data source configuration tool 606, for binding this data model and this display model, this data source configuration tool is configuration tool corresponding to this data source;
Unit of transferring wherein in the present embodiment comprises:
Transfer subelement 6021, for transferring data model configuration tool corresponding to this data model, the display model configuration tool that this display model is corresponding, the page designer instrument that this INTERFACE MODEL is corresponding.
Dispensing unit 603 comprises:
Data model configuration tool 6031, for designing and preview this data model, generates SQL or manual input SQL configure dynamic parameter and meet complicated business demand;
Display model configuration tool 6032, for designing and preview this display model, carries out showing relevant configuration based on this data model;
Page designer instrument 6033, control is represented for what provide this operation page, realize the data control of this operation page and the binding of data source, realize the dynamic parameter arranged in this data model and the binding running the input control in the page, this data source is as the source of the display data of this operation page.
Storage unit 604 comprises:
Preserve subelement 6041, for being saved with expandable mark language XML form by the configuration information generated in the process of this model of configuration.
Generation unit 605 comprises:
First generates subelement 6051, for by this configuration information generating code;
Second generates subelement 6052, for obtaining this operation page according to this code.
In the present embodiment, by creating three layer model, dispensing unit 603 uses different configuration tools to configure respectively each layer model in three layer model, after having configured, by the configuration information generating run page generated in layoutprocedure, the process that this operation page generates i.e. the page run the process realized; Not merely that page designer by configuration tool completes owing to being configured each layer model in three layer model, avoid and only use page designer to carry out the complex process of page structure, and due to the design of three layer model, Model Reuse degree is high, the degree of coupling is low, simplify and run page development work, simultaneously when maintenance, service need not be redeployed, only need the configuration revising relevant configuration instrument just can complete maintenance, so exploitation and maintenance time can be shortened, reduce O&M cost.
Secondly, the present embodiment designs display model on this data model, and the data configuration during the page is constructed is more flexible.
Again, present embodiments provide the another kind of method according to the configuration information generating run page, add the selectivity of scheme.
For the ease of understand, below with the application scenarios of a reality to being described alternately based on each intermodule of page constructing apparatus of three layer model in the present embodiment:
Creating unit 601 creates three layer model, and this three layer model is made up of item model, and wherein this model is followed successively by data model, display model and INTERFACE MODEL from the bottom up, is wherein loosely-coupled relation between three layer model.It should be noted that, because this three layer model is loosely-coupled relation each other, facilitate the design and amendment that run page structure.It should be noted that, this data model runs the business datum collection needing in the page to show; Essential information, data set inquiry word segment information, data set querying condition information, SQL statement information is comprised in data model.Wherein data set SQL statement information is exactly run the SQL statement that in page presentation, required business datum collection needs.This display model is based on this data model, can design the display effect of this data model.On this data model, design this display model, make to run data configuration in page structure more flexible, effectively can process the situation that the corresponding multiple display model of a data model or multiple data model share a display model.Comprise essential information, title display information, form display information, row display information in display model, wherein these row display information comprises displaying type, pattern, the expression formula of row.This INTERFACE MODEL is based on this data model, this display model, and this INTERFACE MODEL determines the bandwagon effect of the structure, running page; Comprise layout control, basic control and data control in this INTERFACE MODEL, also comprise other controls, be specifically not construed as limiting herein, control property information, data source are bound, event-action defines; Wherein, data source binding be this data model and this display model, in this INTERFACE MODEL, data model needed for the page of the operation that only needs to have selected the data source of user's needs just to configure and display model.In order to be configured data model, display model and INTERFACE MODEL.The subelement 6021 of transferring transferred in unit 602 is needed to transfer data model configuration tool 6031 corresponding to this data model, the display model configuration tool 6032 that this display model is corresponding, the page designer instrument 6033 that this INTERFACE MODEL is corresponding; This data model configuration tool 6031 for carrying out the design of this data model, and carries out the preview of this data model; The table related to by configuration data set and field, automatic or manual generates the SQL statement of required business datum collection.This display model configuration tool 6032 for carrying out this display model design, and carries out display model preview; Carry out showing relevant configuration based on data model, a data model, can configure multiple display model according to needs.This page designer instrument 6033 provides abundant webpage representation control, can by patten's design layout, the control of towing, design effect What You See Is What You Get; Realization runs page data control and data source is bound; Can the binding event of dynamic-configuration control, general purpose event process or customized event process can be selected.Respectively data model, display model and INTERFACE MODEL are configured by this data model configuration tool 6031, display model configuration tool 6032 and page designer instrument 6033, optionally, by this data model configuration tool amendment SQL statement.In the process be configured this model, can generate data model configuration information, display model configuration information, INTERFACE MODEL configuration information, above-mentioned configuration information is preserved in a database by XML format by the preservation subelement 6041 in storage unit 604.It should be noted that, can also be saved by extended formatting, specifically be not construed as limiting herein, meanwhile, other places can also be kept at, specifically be not construed as limiting herein.When this configuration information is preserved in a database, also just describe completing of layoutprocedure, first then in generation unit 605 generates subelement 6051 by this configuration information generating code, generates the subelement 6052 generating run page by second.This data model and this display model is bound by data source configuration tool 606, data source configuration tool can also configure whether paging and whether automatically load data, this data source configuration tool also has other functions, specifically be not construed as limiting, wherein this data source configuration tool is configuration tool corresponding to this data source herein.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the page building method embodiment schematic diagram based on three layer model in the embodiment of the present invention;
Fig. 2 is based on another embodiment schematic diagram of the page building method of three layer model in the embodiment of the present invention;
Fig. 3 is based on another embodiment schematic diagram of the page building method of three layer model in the embodiment of the present invention;
Fig. 4 is the page constructing apparatus embodiment schematic diagram based on three layer model in the embodiment of the present invention;
Fig. 5 is based on another embodiment schematic diagram of the page constructing apparatus of three layer model in the embodiment of the present invention;
Fig. 6 is based on another embodiment schematic diagram of the page constructing apparatus of three layer model in the embodiment of the present invention;
Embodiment
Embodiments providing a kind of page building method based on three layer model and device, for shortening maintenance time, reducing O&M cost.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.

Claims (14)

1., based on a page building method for three layer model, it is characterized in that, comprising:
Create three layer model;
Transfer the configuration tool of the item model difference correspondence in described three layer model;
Described item model is configured respectively by described configuration tool;
Preserve the configuration information generated in the process of the described item model of configuration;
According to the described configuration information generating run page.
2. the page building method based on three layer model according to claim 1, it is characterized in that, described three layer model is made up of item model, and described item model is followed successively by data model, display model and INTERFACE MODEL from the bottom up; Wherein said data model is the model of business datum item set, is obtained by Structured Query Language (SQL) SQL query; Described display model is the model of the described operation page Show Styles describing described data model; Described INTERFACE MODEL is the model describing the design of described operation page layout and event design.
3. the page building method based on three layer model according to claim 2, is characterized in that, the configuration tool transferring item model in described three layer model corresponding respectively comprises:
Transfer the data model configuration tool that described data model is corresponding, the display model configuration tool that described display model is corresponding, the page designer instrument that described INTERFACE MODEL is corresponding; Wherein said data model configuration tool is used for designing and preview described data model, generates SQL or manually input SQL and configure dynamic parameter to meet complicated business demand; Described display model configuration tool is used for designing and preview described display model, carries out showing relevant configuration based on described data model; Described page designer instrument represents control for what provide the described operation page, realizes the data control of the described operation page and the binding of data source, realizes the binding of the dynamic parameter arranged in input control in the described operation page and data model; Described data source is as the source of the display data of the described operation page.
4. the page building method based on three layer model according to claim 3, is characterized in that, preserves the configuration information generated in the process of the described item model of configuration and comprises:
The configuration information generated in the process of the described item model of configuration is saved with expandable mark language XML form.
5. the page building method based on three layer model according to any one of claim 1 to 4, is characterized in that, comprises according to the described configuration information generating run page:
By service end runtime engine, described configuration information is resolved, the described configuration information after resolving is sent to client runtime engine with the data interchange format JSON of lightweight;
Carry out resolving described configuration information further by described client runtime engine and obtain the described operation page;
Or,
By described configuration information generating code;
The described operation page is obtained according to described code.
6. the page building method based on three layer model according to claim 5, is characterized in that,
The described page building method based on three layer model also comprises:
Bind described data model and described display model by data source configuration tool, described data source is joined
The instrument of putting is configuration tool corresponding to described data source.
7. the page building method based on three layer model according to claim 5, is characterized in that,
The described page building method based on three layer model also comprises:
Bind the dynamic parameter arranged in described data model and the input control run in the page.
8., based on a page constructing apparatus for three layer model, it is characterized in that, comprising:
Creating unit, for creating three layer model;
Transfer unit, for transferring the configuration tool of the item model difference correspondence in the described three layer model of described creating unit establishment;
Dispensing unit, the described configuration tool transferred for transferring unit described in passing through configures the described item model in the described three layer model that described creating unit creates respectively;
Storage unit, is configured for preserving described dispensing unit the configuration information generated in the process of described item model;
Generation unit, for the described configuration information generating run page preserved according to described storage unit.
9. the page constructing apparatus based on three layer model according to claim 8, is characterized in that, the three layer model that described creating unit creates is made up of item model, and described item model is followed successively by data model, display model and INTERFACE MODEL from the bottom up; Wherein said data model is the model of business datum item set, is obtained by Structured Query Language (SQL) SQL query; Described display model is the model of the described operation page Show Styles describing described data model; Described INTERFACE MODEL is the model describing the design of described operation page layout and event design.
10. the page constructing apparatus based on three layer model according to claim 9, is characterized in that, described in transfer unit and comprise:
Transfer subelement, for transferring data model configuration tool corresponding to described data model, the display model configuration tool that described display model is corresponding, the page designer instrument that described INTERFACE MODEL is corresponding.
11. page constructing apparatus based on three layer model according to claim 10, it is characterized in that, described dispensing unit comprises:
Data model configuration tool, for designing and preview described data model, generates SQL or manual input SQL configure dynamic parameter and meet complicated business demand;
Display model configuration tool, for designing and preview described display model, carries out showing relevant configuration based on described data model;
Page designer instrument, control is represented for what provide the described operation page, realize the data control of the described operation page and the binding of data source, realize the binding of the dynamic parameter arranged in input control in the described operation page and data model, described data source is as the source of the display data of the described operation page.
12. page constructing apparatus based on three layer model according to claim 11, is characterized in that,
Storage unit comprises:
Preserve subelement, for being saved with expandable mark language XML form by the configuration information generated in the process of the described item model of configuration.
The page constructing apparatus based on three layer model described in 13. according to Claim 8 to 12, it is characterized in that, described generation unit comprises:
First resolves subelement, for being resolved by described configuration information by service end runtime engine;
Send subelement, for the configuration information after parsing being sent to client runtime engine with the data interchange format JSON of lightweight by described service end runtime engine;
Second resolves subelement, obtains the described operation page for being carried out resolving described configuration information further by described client runtime engine;
Or,
First generates subelement, for by described configuration information generating code;
Second generates subelement, for obtaining the described operation page according to described code.
14. page constructing apparatus based on three layer model according to claim 13, is characterized in that, the described page constructing apparatus based on three layer model also comprises:
Data source configuration tool, for binding described data model and described display model, described data source configuration tool is configuration tool corresponding to described data source.
CN201410822052.7A 2014-12-24 2014-12-24 A kind of page building method and device based on three layer model Active CN104462545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410822052.7A CN104462545B (en) 2014-12-24 2014-12-24 A kind of page building method and device based on three layer model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410822052.7A CN104462545B (en) 2014-12-24 2014-12-24 A kind of page building method and device based on three layer model

Publications (2)

Publication Number Publication Date
CN104462545A true CN104462545A (en) 2015-03-25
CN104462545B CN104462545B (en) 2017-12-19

Family

ID=52908580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410822052.7A Active CN104462545B (en) 2014-12-24 2014-12-24 A kind of page building method and device based on three layer model

Country Status (1)

Country Link
CN (1) CN104462545B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487864A (en) * 2015-11-26 2016-04-13 北京京东尚科信息技术有限公司 Method and device for automatically generating code
CN109445794A (en) * 2018-11-12 2019-03-08 北京中电普华信息技术有限公司 A kind of page building method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560741A (en) * 2004-02-23 2005-01-05 史宇清 Structure method of five-hierarchical system structure base on J2EE
CN101252480A (en) * 2008-04-02 2008-08-27 北京邮电大学 Realizing method for establishing multimedia webpage browsing traffic model
US20080313619A1 (en) * 2003-11-05 2008-12-18 International Business Machines Corporation Method and apparatus for a configurable java server pages processing framework
CN102637184A (en) * 2011-02-15 2012-08-15 北京千橡网景科技发展有限公司 Method and system for customizing webpages
US8554792B1 (en) * 2009-09-15 2013-10-08 Cellco Partnership Method and system for providing contents available on the internet to mobile handset
CN103870266A (en) * 2012-12-12 2014-06-18 杭州新世纪电子科技有限公司 Method and system for generating page
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313619A1 (en) * 2003-11-05 2008-12-18 International Business Machines Corporation Method and apparatus for a configurable java server pages processing framework
US20110252399A1 (en) * 2003-11-05 2011-10-13 International Business Machines Corporation Configurable java server pages processing framework
CN1560741A (en) * 2004-02-23 2005-01-05 史宇清 Structure method of five-hierarchical system structure base on J2EE
CN101252480A (en) * 2008-04-02 2008-08-27 北京邮电大学 Realizing method for establishing multimedia webpage browsing traffic model
US8554792B1 (en) * 2009-09-15 2013-10-08 Cellco Partnership Method and system for providing contents available on the internet to mobile handset
CN102637184A (en) * 2011-02-15 2012-08-15 北京千橡网景科技发展有限公司 Method and system for customizing webpages
CN103870266A (en) * 2012-12-12 2014-06-18 杭州新世纪电子科技有限公司 Method and system for generating page
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487864A (en) * 2015-11-26 2016-04-13 北京京东尚科信息技术有限公司 Method and device for automatically generating code
CN105487864B (en) * 2015-11-26 2019-06-04 北京京东尚科信息技术有限公司 The method and apparatus of Code automatic build
CN109445794A (en) * 2018-11-12 2019-03-08 北京中电普华信息技术有限公司 A kind of page building method and device
CN109445794B (en) * 2018-11-12 2022-01-28 北京中电普华信息技术有限公司 Page construction method and device

Also Published As

Publication number Publication date
CN104462545B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN102779040B (en) A kind of method and apparatus generating customizing form
CN105487864A (en) Method and device for automatically generating code
RU2536390C2 (en) Automated report generation method
CN104133772A (en) Automatic test data generation method
CN105653644A (en) Page constructor and page construction method
CN104572096A (en) Multi-model data visualization development method based on WEB and platform thereof
CN105094707A (en) Method and device for storing and reading data
CN111126019B (en) Report generation method and device based on mode customization and electronic equipment
CN106407170A (en) Rapid generation method and system for data report
CN105447723A (en) Promotion system and promotion method
CN104063764A (en) Visualized project code generating device and method
CN105809375A (en) Extension form design integrating method
CN104615431A (en) Method and device for achieving Web application
CN108279880A (en) A kind of configuration method of enterprise's application framework
CN102508862A (en) Data expansion device and data expansion method
CN106910107A (en) One kind promotion page configuration method and system
CN105389184A (en) Configuration method and apparatus for product interface information
CN103197932B (en) A kind of business component model of developing the application of non-mode document data storehouse
CN102426612A (en) Condition object query method and system
CN103135988B (en) Data processing method and system
CN105068980A (en) Graphical display method and system for jump relationship among topics
CN106055535A (en) Method and device for generating charts
CN104217170A (en) Document read-only method and device
CN104462545A (en) Page construction method and device based on three-layer model
CN104063545A (en) Method and system for dynamically displaying process tracing diagram

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant