Windchill基本业务对象-文档
文档的类型:
(1)WTDocumetManster :是文档的主要信息,一个文档只有一条记录;
(2)WTDocument:是文档小版本记录,每一个文档小版本都有一条记录;
备注:
(1)文档大版本记录在WTDocument,通过getBranchIdentifier()方法可以获取到大版本的ID;
(2)如果文件已建立很多版本版序,当master改变时将影响所有的版本版序;
(3)文档帮助类为WTDocumentHelper, 实现类为WTDocumentHelper.service
常用API:
(1)根据IDA2A2查询文档
public static WTDocument queryWTDocumentByIda2a2( long ida2a2 ) throws WTException { QuerySpec qs = new QuerySpec( WTDocument.class ); qs.appendWhere( new SearchCondition( WTDocument.class , "thePersistInfo.theObjectIdentifier.id" , SearchCondition.EQUAL , ida2a2 ) , new int[] { 0 } ); QueryResult qr = PersistenceServerHelper.manager.query( qs ); while( qr.hasMoreElements() ) return ( WTDocument ) qr.nextElement(); return null; }
浙公网安备 33010602011771号