|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item# y. g' t* k0 }
% M) B) n4 b, W4 L! S+ S5 g6 S
public static Item findExistingItem( DataManagementService dmService, String itemIDs){2 ]" ~3 D$ Z) h; K8 \4 {7 f% \
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];5 P6 O7 N" _3 \( C
infos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();5 o: V; T) Y2 S4 M: U C' D
infos[0].itemId = itemIDs;+ F- N6 r- T' |8 n0 v' N w
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
0 t/ N5 i6 u2 H' R. dpref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];0 h5 f' |: ~9 e( w/ e, }
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);
* P! n9 j( b' HItem result[] = new Item[ resp.output.length ];
5 Z; M1 L' C% W" M% `2 G. {for ( int i = 0; i < resp.output.length; i++ )
7 D8 z9 s# `$ b8 Sresult = resp.output.item;
9 ?+ P" l- _8 J B
9 F2 Q& m* n! r, Tif ( resp.output.length > 0 )/ ~$ t, S3 R8 v; \
return result[0];/ A5 L, y; }/ M- k+ p) _* D
else! ?- h4 ?: h& L! `
return null;
/ r' t' | C: X7 v& s}
! E' {0 b4 [. X; @: B, x
7 H% c2 @) ~7 t/ J& c3 K
/ k! A4 D- q4 o6 R |
|