CN103092917B - A kind of customized label realizes the querying method of browser page business dictionary - Google Patents
A kind of customized label realizes the querying method of browser page business dictionary Download PDFInfo
- Publication number
- CN103092917B CN103092917B CN201210559688.8A CN201210559688A CN103092917B CN 103092917 B CN103092917 B CN 103092917B CN 201210559688 A CN201210559688 A CN 201210559688A CN 103092917 B CN103092917 B CN 103092917B
- Authority
- CN
- China
- Prior art keywords
- label
- business dictionary
- dictionary
- business
- customized label
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the querying method that a kind of customized label realizes browser page business dictionary, it is characterized in that, comprise the steps: that (1) sets up customized label obj ect file; (2) business dictionary configuration file is set up; (3) label supporting paper is set up; (4) page code is write; The present invention is towards the developer based on web browser/server architecture, realizes the development scheme of simple and easy, quick, independent, extendible business dictionary enquiring function.The method is the mode by writing the customized label meeting java standard criterion, the logic of solidification backstage Query Database business dictionary, make easy foreground code just can with multiple forms that represents such as radio box, check box, combobox, single parameter value, multiple parameter values, independently realize the function of business dictionary data inquiry, and write self-defined sql statement by the business dictionary configuration file of xml form, realize the expansion of dictionary content.
Description
Technical field
The present invention relates to business dictionary enquiring method, specifically, relate to the querying method that a kind of customized label realizes browser page business dictionary.
Background technology
According to the view under browser/server system general at present, controller, service logic three-decker Development Framework, the element content on browser page, all needs by controller layer, obtains from Business Logic.Like this for specific business information, system architecture is clear, code loose coupling is good, be easy to safeguard, but for various dictionary category informations public in system, just need the code writing access dictionary object method in multiple business logic objects, and quote the attribute of dictionary object attribute as business logic objects, so in systems in which, the loose coupling of service logic and dictionary object will be made to be deteriorated, and a lot of code repeated can be produced.And for different dictionary structure, also need to call different dictionary object methods, introduce different dictionary object attributes, logic more complicated.
Summary of the invention
The technical problem to be solved in the present invention is to provide the querying method that a kind of customized label realizes browser page business dictionary, simple and easy, quick, independent, the extendible inquiry realizing browser page business dictionary.
The present invention adopts following technological means to realize goal of the invention:
Customized label realizes a querying method for browser page business dictionary, it is characterized in that, comprises the steps:
(1) customized label obj ect file is set up, for each customized label writes independently Batch Processing processing logic, first business dictionary object is called, according to the querying condition parameter imported into, then the Query Result data obtained are assembled the browser page code of standard by Query Database according to the call format imported into;
(2) set up business dictionary configuration file, write self-defining sql statement by business dictionary configuration file, realize the expansion of business dictionary content;
(3) setting up label supporting paper, is legal parameter name and attribute under often kind of customized label document definition bookmark name, description, corresponding background business logic and label;
(4) write page code, in the general jsp header file that each page can be quoted, increase quoting label supporting paper, and define prefix when quoting label, make to call label supporting paper according to unified specification in all pages.
As the further restriction to the technical program, described customized label comprises radio box, check box, combobox, single parameter value and multiple parameter values.
As the further restriction to the technical program, the querying condition parameter in described step (1) comprises tag queries content.
As the further restriction to the technical program, the call format imported in described step (1) comprises page elements pattern, numbering, title, whether allows for sky, event handling mode.
As the further restriction to the technical program, described business dictionary configuration file is the business dictionary configuration file of xml form.
Compared with prior art, advantage of the present invention and good effect are: the invention provides a kind of method being realized browser page fast query business dictionary by customized label, be towards the developer based on web browser/server architecture, realize the development scheme of simple and easy, quick, independent, extendible business dictionary enquiring function.The method is the mode by writing the customized label meeting java standard criterion, the logic of solidification backstage Query Database business dictionary, make easy foreground code just can with multiple forms that represents such as radio box, check box, combobox, single parameter value, multiple parameter values, independently realize the function of business dictionary data inquiry, and write self-defined sql statement by the business dictionary configuration file of xml form, realize the expansion of dictionary content.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the enforcement of the preferred embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, the present invention is further described in detail.
The present invention includes following steps:
(1) customized label obj ect file is set up, for each customized label writes independently Batch Processing processing logic, first business dictionary object is called, according to the querying condition parameter imported into, then the Query Result data obtained are assembled the browser page code of standard by Query Database according to the call format imported into;
(2) set up business dictionary configuration file, write self-defining sql statement by configuration file, realize the expansion of business dictionary content;
(3) setting up label supporting paper, is legal parameter name and attribute under often kind of customized label document definition bookmark name, description, corresponding background business logic and label;
(4) write page code, in the general jsp header file that each page can be quoted, increase quoting label supporting paper, and define prefix when quoting label, make to call label supporting paper according to unified specification in all pages.
Described customized label comprises that radio box, check box, combobox, single parameter value and multiple parameter values etc. are multiple represents form.
Querying condition parameter in described step (1) comprises the parameter such as tag queries content and additional queries condition.
The call format imported in described step (1) comprises page elements pattern, numbering, title, whether allows for sky, event handling mode.
See Fig. 1, the present invention, by using the mode of customized label, in browser page code, specifies which class value will accessing which dictionary, and the display mode of dictionary value, application server resolve page code time, according to the requirement of browser page code, access tag supporting paper, and then call customized label obj ect file, call business dictionary object by it, then by business dictionary object calling data storehouse operand, realize the acquisition of business dictionary data; And in the disposal route of dictionary object, add by writing data base manipulation statement in business dictionary configuration file, to the mechanism that dictionary content expands.In this way, the access to dictionary object that browser page is needed, is separated with background business logic, well solves the problem of prior art.
Use the method, concrete steps during enforcement are as follows
1., when using the method, the concrete steps under simple scenario are as follows:
For the content that will inquire about in business dictionary table (database table of storage service dictionary), and be the simple scenario by the inquiry of business dictionary code, only need in the page, write the code that a line quotes customized label, inside have: the business dictionary code representing query contents, for obtaining name, property parameter of page elements currency.Such as only need to write " <dict:dictListname=" VarDefineForm " property=" code " sqlMap=" enterpriseScale "/> ", can reveal codes be just the combobox of the business dictionary content of " enterpriseScale ", and Lookup protocol default value is the value of " code " attribute of " VarDefineForm " object, and after have selected the other guide of combobox, the value of selection is assigned to " code " attribute of " VarDefineForm " object.
2., when using the method, the concrete steps under complex situations are as follows:
1) for the content that will inquire about not in business dictionary table, or not the complex situations by the inquiry of business dictionary code, need first editing affairs dictionary configuration file, increase key/value pair, using the character string of an energy accurate description query contents as the content of key, content using a query sentence of database as value, the Query Result of statement must comprise the row of four fixing another names, is respectively: as the nounvalue of page elements value; As the nounName of page elements displaying contents; As NOUNORDER and nounId of page elements sort criteria.After completing, the query contents parameter using the content of key as label, continues next step;
2) in the page, the code that a line quotes customized label is write, have in must writing: the sqlMap parameter representing query contents, for obtaining the name of page elements currency, property parameter, have in can selecting as required whether to write: for determining the scope parameter of data acquisition scope, for transmitting the sqlStr parameter of additional queries condition, for transmitting the nounsuper parameter of additional queries parameter, be used to specify the isNull parameter whether allowing page elements not have value, for arranging the style parameter of page elements pattern, for arranging the styleId parameter of page elements ID, and onClick, onDbClick, onChange, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, the standard Event processing mode parameter that a series of javascript of onMouseUp etc. supports.According to the difference of page elements and displaying contents, the label quoted is allowed to be divided into following several: radio box; Check box; Combobox; Single parameter value; Multiple parameter values.
● below to show " scope of the enterprise " combobox in the page, the embodiment of this method is described.
First, in browser page, introduce customized label, code is:
<%tagliburi="/WEB-INF/dictDisp"prefix="dict"%>
Then, if scope of the enterprise is in business dictionary table, code is " enterpriseScale ", then only need increase following code in browser page:
<dict:dictListname="VarDefineForm"property="code"sqlMap="enterpriseScale"/>
Scope of the enterprise combobox can be demonstrated in the page, the key assignments of combobox is the parameter value of all records under dictionary code " enterpriseScale ", display Name is corresponding parameter name, and Lookup protocol default value is the value of " code " attribute of " VarDefineForm " object, and after have selected the other guide of combobox, the value of selection is assigned to " code " attribute of " VarDefineForm " object.Be exactly so simple.
For more complex situation, if scope of the enterprise is in independent table table1, then also needs to carry out expanded configuration to scope of the enterprise parameter in the business dictionary configuration file of xml form, in map label, increase code as follows:
<entrykey="enterpriseScale"value="|selectt.field1asnounName,t.field2asnounvalue,t.field3asNOUNORDER,''asnounidfromtable1t"></entry>
Certainly, above-mentioned explanation is not limitation of the present invention, and the present invention is also not limited only to above-mentioned citing, and the change that those skilled in the art make in essential scope of the present invention, remodeling, interpolation or replacement, also belong to protection scope of the present invention.
Claims (1)
1. customized label realizes a querying method for browser page business dictionary, it is characterized in that, comprises the steps:
(1) customized label obj ect file is set up, for often kind of customized label writes independently Batch Processing processing logic, first business dictionary object is called, according to the querying condition parameter imported into, then the Query Result data obtained are assembled the browser page code of standard by Query Database according to the call format imported into;
(2) set up business dictionary configuration file, write self-defining sql statement by business dictionary configuration file, realize the expansion of business dictionary content;
(3) setting up label supporting paper, is legal parameter name and attribute under often kind of customized label document definition bookmark name, description, corresponding Batch Processing processing logic and label;
(4) page code is write, in the general jsp header file that each page can be quoted, increase quoting label supporting paper, and the prefix defined when quoting label, make to call label supporting paper according to unified specification in all pages, described customized label comprises radio box, check box, combobox, single parameter value and multiple parameter values, querying condition parameter in described step (1) comprises tag queries content, the call format imported in described step (1) comprises page elements pattern, numbering, title, whether allow for sky, event handling mode, described business dictionary configuration file is the business dictionary configuration file of xml form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210559688.8A CN103092917B (en) | 2012-12-20 | 2012-12-20 | A kind of customized label realizes the querying method of browser page business dictionary |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210559688.8A CN103092917B (en) | 2012-12-20 | 2012-12-20 | A kind of customized label realizes the querying method of browser page business dictionary |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103092917A CN103092917A (en) | 2013-05-08 |
CN103092917B true CN103092917B (en) | 2016-03-30 |
Family
ID=48205482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210559688.8A Active CN103092917B (en) | 2012-12-20 | 2012-12-20 | A kind of customized label realizes the querying method of browser page business dictionary |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103092917B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105549978A (en) * | 2015-12-17 | 2016-05-04 | 浪潮软件集团有限公司 | A configuration method for solving drop-down list parameters of web foreground page |
CN107172029A (en) * | 2017-05-09 | 2017-09-15 | 努比亚技术有限公司 | Cross-site attack solution, mobile terminal and storage medium |
CN108347638B (en) * | 2018-02-27 | 2020-10-27 | 烽火通信科技股份有限公司 | Key processing method and system for IPTV set top box browser |
CN109739909B (en) * | 2019-01-07 | 2023-03-31 | 浪潮通用软件有限公司 | Method and system for rapidly realizing display of data visualization chart based on label |
CN111258477B (en) * | 2020-01-09 | 2021-04-30 | 江苏满运软件科技有限公司 | Tab configuration method, system, device and storage medium |
CN111475553A (en) * | 2020-04-09 | 2020-07-31 | 五八有限公司 | Data query display method and device, electronic equipment and storage medium |
CN112035197B (en) * | 2020-08-11 | 2021-07-13 | 深圳前海微众银行股份有限公司 | Method and device for configuring front-end pages |
CN112287177B (en) * | 2020-11-25 | 2021-07-13 | 城云科技(中国)有限公司 | Method and device for creating, changing, displaying and inquiring object label |
CN113360152B (en) * | 2021-06-11 | 2023-11-03 | 软子数字软件(广州)有限公司 | Method and system for realizing parameterized data query webpage display program |
CN114564665A (en) * | 2022-02-28 | 2022-05-31 | 掌阅科技股份有限公司 | Electronic book typesetting style adapting method, device, equipment and storage medium |
CN117850780A (en) * | 2024-01-09 | 2024-04-09 | 中国邮政储蓄银行股份有限公司 | Front-end query page generation method, query method, electronic device and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096588A (en) * | 2011-03-24 | 2011-06-15 | 南京朗睿软件科技有限公司 | Control-containing page establishing method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7747969B2 (en) * | 2006-11-15 | 2010-06-29 | Sap Ag | Method and system for displaying drop down list boxes |
-
2012
- 2012-12-20 CN CN201210559688.8A patent/CN103092917B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096588A (en) * | 2011-03-24 | 2011-06-15 | 南京朗睿软件科技有限公司 | Control-containing page establishing method |
Non-Patent Citations (1)
Title |
---|
cuisuqiang.JSP自定义标签实现数据字典.《http://cuisuqiang.iteye.com/blog/1381591》.2012,第1-11页. * |
Also Published As
Publication number | Publication date |
---|---|
CN103092917A (en) | 2013-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103092917B (en) | A kind of customized label realizes the querying method of browser page business dictionary | |
US8145606B2 (en) | System, method, and software for enforcing information retention using uniform retention rules | |
US8751926B2 (en) | Intelligent rendering on a mobile computing device | |
US7831567B2 (en) | System, method, and software for managing information retention using uniform retention rules | |
US6240422B1 (en) | Object to relational database mapping infrastructure in a customer care and billing system | |
US7484219B2 (en) | Synchronizing centralized data store from distributed independent data stores using fixed application programming interfaces | |
US7761428B2 (en) | System, method, and software for managing information retention using uniform retention rules | |
US6687704B1 (en) | Database model system and method | |
RU2370808C2 (en) | System and method for data display with enclosed tables without circuit diagram | |
US20020129059A1 (en) | XML auto map generator | |
US9229971B2 (en) | Matching data based on numeric difference | |
WO2007030684A2 (en) | Annotating documents in a collaborative application with data in disparate information systems | |
CN102087723A (en) | Method, system and device for sharing enterprise address book | |
US11487707B2 (en) | Efficient file path indexing for a content repository | |
US7693918B2 (en) | Rapid prototyping, generating and dynamically modifying a schema representing a database | |
US20080133587A1 (en) | Extending Existing Data within a Directory Service | |
US8601001B2 (en) | Selectively structuring a table of contents for accessing a database | |
CN102902516A (en) | Control inversion based pop-up frame design for call center | |
JP5567676B2 (en) | System and method for providing an electronic business card by retrieving storage means according to one or more criteria | |
US20170220656A1 (en) | Information Access System | |
JP2007279839A (en) | Database management system and table association method for relational database | |
CN112764744B (en) | Interface service design method for ERP system | |
US20060253833A1 (en) | System and method for efficient hosting of wireless applications by encoding application component definitions | |
CN112600918B (en) | Industrial control edge big data efficient processing method and system based on BS architecture | |
CN113806366A (en) | Atlas-based method for realizing multidimensional metadata joint query |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |