CN103605502B - Form page display method and server - Google Patents
Form page display method and server Download PDFInfo
- Publication number
- CN103605502B CN103605502B CN201310344168.XA CN201310344168A CN103605502B CN 103605502 B CN103605502 B CN 103605502B CN 201310344168 A CN201310344168 A CN 201310344168A CN 103605502 B CN103605502 B CN 103605502B
- Authority
- CN
- China
- Prior art keywords
- list
- columns
- display
- forms pages
- property
- 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
Links
Landscapes
- Digital Computer Display Output (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of form page display method and server.This method includes:The forms pages display request that browser is sent is received, the forms pages display request includes the display width of form number and the browser;According to the form number, the element property of each element in the form attributes and the list of the form number correspondence list is obtained;According to the display width of the browser, it is determined that display columns;According to the element property of each element in the display columns, the form attributes of the list and the list, forms pages to be shown are generated;The forms pages to be shown are sent to the browser, so that the browser shows the forms pages to be shown.The present invention is by the width according to browser, and form number generates forms pages to be shown in real time, improves the reusability of information system list, reduces the workload of information system list exploitation, has saved the storage resource of server.
Description
Technical field
The present invention relates to areas of information technology, more particularly to a kind of form page display method and server.
Background technology
With the popularization and application of a variety of mobile devices such as tablet personal computer, smart mobile phone, in a mobile device by browsing
Device is more and more come the situation for accessing enterprise information system, in enterprise information system, based on HTML(Hyper
Text Mark-up Language, abbreviation HTML)Forms pages be the most frequently used interface display mode, the master of forms pages
Content is wanted to include the Form Element in list form and form, such as single-line entry box, multiple-line entry box, text label, single choice
Frame, check box etc., additionally comprising some about showing the JavaScript code with business operation.
Generally when developing the list of information system, PC is only considered as(Personal Computer, referred to as
PC)As the interface layout condition of display device, the interface designed is difficult to be applicable on various mobile devices.At present, in order to full
The need for foot uses the different terminal access information system of screen size, development of information system personnel are directed to various sizes of terminal
Screen designs different list display interfaces.
Duplicate contents between different list display interfaces, many set display interfaces are developed for terminal screen of different sizes
More, such as Form Element, page JavaScript code etc. not only cause the repetition of information system list development
Property, waste the storage resource of server.
The content of the invention
A kind of form page display method of present invention offer and server, the reusability for improving information system list,
So as to reduce the workload that list is developed in information system, the storage resource of server has been saved.
The first aspect of the invention is to provide a kind of form page display method, and this method includes:
The forms pages display request that browser is sent is received, the forms pages display request includes form number and institute
State the display width of browser;
According to the form number, each element in the form attributes and the list of the form number correspondence list is obtained
Element property;
According to the display width of the browser, it is determined that display columns;
According to the element property of each element in the display columns, the form attributes of the list and the list, generation
Forms pages to be shown;
The forms pages to be shown are sent to the browser, so that the browser shows described to be shown
Forms pages.
Another aspect of the present invention provides a kind of server, and the server includes:
Receiving module, shows request, the forms pages show request bag for receiving the forms pages of browser transmission
Include the display width of form number and the browser;
Acquisition module, for according to the form number, obtaining form attributes and the institute of the form number correspondence list
State the element property of each element in list;
Determining module, for the display width according to the browser, it is determined that display columns;
Generation module, for according to each element in the display columns, the form attributes of the list and the list
Element property, generates forms pages to be shown;
Sending module, for the forms pages to be shown to be sent into the browser, so that the browser is aobvious
Show the forms pages to be shown.
A technical scheme in above technical scheme has the following advantages that or beneficial effect:
Form page display method and server that the present invention is provided, by showing browsing in request according to forms pages
Device display width determines the columns of list to be shown, according to forms pages show request in form number obtain form attributes and
The attribute of each element in list, and forms pages to be shown are generated, realizing only need to store the form attributes and member of each list
Plain attribute, and the forms pages sent according to browser show that request generates forms pages and shown in real time, improve enterprise's letter
The reusability of list in breath system, so as to reduce the workload of information system list exploitation, has saved the storage of server
Resource.
Brief description of the drawings
The schematic flow sheet for the form page display method embodiment one that Fig. 1 provides for the present invention;
The schematic flow sheet for the form page display method embodiment two that Fig. 2 provides for the present invention;
Fig. 3 show the server example structural representation that the present invention is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The schematic flow sheet for the form page display method embodiment one that Fig. 1 provides for the present invention.As shown in figure 1, the party
Method includes:
S10, receives the forms pages display request that browser is sent, and the forms pages display request includes form number
With the display width of the browser.
In the present embodiment, server receives the forms pages display request that browser is sent.Specifically, user is in terminal
The form name to be loaded is clicked in browser or the modes such as the form name to be loaded are inputted in corresponding input frame, it is determined that
Wish the forms pages of loading, browser determines the corresponding list of forms pages of user's request of loading according to the input of user
Numbering, and the display width parameter of the form number and browser is sent to server.
S11, according to the form number, obtains each in the form attributes and the list of the form number correspondence list
The element property of element.
Specifically, server is according to form number, the form attributes table inquired about in the form database being locally stored, it is determined that
The corresponding form attributes of the form number, then further according to the Form Element attribute list in form number inquiry form database,
Determine the element property of the corresponding each Form Element of the form number.Wherein, the list of each list is saved in form attributes table
Attribute, form attributes include form number, and Form Element attribute list saves the element property of each Form Element, Form Element category
Property include the element where form number, form number is unique mark of the list in form database.Form attributes table
It can be stored in form database or in formfile with Form Element attribute list.The present embodiment is not limited this.This hair
It is bright to be illustrated so that form attributes table and Form Element attribute list are maintained in form database as an example.
Generally, list can be divided into header, ceiling button area, list form area, bottom button area, 5 regions of footer.Table
Single underlying attribute is as shown in table 1:
The form attributes of table 1
The attribute of each element is as shown in table 2 in list:
The Form Element attribute of table 2
It should be noted that the form attributes and each member of list enumerated in above-mentioned form attributes table and Form Element attribute list
Plain attribute is the exemplary illustration to commonly using list, not to the definition of form attributes and Form Element attribute.Wherein, list
The mark definition of attribute and list each element attribute can be performed according to general specification or default rule, and the present invention is not limited this
It is fixed.For example, the acquiescence columns of list, is designed according to existing frequently-used office equipment, specifically, existing frequently-used to do
It is PC to postulate standby, then gives tacit consent to the columns of list form when terminal where columns is designed as browser is PC, if conventional office equipment
For other mobile terminals, such as tablet personal computer(Personal Access Device, abbreviation PAD), then it is browser to give tacit consent to columns
The columns of list form when place terminal is PAD.The present invention is not limited this;The and for example ceiling button alignment in form attributes
Mode attribute, can define and be represented to occupy left display with 1 or L, 2 or M represents to be shown centered on, 3 or R represents to occupy right display;And for example, table
Element type definition in single element attribute, can be represented with 1 or T text label, 2 or OED represent single file edit box, 3 or DED
Expression Multiline Edit frame, 4 or RB represent radio box etc..
S12, according to the display width of the browser, it is determined that display columns.
In the present embodiment, the display width of browser refers to the display width of browser in terminal, depends primarily on terminal
Display screen size.In addition, gravity sensing equipment is configured with for present many hand-held mobile terminals, when user holds terminal
Direction when changing, when such as by being vertically changed to level or being changed to vertical by level, the browser shown on mobile terminal
Can display width can change, accordingly, according to the display width of the browser determine display columns can also change.
Under a kind of special application scenarios, it is the last list according to browser that forms pages are shown on terminal browser
The page shows the forms pages of the browser display width generation carried in request, and now user changes the grip side of terminal
To changing the display width of browser, then can trigger new forms pages display request, server receives browser and is based on
The forms pages display request that new display width is sent, so that can be according to the new form page to be shown of the new request generation
Face, and newly-generated forms pages to be shown are shown on a web browser.
Specifically, server obtains the row of the list form in the corresponding form attributes of the form number according to form number
Wide COLW, with reference to the display width Scale Width of the browser received, the list that computation requests are shown is on the browser
Show columns
S13, according to the element property of each element in the display columns, the form attributes of the list and the list,
Generation forms pages to be shown.
Generally, server creates table according to the display columns of the element property of each element in form attributes, list and list
Single page of data structure, is then converted into list html file, i.e., forms pages to be shown by forms pages data structure.
The forms pages to be shown are sent to the browser by S14, so that the browser shows and described waits to show
The forms pages shown.
The form page display method that the present embodiment is provided, by showing that the browser in request is shown according to forms pages
Width determines the columns of list to be shown, shows that the form number in request is obtained in form attributes and list according to forms pages
The attribute of each element, and forms pages to be shown are generated, realizing only need to store the form attributes and element property of each list,
And the forms pages display request sent according to browser generates forms pages and shown in real time, improves information system list
Reusability, so as to reduce the workload of information system list exploitation, has saved the storage resource of server.
Fig. 2 show the schematic flow sheet for the form page display method embodiment two that the present invention is provided.As shown in Fig. 2
On the basis of embodiment illustrated in fig. 1 one, element property includes sequence number of the element in list, element and accounts for row in embodiment two
Number, element account for columns;Correspondingly, above-mentioned S13, including:
S131, forms pages to be shown are generated according to the display columns;
S132, according to the element property of each element in the form attributes of the list and the list, by the list
Each element is according to sequence number of each element in the list, element accounts for line number and element accounts for columns and is loaded into the table to be shown
In single-page.
In the present embodiment, the blank form page not comprising element to be shown is generated according only to display columns first, then
Each element is loaded into the blank form page according to the element property for each element for belonging to the list.Specifically, element belongs to
Sequence number of the element in list represents that the display order of element in display order of the element in affiliated list, list can in property
It by from left to right, to be arranged in order from top to bottom, can also arrange, can also be arranged by vertical " it " shape by horizontal " it " shape
Row, the present invention is not limited this.Element accounts for line number, accounts for line number and row that columns represents that the element uses in the list of place
Number, when accounting for line number or accounting for columns more than 1, represents that the element has inter-bank or across row in the list of place;If certain
Accounting for line number and accounting for columns for element represents the element with the previous sequence number element in the list in same cell for 0.Lift
For example, if the display columns for the list that a certain form number determined according to the display width of browser is 100 is 4, the table
In the order display each element of individual palpation from left to right, from top to bottom, the list, the serial number 1 of elements A, it is 2 to account for line number, accounts for row
Number is 1;The serial number 2 of element B, it is 1 to account for line number, and it is 1 to account for columns;The serial number 3 of Elements C, it is 1 to account for line number, and it is 2 to account for columns;
Element D serial number 4, it is 0 to account for line number and account for columns;Element E serial number 5, it is 1 to account for line number, and it is 3 to account for columns, then generates
The page of the list is as shown in table 3 below.
The list 100 of table 3
Further, minimum display columns of the element property also including element;
After above-mentioned S131, in addition to:
Judge the minimum size for showing columns and the display columns of each element in the list;
Above-mentioned S132, including:
According to the element property of each element in the form attributes of the list and the list, minimum is shown that columns does not surpass
The each element for crossing the display columns accounts for line number and element accounts for columns loading according to sequence number of each element in the list, element
Into the forms pages to be shown.
For example, if server shows the display columns for the list that the width of browser in request is determined according to list
Can only be shown for 4, then in the forms pages to be shown generated it is minimum show that columns is each element no more than 4, for belonging to
The minimum of the list shows each element of the columns more than 4, is not loaded with forms pages to be shown, correspondingly, secondary herein
Into forms pages to be shown in will not show these elements.
In a kind of preferably implementation, the forms pages display request also includes scenario parameters;Element property is also wrapped
Include display pattern of the element under each scene;
After above-mentioned S131, in addition to:
According to the scenario parameters, each element display pattern corresponding with the scenario parameters is determined;
The element property of each element in above-mentioned form attributes and the list according to the list, columns is shown by minimum
No more than the display columns each element according to sequence number of each element in the list, element accounts for line number and element accounts for columns
It is loaded into the forms pages to be shown, including:According to corresponding display pattern, form attributes of the list and described
The element property of each element in list, shows columns no more than the display columns by minimum and corresponding display pattern is non-hidden
The each element of Tibetan accounts for line number according to sequence number of each element in the list, element and element account for columns be loaded into it is described to be shown
Forms pages in.
Specifically, scenario parameters represent the display scene of the forms pages of browse request.For example, scene table is checked
It is forms pages to be checked to show user, does not carry out any editor to the page;Newly-increased scene represents that user will borrow the list
The pattern of the page increases a new forms pages newly;Modification scene represent user to change some of forms pages element or
Person changes pattern of the list etc..Specifically, can be represented to check scene with 1 or S, 2 or A represents newly-increased scene, and 3 or M is represented
Change list scene.The present invention is not limited this.
Generally, for different scenes, the display pattern of each element is different in list.Display mould of the element under each scene
Formula, which can be divided into, to be hidden and the class of non-concealed two, and the display pattern of specific non-concealed class includes:Textual form is shown, control form
Display, read-only control form show that what is loaded in forms pages to be shown is only that display pattern is under the scenario parameters
The each element of non-concealed, and be hiding each element for display pattern, without being carried in this time forms pages of generation, i.e.,
The element will not be shown in the forms pages.Specifically, can represent that the element is shown, with 2 or T tables in the form of text with 1 or T
Show that the element shows in control form, represents that the element shows in read-only control form, represents that the element exists with 4 or H with 3 or RT
Hide and do not show in affiliated form.The present embodiment is not limited this.For example, under newly-increased scene, some elements or
Whole elements, which can be hidden, not to be shown, then generated according to display columns after forms pages to be shown, can be first according to scene
The display pattern of parameter and each element under the scene, determines that each element in the forms pages to be shown of the generation whether will
It is shown in the forms pages, if the display pattern of all elements is all hiding, directly generates a blank form page and show
Show in a browser, be each of non-concealed further according to display pattern if the display pattern of some elements is non-concealed in the list
Each element is loaded into forms pages to be shown by the element property of element.
In the present embodiment, the step of judging the size of the minimum display columns and display columns of each element in list, and root
Determine that each element the step of corresponding display pattern, has no the sequencing of determination under the scenario parameters according to scenario parameters, can
First to judge the minimum size for showing columns and display columns of each element, the element first can also be determined according to scenario parameters
Display pattern, the present embodiment is not limited this.It is appreciated that for not carrying scene in forms pages display request
In the case of parameter, not the step of not performing the display pattern that element is determined according to scenario parameters in forms pages generating process.Root
Minimum according to element shows that columns and display pattern of the element under certain scenario parameters determine whether the element needs to be carried in
After in the forms pages of generation, each element is loaded into forms pages to be shown by the element property further according to each element.
Correspondingly, it is described to show that columns is no more than the display columns and corresponding display pattern is non-concealed by minimum
Each element is according to sequence number of each element in the list, element accounts for line number and element accounts for columns and is loaded into the table to be shown
After in single-page, in addition to:
According to the corresponding display pattern of each element being loaded into the forms pages to be shown, each element is shown.
For example, in the case where checking scene, the display pattern for certain element being loaded into forms pages to be shown is text
Form is shown, then after the element is carried in forms pages to be shown according to its element property, by the element with text
Form is shown.
Further, element property also includes the resource number of element;Correspondingly, it is above-mentioned to be belonged to according to the list of the list
Property and the list in each element element property, show each element of the columns no more than the display columns according to each by minimum
Sequence number of the element in the list, element accounts for line number and element accounts for columns and is loaded into it in the forms pages to be shown
Afterwards, in addition to:
For the member for being loaded into the forms pages to be shown and having included effective resource number in element property
Element, the resource of enumerating of the element is obtained according to the effective resource number from caching, and is loaded into described to be shown
In forms pages.
In the present embodiment, resource number is provided with element property, be stored with resource number in the caching of server
Table, enumerates corresponding relation of the in store resource number with enumerating resource in resource number table.Specifically, to the member that need not be enumerated
Element, its corresponding element resource numbering could be arranged to sky, it can also be provided that the default character representation element is without enumerating money
Skies is in source, such as resource number or are set to the 0 expression element without resource is enumerated, and server is without query resource number table;Phase
Answer, for the element for needing to enumerate, its corresponding element resource numbering could be arranged to effective resource number.Server root
According to the effective resource number of some Form Element, the resource number table stored by inquiring about in local cache determines the resource number
It is corresponding to enumerate resource, and be loaded into the forms pages to be shown.For example, if certain entitled " user class "
Combobox Form Element, its resource number is 1,2,3,4, and server determines the money by the resource number table in query caching area
Corresponding resource is numbered for " VIP client " in source, " group customer ", " big customer ", and these are then enumerated resource and added by " individual client "
It is downloaded in corresponding drop-down list box, when the combobox in the forms pages that user clicks on display, these resources will be in table
Shown in single-page.
Generally, the limited storage space of server buffer, the Form Element more complicated for enumerating resource, resource number table
It may also be stored in Service Database, server is searched from caching according to effective resource number corresponding enumerate money first
Source, if not finding, is searched in the resource number table in Service Database, and is loaded into and is treated by the resource of enumerating found
By the resource number with enumerating the corresponding relation storage of resource in the buffer while the forms pages of display.
Further, element property also includes the element code of element;
The element property of each element in above-mentioned form attributes and the list according to the list, columns is shown by minimum
No more than the display columns each element according to sequence number of each element in the list, element accounts for line number and element accounts for columns
After being loaded into the forms pages to be shown, in addition to:
According to the scenario parameters, it is determined that whether each element being loaded into the page to be shown needs to load element
Data;If desired, then the element data of each element is obtained from Service Database according to the element code of each element, and is loaded into
In the forms pages to be shown.
Specifically, element code refers to preserve member in the mark for obtaining the element corresponding data, Service Database
The corresponding relation of element code and element data is preserved in plain code table, element code table.Specifically, needs can be pre-set
The scene of element data is loaded, such as, setting checks that scene needs to load element data with modification scene, and increasing scene newly need not add
Carry element data;Correspondingly, if server determines forms pages display request to check scene or modification according to scenario parameters
Scene, then server the corresponding number of the code is obtained from Service Database according to the element code of the list each element of determination
According to, and be loaded into forms pages to be shown;If the scenario parameters that server determines forms pages display request carrying are
Newly-increased scene, then without checking the element code of the list each element again, and only determine each member according to other attributes of each element
Display format of the element in forms pages to be shown.
Further, before the forms pages display request for receiving browser transmission, in addition to:
Receive the element property of each element in the form attributes and the list for the list that Form Designer is sent, institute
Stating the form attributes of list includes the form number, and the element property of each element includes the form number in the list;
The element property of each element in the form attributes of the list and the list is respectively stored in form attributes table
In Form Element attribute list;
It is described according to the form number, obtain each in the form attributes and the list of the form number correspondence list
The element property of element, including:
According to the form number, the form attributes for including the form number are obtained from the form attributes table, from
The element property of each element comprising the form number is obtained in the Form Element attribute list.
Specifically, list is divided into what is be made up of the element property of form attributes and list each element in Form Designer
Data structure, is then configured by default rule to the element property of each element in the attribute and list of list, so that clothes
The form attributes set and Form Element attribute that business device sends Form Designer are stored in form database.List belongs to
Property and Form Element attribute are specifically defined the explanation that mode can refer to above-described embodiment, and here is omitted.Wherein, a table
At least one at least one list of Form Element attribute, i.e., one of single attribute correspondence belongs to the element of the list.
In the present embodiment, when increasing a forms pages newly, default list form is loaded in Form Designer
The default style, the usual default list form the default style can 4 rows 3 row list form or 3 rows 3 arrange
List form, the present embodiment is not limited this;Accordingly, to the existing list of modification, then according to the page number to be changed
Form attributes and Form Element attribute are obtained, and is shown in Form Designer;List pattern according to increase newly or change is repaiied
Change the list table style shown in designer, list form is set to write from memory by such as split cell or Merge Cells
The columns recognized, usual acquiescence columns is to be set based on PC for the browser display width of terminal;Addition, modification, movement
Form Element;It is that Form Element and list set a property by default rule;And by the form attributes set and list form
Attribute is sent to server, so that the form attributes and Form Element attribute are respectively stored in local form attributes by server
In table and Form Element attribute list.
The method that the present embodiment is provided, by showing that the browser display width in request determines to wait to show according to forms pages
Show the columns of list, form attributes are determined according to form number and the element property of each element, according to scenario parameters determine list
The display pattern of middle each element, columns is shown by each element in list by its display sequence number, minimum of each element in list
And the data display of each element is in forms pages to be shown, the form attributes that need to only store each list and element category are realized
Property, and the forms pages sent according to browser show that request generates forms pages and shown in real time, improves information system table
Single reusability, so as to reduce the workload of information system list exploitation, has saved the storage resource of server.
Fig. 3 show the server example structural representation that the present invention is provided.As shown in figure 3, the server includes:Connect
Receive module 30, acquisition module 31, determining module 32, generation module 33, sending module 34;Wherein,
Receiving module 30, request, the forms pages display request are shown for receiving the forms pages of browser transmission
Display width including form number and the browser;
Acquisition module 31, for according to the form number, obtain the form number correspondence list form attributes and
The element property of each element in the list;
Determining module 32, for the display width according to the browser, it is determined that display columns;
Generation module 33, for according to each element in the display columns, the form attributes of the list and the list
Element property, generate forms pages to be shown;
Sending module 34, for the forms pages to be shown to be sent into the browser, so that the browser
Show the forms pages to be shown.
Specifically, element property includes sequence number of the element in list, element and accounts for line number, element and account for columns;
The generation module, specifically for generating forms pages to be shown according to the display columns;According to the table
The element property of each element in single form attributes and the list, by each element in the list according to each element in the table
Sequence number, element in list account for line number and element accounts for columns and is loaded into the forms pages to be shown.
Further, minimum display columns of the element property also including element;
The generation module 33 is generated according to the display columns after forms pages to be shown, also particularly useful for judgement
The minimum size for showing columns and the display columns of each element in the list;According to the form attributes of the list and institute
The element property of each element in list is stated, shows that columns exists no more than each element of the display columns according to each element by minimum
Sequence number, element in the list account for line number and element accounts for columns and is loaded into the forms pages to be shown.
Preferably, the forms pages display request also includes scenario parameters;Element property also includes element in each scene
Under display pattern;
The generation module 33 is generated according to the display columns after forms pages to be shown, also particularly useful for:Root
According to the scenario parameters, each element display pattern corresponding with the scenario parameters is determined;According to corresponding display pattern, described
The element property of each element in the form attributes of list and the list, by minimum show columns no more than it is described display columns and
Corresponding display pattern for non-concealed each element according to sequence number of each element in the list, element accounts for line number and element is accounted for
Columns is loaded into the forms pages to be shown.
Further, minimum is shown columns no more than the display columns and corresponding display mould by the generation module 33
Formula for non-concealed each element according to sequence number of each element in the list, element accounts for line number and element accounts for columns and is loaded into institute
After stating in forms pages to be shown, also particularly useful for:According to each member being loaded into the forms pages to be shown
The corresponding display pattern of element, shows each element.
Specifically, element property also includes the resource number of element;
The generation module 33, will most according to the element property of each element in the form attributes and the list of the list
Small display columns no more than the display columns each element according to sequence number of each element in the list, element account for line number and
Element is accounted for after columns is loaded into the forms pages to be shown, is additionally operable to for being loaded into the list to be shown
The element of effective resource number is included in the page and in element property, is obtained according to the effective resource number from caching
The element enumerates resource, and is loaded into the forms pages to be shown.
Further, element property also includes the element code of element;
The generation module 33, will most according to the element property of each element in the form attributes and the list of the list
Small display columns no more than the display columns each element according to sequence number of each element in the list, element account for line number and
Element is accounted for after columns is loaded into the forms pages to be shown, is additionally operable to according to the scenario parameters, it is determined that having loaded
Whether need to load element data to each element in the page to be shown;If desired then according to the element code of each element from
The element data of each element is obtained in Service Database, and is loaded into the forms pages to be shown.
Generally, before the receiving module 30 receives the forms pages display request that browser is sent, it is additionally operable to reception table
Set up the element property of each element in the form attributes and the list of the list of gauge transmission, the list category of the list
Property include the form number, the element property of each element includes the form number in the list;By the table of the list
The element property of each element is respectively stored in form attributes table and Form Element attribute list in single attribute and the list;
The acquisition module 31, specifically for according to the form number, being obtained from the form attributes table and including institute
The form attributes of form number are stated, the element of each element comprising the form number is obtained from the Form Element attribute list
Attribute.
In the present embodiment, the specific method of the forms pages display processing flow of each module of server is referring to above-mentioned form page
The description of plane display method embodiment one or two, here is omitted.
The server that the present embodiment is provided, determines to treat by the browser display width shown according to forms pages in request
Show the columns of list, the element property of form attributes and each element is determined according to form number, generate form page to be shown
In face, realizing only need to store the form attributes and element property of each list, and the forms pages sent according to browser are shown
Request generates forms pages and shown in real time, the reusability of information system list is improved, so as to reduce information system list
The workload of exploitation, has saved the storage resource of server.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (4)
1. a kind of form page display method, it is characterised in that including:
The forms pages display request that browser is sent is received, the forms pages display request includes form number and described clear
Look at the display width of device;
According to the form number, the member of each element in the form attributes and the list of the form number correspondence list is obtained
Plain attribute;
According to the display width of the browser, it is determined that display columns;
According to the element property of each element in the display columns, the form attributes of the list and the list, generate and wait to show
The forms pages shown;
The forms pages to be shown are sent to the browser, so that the browser shows the list to be shown
The page;
Wherein, the element property includes sequence number of the element in list, element and accounts for line number, element and account for columns;
The element property according to each element in the display columns, the form attributes of the list and the list, generation
Forms pages to be shown, including:
Forms pages to be shown are generated according to the display columns;
According to the element property of each element in the form attributes of the list and the list, by each element in the list according to
Sequence number of each element in the list, element accounts for line number and element accounts for columns and is loaded into the forms pages to be shown;
Minimum display columns of the element property also including element;
After the forms pages to be shown according to the display columns generation, in addition to:
Judge the minimum size for showing columns and the display columns of each element in the list;
The element property of each element in the form attributes and the list according to the list, by each element in the list
According to sequence number of each element in the list, element accounts for line number and element accounts for columns and is loaded into the forms pages to be shown
In, including:
According to the element property of each element in the form attributes of the list and the list, minimum is shown that columns is no more than institute
State each element of display columns according to sequence number of each element in the list, element accounts for line number and element accounts for columns and is loaded into institute
State in forms pages to be shown;
The forms pages display request also includes scenario parameters;Element property also includes element the display mould under each scene
Formula;
After the forms pages to be shown according to the display columns generation, in addition to:
According to the scenario parameters, each element display pattern corresponding with the scenario parameters is determined;
The element property of each element in the form attributes and the list according to the list, shows that columns does not surpass by minimum
The each element for crossing the display columns accounts for line number and element accounts for columns loading according to sequence number of each element in the list, element
Into the forms pages to be shown, including:
According to the element property of each element in corresponding display pattern, the form attributes of the list and the list, by minimum
Show columns no more than it is described display columns and corresponding display pattern for non-concealed each element according to each element in the table
Sequence number, element in list account for line number and element accounts for columns and is loaded into the forms pages to be shown;
The element property also includes the resource number of element;
The element property of each element in the form attributes and the list according to the list, shows that columns does not surpass by minimum
The each element for crossing the display columns accounts for line number and element accounts for columns loading according to sequence number of each element in the list, element
After into the forms pages to be shown, in addition to:
For the element for being loaded into the forms pages to be shown and having included effective resource number in element property, root
The resource of enumerating of the element is obtained from caching according to the effective resource number, and is loaded into the form page to be shown
In face;
The element property also includes the element code of element;
The element property of each element in the form attributes and the list according to the list, shows that columns does not surpass by minimum
The each element for crossing the display columns accounts for line number and element accounts for columns loading according to sequence number of each element in the list, element
After into the forms pages to be shown, in addition to:
According to the scenario parameters, it is determined that whether each element being loaded into the page to be shown needs to load first prime number
According to;
If desired, then the element data of each element is obtained from Service Database according to the element code of each element, and is loaded into
In the forms pages to be shown.
2. according to the method described in claim 1, it is characterised in that described that minimum is shown that columns is no more than the display columns
And corresponding display pattern accounts for line number and element for each element of non-concealed according to sequence number of each element in the list, element
Account for after columns is loaded into the forms pages to be shown, in addition to:
According to the corresponding display pattern of each element being loaded into the forms pages to be shown, each element is shown.
3. according to the method described in claim 1, it is characterised in that described to receive the forms pages display request that browser is sent
Before, in addition to:
Receive the element property of each element in the form attributes and the list for the list that Form Designer is sent, the table
The element property that single form attributes include each element in the form number, the list includes the form number;
The element property of each element in the form attributes of the list and the list is respectively stored in form attributes table and table
In single element attribute list;
It is described according to the form number, obtain each element in the form attributes and the list of the form number correspondence list
Element property, including:
According to the form number, the form attributes for including the form number are obtained from the form attributes table, from described
The element property of each element comprising the form number is obtained in Form Element attribute list.
4. a kind of server, it is characterised in that including:
Receiving module, shows request, the forms pages display request includes table for receiving the forms pages of browser transmission
The display width of single numbering and the browser;
Acquisition module, for according to the form number, obtaining the form attributes and the table of the form number correspondence list
The element property of each element in list;
Determining module, for the display width according to the browser, it is determined that display columns;
Generation module, for the element according to each element in the display columns, the form attributes of the list and the list
Attribute, generates forms pages to be shown;
Sending module, for the forms pages to be shown to be sent into the browser, so that the browser shows institute
State forms pages to be shown;
Wherein, the element property includes sequence number of the element in list, element and accounts for line number, element and account for columns;
The generation module, specifically for generating forms pages to be shown according to the display columns;According to the list
The element property of each element in form attributes and the list, by each element in the list according to each element in the list
Sequence number, element accounts for line number and element accounts for columns and is loaded into the forms pages to be shown;
Wherein, minimum display columns of the element property also including element;
The generation module is generated according to the display columns after forms pages to be shown, also particularly useful for judging the table
The minimum size for showing columns and the display columns of each element in list;According to the form attributes of the list and the list
The element property of middle each element, shows each element of the columns no more than the display columns according to each element in the table by minimum
Sequence number, element in list account for line number and element accounts for columns and is loaded into the forms pages to be shown;
The forms pages display request also includes scenario parameters;Element property also includes element the display mould under each scene
Formula;
The generation module is generated according to the display columns after forms pages to be shown, also particularly useful for:According to described
Scenario parameters, determine each element display pattern corresponding with the scenario parameters;According to corresponding display pattern, the list
The element property of each element in form attributes and the list, shows that columns shows columns and corresponding no more than described by minimum
Display pattern for non-concealed each element according to sequence number of each element in the list, element accounts for line number and element accounts for columns and added
It is downloaded in the forms pages to be shown;
Wherein, the element property also includes the resource number of element;
The generation module is according to the element property of each element in the form attributes and the list of the list, by minimum display
Columns no more than the display columns each element according to sequence number of each element in the list, element accounts for line number and element is accounted for
After columns is loaded into the forms pages to be shown, it is additionally operable to for being loaded into the forms pages to be shown
And the element of effective resource number is included in element property, the member is obtained from caching according to the effective resource number
Plain enumerates resource, and is loaded into the forms pages to be shown;
The element property also includes the element code of element;
The generation module is according to the element property of each element in the form attributes and the list of the list, by minimum display
Columns no more than the display columns each element according to sequence number of each element in the list, element accounts for line number and element is accounted for
After columns is loaded into the forms pages to be shown, it is additionally operable to according to the scenario parameters, it is determined that being loaded into described
Whether each element in the page to be shown needs to load element data;If desired then according to the element code of each element from business number
According to the element data of acquisition each element in storehouse, and it is loaded into the forms pages to be shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310344168.XA CN103605502B (en) | 2013-08-08 | 2013-08-08 | Form page display method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310344168.XA CN103605502B (en) | 2013-08-08 | 2013-08-08 | Form page display method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103605502A CN103605502A (en) | 2014-02-26 |
CN103605502B true CN103605502B (en) | 2017-08-04 |
Family
ID=50123732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310344168.XA Active CN103605502B (en) | 2013-08-08 | 2013-08-08 | Form page display method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103605502B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932871B (en) * | 2014-03-18 | 2019-08-23 | 腾讯科技(北京)有限公司 | A kind of method and device showing multimedia messages |
CN104461514A (en) * | 2014-11-21 | 2015-03-25 | 山东中创软件工程股份有限公司 | Page layout adjustment method and device and digital terminal |
CN105096104A (en) * | 2015-07-21 | 2015-11-25 | 深圳市永兴元科技有限公司 | Form operation authority control method, apparatus and office automation system |
CN105912363A (en) * | 2016-04-11 | 2016-08-31 | 北京小米移动软件有限公司 | Module loading method and apparatus |
CN107464152B (en) * | 2016-06-03 | 2021-02-26 | 阿里巴巴集团控股有限公司 | Data processing method, client and server |
CN107656910A (en) * | 2016-07-26 | 2018-02-02 | 北京京东尚科信息技术有限公司 | Method and apparatus for generating list |
CN107562455B (en) * | 2017-08-15 | 2019-11-05 | 武汉斗鱼网络科技有限公司 | A kind of HTML list self-adaptive layout method and device |
CN108595681B (en) * | 2018-05-02 | 2020-12-18 | 恒生电子股份有限公司 | Method, device and system for displaying form |
CN110825471A (en) * | 2019-10-14 | 2020-02-21 | 紫光云(南京)数字技术有限公司 | Layout method suitable for configuration type form page |
CN113268686B (en) * | 2021-05-25 | 2022-08-26 | 山东卓创资讯股份有限公司 | Processing method for multiple browsing modes of form in information at APP (application) end |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999052032A1 (en) * | 1998-04-08 | 1999-10-14 | Geoworks Corporation | Wireless communication device with markup language based man-machine interface |
US6556217B1 (en) * | 2000-06-01 | 2003-04-29 | Nokia Corporation | System and method for content adaptation and pagination based on terminal capabilities |
CN1748216A (en) * | 2003-02-14 | 2006-03-15 | 株式会社爱可信 | Browser program for performing table-layout |
CN1938680A (en) * | 2004-03-26 | 2007-03-28 | 劲升逻辑有限公司 | A forms development platform |
CN101499099A (en) * | 2009-03-23 | 2009-08-05 | 深圳市金蝶中间件有限公司 | Method and system for WEB page layout |
CN101661508A (en) * | 2009-09-29 | 2010-03-03 | 金蝶软件(中国)有限公司 | Method for generating memu for multi-technology platform and device thereof |
CN101833586A (en) * | 2010-05-26 | 2010-09-15 | 卓望数码技术(深圳)有限公司 | HTML (Hypertext Markup Language) small screen self-adaption typesetting method and typesetting server |
CN102457528A (en) * | 2010-10-19 | 2012-05-16 | 北京邮电大学 | Method for adaptively issuing web content facing to mobile phone terminal and system thereof |
-
2013
- 2013-08-08 CN CN201310344168.XA patent/CN103605502B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999052032A1 (en) * | 1998-04-08 | 1999-10-14 | Geoworks Corporation | Wireless communication device with markup language based man-machine interface |
US6556217B1 (en) * | 2000-06-01 | 2003-04-29 | Nokia Corporation | System and method for content adaptation and pagination based on terminal capabilities |
CN1748216A (en) * | 2003-02-14 | 2006-03-15 | 株式会社爱可信 | Browser program for performing table-layout |
CN1938680A (en) * | 2004-03-26 | 2007-03-28 | 劲升逻辑有限公司 | A forms development platform |
CN101499099A (en) * | 2009-03-23 | 2009-08-05 | 深圳市金蝶中间件有限公司 | Method and system for WEB page layout |
CN101661508A (en) * | 2009-09-29 | 2010-03-03 | 金蝶软件(中国)有限公司 | Method for generating memu for multi-technology platform and device thereof |
CN101833586A (en) * | 2010-05-26 | 2010-09-15 | 卓望数码技术(深圳)有限公司 | HTML (Hypertext Markup Language) small screen self-adaption typesetting method and typesetting server |
CN102457528A (en) * | 2010-10-19 | 2012-05-16 | 北京邮电大学 | Method for adaptively issuing web content facing to mobile phone terminal and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103605502A (en) | 2014-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103605502B (en) | Form page display method and server | |
US20190251143A1 (en) | Web page rendering method and related device | |
CN104461484B (en) | The implementation method and device of front-end template | |
AU2014309040B9 (en) | Presenting fixed format documents in reflowed format | |
CN109683998A (en) | Internationalize implementation method, device and system | |
CN107818143A (en) | A kind of page configuration, generation method and device | |
CN103559194B (en) | A kind of searching method, server, system | |
CN108595681B (en) | Method, device and system for displaying form | |
CN105426508A (en) | Webpage generation method and apparatus | |
WO2014154033A1 (en) | Method and apparatus for extracting web page content | |
CN105786207A (en) | Information input method and device | |
AU2020352890B2 (en) | Dynamic typesetting | |
CN103019556A (en) | Quick help information display system and quick help information display method | |
CN101256595A (en) | Method for exhibiting multidimensional space data based on SOA structure | |
CN103617043B (en) | A kind of method and system uploaded with picture web data | |
CN106649299A (en) | Method and device for lazy loading of webpage block | |
CN107798459A (en) | Parameter values computational methods, device, storage medium and computer equipment | |
CN112800372B (en) | Page loading method and device and electronic equipment | |
US11321746B2 (en) | Ad simulator browser extension | |
CN100553250C (en) | The method and apparatus of marking of web pages | |
CN105824951A (en) | Retrieval method and retrieval device | |
CN108536715B (en) | Preview page generation method, device, equipment and storage medium | |
CN105739717A (en) | Information input method and device | |
CN103885988B (en) | Export method and device, the content output system of content | |
US11244101B2 (en) | Declarative interface for interaction design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: 11th Floor, No. 2, No. 43 West North Third Ring Road, Haidian District, Beijing 100086 Patentee after: Beijing NineStar Technology Joint-Stock Co., Ltd. Address before: 100190 Beijing Haidian District Zhongguancun South No. 2 Beijing Junma International Hotel Business Building 6 floors Patentee before: Beijing NineStar Technology Joint-Stock Co., Ltd. |
|
CP02 | Change in the address of a patent holder |