CN103605502A - Form page display method and server - Google Patents

Form page display method and server Download PDF

Info

Publication number
CN103605502A
CN103605502A CN201310344168.XA CN201310344168A CN103605502A CN 103605502 A CN103605502 A CN 103605502A CN 201310344168 A CN201310344168 A CN 201310344168A CN 103605502 A CN103605502 A CN 103605502A
Authority
CN
China
Prior art keywords
list
columns
forms pages
attribute
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.)
Granted
Application number
CN201310344168.XA
Other languages
Chinese (zh)
Other versions
CN103605502B (en
Inventor
解洪波
陶建宇
田�健
孙钰佳
唐剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING NINESTAR TECHNOLOGY JOINT-STOCK Co Ltd
Original Assignee
BEIJING NINESTAR TECHNOLOGY JOINT-STOCK 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 BEIJING NINESTAR TECHNOLOGY JOINT-STOCK Co Ltd filed Critical BEIJING NINESTAR TECHNOLOGY JOINT-STOCK Co Ltd
Priority to CN201310344168.XA priority Critical patent/CN103605502B/en
Publication of CN103605502A publication Critical patent/CN103605502A/en
Application granted granted Critical
Publication of CN103605502B publication Critical patent/CN103605502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a form page display method and a server. The method comprises the steps of receiving form page display requests sent by a browser, and enabling the form page display requests to comprise form numbers and the display width of the browser; obtaining form attributes of forms corresponding to the form numbers and element attributes of every element in the forms; determining the display column number according to the display width of the browser; generating to-be-displayed form pages according to the display column number, the form attributes of the forms and the element attributes of every element in the forms; and sending the to-be-displayed form pages to the browser so that the browser displays the to-be-displayed form pages. The to-be-displayed form pages are generated in real time according to the width of the browser and the form numbers, the information system form reuse rate is improved, an information system form development workload is reduced, and storage resources of the server are saved.

Description

Forms pages display packing and server
Technical field
The present invention relates to areas of information technology, relate in particular to a kind of forms pages display packing and server.
Background technology
Along with panel computer, universal and the application of the multiple mobile device such as smart mobile phone, in mobile device, by browser, visit the situation of enterprise information system more and more, in enterprise information system, based on HTML (Hypertext Markup Language) (Hyper Text Mark-up Language, abbreviation HTML) forms pages is the most frequently used interface display mode, the main contents of forms pages comprise the Form Element in list form and form, such as single-line entry box, multiple-line entry box, text label, radio box, check box etc., comprise in addition some about the JavaScript code of demonstration and business operation.
Conventionally when the list of exploitation infosystem, only consider to adopt PC (Personal Computer is called for short PC) as interface layout's situation of display device, the interface of designing is difficult on applicable various mobile devices.At present, in order to meet the needs that use the different terminal access infosystem of screen size, development of information system personnel design different list display interfaces for the terminal screen of different size.
For the terminal screen varying in size, develop different list display interfaces, between many cover display interfaces, duplicate contents is more, such as Form Element, page JavaScript code etc., not only caused the repeatability of infosystem list development, also wasted the storage resources of server.
Summary of the invention
The invention provides a kind of forms pages display packing and server, for improving the reusability of infosystem list, thereby reduced the workload that in infosystem, list is developed, saved the storage resources of server.
First aspect of the present invention is to provide a kind of forms pages display packing, and the method comprises:
Receive the forms pages demonstration request that browser sends, described forms pages shows that request comprises the display width of form number and described browser;
According to described form number, obtain the element property of each element in the list attribute of the corresponding list of described form number and described list;
According to the display width of described browser, determine and show columns;
Element property according to each element in the list attribute of described demonstration columns, described list and described list, generates forms pages to be shown;
Described forms pages to be shown is sent to described browser, so that forms pages to be shown described in described browser display.
Another aspect of the present invention provides a kind of server, and this server comprises:
Receiver module, the forms pages demonstration request sending for receiving browser, described forms pages shows that request comprises the display width of form number and described browser;
Acquisition module, for according to described form number, obtains the element property of each element in the list attribute of the corresponding list of described form number and described list;
Determination module, for according to the display width of described browser, determines and shows columns;
Generation module, for according to the element property of the list attribute of described demonstration columns, described list and described each element of list, generates forms pages to be shown;
Sending module, for described forms pages to be shown is sent to described browser, so that forms pages to be shown described in described browser display.
A technical scheme tool in above technical scheme has the following advantages or beneficial effect:
Forms pages display packing provided by the invention and server, by determine the columns of list to be shown according to the browser display width in forms pages demonstration request, according to forms pages, show that the form number in request obtains each attribute of an element in list attribute and list, and generate forms pages to be shown, realized and only needed list attribute and the element property of each list of storage, and the forms pages sending according to browser shows that request generates in real time forms pages and shows, improved the reusability of the list in enterprise information system, thereby reduced the workload of infosystem list exploitation, saved the storage resources of server.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of forms pages display packing embodiment mono-provided by the invention;
Fig. 2 is the schematic flow sheet of forms pages display packing embodiment bis-provided by the invention;
Figure 3 shows that server example structural representation provided by the invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of forms pages display packing embodiment mono-provided by the invention.As shown in Figure 1, the method comprises:
S10, receives the forms pages demonstration request that browser sends, and described forms pages shows that request comprises the display width of form number and described browser.
In the present embodiment, server receives the forms pages demonstration request that browser sends.Concrete, user clicks the form name that will load or the modes such as form name that input will load in corresponding input frame in the browser of terminal, determine the forms pages of wishing loading, browser is according to user's input, determine the form number corresponding to forms pages of user's request of loading, and the display width parameter of this form number and browser is sent to server.
S11, according to described form number, obtains the element property of each element in the list attribute of the corresponding list of described form number and described list.
Particularly, server is according to form number, list attribute list in the form database of the local storage of inquiry, determine the list attribute that this form number is corresponding, and then according to the Form Element attribute list in form number inquiry form database, determine the element property of each Form Element that this form number is corresponding.Wherein, the list attribute of having preserved each list in list attribute list, list attribute comprises form number, Form Element attribute list has been preserved the element property of each Form Element, Form Element attribute comprises the form number at this element place, and form number is the unique identification of list in form database.List attribute list and Form Element attribute list can be kept in form database or in formfile.The present embodiment does not limit this.The present invention be take list attribute list and Form Element attribute list and is all kept in form database as example describes.
Conventionally, list can be divided into header, ceiling button district, list form district, bottom button district, 5 regions of footer.The main attribute of list is as shown in table 1:
Table 1 list attribute
In list, each attribute of an element is as shown in table 2:
Table 2 Form Element attribute
Figure BDA00003639611100051
It should be noted that, the list attribute of enumerating in above-mentioned list attribute list and Form Element attribute list and each element property of list be the exemplary illustration to conventional list just, not the definition to list attribute and Form Element attribute.Wherein, the definition of the sign of list attribute and each element property of list can be carried out according to general specification or default rule, and the present invention does not limit this.For instance, the acquiescence columns of list, to design according to now conventional office equipment, specifically, conventional office equipment is PC now, the columns of list form when giving tacit consent to columns and being designed to browser place terminal and being PC, if conventional office equipment is other mobile terminal, as panel computer (Personal Access Device, be called for short PAD), the columns of list form when giving tacit consent to columns and be browser place terminal and being PAD.The present invention does not limit this; The ceiling button alignment thereof attribute in list attribute and for example, can define with 1 or L represent to occupy left demonstration, 2 or M represent demonstration placed in the middle, 3 or R represent to occupy right demonstration; And for example, the definition of element type in Form Element attribute, can with 1 or T represent text label, 2 or OED represent single file edit box, 3 or DED represent Multiline Edit frame, 4 or RB represent radio box etc.
S12, according to the display width of described browser, determines and shows columns.
In the present embodiment, the display width of browser refers to the display width of browser in terminal, depends primarily on the display screen size of terminal.In addition, for present many hand-held mobile terminals, configured gravity sensing equipment, when the direction of holding terminal as user changes, as by vertically changing level into or being changed into when vertical by level, can can changing by display width of the browser showing on mobile terminal, accordingly, according to the definite demonstration columns of the display width of this browser, also can change.
Under a kind of special application scenarios, on terminal browser, indicator gauge single-page is according to the last forms pages of browser, to show the forms pages of the browser display width generation of carrying in request, now user has changed the direction of holding of terminal, changed the display width of browser, can trigger new forms pages and show request, server receives that the forms pages that the display width of browser based on new sends shows request, thereby can generate new forms pages to be shown according to this new request, and on browser, show newly-generated forms pages to be shown.
Particularly, server obtains the col width COLW of this list form in the list attribute that this form number is corresponding according to form number, in conjunction with the display width Scale Width of the browser of receiving, and the demonstration columns of the list that computation requests shows on this browser
Figure BDA00003639611100061
S13, the element property according to each element in the list attribute of described demonstration columns, described list and described list, generates forms pages to be shown.
Conventionally, server creates forms pages data structure according to the demonstration columns of the element property of each element in list attribute, list and list, then forms pages data structure is converted into list html file, i.e. forms pages to be shown.
S14, sends to described browser by described forms pages to be shown, so that forms pages to be shown described in described browser display.
The forms pages display packing that the present embodiment provides, by determine the columns of list to be shown according to the browser display width in forms pages demonstration request, according to forms pages, show that the form number in request obtains each attribute of an element in list attribute and list, and generate forms pages to be shown, realized and only needed list attribute and the element property of each list of storage, and the forms pages sending according to browser shows that request generates in real time forms pages and shows, improved the reusability of infosystem list, thereby reduced the workload of infosystem list exploitation, saved the storage resources of server.
Figure 2 shows that the schematic flow sheet of forms pages display packing embodiment bis-provided by the invention.As shown in Figure 2, on embodiment illustrated in fig. 1 one basis, in embodiment bis-, element property comprises that sequence number, the element of element in list accounts for line number, element accounts for columns; Correspondingly, above-mentioned S13, comprising:
S131, generates forms pages to be shown according to described demonstration columns;
S132, according to the element property of each element in the list attribute of described list and described list, by each element in described list, according to each element, the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown.
In the present embodiment, first only according to showing that columns generates the blank forms pages of not containing element to be shown, then according to the element property that belongs to each element of this list, each element is loaded in this blank forms pages.Concrete, in element property, the sequence number of element in list represents the DISPLAY ORDER of this element in affiliated list, in list, the DISPLAY ORDER of element can be by from left to right, be arranged in order from top to bottom, also can arrange by horizontal " it " shape, can also arrange by vertical " it " shape, the present invention does not limit this.The accounting for line number, account for line number and columns that columns represents that this element is used in the list of place of element, when accounting for line number or account for columns while being greater than 1, represents that this element exists inter-bank in the list of place or across the situation of row; If accounting for line number and accounting for columns of certain element is 0 and represents that last sequence number element in this element and this list is in same cell.For instance, if the demonstration columns of the list that a certain form number of determining according to the display width of browser is 100 is 4, this list shows each element by order from left to right, from top to bottom, in this list, the sequence number of elements A is 1, and accounting for line number is 2, and accounting for columns is 1; The sequence number of element B is 2, and accounting for line number is 1, and accounting for columns is 1; The sequence number of Elements C is 3, and accounting for line number is 1, and accounting for columns is 2; The sequence number of element D is 4, and accounting for line number and accounting for columns is 0; The sequence number of element E is 5, and accounting for line number is 1, and accounting for columns is 3, and the page of this list generating is as shown in table 3 below.
Table 3 list 100
Further, element property also comprises that the minimum of element shows columns;
After above-mentioned S131, also comprise:
Judge the minimum demonstration columns of each element in described list and the size of described demonstration columns;
Above-mentioned S132, comprising:
According to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns.
For instance, if server shows that according to list the demonstration columns of this list that the width of browser in request is determined is 4, in the forms pages to be shown generating, only can show that minimum demonstration columns is to be no more than each element of 4, for the minimum that belongs to this list, show that columns surpasses each element of 4, be not carried in forms pages to be shown, correspondingly, in the forms pages to be shown of this generation, can not show these elements.
In a kind of preferably implementation, described forms pages shows that request also comprises scene parameter; Element property also comprises the display mode of element under each scene;
After above-mentioned S131, also comprise:
According to described scene parameter, determine the display mode that each element is corresponding with described scene parameter;
Above-mentioned according to the element property of each element in the list attribute of described list and described list, by minimum show each element that columns is no more than described demonstration columns according to each element the sequence number in described list, element accounts for line number and element and accounts for columns and be loaded in described forms pages to be shown, comprise: according to corresponding display mode, the element property of each element in the list attribute of described list and described list, by minimum show columns be no more than described demonstration columns and corresponding display mode be non-each hiding element according to each element the sequence number in described list, element accounts for line number and element and accounts for columns and be loaded in described forms pages to be shown.
Particularly, the displayed scene of the forms pages of scene Parametric Representation browse request.For instance, check that scene represents that user just will check forms pages, does not carry out any editor to this page; Newly-increased scene represents that user will use the newly-increased new forms pages of pattern of this forms pages; Revise scene and represent that user will revise some element in this forms pages or revise the pattern etc. of this list.Concrete, can with 1 or S represent to check scene, 2 or A represent newly-increased scene, 3 or M represent to revise list scene.The present invention does not limit this.
Conventionally, for different scenes, in list, the display mode of each element is different.The display mode of element under each scene can be divided into be hidden and non-two classes of hiding, the display mode of concrete non-hiding class comprises: textual form demonstration, the demonstration of control form, the demonstration of read-only control form etc., what in forms pages to be shown, load is only that under this scene parameter, display mode is non-each hiding element, and be each hiding element for display mode, without being carried in the forms pages this time generating, in this forms pages, can not show this element.Concrete, can with 1 or T represent this element with textual form show, with 2 or T represent this element with control form show, with 3 or RT represent this element with read-only control form show, with 4 or H represent that this element is hiding in affiliated form and do not show.The present embodiment does not limit this.For instance, under newly-increased scene, some element or all element can be hidden and not show, so according to showing that columns generates after forms pages to be shown, the first display mode under this scene according to scene parameter and each element, determine whether each element in the forms pages to be shown of this generation will be presented in this forms pages, if the display mode of all elements is all to hide, directly generate a blank forms pages and be presented in browser, if the display mode of some element is non-hiding in this list, the element property that is non-each hiding element according to display mode is again loaded into each element in forms pages to be shown.
In the present embodiment, in judgement list, the minimum of each element shows columns and the big or small step that shows columns, with the step of determining each element corresponding display mode under this scene parameter according to scene parameter, there is no definite sequencing, the minimum that can first judge each element shows columns and the size that shows columns, can first according to scene parameter, determine the display mode of this element, the present embodiment does not limit this yet.Be understandable that for showing in request and do not carry under the situation of scene parameter in forms pages, in forms pages generative process, do not carry out the step of determining the display mode of element according to scene parameter.After showing that according to the minimum of element columns and the display mode of this element under certain scene parameter determine whether this element needs to be carried in the forms pages of generation, then according to the element property of each element, each element is loaded in forms pages to be shown.
Correspondingly, described by minimum show columns be no more than described demonstration columns and corresponding display mode be non-each hiding element according to each element, the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown, also comprise:
Display mode corresponding to each element according to being loaded in described forms pages to be shown, shows each element.
For instance, check under scene, the display mode that is loaded into certain element in forms pages to be shown is that textual form shows, in this element is carried in to forms pages to be shown according to its element property after, this element is shown with textual form.
Further, element property also comprises the resource number of element; Correspondingly, above-mentioned according to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns, also comprise:
For being loaded in described forms pages to be shown and comprising the element of effective resource number in element property, according to described effective resource number, from buffer memory, obtain the resource of enumerating of described element, and be loaded in described forms pages to be shown.
In the present embodiment, in element property, be provided with resource number, in the buffer memory of server, store resource number table, enumerate in store resource number and the corresponding relation of enumerating resource in resource number table.Concrete, to the element that does not need to enumerate, its corresponding element resource numbering can be set to sky, also can be set to this element of default character representation without enumerating resource, as resource number is empty or is set to this element of 0 expression without enumerating resource, server is without query resource number table; Accordingly, the element of enumerating for needs, its corresponding element resource numbering can be set to effective resource number.Server is according to the effective resource number of certain Form Element, by the resource number table of storing in inquiry local cache determine this resource number corresponding enumerate resource, and be loaded in described forms pages to be shown.For instance, if certain name is called the combobox Form Element of " user class ", its resource number is 1,2,3,4, server is by the resource number table in query caching district, determine that the resource that this resource number is corresponding is " VIP client ", " group customer ", " big customer ", " individual client ", these are enumerated to resource and be loaded in corresponding drop-down list box, when user clicks in the forms pages of demonstration this combobox, these resources will show in forms pages.
Conventionally, the limited storage space of server buffer, for enumerating the Form Element that resource is more complicated, resource number table also may be kept in Service Database, first server searches the corresponding resource of enumerating according to effective resource number from buffer memory, if do not find, in the resource number table in Service Database, search, and by find enumerate resource to be loaded into forms pages to be shown in this resource number and the corresponding relation of enumerating resource are stored in buffer memory.
Further, element property also comprises the element code of element;
Above-mentioned according to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns, also comprise:
According to described scene parameter, determine whether each element being loaded in the described page to be shown needs to load element data; If desired, according to the element code of each element, from Service Database, obtain the element data of each element, and be loaded in described forms pages to be shown.
Concrete, element code refers to for obtaining the sign of this element corresponding data, preserves element code table in Service Database, preserves the corresponding relation of element code and element data in element code table.Particularly, can set in advance the scene that need to load element data, such as, arranging and check that scene and modification scene need to load element data, newly-increased scene is without loading element data; Correspondingly, if server determines that according to scene parameter this forms pages shows that request is for checking scene or revising scene, server obtains according to the element code of this each element of list of determining the data that this code is corresponding from Service Database, and is loaded in forms pages to be shown; If server has determined that the scene parameter that forms pages shows that request is carried is newly-increased scene, without the element code of checking again this each element of list, and only according to other attribute of each element, determine the display format of each element in forms pages to be shown.
Further, the forms pages that described reception browser sends also comprises before showing request:
The element property of each element in the list attribute of the described list that reception Form Designer sends and described list, the list attribute of described list comprises described form number, in described list, the element property of each element comprises described form number;
The element property of each element in the list attribute of described list and described list is stored in respectively in list attribute list and Form Element attribute list;
Described according to described form number, obtain the element property of each element in the list attribute of the corresponding list of described form number and described list, comprising:
According to described form number, from described list attribute list, obtain the list attribute that comprises described form number, from described Form Element attribute list, obtain the element property of each element that comprises described form number.
Particularly, the data structure of list being divided for the element property by list attribute and each element of list to form in Form Designer, then by default rule, the element property of each element in the attribute of list and list is arranged, so that the list attribute setting that server is sent Form Designer and Form Element property store are in form database.The specific definition mode of list attribute and Form Element attribute can, with reference to the explanation of above-described embodiment, repeat no more herein.Wherein, corresponding at least one the Form Element attribute of list attribute, has an element that belongs to this list at least in a list.
In the present embodiment, while increasing a forms pages newly, load the default style of default list form in Form Designer, this default list form the default style can be the list form of 4 row 3 row conventionally, can be the list form of 3 row 3 row, the present embodiment limit this yet; Accordingly, if will revise existing list, according to the page number that will revise, obtain list attribute and Form Element attribute, and be presented in Form Designer; According to the list pattern that will increase newly or revise, revise the list table style showing in designer, as split cell or Merge Cells etc., list form is set to the columns of acquiescence, and this acquiescence columns is the browser display width setting that is terminal based on PC conventionally; Interpolation, modification, mobile watch single element; For Form Element and list set a property by default rule; And the list attribute setting and list form attributes are sent to server, so that server is stored in this list attribute and Form Element attribute respectively in local list attribute list and Form Element attribute list.
The method that the present embodiment provides, by determine the columns of list to be shown according to the browser display width in forms pages demonstration request, according to form number, determine the element property of list attribute and each element, according to scene parameter, determine the display mode of each element in list, each element in list is pressed to its demonstration sequence number in list, the minimum of each element shows that the data of columns and each element are presented in forms pages to be shown, realized and only needed list attribute and the element property of each list of storage, and the forms pages sending according to browser shows that request generates in real time forms pages and shows, improved the reusability of infosystem list, thereby reduced the workload of infosystem list exploitation, saved the storage resources of server.
Figure 3 shows that server example structural representation provided by the invention.As shown in Figure 3, this server comprises: receiver module 30, acquisition module 31, determination module 32, generation module 33, sending module 34; Wherein,
Receiver module 30, the forms pages demonstration request sending for receiving browser, described forms pages shows that request comprises the display width of form number and described browser;
Acquisition module 31, for according to described form number, obtains the element property of each element in the list attribute of the corresponding list of described form number and described list;
Determination module 32, for according to the display width of described browser, determines and shows columns;
Generation module 33, for according to the element property of the list attribute of described demonstration columns, described list and described each element of list, generates forms pages to be shown;
Sending module 34, for described forms pages to be shown is sent to described browser, so that forms pages to be shown described in described browser display.
Particularly, element property comprises that sequence number, the element of element in list accounts for line number, element accounts for columns;
Described generation module, specifically for generating forms pages to be shown according to described demonstration columns; According to the element property of each element in the list attribute of described list and described list, by each element in described list, according to each element, the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown.
Further, element property also comprises that the minimum of element shows columns;
After described generation module 33 generates forms pages to be shown according to described demonstration columns, also specifically for judging that the minimum of each element in described list shows the size of columns and described demonstration columns; According to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns.
Preferably, described forms pages shows that request also comprises scene parameter; Element property also comprises the display mode of element under each scene;
After described generation module 33 generates forms pages to be shown according to described demonstration columns, also specifically for: according to described scene parameter, determine the display mode that each element is corresponding with described scene parameter; According to the element property of each element in the list attribute of corresponding display mode, described list and described list, minimum is shown to it is that the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown non-each hiding element according to each element that columns is no more than described demonstration columns and corresponding display mode.
Further, described generation module 33 shows that by minimum it is that the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown non-each hiding element according to each element that columns is no more than described demonstration columns and corresponding display mode, also specifically for: display mode corresponding to each element according to being loaded in described forms pages to be shown, shows each element.
Particularly, element property also comprises the resource number of element;
Described generation module 33 is according to the element property of each element in the list attribute of described list and described list, by minimum show each element that columns is no more than described demonstration columns according to each element the sequence number in described list, element accounts for line number and element and accounts for after columns is loaded in described forms pages to be shown, also for for being loaded into the element that comprises effective resource number in described forms pages to be shown and element property, according to described effective resource number, from buffer memory, obtain the resource of enumerating of described element, and be loaded in described forms pages to be shown.
Further, element property also comprises the element code of element;
Described generation module 33 is according to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns, also, for according to described scene parameter, determine whether each element being loaded in the described page to be shown needs to load element data; If desired according to the element code of each element, from Service Database, obtain the element data of each element, and be loaded in described forms pages to be shown.
Conventionally, before the forms pages that described receiver module 30 receives browser transmission shows request, the list attribute of described list and the element property of described each element of list that also for receiving Form Designer, send, the list attribute of described list comprises described form number, and in described list, the element property of each element comprises described form number; The element property of each element in the list attribute of described list and described list is stored in respectively in list attribute list and Form Element attribute list;
Described acquisition module 31 specifically for according to described form number, obtains the list attribute that comprises described form number from described list attribute list, obtains the element property of each element that comprises described form number from described Form Element attribute list.
In the present embodiment, the concrete grammar of the forms pages Graphics Processing flow process of each module of server, referring to above-mentioned forms pages display packing embodiment mono-or two description, repeats no more herein.
The server that the present embodiment provides, by show browser display width in request according to forms pages, determine the columns of list to be shown, according to form number, determine the element property of list attribute and each element, generate in forms pages to be shown, realized and only needed list attribute and the element property of each list of storage, and the forms pages sending according to browser shows that request generates in real time forms pages and shows, improved the reusability of infosystem list, thereby reduced the workload of infosystem list exploitation, saved the storage resources of server.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of programmed instruction.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a forms pages display packing, is characterized in that, comprising:
Receive the forms pages demonstration request that browser sends, described forms pages shows that request comprises the display width of form number and described browser;
According to described form number, obtain the element property of each element in the list attribute of the corresponding list of described form number and described list;
According to the display width of described browser, determine and show columns;
Element property according to each element in the list attribute of described demonstration columns, described list and described list, generates forms pages to be shown;
Described forms pages to be shown is sent to described browser, so that forms pages to be shown described in described browser display.
2. method according to claim 1, is characterized in that, element property comprises that sequence number, the element of element in list accounts for line number, element accounts for columns;
Describedly according to the element property of each element in the list attribute of described demonstration columns, described list and described list, generate forms pages to be shown, comprising:
According to described demonstration columns, generate forms pages to be shown;
According to the element property of each element in the list attribute of described list and described list, by each element in described list, according to each element, the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown.
3. method according to claim 2, is characterized in that, element property also comprises that the minimum of element shows columns;
Described according to described demonstration columns, generate forms pages to be shown after, also comprise:
Judge the minimum demonstration columns of each element in described list and the size of described demonstration columns;
Described according to the element property of each element in the list attribute of described list and described list, by each element in described list, according to each element, the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown, comprising:
According to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns.
4. method according to claim 3, is characterized in that, described forms pages shows that request also comprises scene parameter; Element property also comprises the display mode of element under each scene;
Described according to described demonstration columns, generate forms pages to be shown after, also comprise:
According to described scene parameter, determine the display mode that each element is corresponding with described scene parameter;
Described according to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns, comprising:
According to the element property of each element in the list attribute of corresponding display mode, described list and described list, minimum is shown to it is that the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown non-each hiding element according to each element that columns is no more than described demonstration columns and corresponding display mode.
5. method according to claim 4, it is characterized in that, described by minimum show columns be no more than described demonstration columns and corresponding display mode be non-each hiding element according to each element, the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown, also comprise:
Display mode corresponding to each element according to being loaded in described forms pages to be shown, shows each element.
6. according to arbitrary described method in claim 3~5, it is characterized in that, element property also comprises the resource number of element;
Described according to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns, also comprise:
For being loaded in described forms pages to be shown and comprising the element of effective resource number in element property, according to described effective resource number, from buffer memory, obtain the resource of enumerating of described element, and be loaded in described forms pages to be shown.
7. according to the method described in claim 4 or 5, it is characterized in that, element property also comprises the element code of element;
Described according to the element property of each element in the list attribute of described list and described list, minimum is shown to the sequence number in described list, element account for line number and element and account for after columns is loaded in described forms pages to be shown according to each element for each element that columns is no more than described demonstration columns, also comprise:
According to described scene parameter, determine whether each element being loaded in the described page to be shown needs to load element data;
If desired, according to the element code of each element, from Service Database, obtain the element data of each element, and be loaded in described forms pages to be shown.
8. method according to claim 1, is characterized in that, the forms pages that described reception browser sends also comprises before showing request:
The element property of each element in the list attribute of the described list that reception Form Designer sends and described list, the list attribute of described list comprises described form number, in described list, the element property of each element comprises described form number;
The element property of each element in the list attribute of described list and described list is stored in respectively in list attribute list and Form Element attribute list;
Described according to described form number, obtain the element property of each element in the list attribute of the corresponding list of described form number and described list, comprising:
According to described form number, from described list attribute list, obtain the list attribute that comprises described form number, from described Form Element attribute list, obtain the element property of each element that comprises described form number.
9. a server, is characterized in that, comprising:
Receiver module, the forms pages demonstration request sending for receiving browser, described forms pages shows that request comprises the display width of form number and described browser;
Acquisition module, for according to described form number, obtains the element property of each element in the list attribute of the corresponding list of described form number and described list;
Determination module, for according to the display width of described browser, determines and shows columns;
Generation module, for according to the element property of the list attribute of described demonstration columns, described list and described each element of list, generates forms pages to be shown;
Sending module, for described forms pages to be shown is sent to described browser, so that forms pages to be shown described in described browser display.
10. server according to claim 9, is characterized in that, element property comprises that sequence number, the element of element in list accounts for line number, element accounts for columns;
Described generation module, specifically for generating forms pages to be shown according to described demonstration columns; According to the element property of each element in the list attribute of described list and described list, by each element in described list, according to each element, the sequence number in described list, element account for line number and element and account for columns and be loaded in described forms pages to be shown.
CN201310344168.XA 2013-08-08 2013-08-08 Form page display method and server Active CN103605502B (en)

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 true CN103605502A (en) 2014-02-26
CN103605502B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461514A (en) * 2014-11-21 2015-03-25 山东中创软件工程股份有限公司 Page layout adjustment method and device and digital terminal
CN104932871A (en) * 2014-03-18 2015-09-23 腾讯科技(北京)有限公司 A method and device for displaying multimedia information
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
CN107656910A (en) * 2016-07-26 2018-02-02 北京京东尚科信息技术有限公司 Method and apparatus for generating list
CN108595681A (en) * 2018-05-02 2018-09-28 恒生电子股份有限公司 Method, apparatus and system for list displaying
WO2019033684A1 (en) * 2017-08-15 2019-02-21 武汉斗鱼网络科技有限公司 Html list self-adaptive layout method and device
CN110825471A (en) * 2019-10-14 2020-02-21 紫光云(南京)数字技术有限公司 Layout method suitable for configuration type form page
CN112801754A (en) * 2016-06-03 2021-05-14 阿里巴巴集团控股有限公司 Data processing method, client and server-side system
CN113268686A (en) * 2021-05-25 2021-08-17 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173316B1 (en) * 1998-04-08 2001-01-09 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
EP1593057B1 (en) * 2003-02-14 2011-09-28 Access Co., Ltd. Browser program for performing table-layout
CN1938680A (en) * 2004-03-26 2007-03-28 劲升逻辑有限公司 A forms development platform
CN101499099B (en) * 2009-03-23 2011-01-05 深圳市金蝶中间件有限公司 Method and system for WEB page layout
CN101661508B (en) * 2009-09-29 2012-08-22 金蝶软件(中国)有限公司 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

Cited By (13)

* Cited by examiner, † Cited by third party
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
CN104932871A (en) * 2014-03-18 2015-09-23 腾讯科技(北京)有限公司 A method and device for displaying multimedia information
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
CN112801754A (en) * 2016-06-03 2021-05-14 阿里巴巴集团控股有限公司 Data processing method, client and server-side system
CN107656910A (en) * 2016-07-26 2018-02-02 北京京东尚科信息技术有限公司 Method and apparatus for generating list
WO2019033684A1 (en) * 2017-08-15 2019-02-21 武汉斗鱼网络科技有限公司 Html list self-adaptive layout method and device
CN108595681B (en) * 2018-05-02 2020-12-18 恒生电子股份有限公司 Method, device and system for displaying form
CN108595681A (en) * 2018-05-02 2018-09-28 恒生电子股份有限公司 Method, apparatus and system for list displaying
CN110825471A (en) * 2019-10-14 2020-02-21 紫光云(南京)数字技术有限公司 Layout method suitable for configuration type form page
CN113268686A (en) * 2021-05-25 2021-08-17 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end
CN113268686B (en) * 2021-05-25 2022-08-26 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end

Also Published As

Publication number Publication date
CN103605502B (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN103605502A (en) Form page display method and server
CN106991154B (en) Webpage rendering method and device, terminal and server
EP3518124A1 (en) Webpage rendering method and related device
EP3667520A1 (en) Webpage content extraction method and terminal device
AU2006287357B2 (en) Designating, setting and discovering parameters for spreadsheet documents
CN108717437B (en) Search result display method and device and storage medium
KR101994499B1 (en) Hyperlink destination visibility
CN102937979A (en) User-defined optimization of webpage
CN101587441A (en) Apparatus, method, and system of assisting software development
CN103559184A (en) Form page display method and device
CN103577524A (en) Business object representations and detail boxes display
CN110941614A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN111124564A (en) Method and device for displaying user interface
CN101256595A (en) Method for exhibiting multidimensional space data based on SOA structure
CN112068911A (en) Method, device, system, equipment and medium for generating electronic form
US9501457B2 (en) Creating a communication editable in a browser independent of platform and operating system
CN108133029B (en) Map element adjusting method, device and equipment and computer-readable storage medium
CN103699520A (en) Font processing method for maintaining e-document layout
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
CN109240660B (en) Access method of advertisement data, storage medium, electronic device and system
CN113395292B (en) Message processing method and device, electronic equipment and storage medium
CN112183573B (en) Web application system design method based on cluster analysis and rich text
CN111651696B (en) Product label customizing method and device, computer storage medium and electronic equipment
CN114443022A (en) Method for generating page building block and electronic equipment
CN115686506A (en) Data display method and device, electronic equipment and storage medium

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
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.