CN107678736A - A kind of business Page Template shows method, system and computer installation - Google Patents

A kind of business Page Template shows method, system and computer installation Download PDF

Info

Publication number
CN107678736A
CN107678736A CN201710930801.1A CN201710930801A CN107678736A CN 107678736 A CN107678736 A CN 107678736A CN 201710930801 A CN201710930801 A CN 201710930801A CN 107678736 A CN107678736 A CN 107678736A
Authority
CN
China
Prior art keywords
page template
business
business page
control
tenant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710930801.1A
Other languages
Chinese (zh)
Inventor
吴惊道
刘昆鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network 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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201710930801.1A priority Critical patent/CN107678736A/en
Publication of CN107678736A publication Critical patent/CN107678736A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

What the present invention proposed a kind of business Page Template shows method, system, computer installation and computer-readable recording medium, and the method that shows of the business Page Template includes:Obtain business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark;According to business Page Template parameter, the business Page Template prestored is inquired in database;Parse the information of business Page Template;Type using freemarker template engines according to the information of business Page Template, the information of business Page Template is incorporated into preset control, generates html files;Show html files.The development model for showing method and can unifying front and back end of business Page Template proposed by the present invention, while more multiplexing development modes are supported, overlapping development workload is reduced, reduces the cost of tenant's exploitation, operation and maintenance service Page Template.

Description

