zouxk 5 years ago
parent d0e40460e5
commit 8b6825c116

@ -129,7 +129,7 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;IPLIB=none;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\Users\lyf\Documents\tclib\include;C:\Users\lyf\Documents\tclib\include_cpp;C:\Program Files\Java\jdk1.8.0_212\include\win32;C:\Program Files\Java\jdk1.8.0_212\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>E:\work\include12_2;E:\work\include_cpp12_2;C:\Java\jdk1.8.0_231\include\win32;C:\Java\jdk1.8.0_231\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<CallingConvention>Cdecl</CallingConvention>
</ClCompile>
<Link>
@ -137,7 +137,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>C:\Users\lyf\Documents\tclib\tc12\lib\*.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>E:\work\lib12_2\*.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>libuser_exits.ar.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<OutputFile>$(OutDir)\bs.dll</OutputFile>
<AdditionalOptions>/FORCE %(AdditionalOptions)</AdditionalOptions>
@ -165,7 +165,6 @@
<ClCompile Include="jd_add_attachments.cpp" />
<ClCompile Include="jd_batch_process.cpp" />
<ClCompile Include="jd_clear_field.cpp" />
<ClCompile Include="jd_complate_first_task.cpp" />
<ClCompile Include="jd_schedule_joint.cpp" />
<ClCompile Include="jd_signoff.cpp" />
<ClCompile Include="util.cpp" />

@ -82,9 +82,6 @@
<ClCompile Include="jd_add_attachments.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_complate_first_task.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="epm_register_handler.h">

@ -49,7 +49,6 @@ int bs_bypass(void *retValType);
int jd_schedule_joint(EPM_action_message_t msg);
int jd_batch_process(EPM_action_message_t msg);
int jd_add_attachments(EPM_action_message_t msg);
int jd_complate_first_task(EPM_action_message_t msg);
////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣǩ<CFA2><C7A9><EFBFBD><E6B1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥ
//int qtmc_sign_ir(EPM_action_message_t msg);

@ -160,14 +160,6 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args)
} else {
printf("register jd_add_attachments successfully\n");
}
ifail = EPM_register_action_handler("jd_complate_first_task", "jd_complate_first_task",
(EPM_action_handler_t)jd_complate_first_task);
if (ifail) {
printf("register jd_complate_first_task failed\n");
} else {
printf("register jd_complate_first_task successfully\n");
}
//if(ifail == ITK_ok)
//{

@ -1,83 +0,0 @@
#include "epm_handler_common.h"
#include <tc\tc_macros.h>
#include <tc\emh.h>
#include <tc\preferences.h>
#include <property\propdesc.h>
#include <epm\epm.h>
#include <epm\epm_toolkit_tc_utils.h>
#include <tccore\item.h>
#include <tccore\grmtype.h>
#include <tccore\grm.h>
#include <tccore\imantype.h>
#include <sa\am.h>
#include <sa\sa.h>
#include <tccore\aom.h>
#include <tccore\aom_prop.h>
#include <property\prop_errors.h>
#include <tccore\workspaceobject.h>
#include <qry\qry.h>
#include <bom\bom_attr.h>
#include <bom\bom.h>
#include <epm\signoff.h>
#include <pom\pom\pom.h>
#include <pom\pom\pom_errors.h>
#include <fclasses\tc_date.h>
#include <epm\cr.h>
#include <cfm\cfm.h>
#include <sa\am.h>
#include "tc/envelope.h"
#include <stdio.h>
#include "ae/dataset.h"
#include <ctype.h>
#include <string.h>
#include <string>
#include <iostream>
#include <iterator>
#include <map>
#include <vector>
#include "ce/ce.h"
#include <time.h>
#include <windows.h>
#include <iostream>
#include <sql.h>
#include <sqlext.h>
#include "string"
#include "sstream"
#include <sa/tcfile.h>
#include <tccore/aom.h>
#include <sa/tcfile_cache.h>
#include <form/form.h>
#include "ctime"
#include "tchar.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
extern "C" int POM_AM__set_application_bypass(logical bypass);
int jd_complate_first_task(EPM_action_message_t msg) {
//Sleep(10000);
AOM_refresh(msg.task, false);
POM_AM__set_application_bypass(true);
tag_t parent, *valids;
char *type, *status;
int valid_cnt;
AOM_ask_value_string(msg.task, "object_type", &type);
EPM_ask_parent_task(msg.task, &parent);
//AOM_ask_value_tags(parent, "valid_signoffs", &valid_cnt, &valids);
EPM_ask_attachments(msg.task, EPM_signoff_attachment, &valid_cnt, &valids);
AOM_ask_value_string(msg.task, "task_result", &status);
printf("type====>%s\nstatus====>%s\nvalid_cnt====>%d\n", type, status, valid_cnt);
if (tc_strcmp("Completed", status) == 0) {
POM_AM__set_application_bypass(false);
return 0;
}
if (tc_strcmp("EPMSelectSignoffTask", type) == 0 && valid_cnt > 0) {
printf("µ±Ç°ÈÎÎñΪsignoffÈÎÎñ\n");
ITKCALL(EPM_trigger_action(msg.task, EPM_complete_action, ""));
}
POM_AM__set_application_bypass(false);
return 0;
}

