CN102541851B - Page modularity generation method and page modularity generation system - Google Patents

Page modularity generation method and page modularity generation system Download PDF

Info

Publication number
CN102541851B
CN102541851B CN201010582269.7A CN201010582269A CN102541851B CN 102541851 B CN102541851 B CN 102541851B CN 201010582269 A CN201010582269 A CN 201010582269A CN 102541851 B CN102541851 B CN 102541851B
Authority
CN
China
Prior art keywords
page
functional module
content
unit
pages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010582269.7A
Other languages
Chinese (zh)
Other versions
CN102541851A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201010582269.7A priority Critical patent/CN102541851B/en
Publication of CN102541851A publication Critical patent/CN102541851A/en
Application granted granted Critical
Publication of CN102541851B publication Critical patent/CN102541851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a page modularity generation method, which comprises defining page layout, and dividing the page into a plurality of page areas for storing different contents; establishing the calling relation between the page areas and a function module; calling the function module according to the calling relation; analyzing the business logic in the called function module, and generating page contents corresponding to the function module according to the business logic. The embodiment of the page modularity generation method performs area division on the page contents, performs module calling on each area alone, and generates the corresponding pages. The calling relation is only arranged between different page areas and the function module without nesting page codes of the same quoted module into the whole page, and the problem that the whole page nests the same quoted part and the whole page needs to be modified when the quoted part needs to be changed is avoided.

Description