A kind of business Page Template shows method, system and computer installation
Technical field
The present invention relates to page presentation technical field, showing method, be in particular to a kind of business Page Template System, computer installation and computer-readable recording medium.
Background technology
With the fast development of Internet technology, cloud and virtualization technology reach its maturity, and accelerate the traditional forms of enterprises Networking is interconnected, the deep of internet and the traditional forms of enterprises is merged, developed, and promotes the traditional forms of enterprises constantly to make popularization, marketing, product exhibition Show, run etc. that commercial activity depends on internet.In Paas (Platform-as-a-service, i.e. platform are serviced), tenant The species of optional forms traffic is abundant, frequency of use is frequent.It is single mostly for showing for business Page Template in correlation technique One shows scheme, and tenant is designed using single business Page Template, can not be answered once object changes front end page With exploitation.The market environment developed based on this internet, substantial amounts of human cost exploitation certainly will be consumed, safeguard each industry Unified style and functional relationship between the business page, reducing multiplexing development cost turns into urgent problem to be solved.
The content of the invention
It is contemplated that at least solves one of technical problem present in prior art or correlation technique.
Therefore, one aspect of the present invention be to propose a kind of business Page Template show method.
What another aspect of the present invention was to propose a kind of business Page Template shows system.
Another aspect of the invention is to propose a kind of computer installation.
An additional aspect of the present invention is to propose a kind of computer-readable recording medium.
In view of this, according to an aspect of the present invention, it is proposed that a kind of business Page Template shows method, including: Obtain business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark;According to business Page Template parameter, The business Page Template prestored is inquired in database;Parse the information of business Page Template;Utilize The information of business Page Template is incorporated into default by freemarker template engines according to the type of the information of business Page Template In control, html files are generated;Show html files.
Business Page Template provided by the invention shows method, and system obtains tenant's unique mark and its corresponding business Page module parameter, go out tenant according to business page module parameter query and be pre-designed to be finished and stored in the service page of database Face mould version and the information for parsing the business Page Template, the type of the information, root are judged using freemarker template engines Merge the information and preset control of business Page Template according to the type of the information of business Page Template, ultimately generate static text Html files simultaneously show to terminal.The present invention can unify the development model of front and back end, while support more multiplexing development modes, subtract Few overlapping development workload, reduce the cost of tenant's exploitation, operation and maintenance service Page Template.
Method is showed according to the above-mentioned business Page Template of the present invention, there can also be following technical characteristic:
In the above-mentioned technical solutions, it is preferable that obtaining business corresponding to tenant's unique mark and tenant's unique mark Before Page Template parameter, in addition to:Stencil design instruction is received, designs business Page Template;Add on business Page Template Carry business object;Business Page Template is stored to database.
In the technical scheme, tenant's registering service page development platform carries out the design of business Page Template, is business Page Template configuration belongs to the tenant's unique mark for being currently at logging status tenant, business object and business object relation letter Breath, wherein, tenant's unique mark is used to mark any business Page Template, and business object relation information is used to record to enter data Relation between row retrieval and each component of processing.The business Page Template of complete design is stored in the database of system, To be called when business Page Template is showed to it.Information data using each tenant's service page face mould version is mutually isolated The mode of storage, add autgmentability and the flexibility of design business Page Template.
In the above-mentioned technical solutions, it is preferable that before loading business object on business Page Template, in addition to:Judge Whether the version of business object and the version of system metadata are consistent;When business object version and system metadata version not When consistent, the version of business object is updated.
In the technical scheme, system carries out check analysis to the version of business object and the version of system metadata, if The inconsistent business Page Template that is likely to result in of version can not load business object or be loaded with the service page face mould of business object Plate can not stably work, and the problems such as unexpected positive closing, data error reporting occur.Made by the version for updating business object It is consistent with the version of system metadata, and the process of design business Page Template has self-checking function, further increases design The flexibility of business Page Template and stability.
In the above-mentioned technical solutions, it is preferable that the step of showing html files, specifically include:It will need in html files On the business rule of entity object that shows changed;Show html files and entity object.
In the technical scheme, business rule is service logic, by using entity object by static text html files Data take out and change, the logic of the business page of html files is finally shown to tenant.
In the above-mentioned technical solutions, it is preferable that the node that business Page Template parameter includes but is not limited to business object is compiled Code, the relation value of business object.
In the technical scheme, system according to the nodes encoding of business object in business Page Template, relation value or other One or more of reference information for record traffic Page Template feature, in database inquiring tenant prestores Business Page Template, add the accuracy for inquiring the business Page Template needed for tenant.
In the above-mentioned technical solutions, it is preferable that preset control includes but is not limited to table controls, grid controls, form controls Part, basic control;Basic control includes text control, numerical value control, with reference to control, date control, more text controls, radio box Control, check box control, dropdown control, picture control;Wherein, table controls, grid controls, form controls are included at least One basic control.
In the technical scheme, table controls include newly-increased form lists, table data lists, wherein, increase form newly List is served only for preserving, cancelled in the operation for increasing data newly, and table data lists only exist table volume data, can click on line number According to whole row data messages are opened in data of being expert at lower section in a manner of the form lists that tile.Grid controls support two kinds of displaying circles Face, at once data direct editing or row data form form editings.Form controls provide editor, delete, preserve, cancelling operation. Information by merging business Page Template realizes the various flush system of boss's table under multi-tenant with preset control and rendered.
According to another aspect of the present invention, it is proposed that a kind of business Page Template shows system, including:Obtain single Member, for obtaining business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark;Query unit, for root According to business Page Template parameter, the business Page Template prestored is inquired in database;Resolution unit, for parsing The information of business Page Template;Generation unit, for the information using freemarker template engines according to business Page Template Type, the information of business Page Template is incorporated into preset control, generate html files;Show unit, for showing Html files.
Business Page Template provided by the invention shows system, and system obtains tenant's unique mark and its corresponding business Page module parameter, go out tenant according to business page module parameter query and be pre-designed to be finished and stored in the service page of database Face mould version and the information for parsing the business Page Template, the type of the information, root are judged using freemarker template engines Merge the information and preset control of business Page Template according to the type of the information of business Page Template, ultimately generate static text Html files simultaneously show to terminal.The present invention can unify the development model of front and back end, while support more multiplexing development modes, Overlapping development workload is reduced, reduces the cost of tenant's exploitation, operation and maintenance service Page Template.
System is showed according to the above-mentioned business Page Template of the present invention, there can also be following technical characteristic:
In the above-mentioned technical solutions, it is preferable that also include:Design cell, for obtaining tenant's unique mark and rent Before business Page Template parameter corresponding to the unique mark of family, stencil design instruction is received, designs business Page Template;Loading is single Member, for loading business object on business Page Template;Memory cell, for business Page Template to be stored to database.
In the technical scheme, tenant's registering service page development platform carries out the design of business Page Template, is business Page Template configuration belongs to the tenant's unique mark for being currently at logging status tenant, business object and business object relation letter Breath, wherein, tenant's unique mark is used to mark any business Page Template, and business object relation information is used to record to enter data Relation between row retrieval and each component of processing.The business Page Template of complete design is stored in the database of system, To be called when business Page Template is showed to it.Information data using each tenant's service page face mould version is mutually isolated The mode of storage, add autgmentability and the flexibility of design business Page Template.
In the above-mentioned technical solutions, it is preferable that also include:Judging unit, for loading business on business Page Template Before object, judge business object version and system metadata version it is whether consistent;Updating block, for working as business object Version and system metadata version it is inconsistent when, update the version of business object.
In the technical scheme, system carries out check analysis to the version of business object and the version of system metadata, if The inconsistent business Page Template that is likely to result in of version can not load business object or be loaded with the service page face mould of business object Plate can not stably work, and the problems such as unexpected positive closing, data error reporting occur.Made by the version for updating business object It is consistent with the version of system metadata, and the process of design business Page Template has self-checking function, further increases design The flexibility of business Page Template and stability.
In the above-mentioned technical solutions, it is preferable that show unit, including:Converting unit, for that will need in html files The business rule of the entity object showed is changed;Show unit, specifically for showing html files and entity object.
In the technical scheme, business rule is service logic, by using entity object by static text html files Data take out and change, the logic of the business page of html files is finally shown to tenant.
In the above-mentioned technical solutions, it is preferable that the node that business Page Template parameter includes but is not limited to business object is compiled Code, the relation value of business object.
In the technical scheme, system according to the nodes encoding of business object in business Page Template, relation value or other One or more of reference information for record traffic Page Template feature, in database inquiring tenant prestores Business Page Template, add the accuracy for inquiring the business Page Template needed for tenant.
In the above-mentioned technical solutions, it is preferable that preset control includes but is not limited to table controls, grid controls, form controls Part, basic control;Basic control includes text control, numerical value control, with reference to control, date control, more text controls, radio box Control, check box control, dropdown control, picture control;Wherein, table controls, grid controls, form controls are included at least One basic control.
In the technical scheme, table controls include newly-increased form lists, table data lists, wherein, increase form newly List is served only for preserving, cancelled in the operation for increasing data newly, and table data lists only exist table volume data, can click on line number According to whole row data messages are opened in data of being expert at lower section in a manner of the form lists that tile.Grid controls support two kinds of displaying circles Face, at once data direct editing or row data form form editings.Form controls provide editor, delete, preserve, cancelling operation. Information by merging business Page Template realizes the various flush system of boss's table under multi-tenant with preset control and rendered.
According to a further aspect of the invention, it is proposed that a kind of computer installation, including memory, processor and be stored in Realized on memory and the computer program that can run on a processor, during computing device computer program any one of as described above The step of showing method of business Page Template.
Computer installation provided by the invention, system obtain tenant's unique mark and its corresponding business page module ginseng Number, go out tenant according to business page module parameter query and be pre-designed to be finished and stored in the service page face mould version of database and solve The information of the business Page Template is separated out, the type of the information is judged using freemarker template engines, according to the business page The type of the information of template merges the information and preset control of business Page Template, ultimately generates static text html files and opens up Now to terminal.The present invention can unify the development model of front and back end, while support more multiplexing development modes, reduce overlapping development Workload, reduce the cost of tenant's exploitation, operation and maintenance service Page Template.
According to a further aspect of the invention, it is proposed that a kind of computer-readable recording medium, be stored thereon with computer Program, it is characterised in that showing for business Page Template any one of as described above is realized when computer program is executed by processor The step of method.
Computer-readable recording medium provided by the invention, system obtain tenant's unique mark and its corresponding business page Module parameter, go out tenant according to business page module parameter query and be pre-designed to be finished and stored in the service page face mould of database Version simultaneously parses the information of the business Page Template, the type of the information is judged using freemarker template engines, according to industry The type of the information of business Page Template merges the information and preset control of business Page Template, ultimately generates static text html texts Part simultaneously shows to terminal.The present invention can unify the development model of front and back end, while support more multiplexing development modes, reduce and repeat Development amount, reduce the cost of tenant's exploitation, operation and maintenance service Page Template.
The additional aspect and advantage of the present invention will become obvious in following description section, or the practice by the present invention Recognize.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment Substantially and it is readily appreciated that, wherein:
Fig. 1 shows the schematic flow sheet for showing method of the business Page Template of one embodiment of the present of invention;
Fig. 2 shows the schematic flow sheet for showing method of the business Page Template of an alternative embodiment of the invention;
Fig. 3 shows the schematic diagram of the design business Page Template of one embodiment of the present of invention;
Fig. 4 shows the schematic flow sheet for showing method of the business Page Template of yet another embodiment of the present invention;
Fig. 5 shows the schematic diagram of the operation business Page Template of one embodiment of the present of invention;
Fig. 6 shows the schematic diagram of the parsing business Page Template of one embodiment of the present of invention;
Fig. 7 a show the schematic block diagram for showing system of the business Page Template of one embodiment of the present of invention;
Fig. 7 b show the schematic block diagram for showing system of the business Page Template of an alternative embodiment of the invention;
Fig. 8 shows the schematic block diagram of the computer installation of one embodiment of the present of invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not limited to following public affairs The limitation for the specific embodiment opened.
The embodiment of first aspect present invention, propose a kind of business Page Template shows method, and Fig. 1 shows the present invention One embodiment business Page Template the schematic flow sheet for showing method.Wherein, this method includes:
Step 102, business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark is obtained;
Step 104, according to business Page Template parameter, the business Page Template prestored is inquired in database;
Step 106, the information of business Page Template is parsed;
Step 108, the type using freemarker template engines according to the information of business Page Template, by the business page The information of template is incorporated into preset control, generates html files;
Step 110, html files are showed.
In this embodiment, system obtains tenant's unique mark and its corresponding business page module parameter, according to business Page module parameter query goes out tenant and is pre-designed the service page face mould version for being finished and stored in database and parses the business The information of Page Template, the type of the information is judged using freemarker template engines, according to the information of business Page Template Type merge business Page Template information and preset control, ultimately generate static text html files and show to terminal. The present invention can unify the development model of front and back end, while support more multiplexing development modes, reduce overlapping development workload, reduce The cost of tenant's exploitation, operation and maintenance service Page Template.
Fig. 2 shows the schematic flow sheet for showing method of the business Page Template of an alternative embodiment of the invention.Its In, this method includes:
Step 202, stencil design instruction is received, designs business Page Template;
Step 204, judge business object version and system metadata version it is whether consistent, if it is not, then performing step 206, if so, then performing step 208;
Step 206, the version of business object is updated;
Step 208, business object is loaded on business Page Template;
Step 210, business Page Template is stored to database;
Step 212, business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark is obtained;
Step 214, according to business Page Template parameter, the business Page Template prestored is inquired in database;
Step 216, the information of business Page Template is parsed;
Step 218, the type using freemarker template engines according to the information of business Page Template, by the business page The information of template is incorporated into preset control, generates html files;
Step 220, html files are showed.
In this embodiment, system obtains tenant's unique mark and its corresponding business page module parameter, according to business Page module parameter query goes out tenant and is pre-designed the service page face mould version for being finished and stored in database and parses the business The information of Page Template, the type of the information is judged using freemarker template engines, according to the information of business Page Template Type merge business Page Template information and preset control, ultimately generate static text html files and show to terminal. The present invention can unify the development model of front and back end, while support more multiplexing development modes, reduce overlapping development workload, reduce The cost of tenant's exploitation, operation and maintenance service Page Template.
Tenant's registering service page development platform carries out the design of business Page Template, belongs to for the configuration of business Page Template The tenant's unique mark, business object and business object relation information of logging status tenant are currently at, wherein, tenant uniquely marks Know for marking any business Page Template, business object relation information is used to record each group retrieved data and handled Relation between part.The business Page Template of complete design is stored in the database of system, to show the business page It is called when template.By the way of the mutually isolated storage of information data of each tenant's service page face mould version, add The autgmentability of design business Page Template and flexibility.
System carries out check analysis to the version of business object and the version of system metadata, may if version is inconsistent The business Page Template of causing can not load business object or be loaded with the business Page Template of business object and can not stably work, And there is the problems such as unexpected positive closing, data error reporting.Itself and system metadata are made by the version for updating business object Version is consistent, and the process of design business Page Template has self-checking function, further increases the spirit of design business Page Template Activity and stability.
Fig. 3 shows the schematic diagram of the design business Page Template of one embodiment of the present of invention.Wherein, in stencil design When template in main table and sublist be respectively provided with corresponding control layout, and control layout can be controlled substantially by one or more Part forms, and control layout can be form layout, table-layout etc., and basic control includes text control, numerical value control, with reference to control Part, date control, more text controls, radio box control, check box control, dropdown control, picture control.
Fig. 4 shows the schematic flow sheet for showing method of the business Page Template of yet another embodiment of the present invention.Its In, this method includes:
Step 402, stencil design instruction is received, designs business Page Template;
Step 404, judge business object version and system metadata version it is whether consistent, if it is not, then performing step 406, if so, then performing step 408;
Step 406, the version of business object is updated;
Step 408, business object is loaded on business Page Template;
Step 410, business Page Template is stored to database;
Step 412, business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark is obtained;
Step 414, according to business Page Template parameter, the business Page Template prestored is inquired in database;
Step 416, the information of business Page Template is parsed;
Step 418, the type using freemarker template engines according to the information of business Page Template, by the business page The information of template is incorporated into preset control, generates html files;
Step 420, it would be desirable to which the business rule of the entity object showed on html files is changed;
Step 422, html files and entity object are showed.
In this embodiment, system obtains tenant's unique mark and its corresponding business page module parameter, according to business Page module parameter query goes out tenant and is pre-designed the service page face mould version for being finished and stored in database and parses the business The information of Page Template, the type of the information is judged using freemarker template engines, according to the information of business Page Template Type merge business Page Template information and preset control, ultimately generate static text html files and show to terminal. The present invention can unify the development model of front and back end, while support more multiplexing development modes, reduce overlapping development workload, reduce The cost of tenant's exploitation, operation and maintenance service Page Template.
Tenant's registering service page development platform carries out the design of business Page Template, belongs to for the configuration of business Page Template The tenant's unique mark, business object and business object relation information of logging status tenant are currently at, wherein, tenant uniquely marks Know for marking any business Page Template, business object relation information is used to record each group retrieved data and handled Relation between part.The business Page Template of complete design is stored in the database of system, to show the business page It is called when template.By the way of the mutually isolated storage of information data of each tenant's service page face mould version, add The autgmentability of design business Page Template and flexibility.
System carries out check analysis to the version of business object and the version of system metadata, may if version is inconsistent The business Page Template of causing can not load business object or be loaded with the business Page Template of business object and can not stably work, And there is the problems such as unexpected positive closing, data error reporting.Itself and system metadata are made by the version for updating business object Version is consistent, and the process of design business Page Template has self-checking function, further increases the spirit of design business Page Template Activity and stability.
Business rule is service logic, and the data of static text html files are taken out and turned by using entity object Change, the logic of the business page of html files is finally shown to tenant.
In one embodiment of the invention, it is preferable that business Page Template parameter includes but is not limited to business object The relation value of nodes encoding, business object.
In this embodiment, system is according to the nodes encoding of business object, relation value or other use in business Page Template In one or more of reference information of record traffic Page Template feature, inquire what tenant prestored in database Business Page Template, add the accuracy for inquiring the business Page Template needed for tenant.
In one embodiment of the invention, preset control includes but is not limited to table controls, grid controls, form controls Part, basic control;Basic control includes text control, numerical value control, with reference to control, date control, more text controls, radio box Control, check box control, dropdown control, picture control;Wherein, table controls, grid controls, form controls are included at least One basic control.
In this embodiment, table controls include newly-increased form lists, table data lists, wherein, increase form tables newly Singly it is served only for preserving, cancels in the operation for increasing data newly, table data lists only exist table volume data, can click on row data, Whole row data messages are opened in a manner of the form lists that tile below data of being expert at.Grid controls support two kinds of displaying interfaces, Data direct editing or row data form form editings at once.Form controls provide editor, delete, preserve, cancelling operation.Pass through The information of merging business Page Template realizes the various flush system of boss's table under multi-tenant with preset control and rendered.
Fig. 5 shows the schematic diagram of the operation business Page Template of one embodiment of the present of invention.Wherein, will be set in tenant The business Page Template counted is stored to database, by the service page of system according to tenant's unique mark and corresponding thereto Face mould board parameter carries out template query, inquires service page face mould version corresponding to tenant, template parser parses the service page The business Page Template information of face die plate, freemarker template engines are recycled to be merged into Template Information according to template type In each control, output static text html files are ultimately generated, preset control includes but is not limited to table controls, grid controls Part, form controls, basic control, and each control has respective resolver.
Fig. 6 shows the schematic diagram of the parsing business Page Template of one embodiment of the present of invention.Wherein, freemarker Template engine is judged the type of the information of business Page Template, judges the layout belonging to type or affiliated control, Wherein layout can include packet layout, Column Layout, fixed layout, streaming layout, such as judge business Page Template The type of information continues judgement is which affiliated basic control after belonging to form controls.Realize the constructable fine size of the page Point, be separated into the independent unit controls of various types in detail, reach flexible design layout, Optional assembling one or more Unit control can generates an independent page, adapts to the demand of developer's different business scene, improving the page can answer Dosage, the overlapping development amount of developer is reduced, reduce maintenance cost, one is provided fast easily for the quick exploitation of the page Mode, the effect of quick agile development is reached.
Form lists, grid controls, table controls can be combined by basic control, pass through Photographing On-line template The ways of presentation of one control of fine setting or modification, full page may change a lot, and different modification front end generations Code and rear end model, so can quickly improve Consumer's Experience.
The embodiment of second aspect of the present invention, proposes a kind of system that shows of business Page Template, and Fig. 7 a show this hair The schematic block diagram for showing system 700 of the business Page Template of bright one embodiment.Wherein, the system includes:
Acquiring unit 702, join for obtaining business Page Template corresponding to tenant's unique mark and tenant's unique mark Number;Query unit 704, for according to business Page Template parameter, the service page face mould prestored to be inquired in database Plate;Resolution unit 706, for parsing the information of business Page Template;Generation unit 708, for utilizing freemarker moulds The information of business Page Template is incorporated into preset control, generated according to the type of the information of business Page Template by plate engine Html files;Show unit 710, for showing html files.
In this embodiment, system obtains tenant's unique mark and its corresponding business page module parameter, according to business Page module parameter query goes out tenant and is pre-designed the service page face mould version for being finished and stored in database and parses the business The information of Page Template, the type of the information is judged using freemarker template engines, according to the information of business Page Template Type merge business Page Template information and preset control, ultimately generate static text html files and show to terminal. The present invention can unify the development model of front and back end, while support more multiplexing development modes, reduce overlapping development workload, reduce The cost of tenant's exploitation, operation and maintenance service Page Template.
In one embodiment of the invention, as shown in Figure 7a, it is preferable that show unit 710, including:Converting unit 712, for the business rule for the entity object for needing to show on html files to be changed;Show unit 710, it is specific to use In showing html files and entity object.
In one embodiment of the invention, business rule is service logic, by using entity object by static text The data of html files are taken out and changed, and the logic of the business page of html files is finally shown to tenant.
In one embodiment of the invention, it is preferable that business Page Template parameter includes but is not limited to business object The relation value of nodes encoding, business object.
In this embodiment, system is according to the nodes encoding of business object, relation value or other use in business Page Template In one or more of reference information of record traffic Page Template feature, inquire what tenant prestored in database Business Page Template, add the accuracy for inquiring the business Page Template needed for tenant.
In one embodiment of the invention, preset control includes but is not limited to table controls, grid controls, form controls Part, basic control;Basic control includes text control, numerical value control, with reference to control, date control, more text controls, radio box Control, check box control, dropdown control, picture control;Wherein, table controls, grid controls, form controls are included at least One basic control.
In this embodiment, table controls include newly-increased form lists, table data lists, wherein, increase form tables newly Singly it is served only for preserving, cancels in the operation for increasing data newly, table data lists only exist table volume data, can click on row data, Whole row data messages are opened in a manner of the form lists that tile below data of being expert at.Grid controls support two kinds of displaying interfaces, Data direct editing or row data form form editings at once.Form controls provide editor, delete, preserve, cancelling operation.Pass through The information of merging business Page Template realizes the various flush system of boss's table under multi-tenant with preset control and rendered.
Fig. 7 b show the schematic block diagram for showing system 700 of the business Page Template of an alternative embodiment of the invention. Wherein, the system includes:
Acquiring unit 702, join for obtaining business Page Template corresponding to tenant's unique mark and tenant's unique mark Number;Query unit 704, for according to business Page Template parameter, the service page face mould prestored to be inquired in database Plate;Resolution unit 706, for parsing the information of business Page Template;Generation unit 708, for utilizing freemarker moulds The information of business Page Template is incorporated into preset control, generated according to the type of the information of business Page Template by plate engine Html files;Show unit 710, for showing html files;
Also include:Design cell 712, for obtaining service page corresponding to tenant's unique mark and tenant's unique mark Before face mould board parameter, stencil design instruction is received, designs business Page Template;Loading unit 714, in service page face mould Business object is loaded on plate;Memory cell 716, for business Page Template to be stored to database;
In this embodiment, tenant's registering service page development platform carries out the design of business Page Template, is service page Face die plate configuration belongs to the tenant's unique mark for being currently at logging status tenant, business object and business object relation information, Wherein, tenant's unique mark is used to mark any business Page Template, and business object relation information is used to record to be carried out to data Relation between each component of retrieval and processing.The business Page Template of complete design is stored in the database of system, with Just tenant calls when business Page Template is showed to it.Using each tenant's service page face mould version information data mutually every Mode from storage is a kind of hybrid-type design, adds autgmentability and the flexibility of design business Page Template.
System obtains tenant's unique mark and its corresponding business page module parameter, is looked into according to business page module parameter Tenant is ask out to be stored in advance in the service page face mould version of database and parse the information of the business Page Template, freemarker Template engine judges the type of the information, according to the type of the information of business Page Template merge business Page Template information and Preset control, ultimately generate static text html files and show to terminal.The present invention can unify the development model of front and back end, More multiplexing development modes are supported simultaneously, are reduced for identical boss's form overlapping development workload, reduce tenant's exploitation, operation With the cost of maintenance service Page Template.
In one embodiment of the invention, as shown in Figure 7b, it is preferable that also include:Judging unit 718, in industry Be engaged in Page Template on load business object before, judge business object version and system metadata version it is whether consistent;More New unit 720, for when the version of business object and the inconsistent version of system metadata, updating the version of business object.
In this embodiment, system carries out check analysis to the version of business object and the version of system metadata, if version This inconsistent business Page Template that is likely to result in can not load business object or be loaded with the business Page Template of business object It can not stably work, and the problems such as unexpected positive closing, data error reporting occur.It is made by the version for updating business object Consistent with the version of system metadata, the process of design business Page Template has self-checking function, further increases design industry The flexibility of business Page Template and stability.
The embodiment of third aspect present invention, proposes a kind of computer installation 800, and Fig. 8 shows the reality of the present invention Apply the schematic block diagram of the computer installation 800 of example.Wherein, the device includes memory 802, processor 804 and is stored in storage On device 802 and the computer program that can run on a processor, processor 804 are realized any as described above when performing computer program The step of the showing method of business Page Template of item.
In this embodiment, system obtains tenant's unique mark and its corresponding business page module parameter, according to business Page module parameter query goes out tenant and is stored in advance in the service page face mould version of database and parses the business Page Template Information, freemarker template engines judge the type of the information, merge business according to the type of the information of business Page Template The information and preset control of Page Template, ultimately generate static text html files and show to terminal.The present invention can unify The development model of front and back end, while more multiplexing development modes are supported, reduce for identical boss's form overlapping development workload, drop The low cost of tenant's exploitation, operation and maintenance service Page Template.
The embodiment of fourth aspect present invention, a kind of computer-readable recording medium is proposed, be stored thereon with computer journey Sequence, the step of the showing method of business Page Template of any one as described above is realized when computer program is executed by processor.
In this embodiment, system obtains tenant's unique mark and its corresponding business page module parameter, according to business Page module parameter query goes out tenant and is stored in advance in the service page face mould version of database and parses the business Page Template Information, freemarker template engines judge the type of the information, merge business according to the type of the information of business Page Template The information and preset control of Page Template, ultimately generate static text html files and show to terminal.The present invention can unify The development model of front and back end, while more multiplexing development modes are supported, reduce for identical boss's form overlapping development workload, drop The low cost of tenant's exploitation, operation and maintenance service Page Template.
In the description of this specification, the description of term " one embodiment ", " some embodiments ", " specific embodiment " etc. Mean to combine at least one reality that specific features, structure, material or the feature that the embodiment or example describe are contained in the present invention Apply in example or example.In this manual, identical embodiment or reality are not necessarily referring to the schematic representation of above-mentioned term Example.Moreover, description specific features, structure, material or feature can in any one or more embodiments or example with Suitable mode combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (14)

