[go: up one dir, main page]

CN103559184B - The display packing of forms pages and device - Google Patents

The display packing of forms pages and device Download PDF

Info

Publication number
CN103559184B
CN103559184B CN201310322523.3A CN201310322523A CN103559184B CN 103559184 B CN103559184 B CN 103559184B CN 201310322523 A CN201310322523 A CN 201310322523A CN 103559184 B CN103559184 B CN 103559184B
Authority
CN
China
Prior art keywords
forms pages
file
display
information
display device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310322523.3A
Other languages
Chinese (zh)
Other versions
CN103559184A (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 CN201310322523.3A priority Critical patent/CN103559184B/en
Publication of CN103559184A publication Critical patent/CN103559184A/en
Application granted granted Critical
Publication of CN103559184B publication Critical patent/CN103559184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of display packing of forms pages and device, and the method includes:The display device of forms pages receives page number and the first scenario parameters;Then according to described page number, obtain the element information in the first forms pages file, described element information includes the component identification of element and the element property information of element;Described component identification is located in forms pages file, and described element property information Store is in element property file;Then according to described first scenario parameters and described element information, process described first forms pages file;Finally, according to the first forms pages file after processing, the first forms pages are shown.Display packing and device using forms pages.By display packing and the device of forms pages, the display process of forms pages can be optimized, thus the development process of forms pages file can be simplified, improve development efficiency.

Description

The display packing of forms pages and device
Technical field
The present invention relates to areas of information technology, more particularly, to a kind of display packing of forms pages and device.
Background technology
In B/S(Browser/Server, Browser/Server Mode)In the information system of structure, on the subscriber terminal Browser in display forms pages be to be shown according to the forms pages file in server;Wherein, forms pages On display content in contain the multinomial element representing various information, and under normal conditions, different display pattern(For example Increase newly, change, check)Under, the display form difference of same element;Taking show the forms pages of user profile as a example, In newly-increased customer information, change customer information, check that the unit being directed in multiple display pattern such as customer information have client Numbering, customer address etc., specifically with customer number for, in newly-increased pattern, customer number in forms pages passes through input Frame control shows;And in modification and check in scene, customer number is shown with plain text.From the foregoing, it will be observed that it is same for making Element display effect under different display patterns is different, needs to write different forms pages respectively for different display modes File, then according to the above-mentioned different forms pages file write respectively for different display modes, can root on user browser Show forms pages according to different display modes.
Those skilled in the art are found when being realized the display of forms pages using prior art, for different display modes Writing different forms pages files respectively so that writing that workload is larger, increased the construction cycle of forms pages file, fall Low development efficiency;And the forms pages Documents Comparison of generation is many, is unfavorable for the maintenance in later stage, such as when the correlation of an element Information changes, and needs this element in each forms pages file to be modified so that safeguarding forms pages simultaneously Workload larger.
Content of the invention
The present invention provides a kind of display packing of forms pages and device, for optimizing the display process of forms pages, from And the development process of forms pages file can be simplified, improve development efficiency.
In a first aspect, the present invention provides a kind of display packing of forms pages, including:
The display device of forms pages receives page number and the first scenario parameters;
The display device of described forms pages, according to described page number, obtains the element letter in the first forms pages file Breath, described element information includes the component identification of element and the element property information of element;Described component identification is located at form page In the file of face, described element property information Store is in element property file;
The display device of described forms pages, according to described first scenario parameters and described element information, processes described first Forms pages file;
The display device of described forms pages, according to the first forms pages file after processing, shows the first forms pages.
In conjunction with a first aspect, in the first embodiment, described according to described page number, in the first forms pages file Middle acquisition element information, including:
The display device of described forms pages, according to described page number, determines the first list in forms pages library Pagefile;At least one forms pages file, each forms pages file and the page is stored in described forms pages library Numbering associated storage;
The display device of described forms pages travels through described first forms pages file, obtains described first forms pages literary composition Each element mark included by part;
The display device of described forms pages, according to each described component identification, inquires about each described element in element property storehouse Identify corresponding element property file, obtain the element property information of each element;At least one is stored in described element property storehouse Individual element property file, each described element property file and component identification associated storage.
In conjunction with first aspect first embodiment, in this second embodiment, described element property information includes and each field Each display information of scape parameter association, each described display information describes under each scenario parameters, and each described element is in described table Display rule in single-page.
In conjunction with first aspect second embodiment, in the third embodiment, according to described first scenario parameters and described Element information, processes described first forms pages file, including:
The display device of described forms pages according to described first scenario parameters, in the element property information of each described element Each first display information that middle determination is associated with described first scenario parameters;
The display device of described forms pages adopts each described first display information, generates each display code;
It is in described first forms pages file and each that the display device of described forms pages adopts described display code to replace Described element property information corresponding each element mark, acquisition process after the first forms pages file.
In conjunction with first aspect the 3rd embodiment, in the 4th embodiment, described display code include command character and Constant data, then adopt the display information of each described display pattern mark association, generate each display code, including:
Display rule according to described by described display information for the display device of described forms pages, generates command character simultaneously Load constant data corresponding with described command character;
Described loading constant data corresponding with described command character, including:
The display device of described forms pages loads described constant data in the caching of the display device of forms pages;Or Person, loads described constant data in the addressable data base of display device of described forms pages, and this constant data is deposited Store up to buffer area.
In conjunction with first aspect to first aspect the 4th embodiment, in the 5th embodiment, receive page number with Before first scenario parameters, described display packing also includes:
The display device of described forms pages receive that management equipment sends newly-increased and/or the forms pages file updating and Element property file, and described forms pages file is stored in forms pages library;Described element property file is deposited Storage is in element property storehouse.
Second aspect, the embodiment of the present invention provides a kind of display device of forms pages, including:
Receiver module, for receiving page number and the first scenario parameters;
Acquisition module, for according to described page number, obtaining the element information in the first forms pages file, described unit Prime information includes the component identification of element and the element property information of element;Described component identification is located in forms pages file, Described element property information Store is in element property file;
Processing module, for according to described first scenario parameters and described element information, processing described first forms pages File;
Display module, for according to the first forms pages file after processing, showing the first forms pages.
In conjunction with second aspect, in the first embodiment, described acquisition module is specifically for according to described page number, The first forms pages file is determined in forms pages library;At least one form page is stored in described forms pages library Face file, each forms pages file and page number associated storage;
Travel through described first forms pages file, obtain each element mark included by described first forms pages file;
According to each described component identification, element property storehouse is inquired about each described component identification corresponding element property literary composition Part, obtains the element property information of each element;At least one element property file is stored in described element property storehouse, each described Element property file and component identification associated storage.
In conjunction with second aspect first embodiment, in this second embodiment, described element property information includes and each field Each display information of scape parameter association, each described display information describes under each scenario parameters, and each described element is in described table Display rule in single-page.
In conjunction with second aspect second embodiment, in the third embodiment, described processing module includes:
Acquiring unit, for according to described first scenario parameters, determine in the element property information of each described element with Each first display information of described first scenario parameters association;
Signal generating unit, for using each described first display information, generating each display code;
Replacement unit, is belonged to each described element for being replaced in described first forms pages file using described display code Property information corresponding each element mark, acquisition process after the first forms pages file.
In conjunction with second aspect the 3rd embodiment, in the 4th embodiment, described display code include command character and Constant data, then specifically for the display rule according to described by described display information, generation command character simultaneously adds signal generating unit Carry constant data corresponding with described command character;
Described signal generating unit is specifically for loading described constant data in the caching of the display device of forms pages;Or Person, loads described constant data in the addressable data base of display device of described forms pages, and this constant data is deposited Store up to buffer area.
In conjunction with second aspect to second aspect the 4th embodiment, in the 5th embodiment, described receiver module is also used In receive that management equipment sends newly-increased and/or the forms pages file updating and element property file, and by described form page Face file is stored in forms pages library;Described element property file is stored in element property storehouse.
The display packing of forms pages and device that the present invention provides, each due to only recording in the forms pages file of use The component identification of element, and element property information is located in element property file, element property information includes different scenes ginseng Display information under several, then, when showing in forms pages, a forms pages file can be multiplexed in each to greatest extent Under scape, it is not required to, for different scenes, design different forms pages files, thus the exploitation of forms pages file can be simplified Journey, improves development efficiency.
Brief description
Fig. 1 is the flow chart of the display packing embodiment one of forms pages of the present invention;
Fig. 2 is the flow chart of the display packing embodiment two of forms pages of the present invention;
Fig. 3 is the structure chart of the display device embodiment one of forms pages of the present invention;
Fig. 4 is the structure chart of the display device embodiment two of forms pages of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are 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 The 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 being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
Fig. 1 is the flow chart of the display packing embodiment one of forms pages of the present invention.As shown in figure 1, the holding of the present embodiment Row main body is the display device of forms pages, and the display device of this forms pages can be come in fact using hardware and/or software mode Existing, it is preferably provided at the display to realize forms pages in server, this display packing includes:
S101, the display device of forms pages receive page number and the first scenario parameters.
Interaction between the display device of forms pages and user can be carried out by the browser on user terminal, specifically , this browser can provide a user interface, then user passes through user interface input page numbering and the first scenario parameters;Its Scene parameter represents the display pattern needed for user, for example, check, change, increase newly;For example, user can input page Numbering P5, the first scenario parameters C10, make the display device of forms pages show the forms pages that numbering is 5 according to the pattern of checking Show;Or, user can input page numbering P5, the first scenario parameters C20, then numbering is 5 by the display device making forms pages Forms pages according to modification pattern show;Use for ease of user, above-mentioned scenario parameters can be in user interface Button, for example, " check " button, " modification " button, when user clicks button, then the display device of forms pages just receives The display pattern of user's instruction, as above-mentioned scenario parameters.
S102, the display device of forms pages, according to page number, obtain the element information in the first forms pages file.
Above-mentioned element information includes the component identification of element and the element property information of element;Wherein, component identification is located at In forms pages file, described element property information Store is in element property file.Specifically, referring to table 1:
Table 1
With html in table 1(Hypertext Markup Language, HTML)Forms pages file is Example, the forms pages file B and forms pages file A of the prior art that are applied to the present embodiment are made to contrast, it is possible to find In the prior art, the element in forms pages file is html code, for example, represent that the element of levels of clients is html code: “<select name=cust_class>" and each with the option data of html written in code, for example "<option value=1 >Normal client</option>”;And be applied to the forms pages file of the present embodiment display packing, element is only with component identification Form be located at forms pages file in, for example represent levels of clients element adopt component identification " $ { cust_class } ", should The element property information of element includes the display information under each display pattern, for example, in the unit representing levels of clients In element property information corresponding to element, the display information under newly-increased pattern includes expression levels of clients in similar prior art Four options;And under the pattern of checking, the rank of client has been to determine, therefore represent the specifying information of levels of clients, such as Gold medal client, silver medal client etc. are to determine that uniquely, therefore under this pattern, element property information only comprises to represent an option Display information, that is, increase newly pattern under display information only comprise one of the following:" gold medal client ", " silver medal client ", " commonly visitor Family " and " diamond client ";But it should be noted that, the element property information containing much information is not on forms pages file Interior.
S103, the display device of forms pages, according to the first scenario parameters and element information, process the first forms pages literary composition Part.
Due to including the different display information under plurality of display modes of this element in the element property information of element, but User is only one kind for the display pattern of forms pages, even checking or newly-increased or modification;Therefore, according to user input Current first scenario parameters, it is determined that display pattern needed for user, accordingly, determine this display mould in element property information Display information under formula, in order to process the first forms pages file.
S104, the display device of forms pages, according to the first forms pages file after processing, show the first forms pages.
For example, the first scenario parameters of user input represent that user needs browser display to check the list under pattern The page, then in this forms pages, the concrete rank of element " levels of clients " is to determine uniquely, then, in element property information, check Under display pattern, the display information of this " levels of clients " is also to determine and is designated as " gold medal client ";Then replaced using this display information After changing the component identification in the first forms pages file, according to having carried out the first forms pages file after replacement operation, show First forms pages.
In the present embodiment, due to only recording the component identification of each element in forms pages file, and element property information In element property file, and in element property information, it is used for the difference work according to display pattern for each display information of display To divide, then the display device of forms pages can determine corresponding display letter according to current scenario parameters and element property information Breath, makees to forms pages file to process, then forms pages show according to corresponding display pattern;Thus a forms pages literary composition Part can be multiplexed under each scene to greatest extent, is not required to, for different scenes, design different forms pages files, from And the development process of forms pages file can be simplified, improve development efficiency.
Fig. 2 is the flow chart of the display packing embodiment two of forms pages of the present invention.As shown in Fig. 2 the present embodiment be The detailed description of display packing is made further, the method includes on the basis of embodiment one:
S201, the forms pages file increasing newly and/or updating receiving management equipment transmission and element property file.
In a practical situation, the display of forms pages needs to load associated documents to be shown, this associated documents It is specially forms pages file and element property file;Therefore developer needs to develop associated documents, in the present embodiment, opens Send out librarian use as management equipment server provided Form Designer exploitation associated documents.Specifically, this list sets Gauge includes INTERFACE DESIGN area, toolbar, property window composition;Wherein, INTERFACE DESIGN area is used for the layout of design element, instrument Hurdle is made up of the element button of representative element, supports in the way of pulling toward INTERFACE DESIGN area addition element, property window is used for Every property value of setting element.
The INTERFACE DESIGN area of above-mentioned Form Designer supports to carry out using table-layout and absolute fix layout two ways The layout of element;Under table-layout mode, developer can add unit in the cell of the form that INTERFACE DESIGN area provides Element;The specification of form can be configured by developer, for example, increase form row, column, Merge Cells, split cell, set Put cell style etc.;And under absolute fix layout type, addition element can be pulled from instrument to INTERFACE DESIGN area, specifically will Element is placed in the block of absolute fix, realizes coordinate setting layout, and above-mentioned element is shown with specific code, with html is Example, element is shown using html code;Subsequently choose element in INTERFACE DESIGN area, press enter key or other trigger actions, open Open property window, in order to edit each attribute information of this element;After associated documents are completed using Form Designer design, make With the memory module of Form Designer, element is converted into component identification, preserves as forms pages file;And each element Attribute information preserves as element property file.Above-mentioned forms pages file and element property file can be sent to by management equipment The display device of forms pages, wherein, forms pages file is storable in forms pages library, and element property file is deposited Storage is in element property storehouse;Above-mentioned forms pages library and element property storehouse can be located in the display device of forms pages, also may be used On the server that the display device of forms pages is located.
If it should be understood that management equipment is increased newly and/or updated, the display device of forms pages is not required to execute S201.
S202, the display device of forms pages receive page number and the first scenario parameters.
S203, the display device of forms pages, according to page number, determine the first form page in forms pages library Face file.
Due to storing at least one forms pages file in forms pages library, and each forms pages file and the page Numbering associated storage;Then the display device of forms pages, according to page number, can get the list corresponding to this page number Pagefile;In the present embodiment, the page number according to the current input of user, gets the first forms pages of user's needs File.
S204, the display device of forms pages travel through the first forms pages file, obtain the first forms pages file and are wrapped The each element mark including.
, travel through this forms pages file taking the forms pages file B in table 1 as a example, four units in this page can be obtained Element mark, $ { cust_no }, $ { cust_name }, $ { cust_class } and $ { cust_addr }, wherein symbol " $ { } " are easy to The display device of forms pages quickly finds the element in the page, and cust_no, cust_name etc. are as component identification Concrete character, due to representing component identification by the way of " symbol+character ", even if above-mentioned concrete character employs writes list The code character of pagefile, the code character of for example existing html, but the presence due to symbol, the display dress of forms pages Put and the code character of component identification and existing html will not be obscured;Can be flexible, component identification can also be using except volume Write other characters beyond the code character of forms pages, then the display device of forms pages equally will not be obscured.
It should be noted that the labeling method of component identification is not exemplified as limiting with above-mentioned in the present embodiment.
S205, the display device of forms pages identify according to each element, and in element property storehouse, inquiry each element mark is right The element property file answered, obtains the element property information of each element.
At least one element property file is stored, each element property file is associated with component identification to be deposited in element property storehouse Storage.This element property information includes each display information associating with each scenario parameters, and each display information describes to join in each scene Under several, display rule in forms pages for each element;Specifically, taking above-mentioned forms pages file B as a example, the current level of client Not Wei normal client, then the user input page coding referred to the forms pages file comprising this customer data, according to this list Each element mark in pagefile, in element property storehouse, inquiry each element identifies corresponding element property file, obtains each unit The element property information of element.This element property information includes the display information under plurality of display modes;With component identification " $ In the element property information that { cust_class } " associates, describe in the display information under the pattern of checking display rule for " with Text form shows ' normal client ' ";And describing display rule in the display information under modification pattern is " drop-down row Bezel, cluster shows ' normal client ', ' silver medal client ', ' gold medal client ' and ' diamond client ' ".
The content that display information is used for writing display rule specifically may include:Element character, page number, elements correlation generation Code and the control type of element;Wherein element character " cust_class " as exemplified above, by this element character, element property File can set up incidence relation with component identification " $ { cust_class } ";Page number is for carrying out with forms pages file Association;Elements correlation code is used for guiding the addressable data base of display device from forms pages for the display device of forms pages (The data base on server that display device as forms pages is located)The middle data loading with this elements correlation;Such as user The scenario parameters of input refer to modification pattern, then element " address of theenduser " place need to show the address date of previous input, this address Data, in previous input, is stored under the association code " addr " in server database, then this user is in modification mould Need under formula to change this address date, then the display device of forms pages can be according to the association code " addr " of element " address of theenduser " Find the address date of storage in data base, and load this data to display to the user that, be easy to user with reference to modification;And element Control type be specifically identified for display form, for example, text label, single file edit box, Multiline Edit frame, single choice Frame, check box, button, drop-down list box etc., this control type can be using the html written in code of standard it is also possible to It is self-defining code, for example, can be the combination of the html code of multiple standards;For the control type of some option types, example As drop-down list box, check box etc., in display information, also need to include option data, for example above-mentioned for being shown in drop-down row " normal client ", " gold medal client " in bezel, cluster etc., this option data can be described as enumerating data, this enumerate data can as piece Act value is directly programmed in display information it is also possible to be corresponded with resource number, now enumerates data and is stored in server Data base in, the display device of forms pages can obtain in the server according to resource number and corresponding enumerate data;In addition, Preferably, for above-mentioned enumerate data can default settings, such as component identification " { cust_class } ", drop-down list Display " normal client " can be given tacit consent to, that is, enumerating setting " normal client " in data is default value in frame;When forms pages are in user Browser on show after, in forms pages acquiescence occur " normal client ", if then user be currently needed for select " normal client ", Then user can not be used in execution selection operation in forms pages, improves the work efficiency of user;If user is currently needed for selecting " gold medal client ", then select " gold medal client " in drop-down list box.
S206, the display device of forms pages, according to the first scenario parameters, determine in the element property information of each element Each first display information associating with the first scenario parameters.
Different display rules under each scenario parameters for the element are included, for example, in scenario parameters C10 in display information Under, it is not enumerate data for component identification " { cust_class } ", only with one of the presence of read-only form in order to table Show the data of specific levels of clients;And under scenario parameters C20, be then to include multiple to enumerate data;Accordingly, it would be desirable to according to First scenario parameters, determine each first display information associating with the first scenario parameters in the element property information of each element.
S207, the display device of forms pages adopt each first display information, generate each display code.
Above-mentioned display code includes command character and constant data, the element being associated with component identification $ { cust_class } As a example attribute information, according to the display code that the display information being associated with scenario parameters C20 is generated it is:<select Name= cust_class>………………………………………………………(1)<option value=1>Commonly Client</option>;…………………………………………(2)<option value=2>Silver medal client</ option>;…………………………………………(3)<option value=3>Gold medal client</option >;…………………………………………(4)<option value=4>Diamond client</option >;…………………………………………(5)
Wherein(1)Row<select Name=cust_class>As command character, represent in component identification $ { cust_class } place shows drop-down list box, to select user class;And(2)~(5)The code at place is included alternatively Constant data;Above-mentioned each constant data is in display information i.e. as enumerating data towards drop-down list box;And generate aobvious When showing code, the display device of the forms pages display rule according to described by display information, generate command character and load with The corresponding constant data of command character, and when loading constant data corresponding with command character, the display device of forms pages can Constant data is loaded in the caching of the display device of forms pages;Or, in the addressable number of the display device of forms pages According to storehouse(Such as data base in the server that the display device of forms pages is located)Middle loading constant data, and by this constant number According to storing to buffer area, beneficial to improving the display device of the forms pages treatment effeciency to forms pages.
S208, the display device of forms pages are replaced in the first forms pages file using display code and each element attribute The corresponding each element of information identifies, the first forms pages file after acquisition process.
S209, the display device of forms pages, according to the first forms pages file after processing, show the first forms pages.
First forms pages, according to the first forms pages file after processing, can show in the browser that user uses; Specifically, the display device of forms pages, according to the display code in the first forms pages file after processing, controls user's Browser carries out user oriented display.
In the present embodiment, due to only recording the component identification of each element in forms pages file, and element property information In element property file, and in element property information, it is used for the difference work according to display pattern for each display code of display To divide, then the display device of forms pages can determine corresponding display generation according to current scenario parameters and element property information Code, makees to forms pages file to process, then forms pages show according to corresponding display pattern;Thus a forms pages literary composition Part can be multiplexed under each scene to greatest extent, is not required to, for different scenes, design different forms pages files, from And simplify the development process of forms pages file, improve development efficiency.
Fig. 3 is the structure chart of the display device embodiment one of forms pages of the present invention.As shown in figure 3, this device includes:
Receiver module 31, for receiving page number and the first scenario parameters;
Acquisition module 32, for according to page number, obtaining the element information in the first forms pages file, element information The element property information of the component identification including element and element;Component identification is located in forms pages file, and element property is believed Breath is stored in element property file;
Processing module 33, for according to the first scenario parameters and element information, processing the first forms pages file;
Display module 34, for according to the first forms pages file after processing, showing the first forms pages.
In the present embodiment, due to only recording the component identification of each element in forms pages file, and element property information In element property file, and in element property information, it is used for the difference work according to display pattern for each display code of display To divide, then the display device of forms pages can determine corresponding display generation according to current scenario parameters and element property information Code, makees to forms pages file to process, then forms pages show according to corresponding display pattern;Thus a forms pages literary composition Part can be multiplexed under each scene to greatest extent, is not required to, for different scenes, design different forms pages files, from And simplify the development process of forms pages file, improve development efficiency.
Fig. 4 is the structure chart of the display device embodiment two of forms pages of the present invention.As shown in figure 4, the present embodiment be On the basis of embodiment illustrated in fig. 3, it is described in detail further, the acquisition module 32 of the display device of this forms pages is concrete For according to page number, forms pages library determining the first forms pages file;Store in forms pages library At least one forms pages file, each forms pages file and page number associated storage;
Travel through the first forms pages file, obtain each element mark included by the first forms pages file;
Identified according to each element, inquiry each element identifies corresponding element property file in element property storehouse, obtain each The element property information of element;At least one element property file, each element property file and unit is stored in element property storehouse Element mark associated storage.
Above-mentioned element property information includes each display information associating with each scenario parameters, and each display information describes each Under scenario parameters, display rule in forms pages for each element.
Further, processing module 33 includes:
Acquiring unit 331, for according to the first scenario parameters, determining and first in the element property information of each element Each first display information of scape parameter association;
Signal generating unit 332, for using each first display information, generating each display code;
Replacement unit 333, for using display code replace the first forms pages file in each element attribute information pair The each element mark answered, the first forms pages file after acquisition process.
Above-mentioned display code includes command character and constant data, then signal generating unit 332 is specifically for according to display information Described display rule, generates command character and loads constant data corresponding with command character;
Signal generating unit 332 is specifically for loading constant data in the caching of the display device of forms pages;Or, in table Load constant data in the addressable data base of display device of single-page, and this constant data is stored to buffer area.
Further, above-mentioned receiver module 31 is additionally operable to receive the form page of the newly-increased and/or renewal that management equipment sends Face file and element property file, and forms pages file is stored in forms pages library;Element property file is deposited Storage is in element property storehouse.
In the present embodiment, due to only recording the component identification of each element in forms pages file, and element property information In element property file, and in element property information, it is used for the difference work according to display pattern for each display code of display To divide, then the display device of forms pages can determine corresponding display generation according to current scenario parameters and element property information Code, makees to forms pages file to process, then forms pages show according to corresponding display pattern;Thus a forms pages literary composition Part can be multiplexed under each scene to greatest extent, is not required to, for different scenes, design different forms pages files, from And simplify the development process of forms pages file, improve development efficiency.
It should be noted that above-mentioned each module corresponds to above-mentioned each method embodiment, will not be described here.
One of ordinary skill in the art will appreciate that:The all or part of step realizing above-mentioned each method embodiment can be led to Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.This journey Sequence upon execution, executes the step including above-mentioned each method embodiment;And aforesaid 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 only in order to technical scheme to be described, is not intended to limit;To the greatest extent Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme.

Claims (8)

1. a kind of display packing of forms pages is it is characterised in that include:
The display device of forms pages receives page number and the first scenario parameters;
The display device of described forms pages, according to described page number, obtains the element information in the first forms pages file, Described element information includes the component identification of element and the element property information of element;Described component identification is located at forms pages literary composition In part, in element property file, described element property information includes element in multiple displays to described element property information Store The display information of pattern;
The display device of described forms pages, according to described first scenario parameters and described element information, processes described first list Pagefile;
The display device of described forms pages, according to the first forms pages file after processing, shows the first forms pages;
Wherein, according to described first scenario parameters and described element information, process described first forms pages file, including:
The display device of described forms pages is according to described first scenario parameters, true in the element property information of each described element Fixed each first display information associating with described first scenario parameters;
The display device of described forms pages adopts each described first display information, generates each display code;
It is described with each in described first forms pages file that the display device of described forms pages adopts described display code to replace The corresponding each element of element property information identifies, the first forms pages file after acquisition process;
Described display code includes command character and constant data, then adopt the display letter of each described display pattern mark association Breath, generates each display code, including:
Display rule according to described by described display information for the display device of described forms pages, generates command character and loads Constant data corresponding with described command character;
Described loading constant data corresponding with described command character, including:
The display device of described forms pages loads described constant data in the caching of the display device of forms pages;Or, Load described constant data in the addressable data base of display device of described forms pages, and by this constant data store to Buffer area.
2. display packing according to claim 1 it is characterised in that described according to described page number, in the first list Element information is obtained in pagefile, including:
The display device of described forms pages, according to described page number, determines the first forms pages in forms pages library File;At least one forms pages file, each forms pages file and page number is stored in described forms pages library Associated storage;
The display device of described forms pages travels through described first forms pages file, obtains described first forms pages file institute Including each element mark;
The display device of described forms pages, according to each described component identification, inquires about each described component identification in element property storehouse Corresponding element property file, obtains the element property information of each element;At least one unit is stored in described element property storehouse Plain property file, each described element property file and component identification associated storage.
3. display packing according to claim 2 is it is characterised in that described element property information includes and each scenario parameters Each display information of association, each described display information describes under each scenario parameters, and each described element is in described forms pages Interior display rule.
4. the display packing according to any one of claims 1 to 3 is it is characterised in that receiving page number and first Before scape parameter, described display packing also includes:
The display device of described forms pages receives the forms pages file of newly-increased and/or renewal and the element that management equipment sends Property file, and described forms pages file is stored in forms pages library;Described element property file is stored in In element property storehouse.
5. a kind of display device of forms pages is it is characterised in that include:
Receiver module, for receiving page number and the first scenario parameters;
Acquisition module, for according to described page number, obtaining the element information in the first forms pages file, described element letter Breath includes the component identification of element and the element property information of element;Described component identification is located in forms pages file, described In element property file, described element property information includes the display in plurality of display modes for the element to element property information Store Information;
Processing module, for according to described first scenario parameters and described element information, processing described first forms pages file;
Display module, for according to the first forms pages file after processing, showing the first forms pages;
Wherein, described processing module includes:
Acquiring unit, for according to described first scenario parameters, determine in the element property information of each described element with described Each first display information of the first scenario parameters association;
Signal generating unit, for using each described first display information, generating each display code;
Replacement unit, is believed with each described element property for being replaced in described first forms pages file using described display code Cease corresponding each element mark, the first forms pages file after acquisition process;
Described display code includes command character and constant data, then signal generating unit is specifically for being retouched according to described display information The display rule stated, generates command character and loads constant data corresponding with described command character;
Described signal generating unit is specifically for loading described constant data in the caching of the display device of forms pages;Or, Load described constant data in the addressable data base of display device of described forms pages, and this constant data is stored to slow Deposit area.
6. display device according to claim 5 is it is characterised in that described acquisition module is specifically for according to the described page Numbering, determines the first forms pages file in forms pages library;At least one is stored in described forms pages library Individual forms pages file, each forms pages file and page number associated storage;
Travel through described first forms pages file, obtain each element mark included by described first forms pages file;
According to each described component identification, element property storehouse is inquired about the corresponding element property file of each described component identification, obtains Take the element property information of each element;At least one element property file, each described element is stored in described element property storehouse Property file and component identification associated storage.
7. display device according to claim 6 is it is characterised in that described element property information includes and each scenario parameters Each display information of association, each described display information describes under each scenario parameters, and each described element is in described forms pages Interior display rule.
8. the display device according to any one of claim 5~7 is it is characterised in that described receiver module is additionally operable to receive Send newly-increased of management equipment and/or the forms pages file updating and element property file, and by described forms pages file It is stored in forms pages library;Described element property file is stored in element property storehouse.
CN201310322523.3A 2013-07-29 2013-07-29 The display packing of forms pages and device Active CN103559184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310322523.3A CN103559184B (en) 2013-07-29 2013-07-29 The display packing of forms pages and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310322523.3A CN103559184B (en) 2013-07-29 2013-07-29 The display packing of forms pages and device

Publications (2)

Publication Number Publication Date
CN103559184A CN103559184A (en) 2014-02-05
CN103559184B true CN103559184B (en) 2017-03-01

Family

ID=50013431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310322523.3A Active CN103559184B (en) 2013-07-29 2013-07-29 The display packing of forms pages and device

Country Status (1)

Country Link
CN (1) CN103559184B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209732A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 A kind of offer method and device of identifying code
CN104933019B (en) * 2015-06-05 2019-05-10 亚信科技(南京)有限公司 A kind of method and device that list generates
CN107656910A (en) * 2016-07-26 2018-02-02 北京京东尚科信息技术有限公司 Method and apparatus for generating list
CN107133725B (en) * 2017-04-19 2021-05-28 广东智科电子股份有限公司 Automatic production management system of circuit board
CN108920207A (en) * 2018-06-15 2018-11-30 江苏中威科技软件系统有限公司 A method of improving file form loading performance
CN110737850A (en) * 2019-09-10 2020-01-31 苏宁云计算有限公司 chart generation method and device
CN111930370A (en) * 2020-06-17 2020-11-13 石化盈科信息技术有限责任公司 Visualized page processing method and device, computer equipment and storage medium
CN111708529B (en) * 2020-06-23 2023-06-16 浪潮云信息技术股份公司 Method for generating form through dragging based on angular
CN112183573B (en) * 2020-08-20 2023-05-05 中船重工(武汉)凌久高科有限公司 Web application system design method based on cluster analysis and rich text
CN113296771B (en) * 2021-05-12 2024-09-20 北京沃东天骏信息技术有限公司 Page display method, device, equipment and computer readable medium
CN116663517B (en) * 2023-08-02 2023-11-10 江苏中威科技软件系统有限公司 Single-screen operation method based on workflow form system data interaction and input content

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135990A (en) * 2011-03-11 2011-07-27 北京神舟航天软件技术有限公司 Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2394804A (en) * 2002-10-31 2004-05-05 Hewlett Packard Co Method of Processing Data from a Submission Interface

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135990A (en) * 2011-03-11 2011-07-27 北京神舟航天软件技术有限公司 Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于JSP的可视化动态表单引擎设计;王志朋 等;《软件导刊》;20090731;第8卷(第7期);17-19 *
转Struts2+Sping+Hibernate3图书管理;walkingpig;《http://www.blogjava.net/ash011/archive/2009/01/18/181081.html》;20080221;第17页29-35行,第25页22、45、46行,第28页第11-16行,第19-24行,第29页第1-3行,(2),表2,第30页第31-33行,第36页图1,图2 *

Also Published As

Publication number Publication date
CN103559184A (en) 2014-02-05

Similar Documents

Publication Publication Date Title
CN103559184B (en) The display packing of forms pages and device
US7971175B2 (en) Method and system for implementing cached parameterized cells
CN104375808B (en) interface display method and device
US20190340230A1 (en) System and method for generating websites from predefined templates
US20120110437A1 (en) Style and layout caching of web content
CN109697064A (en) A kind of generation method and device of the customized page
CN110020307A (en) A kind of method for drafting and device of client&#39;s end-view
US20190065444A1 (en) Techniques for efficient &amp; high-throughput web content-creation
CN105183475A (en) Method and system for customizing individuality pages of portal website by user himself
KR20060050395A (en) Methods, systems, and computer readable media for integrating data from multiple data sources for use in electronic documents
CN107797933B (en) Method and device for generating simulation message
CN108536745A (en) Tables of data extracting method, terminal, equipment and storage medium based on Shell
WO2015112131A1 (en) Multistage customizing of web-based application in a browser independent of platform and operating system
CN110032562B (en) Method and device for storing business records
CN111352935A (en) Index creating method, device and equipment in block chain type account book
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
CN103176778B (en) Web development methods and device
CN114356403B (en) A configuration data processing method, device and system based on low-code application development
CN106648569A (en) Target serialization achieving method and device
CN105653255A (en) Method arranging report template to automatically generate report files in office frame
CN106610824A (en) Page height self-adaptation method and apparatus
CN104391731A (en) Editing method based on C# and irrelevant to data types
US10956658B2 (en) Digital content editing of a document object model (DOM) based on object model comparison
EP2965492A1 (en) Selection of data storage settings for an application
CN116028062B (en) Target code generation method, NPU instruction display method and device

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
CB03 Change of inventor or designer information

Inventor after: Jie Hongbo

Inventor after: Tao Jianyu

Inventor after: Tian Jian

Inventor after: Guo Jihong

Inventor after: Ren Yalun

Inventor after: Liu Yanru

Inventor before: Jie Hongbo

Inventor before: Tao Jianyu

Inventor before: Guo Jihong

Inventor before: Feng Feng

Inventor before: Ren Yalun

Inventor before: Liu Yanru

CB03 Change of inventor or designer information
CP02 Change in the address of a patent holder

Address after: 11th Floor, No. 2 Building, 43 North Third Ring West 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