Page moduleization generates method and system
Technical field
The application relates to WEB application field, particularly relates to a kind of page moduleization and generates method and system.
Background technology
In WEB application, between the different pages, there are a lot of quoting the identical module of function; General implementation is in the code logic of each page, all to add the invocation procedure to function equal modules, the simultaneously page code of nested same reference part in the page.
Inventor finds through research, by in the service code of the nested full page of service code of equal modules, the degree of coupling of full page is increased, if the equal modules content of quoting in multiple pages needs to change, need the part of quoting in multiple pages to modify, make complex operation, easily make mistakes.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of page moduleization to generate method and system, content of pages is carried out to region division, module is carried out separately in each region to be called, generate respective page, avoid the nested same reference part of full page, in the time quoting part and need to change, the situation that need to modify to full page.
Technical scheme is as follows:
A kind of page moduleization generation method, comprising:
Definition page layout is the page area of multiple storage different contents by described page division;
Set up the call relation of described page area and functional module;
According to described call relation, described functional module is called;
Service logic in the functional module of calling described in parsing, generates the content of pages corresponding with described functional module according to described service logic.
Above-mentioned method, preferred, also comprise:
The process that the content of pages that the functional module that described multiple different page areas are called generates combines.
Above-mentioned method, preferred, the Cheng Qian excessively of combining at the described content of pages that functional module is generated, also comprises:
The process that the functional module that described multiple different page areas are called generates content of pages judges;
Judge whether functional module that described multiple different page areas call all completes the generative process of the content of pages corresponding with it.
Above-mentioned method, preferred, the process that generates content of pages corresponding to described functional module according to described service logic is specially:
The service logic of setting up described functional module realizes interface;
Obtain the content-data of described functional module according to described interface;
The content-data of described functional module is carried out associated with the pagefile in described functional module;
By described pagefile, the content-data of described functional module is generated as to content of pages.
Above-mentioned method, preferred, described module pagefile can associated multiple module contents data.
A kind of page module generation system, comprising:
Page definition unit, relation are set up unit, call unit, resolution unit and generation unit;
Wherein:
Described page definition unit is used for defining page layout, is the page area of multiple storage different contents by described page division;
Described relation is set up unit for setting up the page area of described page definition dividing elements and the call relation of functional module;
Described call unit calls described functional module for set up the call relation of setting up unit according to described relation;
Described resolution unit is for resolving the service logic of the functional module that described call unit calls;
Described generation unit generates the content of pages corresponding with described functional module for the service logic of resolving according to described resolution unit.
Above-mentioned system, preferred, also comprise: assembled unit;
Described assembled unit combines for the content of pages that described generation unit is generated.
Above-mentioned system, preferred, also comprise judging unit;
Described judging unit judges whether described generation unit completes the generative process of the content of pages corresponding to functional module before combining for the content of pages described generation unit being generated at described assembled unit.
Above-mentioned system, preferred, described generation unit comprises:
Interface is set up subelement, content obtaining subelement, associated subelement and is generated subelement;
Wherein:
Described interface is set up subelement and is realized interface for the service logic of setting up described functional module;
Described content obtaining subelement obtains the content-data of described functional module for set up the interface of subelement foundation according to described interface;
Described associated subelement carries out association for the pagefile of functional module described in the content-data territory of functional module that described content obtaining subelement is obtained;
Described generation subelement is for generating content of pages by described module pagefile by described module contents data.
The technical scheme being provided from above the embodiment of the present application, page moduleization provided by the invention generates method and system, the page is carried out to region division according to different storage contents, set up the call relation of each page area and functional module, independently call respectively different functional modules, generate content of pages corresponding to described functional module, described content of pages is to generate according to the service logic in described functional module.In the process of multiple page invocation equal modules, call relation between functional module is only set in different page areas, do not need the page code of same reference module just nested to full page, avoid in the service code of the nested full page of service code of equal modules, the degree of coupling of full page is increased, if the equal modules content of quoting in multiple pages needs to change, need the problem that part is modified of quoting in multiple pages.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, the accompanying drawing the following describes is only some embodiment that record in the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the page moduleization generation method that Fig. 1 provides for the embodiment of the present application;
Page area and functional module call relation schematic diagram that Fig. 2 provides for the embodiment of the present application;
One detailed construction schematic diagram of the page module generation method that Fig. 3 provides for the embodiment of the present application;
Another detailed construction schematic diagram of the page module generation method that Fig. 4 provides for the embodiment of the present application;
The method flow diagram of the process according to content of pages corresponding to service logic systematic function module that Fig. 5 provides for the embodiment of the present application;
Between the page that Fig. 6 provides for the embodiment of the present application and module, be related to connection diagram;
The structural representation of the page module generation system that Fig. 7 provides for the embodiment of the present application;
One detailed construction schematic diagram of the page module generation system that Fig. 8 provides for the embodiment of the present application;
Another detailed construction schematic diagram of the page module generation system that Fig. 9 provides for the embodiment of the present application;
The structural representation of the generation unit that Figure 10 provides for the embodiment of the present application.
Embodiment
In order to make those skilled in the art person understand better the application's scheme.Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Based on the embodiment in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all should belong to the scope of the application's protection.
The process flow diagram of the page moduleization generation method that the embodiment of the present application provides as shown in Figure 1, comprising:
Step S101: definition page layout is the page area of multiple storage different contents by described page division;
Be different page areas by page division, define the particular content of each page area storage;
Step S102: the call relation of setting up described page area and functional module;
By setting up the call relation of page area and functional module, each page area can independently be called to functional module;
Step S103: described functional module is called according to described call relation;
Different page areas calls the functional module corresponding with its content, has realized the page and has called by zones of different the mode that multiple modules generate;
Step S104: the service logic in the functional module of calling described in parsing, generates the content of pages corresponding with described functional module according to described service logic.
Because module is an independently Service Processing Unit, it has completely independently service code, completely independently page code; And module and homepage have same context relation, so be one by the final page and the homepage generating of module.In the page module generation method that the embodiment of the present invention provides, directly module is called, the content of pages that modules is generated merges, need to be in homepage nested module quote code, make the generation of the page more direct, the complex operation of having avoided bringing because code the is nested various problems such as easily make mistakes.
In the page module generation method that the embodiment of the present application provides, generate after each self-corresponding content of pages at each page area calling functional modules, also comprise the process that multiple different content of pages are combined, specifically as shown in Figure 3, comprise step S105: the content of pages that the functional module that multiple different page areas are called generates combines.
In conjunction with Fig. 1 and the described embodiment of Fig. 3, in order more clearly to introduce the division of page area and the call relation of page area and functional module, the application's embodiment of the method provides page area and functional module call relation schematic diagram, as shown in Figure 2, in homepage, the content that need to store according to each different page locations, homepage is divided into multiple page areas, the content of each page area storage, through pre-defined, arranges the call relation of the page area functional module corresponding with its storage content.
In Fig. 2, region A respective modules A, in the time that the page generates, region A calling module A, to the particular content in modules A, and in modules A, the logic that realizes of particular content is resolved, the content of pages that generation module A is corresponding; What carry out is that each self-corresponding module is called in other region simultaneously, generates corresponding content of pages, and each content of pages combines the most at last, obtains the demand page.
In the page module generative process that the embodiment of the present application provides, before content of pages combines, also comprise the deterministic process that each disparate modules is generated to page process, specific implementation process as shown in Figure 4, comprising: step S116: judge whether the functional module that multiple different page areas call all generates the content of pages corresponding with it; If so, execution step S105; Otherwise, execution step S117;
Step S117: the module that does not complete generating content is carried out to real-time judge, until the functional module of calling all generates the content of pages corresponding with it, finish deterministic process; Execution step S105.
In the description process of above embodiment of the method, generating the content of pages corresponding with described functional module according to described service logic is an important step, the method flow diagram according to content of pages corresponding to service logic systematic function module that the embodiment of the present application provides as shown in Figure 5, comprising:
Step S201: the service logic of setting up described functional module realizes interface;
Service logic in functional module exists with the form of class group, and first the realization of service logic class will set up the corresponding interface of logic class;
Step S202: the content-data that obtains described functional module according to described interface;
Realize logic class, when its main process, obtain content-data, the realization of the line correlation business of going forward side by side;
Step S203: the content-data of described functional module is carried out associated with the pagefile in described functional module;
Pagefile in module is static html file corresponding to module, and it is associated that the pagefile of module and service logic class are carried out, and carries out associated by the content-data in module with pagefile; Module pagefile can associated multiple logic class;
Step S104: the content-data of described functional module is generated as to content of pages by described pagefile.
Between the page that the embodiment of the present application provides and module, be related to that connection diagram as shown in Figure 6, as shown in Figure 6, homepage is by self page logic and pagefile, the layout framework that generates homepage, the particular content in its framework, is generated by page area calling functional modules, between homepage and module, use same upper and lower logical relation, modules is functional module completely independently, and between module and homepage, does not need linking relationship, there is no corresponding control of authority.
For aforesaid embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
For above embodiment of the method, the embodiment of the present application also provides a kind of page module generation system, its structural representation as shown in Figure 7, comprises that page definition unit 301, relation set up unit 302, call unit 303, resolution unit 304 and generation unit 305;
Wherein:
Page definition unit 301, for defining page layout, is the page area of multiple storage different contents by described page division;
Relation is set up unit 302 for the page area setting up described page definition unit 301 and divide and the call relation of functional module;
Call unit 303 calls described functional module for setting up according to described relation the call relation of setting up unit 302;
Resolution unit 304 is for the service logic of the functional module of resolving described call unit 303 and calling;
Generation unit 305 generates the content of pages corresponding with described functional module for the service logic of resolving according to described resolution unit 304.
On the basis of system shown in Figure 7, the detailed construction schematic diagram that the embodiment of the present application also provides page module generation system as shown in Figure 8, also comprises: assembled unit 306;
Assembled unit 306 combines for the content of pages that described generation unit 305 is generated.
On the basis of system shown in Figure 8, the another detailed construction schematic diagram that the embodiment of the present application provides page module generation system as shown in Figure 9, also comprises judging unit 307;
Before judging unit 307 combines for the content of pages described generation unit 305 being generated at described assembled unit 306, judge whether described generation unit 305 completes the generative process of the content of pages corresponding to functional module.
Figure 10 provides the detailed construction schematic diagram of generation unit in the embodiment of the present application; Generation unit 305 comprises:
Interface is set up subelement 401, content obtaining subelement 402, associated subelement 403 and is generated subelement 404;
Wherein:
Interface is set up subelement 401 and is realized interface for the service logic of setting up described functional module;
Content obtaining subelement 402 obtains the content-data of described functional module for set up interface that subelement 401 sets up according to described interface;
Associated subelement 403 carries out association for the pagefile of functional module described in the content-data territory of functional module that described content obtaining subelement 402 is obtained;
Generate subelement 404 for described module contents data being generated to content of pages by described module pagefile.
For system embodiment, because it is substantially corresponding to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Embodiment of the method and system embodiment that comprehensive the embodiment of the present application provides, in the present invention, be the page area of storage different content by page division, call the functional module under complete separate state by page area, only realize the generative process to the page by calling module; Avoid in the service code of the nested full page of service code of equal modules, the degree of coupling of full page is increased, if the equal modules content of quoting in multiple pages needs to change, need the problem that part is modified of quoting in multiple pages.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.The above is only the application's embodiment; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection domain.

Claims (7)

1. a page moduleization generation method, is characterized in that, comprising:
Definition page layout is the page area of multiple storage different contents by described page division;
Set up the call relation of described page area and functional module, so that each page area can independently be called functional module;
According to described call relation, described functional module is called;
Service logic in the functional module of calling described in parsing, generates the content of pages corresponding with described functional module according to described service logic;
Wherein, the process that generates content of pages corresponding to described functional module according to described service logic is specially:
The service logic of setting up described functional module realizes interface;
Obtain the content-data of described functional module according to described interface;
The content-data of described functional module is carried out associated with the pagefile in described functional module;
By described pagefile, the content-data of described functional module is generated as to content of pages.
2. method according to claim 1, is characterized in that, also comprises:
The process that the content of pages that the functional module that the page area of described multiple storage different contents is called generates combines.
3. method according to claim 2, is characterized in that, the Cheng Qian excessively of combining at the described content of pages that functional module is generated, also comprises:
The process that the functional module that the page area of described multiple storage different contents is called generates content of pages judges;
Judge whether functional module that described multiple different page areas call all completes the generative process of the content of pages corresponding with it.
4. method according to claim 1, is characterized in that, the pagefile in described functional module can associated multiple module contents data.
5. a page module generation system, is characterized in that, comprising:
Page definition unit, relation are set up unit, call unit, resolution unit and generation unit;
Wherein:
Described page definition unit is used for defining page layout, is the page area of multiple storage different contents by described page division;
Described relation is set up unit for setting up the page area of described page definition dividing elements and the call relation of functional module, so that each page area can independently be called functional module;
Described call unit calls described functional module for set up the call relation of setting up unit according to described relation;
Described resolution unit is for resolving the service logic of the functional module that described call unit calls;
Described generation unit generates the content of pages corresponding with described functional module for the service logic of resolving according to described resolution unit;
Wherein, described generation unit comprises:
Interface is set up subelement, content obtaining subelement, associated subelement and is generated subelement;
Wherein:
Described interface is set up subelement and is realized interface for the service logic of setting up described functional module;
Described content obtaining subelement obtains the content-data of described functional module for set up the interface of subelement foundation according to described interface;
Described associated subelement carries out associated for the content-data of functional module and the pagefile of described functional module that described content obtaining subelement is obtained;
Described generation subelement is for generating content of pages by described module pagefile by module contents data.
6. system according to claim 5, is characterized in that, also comprises: assembled unit;
Described assembled unit combines for the content of pages that described generation unit is generated.
7. system according to claim 6, is characterized in that, also comprises judging unit;
Described judging unit judges whether described generation unit completes the generative process of the content of pages corresponding to functional module before combining for the content of pages described generation unit being generated at described assembled unit.
CN201010582269.7A 2010-12-10 2010-12-10 Page modularity generation method and page modularity generation system Active CN102541851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010582269.7A CN102541851B (en) 2010-12-10 2010-12-10 Page modularity generation method and page modularity generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010582269.7A CN102541851B (en) 2010-12-10 2010-12-10 Page modularity generation method and page modularity generation system

Publications (2)

Publication Number Publication Date
CN102541851A CN102541851A (en) 2012-07-04
CN102541851B true CN102541851B (en) 2014-05-14

Family

ID=46348775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010582269.7A Active CN102541851B (en) 2010-12-10 2010-12-10 Page modularity generation method and page modularity generation system

Country Status (1)

Country Link
CN (1) CN102541851B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064685B (en) * 2012-12-27 2016-07-13 北京思特奇信息技术股份有限公司 A kind of method of modular arrangements Webpage and device
CN104346333B (en) * 2013-07-23 2019-02-22 腾讯科技(深圳)有限公司 A kind of implementation method and device of Web application
CN104268258B (en) * 2014-10-09 2018-02-23 北京国双科技有限公司 The multistage method for routing and device of webpage
CN104360857A (en) * 2014-11-10 2015-02-18 广东威创视讯科技股份有限公司 Method and module for mutual control among multiple pages
CN106033372A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Page switching method and apparatus
CN107643872B (en) * 2016-07-20 2019-12-27 平安科技(深圳)有限公司 Multi-module page control method and device
CN108153798B (en) * 2016-12-02 2022-02-18 阿里巴巴集团控股有限公司 Page information processing method, device and system
CN106951271A (en) * 2017-04-18 2017-07-14 北京思特奇信息技术股份有限公司 A kind of module loading method and system based on JavaScript
CN109388443A (en) * 2017-08-09 2019-02-26 中兴通讯股份有限公司 A kind of template independent solution, device and the storage medium of more framework templates
CN107450929A (en) * 2017-08-10 2017-12-08 武汉斗鱼网络科技有限公司 Page development method and device
CN108563677B (en) * 2018-03-05 2022-11-29 五八有限公司 Data display method and device, electronic equipment and storage medium
CN109388770B (en) * 2018-09-17 2020-05-05 北京市计算中心 Web page generation method and device
CN109582347B (en) * 2018-10-15 2024-04-02 平安科技(深圳)有限公司 Method and device for acquiring front-end codes
CN110471781A (en) * 2019-08-22 2019-11-19 北京字节跳动网络技术有限公司 Processing method, device, electronic equipment and the storage medium of page data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311925A (en) * 2007-05-23 2008-11-26 杭州华三通信技术有限公司 Web page development and maintenance method and its device
CN101609398A (en) * 2008-06-18 2009-12-23 中兴通讯股份有限公司 The development system of network application and method
CN101645084A (en) * 2009-04-23 2010-02-10 中国科学院声学研究所 Processing method of dynamic data of embedded browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000250841A (en) * 1999-03-02 2000-09-14 Hitachi Ltd Method and device for generating page, storage medium recorded with the page generation program and electronic mole system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311925A (en) * 2007-05-23 2008-11-26 杭州华三通信技术有限公司 Web page development and maintenance method and its device
CN101609398A (en) * 2008-06-18 2009-12-23 中兴通讯股份有限公司 The development system of network application and method
CN101645084A (en) * 2009-04-23 2010-02-10 中国科学院声学研究所 Processing method of dynamic data of embedded browser