1. a kind of business Page Template shows method, it is characterised in that including:
Obtain business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark;
According to the business Page Template parameter, the business Page Template prestored is inquired in database;
Parse the information of the business Page Template;
Type using freemarker template engines according to the information of the business Page Template, by the business Page Template Information be incorporated into preset control, generate html files;
Show the html files.
2. business Page Template according to claim 1 shows method, it is characterised in that obtaining, the tenant is unique Before the business Page Template parameter corresponding to mark and tenant's unique mark, in addition to:
Stencil design instruction is received, designs the business Page Template;
Business object is loaded on the business Page Template;
The business Page Template is stored to the database.
3. business Page Template according to claim 2 shows method, it is characterised in that in the business Page Template Before upper loading business object, in addition to:
Judge the business object version and system metadata version it is whether consistent;
When the version of the business object and the inconsistent version of the system metadata, the version of the business object is updated This.
4. business Page Template according to claim 1 shows method, it is characterised in that described to show the html texts The step of part, specifically include:
The business rule for the entity object for needing to show on the html files is changed;
Show the html files and the entity object.
5. business Page Template according to any one of claim 1 to 4 shows method, it is characterised in that the industry Business Page Template parameter includes but is not limited to the nodes encoding of business object, the relation value of business object.
6. business Page Template according to any one of claim 1 to 4 shows method, it is characterised in that described pre- If control includes but is not limited to table controls, grid controls, form controls, basic control;
The basic control includes text control, numerical value control, with reference to control, date control, more text controls, radio box control Part, check box control, dropdown control, picture control;
Wherein, the table controls, the grid controls, the form controls include at least one basic control.
7. a kind of business Page Template shows system, it is characterised in that including:
Acquiring unit, for obtaining business Page Template parameter corresponding to tenant's unique mark and tenant's unique mark;
Query unit, for according to the business Page Template parameter, the business page prestored to be inquired in database Template;
Resolution unit, for parsing the information of the business Page Template;
Generation unit, for the type using freemarker template engines according to the information of the business Page Template, by institute The information for stating business Page Template is incorporated into preset control, generates html files;
Show unit, for showing the html files.
8. business Page Template according to claim 7 shows system, it is characterised in that also includes:
Design cell, for obtaining the business page corresponding to tenant's unique mark and tenant's unique mark Before template parameter, stencil design instruction is received, designs the business Page Template;
Loading unit, for loading business object on the business Page Template;
Memory cell, for the business Page Template to be stored to the database.
9. business Page Template according to claim 8 shows system, it is characterised in that also includes:
Judging unit, for before loading business object on the business Page Template, judging the version of the business object It is whether consistent with the version of system metadata;
Updating block, for when the version of the business object and the inconsistent version of the system metadata, described in renewal The version of business object.
10. business Page Template according to claim 7 shows system, it is characterised in that described to show unit, bag Include:
Converting unit, for the business rule for the entity object for needing to show on the html files to be changed;
It is described to show unit, specifically for showing the html files and the entity object.
11. business Page Template according to any one of claim 7 to 10 shows system, it is characterised in that described Business Page Template parameter includes but is not limited to the nodes encoding of business object, the relation value of business object.
12. business Page Template according to any one of claim 7 to 10 shows system, it is characterised in that described Preset control includes but is not limited to table controls, grid controls, form controls, basic control;
The basic control includes text control, numerical value control, with reference to control, date control, more text controls, radio box control Part, check box control, dropdown control, picture control;
Wherein, the table controls, the grid controls, the form controls include at least one basic control.
13. a kind of computer installation, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 6 described in the computing device during computer program Any one of the step of showing method of business Page Template.
14. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of the showing method of business Page Template as any one of claim 1 to 6 is realized when being executed by processor.
CN201710930801.1A 2017-10-09 2017-10-09 A kind of business Page Template shows method, system and computer installation Pending CN107678736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930801.1A CN107678736A (en) 2017-10-09 2017-10-09 A kind of business Page Template shows method, system and computer installation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930801.1A CN107678736A (en) 2017-10-09 2017-10-09 A kind of business Page Template shows method, system and computer installation

