Summary of the invention
Technical matters to be solved by this invention provides method for building up and the device of a kind of business function tree, improves data retrieval efficient.
For solving the problems of the technologies described above, the present invention proposes the method for building up of a kind of business function tree, comprise the acquisition module, establishment module and the read module that link to each other successively, wherein:
Obtain the relationship between superior and subordinate of business function tree;
Create the backstage service of business function tree;
Read functions data from the service of said backstage are presented at the interface, foreground.
Further, said method also can have following characteristics, and the service of said backstage comprises the service of relationship between superior and subordinate service, the node service of function parent and the tabulation of job number all functions.
Further, said method also can have following characteristics, also comprises: with the data storage of said backstage service in database.
For solving the problems of the technologies described above, the present invention proposes the apparatus for establishing of a kind of business function tree, comprising:
Acquisition module is used to obtain the relationship between superior and subordinate that business function is set;
Create module, be used to create the backstage service of business function tree;
Read module is used for being presented at the interface, foreground from said backstage service read functions data.
Further, said apparatus also can have following characteristics, and the service of said backstage comprises the service of relationship between superior and subordinate service, the node service of function parent and the tabulation of job number all functions.
Further, said apparatus also can have following characteristics, also comprises the preservation module, and the data storage that is used for said backstage is served is to database.
Method for building up and the device of business function of the present invention tree are put the business function authority into different categories and are given the user with tree-like data exhibiting, give the user with impression intuitively, make the business function limiting operation directly perceived more, convenient, have improved data retrieval efficient.
Embodiment
Below in conjunction with accompanying drawing principle of the present invention and characteristic are described, institute gives an actual example and only is used to explain the present invention, is not to be used to limit scope of the present invention.
Fig. 1 is the process flow diagram of the method for building up of business function tree in the embodiment of the invention.As shown in Figure 1, in the present embodiment, the flow process of the method for building up of business function tree may further comprise the steps:
Step 101 is obtained the relationship between superior and subordinate that business function is set;
Step 102 is created the backstage service of business function tree;
Wherein, the backstage service can comprise the service of relationship between superior and subordinate service, the node service of function parent and the tabulation of job number all functions.
Step 103, read functions data from the backstage service that step 102 is created are presented at the interface, foreground.
In other embodiment of the method for building up that business function of the present invention is set, the data storage that can also comprise the steps: the backstage is served is in database.
Use the method for building up of business function tree of the present invention, the program architecture of the business function of being set up tree can be following:
Front page layout:
|—WebApp
|-WEB-INF configuration file catalogue
|-njs js control
|-npage source code
|—common
|—f0027.jsp
|—f0027_ajax_getFuncList.jsp
|—f0027_ajax_sAddressList.jsp
The TUXEDO service:
|—run
|-bin executable file
|-cfg configuration file
|-log journal file
|-solib dynamic base
|—xerces
|-framework source code
|-include header file
|—lib
|-pub skeleton code catalogue
|-src source code directory
|—basemng
|—bp
|—p2923.cpp
|—public
|—bc
|—FunctionDict.cpp
|—FunctionRel.cpp
Wherein, the implication of each file and function are following:
F0027.jsp: the realization of business function tree.This file is at first realized representing of dynamic tree, calls f0027_ajax_sAddressList.jsp read functions data from the service of backstage, is presented in the interface, foreground;
F0027_ajax_sAddressList.jsp: obtain the functional tree relationship between superior and subordinate;
The p2923.cpp:tuxedo service realizes the service of the service of functional tree relationship between superior and subordinate, the service of function parent node, the tabulation of job number all functions;
FunctionDict.cpp, FunctionRel.cpp: through OTL, realization is mutual with the ORACLE database.
The method for building up of business function of the present invention tree is put the business function authority into different categories and is given the user with tree-like data exhibiting, gives the user with impression intuitively, makes the business function limiting operation directly perceived more, convenient, has improved data retrieval efficient.
The invention allows for the apparatus for establishing of a kind of business function tree, to implement the method for building up of above-mentioned business function tree.
Fig. 2 is the structural drawing of the apparatus for establishing of business function tree in the embodiment of the invention.As shown in Figure 2, in the present embodiment, the apparatus for establishing 200 of business function tree comprises acquisition module 210, establishment module 220 and the read module 230 that links to each other successively.Wherein, acquisition module 210 is used to obtain the relationship between superior and subordinate of business function tree.Create the backstage service that module 220 is used to create the business function tree.Read module 230 is used for being presented at the interface, foreground from creating the backstage service read functions data that module 220 is created.
Wherein, the backstage service can comprise the service of relationship between superior and subordinate service, the node service of function parent and the tabulation of job number all functions.
In other embodiments of the invention, the apparatus for establishing of business function tree can also comprise the preservation module.The data storage that the preservation module is used for the backstage is served is to database.
The apparatus for establishing of business function of the present invention tree is put the business function authority into different categories and is given the user with tree-like data exhibiting, gives the user with impression intuitively, makes the business function limiting operation directly perceived more, convenient, has improved data retrieval efficient.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.