Also Published As

Publication number Publication date
CN102541851A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541851B (en) Page modularity generation method and page modularity generation system
Whittaker et al. Compressed development
CN103092621B (en) The method and device that a kind of chart generates
CN105487864A (en) Method and device for automatically generating code
CN110597842B (en) Service data query method and system
CN101788906B (en) Resource management method and system thereof
CN103488537A (en) Method and device for executing data ETL (Extraction, Transformation and Loading)
CN103257959A (en) Method and device for generating spreadsheet report
CN102789394B (en) Method, device and nodes for parallelly processing information and server cluster
CN101650652A (en) Method and device for developing business processes
CN103577165A (en) Form generation method and form generator
CN102436381A (en) Method and device for generating interface layout
CN105867944A (en) Web front-end terminal operating layer and implementing method thereof
CN101551742A (en) Guidance assembly for assisting building applying system for service
CN102455903B (en) Method for generating user application interface
CN106776074A (en) A kind of web plug-in units call method and system based on http
CN103135989A (en) Callback function code generation method and device
CN102420812B (en) Automatic quality of service (QoS) combination method supporting distributed parallel processing in web service
CN101335651B (en) Simulated testing system and method for expanding terminal by the same system
CN102842088A (en) Intelligent business address selection system
CN102799581B (en) A kind of system and method realizing cross-platform graphic library
CN102375664B (en) Icon moving method and device
CN103561113A (en) Web Service interface generating method and device
CN102446164A (en) Analytic method, device and operation system of report formula
CN100483396C (en) Electronic data table calculation method and device

Legal Events

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

Effective date of registration: 20211229

Address after: 201901 room 136, building 2, No. 2038, Taihe Road, Baoshan District, Shanghai

Patentee after: Shanghai Guanyi Cloud Computing Software Co.,Ltd.

Address before: 518000 hi tech Industrial Village, Shennan Avenue, Shenzhen, Guangdong, Nanshan District W1-B4

Patentee before: Kingdee software (China) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221116

Address after: 518057 1-8 / F, block a, Kingdee Software Park, No.2, Keji South 12th Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Kingdee software (China) Co.,Ltd.

Address before: 201901 room 136, building 2, No. 2038, Taihe Road, Baoshan District, Shanghai

Patentee before: Shanghai Guanyi Cloud Computing Software Co.,Ltd.

TR01 Transfer of patent right