CN103399746B - Information management system convenient to develop secondarily and development method - Google Patents
Information management system convenient to develop secondarily and development method Download PDFInfo
- Publication number
- CN103399746B CN103399746B CN201310332192.1A CN201310332192A CN103399746B CN 103399746 B CN103399746 B CN 103399746B CN 201310332192 A CN201310332192 A CN 201310332192A CN 103399746 B CN103399746 B CN 103399746B
- Authority
- CN
- China
- Prior art keywords
- web page
- page element
- event
- background event
- background
- 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
Abstract
The invention discloses an information management system convenient to develop secondarily and a development method. The information management system comprises a browser, a server and a data base, the browser further comprises a user interface unit, and the server further comprises a page model module, a background event description module and a data base interface module. When developers carry out browser designing and secondary development, the developers only need to set up a browser webpage or define a new webpage element on the browser webpage, increase corresponding background event description according to the newly-defined webpage element, finally define data base interface codes through which a background event communicates with the data base and connect the data base interface codes to the data base. According to the information management system and the development method, the development of a new webpage can be completed only through dozens of lines of codes, the developers can carry out the secondary development only by mastering Java language, development difficulty is greatly lowered, and development efficiency is improved.
Description
Technical field
The present invention relates to Development of Management Information System field, more particularly, to Browser/Server Mode framework are just
Information management system and its development approach carrying out secondary development in secondary development.
Background technology
With the development of computer technology, increasing business and government mechanism begins with the mode of electronic office
To improve operating efficiency to greatest extent, and information management system(MIS, Management Information System)Then
It is most important of which part.So-called mis system, is an energy being made up of people, computer and other ancillary equipment etc.
Enter collection, transmission, storage, processing, maintenance and the system using of row information.The core of traditional mis system is client/clothes
Business device(C/S, Client/Server)Framework, application is divided into two by this pattern, and server is responsible for data management, client computer
Complete the interactive task with user.C/S framework has strong data manipulation and transaction capabilities, and the security of data
And integrity constraint.But the expanding day with application scale, the complexity of information management improves constantly, and C/S framework exposes
It has that development cost is higher, transplanting difficulty, user-interface styles disunity, safeguard complicated, upgrade trouble, the information content and form list
One the shortcomings of, is so that many new mis systems begin with browser/server(B/S, Browser/Server)Framework.B/S
Framework has very big superiority compared with C/S framework, and traditional mis system depends on special operating environment it means that grasping
The activity space of author is extremely restricted;And B/S framework does not then need special operating environment, anywhere, as long as energy
It becomes possible to operation mis system, good and bad difference among these is self-evident for online.
Mis system based on Web is it is simply that adopt the new mis system of B/S framework.It can be not only used for decision of the senior level,
And can be used for carrying out common business management.Logged in by the signature at browsing device net page end for the user(Or anonymous login),
And control of authority accordingly, it is possible to achieve in far-end browsing, inquire about, control and checking to system.
As a rule, a mis system based on WEB can intactly be developed using existing WEB Development Framework, but
Developer is needed expertly to grasp multiple development languages and development technique, such as JavaScript, HTML, JSP, JDBC etc..So
And complicated mis system generally requires additions and deletions at any time and modification Web page module, or add new function etc., that is, so-called two
Secondary exploitation.Secondary development not only brings loaded down with trivial details written in code work, and higher to the technical requirements of developer.
Content of the invention
The invention aims to solving program code during mis system secondary development to write loaded down with trivial details, exploit person
Member needs to be grasped the problems such as multiple technologies just can be developed, the construction cycle is long, proposes a kind of message tube being easy to secondary development
Reason system, the information management platform needing for quick foundation simultaneously carries out convenient secondary development above.
Technical solution of the present invention is as follows:
A kind of information management system being easy to secondary development, including browser, server database, described browser is also
Including the user interface elements for defining web page element and its web page element mark;Described server includes:
Background event describing module, is provided with background event coded description, for various backstages corresponding to web page element
Event is described, and forms the background event for each browsing device net page and describes class;
Page model module, for being packaged to web page element operating function, and parses background event coded description, real
Now the foreground event to web page element and the automatic binding of background event, form page model class;
Database interface module, for realizing the data interaction of described background event describing module and described database.
Web page element operating function is encapsulated by page model module by JavaScript code, and webpage is first
The foreground event of element is bound with background event, and developer only need to write new browsing device net page and its corresponding backstage
Event description is it is possible to be automatically performed the exploitation of browsing device net page.
Further, described page model module includes:
Mark resolution unit, for identification web page element mark and foreground thing from described background event describing module
Part and the corresponding informance of background event;
Web page element operating unit, for being packaged web page element operating function;
Web page element and background event binding unit, for receiving the web page element mark that described mark resolution unit parses
Know and foreground event and the corresponding informance of background event, from web page element operating unit, find corresponding web page element, then
The foreground event of this web page element and background event are bound.
Further:
Web page element is identified by described web page element operating unit with web page element mark, and with web page element mark
To set up web page element index, described browser and background event describing module need operated which web page element, then described net
Page element operation unit just makes a look up according to web page element index, is able to conveniently find the web page element of needs and is responded.
Described web page element and background event binding unit, when the foreground event of web page element triggers, call this net automatically
The background event of the foreground event binding of page element.
Further, described page model module is realized by a Java page model class, and described background event describes mould
Block includes at least one Java background event and describes class, and all of background event to describe class be all described page model class
Derived class.In page model module, all of function is put together, one complete java class of formation, referred to as page model class,
It is the core of whole information management system, and the background event defined in the event description module of backstage describes class universal succession
Page model class from page model module, and each derived class has its corresponding browsing device net page.
Further, described web page element operating function is packaged, the described foreground event to web page element and after
The automatic binding of platform event, is to be realized using JavaScript script.
The invention allows for the development approach based on above- mentioned information management system, for entering to described information management system
Row secondary development, including step:
Step S1, create browsing device net page or new web page element is defined on browsing device net page;
Step S2, the web page element increase corresponding background event description according to new definition, for describing this web page element
Corresponding background event;
Step S3, define this background event and database interface code that database is communicated be connected to database.
Further, increase a new web page element if on original webpage, then after former webpage is corresponding
Increase the description of this new web page element corresponding background event in platform event description class;If creating new browser page,
Then increase a corresponding background event and describe class.
The information management system being easy to secondary development proposed by the present invention and its development approach, with note and the parsing of Java
Web page element is bound by function with background event, and JavaScript part is carried out with the unified encapsulation on backstage, puts into net
It is achieved that markup language and logical language separation in page element operation unit.This information management system can greatly simplify
The whole development process of developer.As long as writing a unified page model module for an information management system, and
After setting the development language bag support required for database and modules, subsequent development personnel only need to grasp Java language
All of web user interface in this system, corresponding event description code and database interface generation can easily be created
Code, realizes required information management function.Page model unit only need to be write once, you can for whole information management system
All pages.Whenever creating new User Page, only need to write its browser page concrete page corresponding with this page
Coded description, without as traditional development of information system, will individually write thing for each element of each page
Part response method and method for processing business etc., not only waste the substantial amounts of time, also the technical merit of developer are required higher.
System and method proposed by the present invention greatly reduces development difficulty, improves development efficiency.
Brief description
Fig. 1 is the structural representation of information management system of the present invention;
Fig. 2 is the corresponding relation figure that page model class of the present invention and background event describe class and webpage;
Fig. 3 carries out the development approach flow chart of secondary development for the present invention.
Specific embodiment
With reference to the accompanying drawings and examples technical solution of the present invention is described in further details, following examples are not constituted
Limitation of the invention.
A kind of information management system being easy to secondary development of the present invention as shown in figure 1, include browser 1, server 2, with
And database 3.
Wherein, browser 1(I.e. Browser end), for the browsing device net page confession of mis system is shown on the terminal of user
User interacts, each web page element on browsing device net page it is necessary to have unique web page component identification propety, for taking
Business device 2 is to the identification of web page element and operation.
Browser 1 has the user interface elements 101 for defining web page element and its web page element mark propety,
This user interface elements 101 adopts the tag library based on JSP language of independent development to realize.
For example:The property of one web page element button is operate, and realizing code is:"<layout:Key=" counts
Calculate " property=" operate "/>".
By user interface elements 101, developer can define the outward appearance of webpage, and has which webpage unit on webpage
Element, forms a browsing device net page, is easy to user and browses and interactive.Create browsing device net page and can use JSP, ASP, PHP etc.
Main flow WEB development language is developing, it is possible to use the customized label exploitation extracting on the basis of certain development language
Storehouse(As:StrutsLayout)To develop.When creating webpage, only need to create the web page element on the page, be not required to specify net
The dynamic behaviour of page element and event response method.
Server 2(I.e. Server end)Including page model module 21, background event describing module 22, database interface mould
Block 23.
Wherein page model module 21, for utilizing JavaScript to the web page element operating function on browsing device net page
Script carries out unified encapsulation, and external reservation operations interface uses for developer;And parse background event and describe generation
Code, realizes the foreground event of web page element and background event are bound automatically using JavaScript script.
It should be noted that web page element operating function here is to go the action of control using code, such as obtain text
Content, ejects dialog box etc. to webpage;Foreground event refers to user in interaction, to the webpage unit above webpage
Element carries out the behavior of active, such as presses next button, presses enter key etc.;Corresponding background event is for foreground event
The concrete method of operating producing, such as preserves the content specified to database, searches for certain keyword etc. in database.This module makes
Developer can easily call each web page element on browser 1 webpage, and freely writes background event.
Wherein, background event describing module 22, is carried out using Java language various background event corresponding to web page element
Definition description, forms the background event coded description for each background event, for various backstages corresponding to web page element
Event is described, and when user carries out interaction with web page element on browser 1 webpage, calls background event describing module 22
Defined in background event coded description, execute corresponding action.It can be seen that, background event describing module 22 is capable of individually setting
Count the function of each webpage, and do not need to rewrite all of operation control code every time.
It should be noted that all of function is put together in page model module 21, form a complete java class,
Referred to as page model class, is the core of whole system;And the background event description defined in backstage event description module 22
The page model class from page model module 21 for the class universal succession, and each derived class has its corresponding webpage, he
Between corresponding relation as shown in Figure 2.That is writing a browsing device net page it is necessary to write one for this browsing device net page
Individual background event describes class, and background event describes class and corresponds to realize each assembly on webpage with browsing device net page
Effect.As shown in Fig. 2 the page model class based on the present invention, can be each webpage in background event describing module 22(Net
Page a-d)Define a background event and describe class(Background event describes class a-d), each event description class one webpage of correspondence.
One be used for realize preserve operation background event describe class code as follows:
It can be seen that it is the derived class of page model class.
Database interface module 23 is used for realizing the data interaction of background event describing module 22 and database 3.Database
Interface module 23 achieves preservation between data and database, acquisition, or realizes important database basic function and such as look into
The function such as ask, retrieve.
Specifically, in the present embodiment, database interface module 23 adopts Hibernate framework to realize, and database 3 adopts
Oracle realizes.
For example:The code that one Item Information is saved in database is as follows:
As one embodiment of the present of invention, page model module 21 also includes:
Mark resolution unit 211, this unit adopts the note function of Java and reflex mechanism to realize, for identifying backstage thing
"@explains name " keyword in background event coded description in part describing module 22, and obtain the class that the description of this background event is located
Or method etc., that is, obtain web page element mark property, and the corresponding informance of foreground event and background event, and be pushed to
Web page element and background event binding module.
For example, mark resolution unit 211 can be automatically by following background event code(Code segment is derived from follow-up backstage thing
Part describing module 22)In operate(property)Button single-click operation " onclick "(Foreground event)With event methods
“do”(Background event)Parsed:
Web page element operating unit 212, this unit will set up net according to the web page element mark property on webpage
Page element index, and using JavaScript code, all of web page element operating function is packaged.
The various operations that user is defined by user interface elements, all can be with encapsulation in invoking web page element operation unit
Web page element operating function is realized.The property of all of web page element on 212 webpages of web page element operating unit
Make a list, other modules want operated which web page element, provide property, web page element operating unit 212 just exists
Make a look up in this list, be able to conveniently find the web page element wanted.Can realize for example:The display of setting text box assembly
The functions such as content, ejection prompting frame, refresh page.Similarly, in order to realize certain background event, need to the webpage on webpage
Element is operated, and thus has to use the concrete operations function in web page element operating unit, and web page element operation is single
Unit 212 can allow secondary development personnel when writing background event, can easily invoking web page element.
Web page element and background event binding unit 213, the foreground event of web page element and background event are entered by this unit
Row binding, carries out unifying to encapsulate using JavaScript code, to realize response mechanism.When user on browser 1 webpage with
When web page element carries out interaction, you can trigger corresponding background event, that is, when the foreground event of certain web page element triggers, webpage
Element and background event binding unit 213 call the background event that the foreground event of this web page element is bound automatically.
Specifically, in web page element operating unit 212, define such a function:
GetPageElement (property),
This function is to obtain concrete web page element according to property.Web page element and background event binding unit
213 corresponding informances receiving the mark property that passes over of resolution unit 211 and foreground event and background event,
Then corresponding web page element is found in web page element operating unit 212 by property, then the foreground by web page element
Event and background event are bound.
It can be seen that, the information management system being easy to secondary development of the present invention, by JavaScript code by web page element
Operating function is encapsulated, and the foreground event of web page element and background event are bound, and only need to write new net
Page and its corresponding background event describe class, just can be automatically performed the secondary development of webpage.That is, whenever the new use of establishment
During the page of family, the user interface background event corresponding with this page that developer only need to write its browsing device net page describes class
, often tens line codes can complete the exploitation of a new web page, developer GPRS Java language can be carried out
Secondary development.
As shown in figure 3, the present invention a kind of included based on the development approach of the information management system being easy to secondary development following
Step:
Step S1, create browsing device net page or new web page element is defined on browsing device net page;
New webpage unit is increased on the webpage of the browser 1 of the information management system being easy to secondary development of the present invention
Element or one new page of design.
Step S2, the web page element increase corresponding background event description according to new definition, for describing this web page element
Corresponding background event;
In background event describing module 22, increase corresponding background event description, increase if on original webpage
Plus a new web page element, then the corresponding background event of former webpage describe increase in class this new web page element corresponding after
Platform event description;If newly designing a page, then increase a corresponding backstage thing in background event describing module 22
Part describes class.For describing the web page element on this webpage, which kind of event response method this takes.
Step S3, define this background event and database interface code that database is communicated be connected to database.
Obviously, page model is the core of the inventive method, all operation responses from webpage, foreground/background thing
The function that part is processed all completes in page model.Developer only need to write new webpage and its corresponding background event description
Class, just can be automatically performed the secondary development of webpage, and often tens line codes can complete the exploitation of a new web page, developer
GPRS Java language can carry out secondary development.
Above example only in order to technical scheme to be described rather than be limited, without departing substantially from the present invention essence
In the case of god and its essence, those of ordinary skill in the art work as and can make various corresponding changes and change according to the present invention
Shape, but these corresponding changes and deformation all should belong to the protection domain of appended claims of the invention.
Claims (7)
1. a kind of information management system being easy to secondary development, including browser, server database is it is characterised in that institute
State browser and also include the user interface elements for defining web page element and its web page element mark;Described server includes:
Background event describing module, is provided with background event coded description, for various background event corresponding to web page element
It is described, form the background event for each browsing device net page and describe class;
Page model module, for being packaged to web page element operating function, and parses background event coded description, it is right to realize
The foreground event of web page element and the automatic binding of background event, form page model class;
Database interface module, for realizing the data interaction of described background event describing module and described database;
Wherein, described page model module includes:
Mark resolution unit, for parsing the background event coded description in described background event describing module, identification webpage unit
Element mark, and the corresponding informance of foreground event and background event;
Web page element operating unit, for being packaged web page element operating function;
Web page element and background event binding unit, identify for receiving the web page element that described mark resolution unit parses,
And foreground event and the corresponding informance of background event, find corresponding web page element from web page element operating unit, then will
The foreground event of this web page element and background event are bound;
Described web page element operating function is to go the action of control using code, and described foreground event refers to user and interacting
During, the web page element above webpage is carried out with the behavior of active, described background event produces for foreground event
Concrete method of operating.
2. information management system according to claim 1 is it is characterised in that described web page element operating unit is first by webpage
Element is identified with web page element mark, and identifies to set up web page element index, described browser and backstage with web page element
Event description module needs operated which web page element, then described web page element operating unit is just carried out according to web page element index
Search, be able to conveniently find the web page element of needs and responded.
3. information management system according to claim 1 is it is characterised in that described web page element is single with background event binding
Unit is additionally operable to, when the foreground event of web page element triggers, automatically call the backstage thing that the foreground event of this web page element is bound
Part.
4. the information management system according to claim 1-3 any claim is it is characterised in that described page model mould
Block is realized by a Java page model class, and described background event describing module includes the description of at least one Java background event
Class, and all of background event describes the derived class that class is all described page model class.
5. information management system according to claim 4 is it is characterised in that described sealed web page element operating function
Dress, the automatic binding of the described foreground event to web page element and background event, is to be realized using JavaScript script
's.
6. a kind of development approach based on the information management system described in claim 1-5, for described information management system
Carry out secondary development it is characterised in that including step:
Step S1, create browsing device net page or new web page element is defined on browsing device net page;
Step S2, the web page element increase corresponding background event description according to new definition, correspond to for describing this web page element
Background event;
Step S3, define this background event and database interface code that database is communicated be connected to database.
7. development approach according to claim 6 is it is characterised in that new if in increasing by one on original webpage
Web page element, then describing in the corresponding background event of former webpage increases this corresponding background event of new web page element and retouches in class
State;If creating new browser page, then increase a corresponding background event and describe class.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310332192.1A CN103399746B (en) | 2013-08-01 | 2013-08-01 | Information management system convenient to develop secondarily and development method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310332192.1A CN103399746B (en) | 2013-08-01 | 2013-08-01 | Information management system convenient to develop secondarily and development method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103399746A CN103399746A (en) | 2013-11-20 |
CN103399746B true CN103399746B (en) | 2017-02-15 |
Family
ID=49563380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310332192.1A Active CN103399746B (en) | 2013-08-01 | 2013-08-01 | Information management system convenient to develop secondarily and development method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103399746B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108399181A (en) * | 2017-02-08 | 2018-08-14 | 上海格尔软件股份有限公司 | A method of for data and html web page element to be bound |
CN106874001A (en) * | 2017-02-17 | 2017-06-20 | 济南浪潮高新科技投资发展有限公司 | A kind of script method for packing and device and script operation method and device |
CN111352742B (en) * | 2018-12-21 | 2024-02-09 | 三六零科技集团有限公司 | APP-based componentization information transmission method and apparatus |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6212536B1 (en) * | 1998-01-08 | 2001-04-03 | International Business Machines Corporation | Method for generating web browser sensitive pages |
CN101593207A (en) * | 2009-07-06 | 2009-12-02 | 孟智平 | The method and system of a kind of structure and generation webpage |
CN101625696A (en) * | 2009-08-03 | 2010-01-13 | 孟智平 | Method and system for constructing and generating video elements in webpage |
-
2013
- 2013-08-01 CN CN201310332192.1A patent/CN103399746B/en active Active
Non-Patent Citations (1)
Title |
---|
基于MVC模式的通用Web软件系统开发框架设计与实现;王新;《中国优秀硕士学位论文全文数据库信息科技辑》;20070915(第03期);第6-8、12-20、40-56页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103399746A (en) | 2013-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106096056B (en) | One kind being based on distributed public sentiment data real-time collecting method and system | |
CN110442816A (en) | Web form configuration method, device and computer readable storage medium | |
CN102567539B (en) | Intelligent WEB report implementation method and intelligent WEB report implementation system | |
CN103268361B (en) | Extracting method, the device and system of URL are hidden in webpage | |
CN105243159A (en) | Visual script editor-based distributed web crawler system | |
CN108694214A (en) | Generation method, generating means, readable medium and the electronic equipment of data sheet | |
CN103473108A (en) | Java code generating method | |
CN103383645A (en) | Code generation method and system | |
CN102520966B (en) | Method for prompting codes and device | |
CN107368346A (en) | A kind of code generating method and device based on metadata and script engine | |
CN109522018A (en) | Page processing method, device and storage medium | |
CN106341444A (en) | Data access method and device | |
CN103019928A (en) | Automatic testing method and system | |
CN104461531B (en) | A kind of implementation method of reporting system SQL | |
CN103440151A (en) | Method and apparatus for dynamically loading Web page | |
CN106407170A (en) | Rapid generation method and system for data report | |
CN108304172A (en) | A kind of web development approaches and web develop engine | |
US20150089415A1 (en) | Method of processing big data, apparatus performing the same and storage media storing the same | |
CN101382893A (en) | On-line assembling method for component based on Web service | |
CN103488738A (en) | Method and system for automatically realizing JAVA object and data table SQL (structured query language) file | |
CN104598570A (en) | Resource fetching method and device | |
CN103399746B (en) | Information management system convenient to develop secondarily and development method | |
CN114398138A (en) | Interface generation method and device, computer equipment and storage medium | |
CN102306163A (en) | Dynamic integration technology based on B2B (business to business) platform | |
CN103823855B (en) | Chinese encyclopedic knowledge organization and integration method aiming at semantic network |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Floor 7, Ruili Building, No. 96, Huaxing Road, Xihu District, Hangzhou, Zhejiang Province, 310012 Patentee after: Zhejiang Zheda Wangxin Software Industry Group Co.,Ltd. Address before: Floor 7, Ruili Building, No. 96, Huaxing Road, Xihu District, Hangzhou, Zhejiang Province, 310012 Patentee before: INSIGMA TECHNOLOGY CO.,LTD. |