客制化实用知识
URL url =GatewayURL.getAuthenticatedGateway(null).getURL("");
返回的是:
http://hostname/Windchill/servlet/WindchillAuthGW ********************************************* 假定由Workflow的特定任務發布,你可以通過找到相應的process
QueryResult runningProcesses = WfEngineHelper.service.getAssociatedProcesses(part, WfState.OPEN_RUNNING, null);
也可以直接找相應的WTPart的task: WorkflowHelper.service.getWorkItems(part); ********************************************** 原來也可以從生命周期歷史中直接取得:
LifeCycleHelper.service.getHistory(myObject)
取得歷史再用:
lifecyclehistory.getState().toString()
lifecyclehistory.getModifyTimestamp()
取得相應的狀態所對應的最新更新時間。 **********************************************
<Property name="wt.taglib.util.plugin.attr.iepluginurl" overridable="true" targetFile="codebase/wt.properties" value="http://xxx.xxx.com/Windchill/wt/clients/library/j2re-1_4_2-windows-i586.exe"/>
并執行xconfmanager -p使之生效。
然后把j2re-1_4_2-windows-i586.exe文件復制到Windchill服務器的以下目錄:
../ptc/Windchill/codebase/wt/library
當客戶進入帶有Applet的頁面時,將自動從服務器下載JRE并提示用戶進行安裝 ******************************************** 在我們的產品信息管理器中有一個“行號”,詳細頁面的“產品結構”中也有顯示該"行號".查看一下“行號”并不 part的IBA屬性。不知到該用什么方法取得呢?
謝謝! 獲得link后,就可以獲得行號。
如:
LineNumber lineNumber = (LineNumber)link.getLineNumber();
long value = lineNumber.getValue(); ********************************************** LDAP的密碼是明文的。
在配置文件...\Aphelion\usr\var\lde\PTCLdap\PTCLdap_lde.conf中可以查到。 *********************************************** 用TypeIdentifierUtility.getTypeIdentifier(doc)
typeidentifier.toString().indexOf(".****StandardDoc")
判斷是不是“標準文檔”。 ********************************************** 現在想要實現從系統中用Excell導出part及其一些屬性,采用
WritableWorkbook bookAuto = FileManager.createExcelFile("d:\\part\\part0.xls","Part");
http://hostname/Windchill/servlet/WindchillAuthGW ********************************************* 假定由Workflow的特定任務發布,你可以通過找到相應的process
QueryResult runningProcesses = WfEngineHelper.service.getAssociatedProcesses(part, WfState.OPEN_RUNNING, null);
也可以直接找相應的WTPart的task: WorkflowHelper.service.getWorkItems(part); ********************************************** 原來也可以從生命周期歷史中直接取得:
LifeCycleHelper.service.getHistory(myObject)
取得歷史再用:
lifecyclehistory.getState().toString()
lifecyclehistory.getModifyTimestamp()
取得相應的狀態所對應的最新更新時間。 **********************************************
流程審批意見
Vector reviewVector=LifeCycleHelper.service.getAllReviewerList(theck); ********************************************** 只需在site.xconf中的添加如下定義:<Property name="wt.taglib.util.plugin.attr.iepluginurl" overridable="true" targetFile="codebase/wt.properties" value="http://xxx.xxx.com/Windchill/wt/clients/library/j2re-1_4_2-windows-i586.exe"/>
并執行xconfmanager -p使之生效。
然后把j2re-1_4_2-windows-i586.exe文件復制到Windchill服務器的以下目錄:
../ptc/Windchill/codebase/wt/library
當客戶進入帶有Applet的頁面時,將自動從服務器下載JRE并提示用戶進行安裝 ******************************************** 在我們的產品信息管理器中有一個“行號”,詳細頁面的“產品結構”中也有顯示該"行號".查看一下“行號”并不 part的IBA屬性。不知到該用什么方法取得呢?
謝謝! 獲得link后,就可以獲得行號。
如:
LineNumber lineNumber = (LineNumber)link.getLineNumber();
long value = lineNumber.getValue(); ********************************************** LDAP的密碼是明文的。
在配置文件...\Aphelion\usr\var\lde\PTCLdap\PTCLdap_lde.conf中可以查到。 *********************************************** 用TypeIdentifierUtility.getTypeIdentifier(doc)
typeidentifier.toString().indexOf(".****StandardDoc")
判斷是不是“標準文檔”。 ********************************************** 現在想要實現從系統中用Excell導出part及其一些屬性,采用
WritableWorkbook bookAuto = FileManager.createExcelFile("d:\\part\\part0.xls","Part");
總結
- 上一篇: JASS萌新学习指南(1.3)
- 下一篇: java 读取word 表格,实战 |