CN102622224B - Method for achieving tree-like control piece with search function in Windchill system - Google Patents
Method for achieving tree-like control piece with search function in Windchill system Download PDFInfo
- Publication number
- CN102622224B CN102622224B CN201210043276.9A CN201210043276A CN102622224B CN 102622224 B CN102622224 B CN 102622224B CN 201210043276 A CN201210043276 A CN 201210043276A CN 102622224 B CN102622224 B CN 102622224B
- Authority
- CN
- China
- Prior art keywords
- search
- jsp
- type
- function
- tree
- 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 relates to a method for achieving an tree-like control piece with a search function in a Windchill system, which comprises the steps of enabling a standard type selection page in the Windchill system to be redirected to a customized type selection java server page (JSP); providing a display type tree JSP including a plurality of nodes and radio buttons arranged corresponding to at least partial nodes, and enabling an sid attribute for storing node names, an alt attribute for storing node key values and a title attribute for storing node positions to be arranged on each radio button; adding a search text box, a search button and an iframe control piece directing to the display type tree JSP in the customized type selection JSP; arranging an onclick event for each radio button in the customized type selection JSP; and adding a client site dynamic script at least including an ClickAndHide function to be responsible for the function of automatically unfolding the search nodes after completion of search in the customized type selection JSP. Therefore, the method can achieve dynamic type tree display and support functions of radio, search and the like.
Description
Technical field
The invention relates to Production Lifecycle Management technology, particularly about the secondary exploitation technology of Windchill system.
Background technology
Production Lifecycle Management (Product Lifecycle Management, PLM) a kind of enterprise application system is belonged to, through the information such as derived various file or design drawing that manufacture a product, management product design, co-development, Digitized manufacturing, reclaim and the flow process such as to scrap, becoming management practice essence and to grow directly from seeds the application platform of producing.
Windchill system is a kind of Integrated predict model software developed with Java language provided by PLM solution provider parameter science and technology (PTC), it is from special project angle close examination Total Product file and relevance, collocation cad tools, enterprise is assisted to adopt virtual environment to test the feasibility manufactured with analog equipment, make the Recessive elementS of Operations Supervisor's energy analysis process and cost, obtain production efficiency or lower manufacturing cost faster.
Summary of the invention
The object of the invention is to provide a kind of method realizing the TreeView of band function of search in Windchill system, to strengthen the ease of use of Windchill system.
Therefore, a kind of method realizing the TreeView of band function of search in Windchill system that the embodiment of the present invention provides, it comprises step: select page reorientation to customized type selecting JSP the type in Windchill system; Display type is provided to set JSP: in Windchill system, to store the type structure according to practical business scene construction, and ensure that the storage of data meets system requirements and data storage specification; The incidence relation between data object and the corresponding relation with practical business is understood according to system modelling; A newly-increased modeling object is for encapsulating the final data checked out again, attribute required when this newly-increased modeling object must comprise in practical business and build tree construction; Afterwards according to the relational query between Windchill system object WTTypeDefinitionMaster and WTTyperDefinition and the type package result obtaining the tree-shaped mapping structure of the modeling object DocTypeDisplay increased newly for system call; The encapsulated result that following traversal obtains, form desirably builds type tree, and sets in the title attribute of the part node in multiple node the radio button increasing and be used for selecting in type; Wherein each radio button is provided with sid attribute, alt attribute and title attribute, and the key assignments that wherein sid attribute deposits the title of corresponding node, alt attribute deposits corresponding node and title attribute deposit the position of corresponding node in type tree; In customized type selecting JSP, increase search text box, search button and iframe control, this iframe control points to display type tree JSP and sets with responsible display type; For each radio button in display type tree JSP arranges onclick event respectively in customized type selecting JSP; And client dynamic script is increased in customized type selecting JSP, this client dynamic script at least comprises ClickandHide function to be responsible for searching for the function of rear Automatic-expanding to search node.
In embodiments of the present invention, above-mentioned client dynamic script such as also comprises autoResize function and automatically chooses radio button with the responsible initialization page and/or toclick function with during responsible search with the self-adaptation height function of responsible iframe control, CheckRadio function; The title that above-mentioned sid attribute deposits corresponding node accurately can navigate to this corresponding node for when performing search, and above-mentioned title attribute deposits the position of corresponding node in type tree can successively be deployed into this corresponding node by type tree automatically for when performing search.
In embodiments of the present invention, above-mentioned type in Windchill system is selected page reorientation to customized type selecting JSP step such as: by running xconfmanager order realization in the shell of Windchill system.
The embodiment of the present invention is also that radio button increases onclick event by increasing radio button, make TreeView of the present invention can use in Windchill system function, in addition by increasing sid, alt, title tri-attributes for radio button, TreeView of the present invention is made to have the function of function of search and Automatic-expanding contraction; So, the user of Windchill system can realize the display of dynamic type tree very easily in various browser, and supports the function such as single choice and search.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent to allow above and other objects of the present invention, feature and advantage, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, be described in detail as follows.
Accompanying drawing explanation
Fig. 1 is the view that the embodiment of the present invention shows the TreeView of band function of search in Windchill system.
Embodiment
For further setting forth the present invention for the technological means reaching predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, to a kind of its embodiment of method of TreeView, structure, feature and the effect thereof realizing band function of search in Windchill system proposed according to the present invention, be described in detail as follows.
Fig. 1 is the view that the embodiment of the present invention shows the TreeView of band function of search in Windchill system.Below in conjunction with Fig. 1, the method realizing the TreeView 10 of band function of search in Windchill system that the embodiment of the present invention proposes is described in detail.
First, select page reorientation to customized type selecting JSP (JavaServer Page the type of Windchill system by running xconfmanager order in the shell of Windchill system, Java service end webpage) page 11 such as defineItemWizStep.jsp, specific instructions can be: xconfmanager-swt.services/rsc/default/com.ptc.netmarkets .util.misc.FilePathFactory/defineItemWizStep/wt.doc.WTDo cument/0=/netmarkets/jsp/ext/geely/document/defineItemWi zStep.jsp-t codebase/typedservices.properties-p.
Secondly, provide display type to set JSP 13, embodiment is such as: in Windchill system, store the type structure according to practical business scene construction, and ensures that the storage of data meets system requirements and data storage specification; The incidence relation between data object and the corresponding relation with practical business is understood according to system modelling; A newly-increased modeling object (such as name is called DocTypeDisplay) is for encapsulating the final data checked out again, attribute required when this newly-increased modeling object DocTypeDisplay must comprise in practical business and build tree construction; Afterwards according to the relational query between Windchill system object WTTypeDefinitionMaster and WTTypeDefinition and the type package result obtaining the tree-shaped mapping structure (TreeMap) of the modeling object DocTypeDisplay increased newly for system call; The encapsulated result that following traversal obtains, form desirably builds type tree, and sets in title (caption) attribute of the part node 131 in multiple node 131 radio button (Radio) 133 increasing and be used for selecting in type; In addition, sid, alt, title tri-attributes are increased respectively again in each radio button 133, wherein, the title that sid attribute deposits corresponding node 131 can navigate to this corresponding node 131 accurately for when performing function of search, alt attribute deposits key (key) value of corresponding node 131, and title attribute is deposited the position (relation also namely this corresponding node with top layer node between) of corresponding node 131 in type tree and is successively deployed into this corresponding node 131 for can automatically type be set when performing function of search.So far, this display type tree JSP 13 such as tree.jsp is realized.
Next, in customized type selecting JSP 11 such as defineItemWizStep.jsp, search text box 111, search button 113 and iframe control 115 is increased; Wherein, search text box 111 is responsible for search condition input during type search, and search button 113 is responsible for triggering inquiry/search events, and iframe control 115 points to the display that display type tree JSP 13 such as tree.jsp sets with responsible type.
Then, for each radio button 133 in display type tree JSP 13 such as tree.jsp increases onclick event, respectively so that user can click radio button 133 in customized type selecting JSP 11 such as defineItemWizStep.jsp.
Finally in customized type selecting JSP 11 such as defineItemWizStep.jsp, increase client dynamic script (Javascript), make display page have dynamic function.Wherein, what client dynamic script such as comprised in ClickAndHide, autoResize, CheckRadio and toclick function is one or more.Wherein, ClickandHide function has been responsible for searching for the function of rear Automatic-expanding to search node, autoResize function is responsible for the self-adaptation height function of iframe control 115, the expansion that the height of the page is set with type and shrink change automatically, CheckRadio function is responsible for initialization display type tree JSP 13, toclick function and is responsible for going automatically to choose radio button 133 when searching for.
After completing above-mentioned steps, when needing to use Doctype selection in Windchill system use procedure, such as user performs new document function, then can click [new document] button in the toolbar in Windchill system, system will show TreeView 10 page of band function of search as shown in Figure 1.In addition, it should be noted that, the narrative order of each step above-mentioned, only for convenience of describing, is not used for limiting the sequencing of each step.
As from the foregoing, the embodiment of the present invention is also that radio button increases onclick event by increasing radio button, make TreeView of the present invention can use in Windchill system function, in addition by increasing sid, alt, title tri-attributes for radio button, TreeView of the present invention is made to have the function of function of search and Automatic-expanding contraction; So, the user of Windchill system can realize the display of dynamic type tree very easily in various browser, and supports the function such as single choice and search.
The above, it is only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to any simple modification that technical spirit of the present invention is done above embodiment, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.
Claims (7)
1. in Windchill system, realize a method for the TreeView of band function of search, comprise step:
Select page reorientation to customized type selecting JSP the type in Windchill system;
Display type is provided to set JSP: in Windchill system, to store the type structure according to practical business scene construction, and ensure that the storage of data meets system requirements and data storage specification; The incidence relation between data object and the corresponding relation with practical business is understood according to system modelling; A newly-increased modeling object is for encapsulating the final data checked out again, attribute required when this newly-increased modeling object must comprise in practical business and build tree construction; Afterwards according to the relational query between Windchill system object WTTypeDefinitionMaster and WTTyperDefinition and the type package result obtaining the tree-shaped mapping structure of the modeling object DocTypeDisplay increased newly for system call; The encapsulated result that following traversal obtains, form desirably builds type tree, and sets in the title attribute of the part node in multiple node the radio button increasing and be used for selecting in type; Wherein each radio button is provided with sid attribute, alt attribute and title attribute, and the key assignments that this sid attribute deposits the title of corresponding node, this alt attribute deposits corresponding node and this title attribute deposit the position of corresponding node in type tree;
In this customized type selecting JSP, increase search text box, search button and iframe control, this iframe control points to this display type tree JSP and sets with responsible display the type;
For each radio button in this display type tree JSP arranges onclick event respectively in this customized type selecting JSP; And
In this customized type selecting JSP, increase client dynamic script, this client dynamic script at least comprises ClickAndHide function to be responsible for searching for the function of rear Automatic-expanding to search node.
2. the method realizing the TreeView of band function of search in Windchill system as claimed in claim 1, is characterized in that:
This client dynamic script also comprises autoResize function to be responsible for the self-adaptation height function of this iframe control.
3. the method realizing the TreeView of band function of search in Windchill system as claimed in claim 1, is characterized in that:
This client dynamic script also comprises CheckRadio function with this display type of responsible initialization tree JSP.
4. the method realizing the TreeView of band function of search in Windchill system as claimed in claim 1, is characterized in that:
This client dynamic script also comprises toclick function and automatically chooses radio button with during responsible search.
5. the method realizing the TreeView of band function of search in Windchill system as claimed in claim 1, is characterized in that:
The title that described sid attribute deposits corresponding node accurately can navigate to this corresponding node for when performing search.
6. the method realizing the TreeView of band function of search in Windchill system as claimed in claim 1, is characterized in that:
Described title attribute deposits the position of corresponding node in type tree can successively be deployed into this corresponding node by type tree automatically for when performing search.
7. the method realizing the TreeView of band function of search in Windchill system as described in claim 1 to 6 any one, is characterized in that:
Page reorientation type in Windchill system is selected to be realize by running xconfmanager order in the shell of Windchill system to the step of customized type selecting JSP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210043276.9A CN102622224B (en) | 2012-02-24 | 2012-02-24 | Method for achieving tree-like control piece with search function in Windchill system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210043276.9A CN102622224B (en) | 2012-02-24 | 2012-02-24 | Method for achieving tree-like control piece with search function in Windchill system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102622224A CN102622224A (en) | 2012-08-01 |
CN102622224B true CN102622224B (en) | 2015-05-06 |
Family
ID=46562154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210043276.9A Active CN102622224B (en) | 2012-02-24 | 2012-02-24 | Method for achieving tree-like control piece with search function in Windchill system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102622224B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461518A (en) * | 2014-11-23 | 2015-03-25 | 国云科技股份有限公司 | Method for managing java program system configuration files |
CN105117234B (en) * | 2015-09-16 | 2019-04-09 | 北京金和网络股份有限公司 | A kind of web control combination method |
CN106406683B (en) * | 2016-11-30 | 2019-08-02 | 武汉斗鱼网络科技有限公司 | Response method and device are clicked in a kind of setting of radio button |
CN107357770A (en) * | 2017-06-16 | 2017-11-17 | 贵州广思信息网络有限公司 | A kind of method that list is uniformly made a report under big file |
CN107329745A (en) * | 2017-06-16 | 2017-11-07 | 贵州广思信息网络有限公司 | A kind of method of enhancing WORD document operability |
CN107340946A (en) * | 2017-06-16 | 2017-11-10 | 贵州广思信息网络有限公司 | The method of content control is managed collectively under a kind of big document |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101218585A (en) * | 2005-07-11 | 2008-07-09 | 空中客车公司 | Method and tool for searching in several data sources for a selected community of users |
CN101488151A (en) * | 2009-01-20 | 2009-07-22 | 中国科学院计算技术研究所 | System and method for gathering website contents |
-
2012
- 2012-02-24 CN CN201210043276.9A patent/CN102622224B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101218585A (en) * | 2005-07-11 | 2008-07-09 | 空中客车公司 | Method and tool for searching in several data sources for a selected community of users |
CN101488151A (en) * | 2009-01-20 | 2009-07-22 | 中国科学院计算技术研究所 | System and method for gathering website contents |
Non-Patent Citations (2)
Title |
---|
Windchill PDM工作流管理系统改进研究;范小东等;《高技术通讯》;20040331;第69-74页 * |
基于SharePoint的Windchill Web部件的研究与实现;殷晓丽;《中国优秀硕士学位论文全文数据库》;20120115;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN102622224A (en) | 2012-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102622224B (en) | Method for achieving tree-like control piece with search function in Windchill system | |
CN103902632B (en) | The method, apparatus and electronic equipment of file system are built in key assignments storage system | |
CN111596965B (en) | Project engineering initialization method, device, computer equipment and storage medium | |
US10579678B2 (en) | Dynamic hierarchy generation based on graph data | |
CN108228169A (en) | Chart production method, apparatus, equipment and medium based on eCharts tools | |
JP2011070669A5 (en) | ||
CN110162509A (en) | File comparison method, device, computer equipment and storage medium | |
CN110399420A (en) | A kind of deriving method, electronic equipment and the medium of configurableization Excel format | |
CN106407371A (en) | User comment data displaying method and system, server and client | |
JP2009123022A (en) | Document management apparatus, document management method, program and storage medium | |
US20140258939A1 (en) | Selection of hierarchically organized items | |
CN105488078B (en) | A kind of web data caching method and equipment | |
CN109284152A (en) | A kind of menu visual configuration method, equipment and computer readable storage medium | |
Roy Chowdhury et al. | Complementary assistance mechanisms for end user mashup composition | |
WO2013167006A1 (en) | Method for configuring browser bookmarks, device and terminal thereof | |
CN112988123B (en) | DDD-oriented software design method and system | |
CN104054308B (en) | Application layer resources selection method, device and system | |
CN106227515A (en) | A kind of information processing method and server | |
CN108875032A (en) | Area type determines method and device | |
CN101650689B (en) | Nonvolatile data storage and search method and device | |
CN105095376A (en) | Method and device for establishing browser local homepage in mobile terminal | |
CN109783596B (en) | ArcGIS map configuration preview method based on Angular component | |
CN111538500A (en) | Method and system for visually modifying menu | |
CN107391044A (en) | A kind of creation method and creating device of cloud hard disk | |
CN102930021A (en) | Data processing method of cloud computing system |
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 |