|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item% O7 w! A/ b+ a
( A% E2 z5 x# y1 x l/ Z
public static Item findExistingItem( DataManagementService dmService, String itemIDs){
" e/ R3 \4 B# h7 P8 k6 |com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
: b4 E F8 S) Z, kinfos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
' G# b7 D3 _% l/ a; X Uinfos[0].itemId = itemIDs;- J9 V: m, A) }' c5 r* e
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
0 F, R7 ?1 U. g# ?- T1 N8 I3 Ypref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];
/ s, l7 f1 P/ z; d1 p& E+ GGetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);- a: m8 o/ O2 r1 e2 ~1 s
Item result[] = new Item[ resp.output.length ];
4 e% C8 J0 [; u: f( P5 Ofor ( int i = 0; i < resp.output.length; i++ )4 Z2 D0 p0 y9 H% {
result = resp.output.item;" @ ?0 e. d* k( T: U
5 s9 {; }/ R5 E# u( bif ( resp.output.length > 0 )9 {5 D# y+ w+ w# x1 N9 T% I7 e
return result[0];
' t) ]* M, r: d/ G, [$ h2 o A- @9 Relse
* I2 B( K* l, K! |7 nreturn null;" K. P8 D3 i- @+ r9 Y
}
; q, k; a% `( `+ A/ k8 j" j( A5 o6 y- O3 }
9 U0 t. l2 ~: y! @$ H7 [2 D8 f
|
|