Publications (1)

Publication Number Publication Date
CN107678736A true CN107678736A (en) 2018-02-09

Family

ID=61137948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930801.1A Pending CN107678736A (en) 2017-10-09 2017-10-09 A kind of business Page Template shows method, system and computer installation

Country Status (1)

Country Link
CN (1) CN107678736A (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228166A (en) * 2018-03-15 2018-06-29 链家网(北京)科技有限公司 A kind of back-end code generation method and system based on template
CN108804555A (en) * 2018-05-22 2018-11-13 阿里巴巴集团控股有限公司 Agreement methods of exhibiting, device and electronic equipment
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN109445794A (en) * 2018-11-12 2019-03-08 北京中电普华信息技术有限公司 A kind of page building method and device
CN109492175A (en) * 2018-10-23 2019-03-19 青岛海信电器股份有限公司 The display methods and device of Application Program Interface, electronic equipment, storage medium
CN109522016A (en) * 2018-10-31 2019-03-26 泰康保险集团股份有限公司 Service page face generates method, device and equipment
CN109739587A (en) * 2018-03-22 2019-05-10 比亚迪股份有限公司 The generation method and device of Broadcast Control device indicating template
CN110222293A (en) * 2019-04-30 2019-09-10 北京三快在线科技有限公司 A kind of forms pages generation method and device
CN110795095A (en) * 2019-09-20 2020-02-14 贝壳技术有限公司 Method and system for establishing business logic component and business component and generating page
CN111027299A (en) * 2019-10-18 2020-04-17 深圳智慧园区信息技术有限公司 Form generation method and system
CN111258577A (en) * 2019-12-02 2020-06-09 泰康保险集团股份有限公司 Page rendering method and device, electronic equipment and storage medium
CN111367514A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Page card development method and device, computing device and storage medium
CN111414405A (en) * 2020-03-23 2020-07-14 北京同邦卓益科技有限公司 Data acquisition method and device and electronic equipment
CN111429223A (en) * 2020-03-26 2020-07-17 中国建设银行股份有限公司 Configuration method and device based on multi-tenant platform
CN111538547A (en) * 2020-04-29 2020-08-14 中国银行股份有限公司 Application page configuration method and device of application program
CN112000911A (en) * 2020-07-08 2020-11-27 北京达佳互联信息技术有限公司 Page management method and device, electronic equipment and storage medium
CN112068829A (en) * 2020-07-31 2020-12-11 广东飞企互联科技股份有限公司 Method, device, system, equipment and medium for generating single text input control
CN113468460A (en) * 2021-09-02 2021-10-01 北京优锘科技有限公司 Method, device and equipment for rendering Web page based on YAML (Yaml language)
CN113760279A (en) * 2021-01-14 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for generating page
CN113825008A (en) * 2021-11-24 2021-12-21 飞狐信息技术(天津)有限公司 Active page display method and device
CN114693283A (en) * 2022-06-01 2022-07-01 四川高灯企服科技有限公司 Cross-system business process approval processing method and device and computer equipment
CN115586896A (en) * 2022-09-29 2023-01-10 通号智慧城市研究设计院有限公司 Page project development method, equipment and storage medium based on template engine
CN115826950A (en) * 2022-11-24 2023-03-21 内蒙古欣荣惠信息技术有限公司 Online form page development application system and data processing method
CN111258577B (en) * 2019-12-02 2024-06-21 泰康保险集团股份有限公司 Page rendering method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320540A1 (en) * 2010-06-25 2011-12-29 Compuware Corporation Service model creation using monitored data of the performance management tool
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN104063495A (en) * 2014-07-04 2014-09-24 用友软件股份有限公司 Form extension method and form extension device
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN106648630A (en) * 2016-12-01 2017-05-10 北京趣拿软件科技有限公司 Page obtaining method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320540A1 (en) * 2010-06-25 2011-12-29 Compuware Corporation Service model creation using monitored data of the performance management tool
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN104063495A (en) * 2014-07-04 2014-09-24 用友软件股份有限公司 Form extension method and form extension device
CN106648630A (en) * 2016-12-01 2017-05-10 北京趣拿软件科技有限公司 Page obtaining method and device

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228166B (en) * 2018-03-15 2020-07-07 贝壳找房(北京)科技有限公司 Template-based back-end code generation method and system
CN108228166A (en) * 2018-03-15 2018-06-29 链家网(北京)科技有限公司 A kind of back-end code generation method and system based on template
CN109739587A (en) * 2018-03-22 2019-05-10 比亚迪股份有限公司 The generation method and device of Broadcast Control device indicating template
CN108804555A (en) * 2018-05-22 2018-11-13 阿里巴巴集团控股有限公司 Agreement methods of exhibiting, device and electronic equipment
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN109492175A (en) * 2018-10-23 2019-03-19 青岛海信电器股份有限公司 The display methods and device of Application Program Interface, electronic equipment, storage medium
CN109522016A (en) * 2018-10-31 2019-03-26 泰康保险集团股份有限公司 Service page face generates method, device and equipment
CN109445794A (en) * 2018-11-12 2019-03-08 北京中电普华信息技术有限公司 A kind of page building method and device
CN111367514B (en) * 2018-12-25 2023-04-28 阿里巴巴集团控股有限公司 Page card development method and device, computing device and storage medium
CN111367514A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Page card development method and device, computing device and storage medium
CN110222293A (en) * 2019-04-30 2019-09-10 北京三快在线科技有限公司 A kind of forms pages generation method and device
CN110222293B (en) * 2019-04-30 2020-10-27 北京三快在线科技有限公司 Form page generation method and device
CN110795095A (en) * 2019-09-20 2020-02-14 贝壳技术有限公司 Method and system for establishing business logic component and business component and generating page
CN111027299A (en) * 2019-10-18 2020-04-17 深圳智慧园区信息技术有限公司 Form generation method and system
CN111258577A (en) * 2019-12-02 2020-06-09 泰康保险集团股份有限公司 Page rendering method and device, electronic equipment and storage medium
CN111258577B (en) * 2019-12-02 2024-06-21 泰康保险集团股份有限公司 Page rendering method, device, electronic equipment and storage medium
CN111414405A (en) * 2020-03-23 2020-07-14 北京同邦卓益科技有限公司 Data acquisition method and device and electronic equipment
CN111429223A (en) * 2020-03-26 2020-07-17 中国建设银行股份有限公司 Configuration method and device based on multi-tenant platform
CN111538547A (en) * 2020-04-29 2020-08-14 中国银行股份有限公司 Application page configuration method and device of application program
CN112000911A (en) * 2020-07-08 2020-11-27 北京达佳互联信息技术有限公司 Page management method and device, electronic equipment and storage medium
CN112000911B (en) * 2020-07-08 2024-01-02 北京达佳互联信息技术有限公司 Page management method, device, electronic equipment and storage medium
CN112068829A (en) * 2020-07-31 2020-12-11 广东飞企互联科技股份有限公司 Method, device, system, equipment and medium for generating single text input control
CN113760279A (en) * 2021-01-14 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for generating page
CN113468460A (en) * 2021-09-02 2021-10-01 北京优锘科技有限公司 Method, device and equipment for rendering Web page based on YAML (Yaml language)
CN113825008A (en) * 2021-11-24 2021-12-21 飞狐信息技术(天津)有限公司 Active page display method and device
CN113825008B (en) * 2021-11-24 2022-03-01 飞狐信息技术(天津)有限公司 Active page display method and device
CN114693283B (en) * 2022-06-01 2022-09-27 四川高灯企服科技有限公司 Cross-system business process approval processing method and device and computer equipment
CN114693283A (en) * 2022-06-01 2022-07-01 四川高灯企服科技有限公司 Cross-system business process approval processing method and device and computer equipment
CN115586896A (en) * 2022-09-29 2023-01-10 通号智慧城市研究设计院有限公司 Page project development method, equipment and storage medium based on template engine
CN115586896B (en) * 2022-09-29 2023-08-04 通号智慧城市研究设计院有限公司 Page project development method, equipment and storage medium based on template engine
CN115826950A (en) * 2022-11-24 2023-03-21 内蒙古欣荣惠信息技术有限公司 Online form page development application system and data processing method
CN115826950B (en) * 2022-11-24 2023-09-12 内蒙古欣荣惠信息技术有限公司 Online form page development application system and data processing method

Similar Documents

Publication Publication Date Title
CN107678736A (en) A kind of business Page Template shows method, system and computer installation
CN104133772B (en) Automatic test data generation method
CN107193545B (en) Component-oriented multi-language collaborative development device, method and system
CN114035773B (en) Configuration-based low-code form development method, system and device
CN109657214A (en) Report form generation method, device, terminal and storage medium
CN101778160B (en) Method and device for dynamically presetting message
CN110688117B (en) Interface designer and platform based on JavaWeb and page configuration method thereof
CN104035772A (en) Static analysis based source code multi-versionfunction call relation difference identification method
CN106873974A (en) Smart code generates automotive engine system and method
CN102135990A (en) Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method
CN102789382A (en) System and method for generating and running form
CN103186632A (en) Method and device for customizing operation and maintenance form
CN110941629B (en) Metadata processing method, apparatus, device and computer readable storage medium
CN110704047A (en) Dynamic visual configuration system and operation management method based on same
US20060047723A1 (en) Custom database system and method of building the same
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN101673200B (en) The detection method of user input model and device
CN111401023B (en) Report generation method, report generation device, server and storage medium
CN113268496A (en) Client list screening method and device
CN111090976B (en) Method and device for generating inspection document based on dynamic data
CN112100984A (en) Data conversion method and system from EBOM to SBOM
CN115879435A (en) Cloud contract generation method in intelligent engineering scene
CN110308963A (en) A kind of method and system of tobacco business mobile terminal business form configuration
CN109614084A (en) Web program and its Quick Development Framework, development approach and relevant device
CN104111768A (en) Interactive window, methods and systems for defining, quoting and synchronizing interactive windows

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209

RJ01 Rejection of invention patent application after publication