@ -22,6 +22,7 @@ e:\work\vs_workspace\jditk\hezon_itk\x64\release\.netframework,version=v4.0.asse
e:\work\vs_workspace\jditk\x64\release\bs.dll
e:\work\vs_workspace\jditk\x64\release\hezon_itk.pdb
e:\work\vs_workspace\jditk\hezon_itk\x64\release\hezon_itk.tlog\metagen.write.1.tlog
e:\work\vs_workspace\jditk\hezon_itk\x64\release\hezon_itk.vcxprojresolveassemblyreference.cache
e:\work\vs_workspace\jditk\hezon_itk\x64\release\hezon_itk.tlog\cl.command.1.tlog
e:\work\vs_workspace\jditk\hezon_itk\x64\release\hezon_itk.tlog\cl.read.1.tlog
e:\work\vs_workspace\jditk\hezon_itk\x64\release\hezon_itk.tlog\cl.write.1.tlog

@ -22,9 +22,9 @@ e:\work\vs_workspace\jditk\hezon_itk\epm_handler_common.h : warning C4819: 该
E:\work\include12_2\pom/pom/pom.h(806): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
E:\work\include12_2\pom/pom/pom.h(5417): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
bs_sap.cpp(8): warning C4101: “obj_type”: 未引用的局部变量
bs_sap.cpp(253): warning C4101: “obj_type”: 未引用的局部变量
bs_sap.cpp(285): warning C4101: “lines”: 未引用的局部变量
bs_sap.cpp(283): warning C4101: “line_cnt”: 未引用的局部变量
bs_sap.cpp(260): warning C4101: “obj_type”: 未引用的局部变量
bs_sap.cpp(292): warning C4101: “lines”: 未引用的局部变量
bs_sap.cpp(290): warning C4101: “line_cnt”: 未引用的局部变量
bs_signoff.cxx
e:\work\vs_workspace\jditk\hezon_itk\epm_handler_common.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
E:\work\include12_2\pom/pom/pom.h(806): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
@ -104,10 +104,6 @@ jd_clear_field.cpp(245): warning C4101: “attach_type”: 未引用的局部变
jd_clear_field.cpp(244): warning C4101: “sign_str”: 未引用的局部变量
jd_clear_field.cpp(504): warning C4101: “err_function”: 未引用的局部变量
jd_clear_field.cpp(504): warning C4101: “err_string”: 未引用的局部变量
jd_complate_first_task.cpp
e:\work\vs_workspace\jditk\hezon_itk\epm_handler_common.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
E:\work\include12_2\pom/pom/pom.h(806): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
E:\work\include12_2\pom/pom/pom.h(5417): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
jd_schedule_joint.cpp
e:\work\vs_workspace\jditk\hezon_itk\epm_handler_common.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
E:\work\include12_2\pom/pom/pom.h(806): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save