|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item4 S3 w; s R+ f. e
7 L- x7 j+ W8 P+ K9 l- Y
public static Item findExistingItem( DataManagementService dmService, String itemIDs){: o8 V) d Q) t% n, I+ q/ g' Y; w
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
, }0 Q/ ~8 G; T) F' F- Yinfos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
j, f1 Y( L& E8 cinfos[0].itemId = itemIDs;, A! P* ~7 q4 E' q# F0 w+ i5 ]
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
( G8 _' q2 U: ^$ a5 A( |+ [pref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];
3 \: a( P( k4 _ e8 M& \) yGetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);
5 U1 [$ @* @. m3 gItem result[] = new Item[ resp.output.length ];
4 R0 E i9 \1 g( jfor ( int i = 0; i < resp.output.length; i++ )
/ p; I& a" g! l( i0 t3 P, hresult = resp.output.item;
" n! r5 b' |9 b+ n- g0 j( Z! O; I$ m* f P
if ( resp.output.length > 0 ) }, T; t( I1 u' F
return result[0];
; G3 S" z0 N2 F+ ^3 Aelse
6 c, @! ~# w- o% g+ `, Rreturn null;& j) q, D, Q7 D5 A
}
# a1 B/ v/ A) |' A
3 k2 Q1 F% X, S- z4 v/ O: c. F; L _, O0 ^2 J/ k) P
|
|