客制化培訓(xùn)12.常用基本對象介紹_第1頁
客制化培訓(xùn)12.常用基本對象介紹_第2頁
客制化培訓(xùn)12.常用基本對象介紹_第3頁
客制化培訓(xùn)12.常用基本對象介紹_第4頁
客制化培訓(xùn)12.常用基本對象介紹_第5頁
免費(fèi)預(yù)覽已結(jié)束,剩余11頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Confidential - For internal use only JW Innovation Software (Shenzhen) Ltd.Confidential - For internal use only JW Innovation Software (Shenzhen) Ltd.杰為軟件系統(tǒng)(深圳)有限公司JW Innovation Software (Shenzhen) Ltd.文檔控制更改記錄日期作者版本更改參考2012-07-27胡琦1.0Windchill10.1F000 + Eclipse3.5.2目錄 TOC o 1-3 h z u HYPERLINK l _T

2、oc331201064 文檔控制 頁Confidential - For internal use only JW Innovation Software (Shenzhen) Ltd.Windchill對象介紹Windchill夾結(jié)構(gòu)bin:windchill工具目錄,如windchill shellcodebase:編譯后的class文件netmarkets:JSP文件db:數(shù)據(jù)庫映射文件及模型SQL腳本loadFiles: 導(dǎo)入數(shù)據(jù)文件模板src目錄:源代碼文件、資源文件(RbInfo文件)tasks:info*Engine相關(guān)的集成以及Task文件valuts:文件倉目錄Windchi

3、ll基本對象wt.part.WTPart:部件wt.doc.WTDocument:文檔wt.epm.EPMDocument:圖檔文檔結(jié)構(gòu):wt.doc.WTDocumentUsageLink相關(guān)文檔(參考文檔): wt.doc.WTDocumentDependencyLjmgmt.admin.Project2項目,jmgmt.resource.Deliverable交付項wt.workflow.engine.WfProcess流程, wt.workflow.engine.WfActivity流程活動, wt.workflow.definer.WfProcessTe

4、mplate流程模板wt.part.WTPartUsageLinkwt.inf.container.WTContainer, wt.folder.SubFolder文件夾持久化管理: wt.fc.Persistable, wt.fc.PersistenceHelper生命周期管理的對象版本管理的對象wt.change2.WTChangeActivity2, wt.change2.WTChangeOrder2, wt.change2.WTChangeRequest2變更升級對象wt.maturity.PromotionNoticewt.team.Team團(tuán)隊,ject.Role,wt

5、.org.WTPrincipal,.WTUser,.WTGroup,wt.session.SessionHelperwt.iba.value.IBAHolder,DefaultAttributeContainer,AttributeDefDefaultView,AbstractValueViewwt.lifecycle.State狀態(tài),wt.lifecycle.LifeCycleTemplateReference持久化管理對象wt.fc.Persistable接口所有持續(xù)化的對象都實現(xiàn)這個接口wt.fc.PersistenceHelper 有一個PersistenceM

6、anager屬性:manager wt.fc.PersistenceManager接口提供一系列的方法,對持續(xù)化對象進(jìn)行操作;如:delete(),find()等wt.fc.StandardPersistenceManager實現(xiàn)PersistenceManager接口文檔API介紹文檔CRUD-API創(chuàng)建文檔HashMap inputdata = new HashMap();inputdata.put(name, doc_name);inputdata.put(folderRef, folderRef);inputdata.put(container, containerRef);TypeI

7、dentifier typeidentifier = FdnWTContainerHelper.toTypeIdentifier(wt.doc.WTDocument);WTDocument document = ApplicationIntegrationFactory.createDocument(typeidentifier,inputdata, false, SessionHelper.manager.getLocale(), html);ontentHolder ch = (ContentHolder) document;ApplicationData ap = Application

8、Data.newApplicationData(ch);ap.setRole(ContentRoleType.PRIMARY);String filePath = doc_path;ap = ContentServerHelper.service.updateContent(ch, ap, filePath);ap = (ApplicationData) PersistenceHelper.manager.save(ap);查詢文檔QuerySpec querySpec = new QuerySpec(WTDocument.class);WhereExpression where = new

9、SearchCondition(WTDocument.class,WTDocument.NAME, SearchCondition.EQUAL, name);QueryResult result = PersistenceHelper.manager.find(StatementSpec) querySpec);更新文檔WTDocumentMaster docmaster = (WTDocumentMaster) doc.getMaster();WTDocumentMasterIdentity docmasteridentity = (WTDocumentMasterIdentity) doc

10、master.getIdentificationObject();docmasteridentity.setName(newDocName);docmaster = (WTDocumentMaster) IdentityHelper.service.changeIdentity(docmaster, docmasteridentity);刪除文檔PersistenceHelper.manager.delete(doc);文檔生命周期API動態(tài)設(shè)置文檔生命周期模板設(shè)置文檔生命周期狀態(tài)文檔版本API獲取文檔大小版本部件API介紹查詢部件在10.0中”name”改為”mastername”;更新部件

11、編號創(chuàng)建部件指定生命周期模板設(shè)定生命周期狀態(tài)獲取子階獲取替代料BOM屬性位號: QueryResult queryresult = OccurrenceHelper.service.getUsesOccurrences(usageLink);子階料號: usageLink.getQuantity().getAmount()單位: usageLink.getQuantity().getUnit()部件相關(guān)文檔參考文檔創(chuàng)建參考文檔說明文檔QueryResult docs = wt.part.WTPartHelper.service.getDescribedByWTDocuments(part);創(chuàng)建說明文檔關(guān)系WTPartDescribeLink link = WTPartDescribeLink.newWTPartDescribeLink(part,document); PersistenceServerHelper.manager.insert(link);獲取關(guān)聯(lián)的CAD文檔容器、文件夾API容器APIwt.inf.container.WTContainer接口:wt.inf.container.OrgContainer, wt.p

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論