diff --git a/HEZON_ITK/jd_add_attachments.cpp b/HEZON_ITK/jd_add_attachments.cpp index e0dea89..8b299c7 100644 --- a/HEZON_ITK/jd_add_attachments.cpp +++ b/HEZON_ITK/jd_add_attachments.cpp @@ -71,7 +71,7 @@ int jd_add_attachments(EPM_action_message_t msg) { ITK_ask_argument_named_value(TC_next_argument(arguments), &temp_key, &temp_val); paras[temp_key] = temp_val; } - const char *relation = paras["realtion"].c_str(); + const char *relation = paras["relation"].c_str(); const char *item = paras["item"].c_str(); printf("relation:%s\n", relation); printf("item:%s\n", item); @@ -81,14 +81,15 @@ int jd_add_attachments(EPM_action_message_t msg) { for (int i = 0;i < att_cnt;i++) { char *att_type; AOM_ask_value_string(attachments[i], "object_type", &att_type); - if (tc_strcmp(att_type, "ItemRevision") == 0) { + printf("target type:%s\n",att_type); + if (tc_strcmp(att_type, "JD2_GTSYWTSRevision") == 0) { tag_t *csjh; int csjh_cnt; AOM_ask_value_tags(attachments[i], relation, &csjh_cnt, &csjh); for (int ii = 0;ii < csjh_cnt;ii++) { char *item_type; AOM_ask_value_string(csjh[ii], "object_type", &item_type); - printf("object_type:%s\n", item_type); + printf("csjh_type:%s\n", item_type); if (tc_strcmp(item_type, item) == 0) { tag_t *csjh_revs; int rev_cnt; diff --git a/HEZON_ITK/x64/Release/HEZON_ITK.log b/HEZON_ITK/x64/Release/HEZON_ITK.log index 462cbdd..f64965e 100644 --- a/HEZON_ITK/x64/Release/HEZON_ITK.log +++ b/HEZON_ITK/x64/Release/HEZON_ITK.log @@ -84,7 +84,7 @@ E:\work\vs_workspace\jditk\packages\teamcenter.12.0.0\lib\native\include\pom/pom E:\work\vs_workspace\jditk\packages\teamcenter.12.0.0\lib\native\include\pom/pom/pom.h(5420): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 E:\work\vs_workspace\jditk\packages\teamcenter.12.0.0\lib\native\include\qry/qry.h(591): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 E:\work\vs_workspace\jditk\packages\teamcenter.12.0.0\lib\native\include\qry/qry.h(591): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 -jd_add_attachments.cpp(115): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 +jd_add_attachments.cpp(116): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 jd_batch_process.cpp e:\work\vs_workspace\jditk\hezon_itk\HTTPRequest.hpp(193): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 e:\work\vs_workspace\jditk\hezon_itk\HTTPRequest.hpp(199): warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据 diff --git a/HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.read.1.tlog b/HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.read.1.tlog index 8d7a27f..143f373 100644 Binary files a/HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.read.1.tlog and b/HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.read.1.tlog differ diff --git a/HEZON_ITK/x64/Release/vc140.pdb b/HEZON_ITK/x64/Release/vc140.pdb index 79a8135..304e1ab 100644 Binary files a/HEZON_ITK/x64/Release/vc140.pdb and b/HEZON_ITK/x64/Release/vc140.pdb differ diff --git a/x64/Release/HEZON_ITK.pdb b/x64/Release/HEZON_ITK.pdb index 36f8cb3..61bc436 100644 Binary files a/x64/Release/HEZON_ITK.pdb and b/x64/Release/HEZON_ITK.pdb differ diff --git a/x64/Release/bs.exp b/x64/Release/bs.exp index e126f31..9ddc93e 100644 Binary files a/x64/Release/bs.exp and b/x64/Release/bs.exp differ