版本表单签名完成

main
zouxk 6 years ago
parent 1ae39b72b0
commit db5df65f49

Binary file not shown.

@ -39,6 +39,7 @@ extern "C" {
int bs_file_transfer(EPM_action_message_t msg);
int bs_sap_material(EPM_action_message_t msg);
int bs_sap_bom(EPM_action_message_t msg);
int jd_signoff(EPM_action_message_t msg);

@ -59,6 +59,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args)
(EPM_action_handler_t)bs_sap_material);
ifail = EPM_register_action_handler("bs_sap_bom", "bs_sap_bom",
(EPM_action_handler_t)bs_sap_bom);
ifail = EPM_register_action_handler("jd_signoff", "jd_signoff",
(EPM_action_handler_t)jd_signoff);
//if(ifail == ITK_ok)
//{

@ -72,12 +72,13 @@ int jd_signoff(EPM_action_message_t msg) {
time(&t);
tm* time = localtime(&t);
stringstream date;
date << time->tm_year + 1900;
date << time->tm_mon + 1;
date << time->tm_year + 1900 << "-";
date << time->tm_mon + 1 << "-";
date << time->tm_mday;
POM_AM__set_application_bypass(true);
//获取当前用户
POM_get_user(&user_name, &user_tag);
@ -97,6 +98,10 @@ int jd_signoff(EPM_action_message_t msg) {
}
step = paras["step"].c_str()[0];
printf("%d\n", step);
printf("%s\n", user_name);
printf("%s\n", date.str().c_str());
for (auto ii = 0; ii < att_count; ii++) {
ITEM_list_rev_attachs_of_type(attachments[ii], ITEM_item_master_atth, &objects_count, &objects);
for (auto iii = 0; iii < objects_count; iii++) {
@ -134,6 +139,7 @@ int jd_signoff(EPM_action_message_t msg) {
}
}
}
POM_AM__set_application_bypass(false);
return 0;
}

@ -1,4 +1,4 @@
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.24210.0
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.24215.1
; Generated by VC++ for Common Language Runtime
.file "C:\Users\lyf\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cpp"
.file "C:\Users\5rKB5bPlusD\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cpp"

@ -1,17 +1,14 @@
 bs_sap.cpp
C:\Users\lyf\Documents\tclib\tc12\include\pom/pom/pom.h(816): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
C:\Users\lyf\Documents\tclib\tc12\include\pom/pom/pom.h(5420): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
C:\Users\lyf\Documents\tclib\tc12\include\qry/qry.h(591): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
C:\Users\lyf\Documents\tclib\tc12\include\qry/qry.h(591): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
bs_sap.cpp(85): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
bs_sap.cpp(100): warning C4101: “obj_type”: 未引用的局部变量
bs_sap.cpp(240): warning C4101: “obj_type”: 未引用的局部变量
bs_sap.cpp(272): warning C4101: “lines”: 未引用的局部变量
bs_sap.cpp(270): warning C4101: “line_cnt”: 未引用的局部变量
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\HEZON_ITK.dll) does not match the Linker's OutputFile property value (C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\bs.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
 jd_signoff.cpp
C:\work\include12_1\pom/pom/pom.h(816): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
C:\work\include12_1\pom/pom/pom.h(5420): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
C:\work\include12_1\qry/qry.h(591): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
C:\work\include12_1\qry/qry.h(591): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
jd_signoff.cpp(73): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(505): note: 参见“localtime”的声明
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\work\vs_workspace\jditk\x64\Release\HEZON_ITK.dll) does not match the Linker's OutputFile property value (C:\work\vs_workspace\jditk\x64\Release\bs.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): warning MSB8012: TargetName(HEZON_ITK) does not match the Linker's OutputFile property value (bs). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
MSVCRT.lib(default_local_stdio_options.obj) : warning LNK4006: __local_stdio_printf_options 已在 libassy_jt.lib(libassy_jt.dll) 中定义;已忽略第二个定义
正在创建库 C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\\bs.lib 和对象 C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\\bs.exp
C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\\bs.dll : warning LNK4088: 因 /FORCE 选项生成了映像;映像可能不能运行
HEZON_ITK.vcxproj -> C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\HEZON_ITK.dll
HEZON_ITK.vcxproj -> C:\Users\lyf\Documents\code\dk\HEZON_ITK\x64\Release\HEZON_ITK.pdb (Full PDB)
正在创建库 C:\work\vs_workspace\jditk\x64\Release\\bs.lib 和对象 C:\work\vs_workspace\jditk\x64\Release\\bs.exp
C:\work\vs_workspace\jditk\x64\Release\\bs.dll : warning LNK4088: 因 /FORCE 选项生成了映像;映像可能不能运行
HEZON_ITK.vcxproj -> C:\work\vs_workspace\jditk\x64\Release\HEZON_ITK.dll
HEZON_ITK.vcxproj -> C:\work\vs_workspace\jditk\x64\Release\HEZON_ITK.pdb (Full PDB)

@ -1,2 +1,2 @@
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=true:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
Release|x64|C:\Users\lyf\Documents\code\dk\HEZON_ITK\|
Release|x64|C:\work\vs_workspace\jditk\|

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save