實現零件詳細頁面基本屬性中顯示添加的IBA屬性

實現零件詳細頁面基本屬性中顯示添加的IBA屬性

一.任務如下:

在顯示零件詳細頁面中的基本屬性欄位之後添加顯示此零件的IBA屬性如上圖中添加備注屬性

二.準備工作

1.根據頁面URL顯示,此頁面時通過action=ObjProps的processor處理的

2.根據URL中的action參數值ObjProps在wt.peroperties中的 wt.services.applicationcontext.WTServiceProviderFromProperties.customPropertyFiles

的key所對應的值中的peroperties文件中查找此ObjProps/wt.part.WTPart

3.最後在%Windchill_Home%/codebase/com/ptc/windchill/pdmlink/vc/vc.properties 中找到包含“ObjProps/wt.part.WTPart”的設定

#productstructure wt.services/svc/default/wt.enterprise.TemplateProcessor/ObjProps/wt.part.WTPart/0=com.ptc.core.HTMLtemplateutil.server.processors.WizardProcessor/duplicate wt.services/rsc/default/wt.templateutil.DefaultHTMLTemplate/ObjProps/wt.part.WTPart/0=templates.pdmlink.part.ProductStructureFrame 找到如上的DefaultHTMLTemplate指定的%Windchill_Home%/codebase/ templates/pdmlink/part/ProductStructureFrame.html文件

4.在ProductStructureFrame.html文件中找到如下代碼:

5.根據此處顯示則根據action參數值為ShowPartAttributes重復步驟3

6.最後在%Windchill_Home%/codebase/com/ptc/windchill/pdmlink/vc/vc.properties 中找到包含“ObjProps/wt.part.WTPart”的設定 wt.services/svc/default/wt.enterprise.TemplateProcessor/ShowPartAttributes/wt.part.WTPart/0=com.ptc.windchill.pdmlink.part.server.processors.PartProcessor/duplicate wt.services/rsc/default/wt.templateutil.DefaultHTMLTemplate/ShowPartAttributes/wt.part.WTPart/0=templates.pdmlink.part.PartAttributesBlock 找到如上的DefaultHTMLTemplate指定的%Windchill_Home%/codebase/ templates/pdmlink/part/ PartAttributesBlock.html文件

 7.在PartAttributesBlock.html文件中找到如下代碼:

三.開始進行剋制步驟:

1) 根據(二步驟7)的com.ptc.windchill.pdmlink.part.server.processors.PartProcessor開發如下類:

 2) 在%Windchill%/codebase/com/ptc/windchill/pdmlink/vc/vc.properties中將如下行: wt.services/svc/default/wt.enterprise.TemplateProcessor/ShowPartAttributes/wt.part.WTPart/0=com.ptc.windchill.pdmlink.part.server.processors.PartProcessor/duplicate 改為: wt.services/svc/default/wt.enterprise.TemplateProcessor/ShowPartAttributes/wt.part.WTPart/0=ext.foxconn.pnm2.processors.PartShowRemarkProcessor/duplicate 3.在%Windchill%/codebase/templates/pdmlink/part中的如下文件中的: 代碼後面加入: PartAttributesBlock.html,PartAttributesBlock_en_GB.html,PartAttributesBlock_en_US.html 三個文件中如下

 

Remark:   

 

 

 

 

在PartAttributesBlock_zh.html, PartAttributesBlock_CN.html中加入以上第三行“Remark:”改為簡體的“備注:”的代碼, PartAttributesBlock_zh_TW.html中加入以上第三行“Remark:”改為繁體的“備注:”的代碼,

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章