Merge branch 'master' of http://plmserver.cn:3000/jd/itk into zxk

# Conflicts:
#	HEZON_ITK/HEZON_ITK.vcxproj
#	HEZON_ITK/HEZON_ITK.vcxproj.filters
#	HEZON_ITK/bs_sap.cpp
#	HEZON_ITK/epm_handler_common.h
#	HEZON_ITK/epm_register_handler.cxx
#	HEZON_ITK/jd_check_wlms_len.cpp
#	HEZON_ITK/x64/Release/.NETFramework,Version=v4.0.AssemblyAttributes.asm
#	HEZON_ITK/x64/Release/HEZON_ITK.log
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/CL.command.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/CL.read.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/CL.write.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.command.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.read.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/link.write.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/metagen.read.1.tlog
#	HEZON_ITK/x64/Release/HEZON_ITK.tlog/metagen.write.1.tlog
#	HEZON_ITK/x64/Release/vc140.pdb
#	x64/Release/HEZON_ITK.pdb
#	x64/Release/bs.exp
已解决
main
zouxk 5 years ago
commit bce2b87039

6
.gitignore vendored

@ -369,3 +369,9 @@ ASALocalRun/
HEZON_ITK/x64/
HEZON_ITK/HEZON_ITK.vcxproj
HEZON_ITK/HEZON_ITK.vcxproj.filters
HEZON_ITK/bs_sap.cpp.orig
HEZON_ITK/epm_handler_common.h.orig
HEZON_ITK/epm_register_handler.cxx.orig
HEZON_ITK/HEZON_ITK.vcxproj.filters~9cec5b3be0639e60437e0ba1a3035139d8301c0a
HEZON_ITK/HEZON_ITK.vcxproj~9cec5b3be0639e60437e0ba1a3035139d8301c0a
HEZON_ITK/jd_check_wlms_len.cpp.orig

@ -0,0 +1,199 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{8E665218-4AC2-4DDD-A50E-4245BA64C3C3}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>HEZON_ITK</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
<PlatformToolset>v140</PlatformToolset>
<CLRSupport>true</CLRSupport>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;IPLIB=none;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<CallingConvention>Cdecl</CallingConvention>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>libuser_exits.ar.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<OutputFile>$(OutDir)\bs.dll</OutputFile>
<AdditionalOptions>/FORCE %(AdditionalOptions)</AdditionalOptions>
</Link>
<ProjectReference>
<UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="..\..\..\..\..\..\Program Files\Common Files\System\ado\msado15.dll" />
<None Include="packages.config" />
<None Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="bs_bom_check.cpp" />
<ClCompile Include="bs_bom_save_check.cpp" />
<ClCompile Include="bs_bypass.cpp" />
<ClCompile Include="bs_file_transfer.cpp" />
<ClCompile Include="bs_sap.cpp" />
<ClCompile Include="bs_signoff.cxx" />
<ClCompile Include="bs_sign_cad.cpp" />
<ClCompile Include="bs_test_release_check.cpp" />
<ClCompile Include="bs_wl_check.cpp" />
<ClCompile Include="CSendMail.cpp" />
<ClCompile Include="jd_get_target.cpp" />
<ClCompile Include="jd_send_mail.cpp" />
<ClCompile Include="epm_register_handler.cxx" />
<ClCompile Include="bs_custom_main.cxx" />
<ClCompile Include="jd_add_attachments.cpp" />
<ClCompile Include="jd_batch_process.cpp" />
<ClCompile Include="jd_check_99_bomyt.cpp" />
<ClCompile Include="jd_clear_field.cpp" />
<ClCompile Include="jd_schedule_joint.cpp" />
<ClCompile Include="jd_signoff.cpp" />
<ClCompile Include="jd_check_wlms_len.cpp" />
<ClCompile Include="util.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="CSendMail.h" />
<ClInclude Include="epm_handler_common.h" />
<ClInclude Include="epm_register_handler.h" />
<ClInclude Include="jd_clear_field.h" />
<ClInclude Include="LogInfo.h" />
<ClInclude Include="util.h" />
<ClInclude Include="HTTPRequest.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="..\packages\teamcenter.12.0.0\build\teamcenter.targets" Condition="Exists('..\packages\teamcenter.12.0.0\build\teamcenter.targets')" />
<Import Project="..\packages\javasdk.8.0.0\build\javasdk.targets" Condition="Exists('..\packages\javasdk.8.0.0\build\javasdk.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\teamcenter.12.0.0\build\teamcenter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\teamcenter.12.0.0\build\teamcenter.targets'))" />
<Error Condition="!Exists('..\packages\javasdk.8.0.0\build\javasdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\javasdk.8.0.0\build\javasdk.targets'))" />
</Target>
</Project>

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="源文件">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="头文件">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="资源文件">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
<Filter Include="common">
<UniqueIdentifier>{d25e0aa0-8791-4277-b392-abc3943f925c}</UniqueIdentifier>
</Filter>
<Filter Include="epm-handler">
<UniqueIdentifier>{f8d4fa90-4363-4e0f-8f44-a2e02a224ad9}</UniqueIdentifier>
</Filter>
<Filter Include="userservice">
<UniqueIdentifier>{5f8496b0-ad7e-4c6c-b832-59575601b9f1}</UniqueIdentifier>
</Filter>
<Filter Include="bmf">
<UniqueIdentifier>{aa5fbb6b-b5ee-4f80-8b16-de99d912a542}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
<None Include="..\..\..\..\..\..\Program Files\Common Files\System\ado\msado15.dll" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="epm_register_handler.cxx">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_signoff.cxx">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_custom_main.cxx">
<Filter>common</Filter>
</ClCompile>
<ClCompile Include="bs_bypass.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_file_transfer.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_sap.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_sign_cad.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_bom_check.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_wl_check.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_bom_save_check.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="util.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_clear_field.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_signoff.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="bs_test_release_check.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_schedule_joint.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_batch_process.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_add_attachments.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_check_99_bomyt.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_send_mail.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="CSendMail.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_get_target.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
<ClCompile Include="jd_check_wlms_len.cpp">
<Filter>epm-handler</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="epm_register_handler.h">
<Filter>epm-handler</Filter>
</ClInclude>
<ClInclude Include="epm_handler_common.h">
<Filter>epm-handler</Filter>
</ClInclude>
<ClInclude Include="util.h">
<Filter>epm-handler</Filter>
</ClInclude>
<ClInclude Include="jd_clear_field.h">
<Filter>epm-handler</Filter>
</ClInclude>
<ClInclude Include="HTTPRequest.hpp">
<Filter>epm-handler</Filter>
</ClInclude>
<ClInclude Include="CSendMail.h">
<Filter>epm-handler</Filter>
</ClInclude>
<ClInclude Include="LogInfo.h">
<Filter>epm-handler</Filter>
</ClInclude>
</ItemGroup>
</Project>

@ -53,6 +53,7 @@ int bs_bom_check(EPM_rule_message_t msg)
{
pass = true;
break;
}
}
if (!pass)

@ -166,15 +166,18 @@ int bs_sap_material(EPM_action_message_t msg) {
}
void get_bom(System::Collections::Generic::List<System::Collections::Generic::Dictionary<String^, String^>^> ^a_list, tag_t line, char *werks, char *stlan, string pid, tag_t relation_type, boolean is_hl, boolean is_judge) {
int line_cnt;
void get_bom(System::Collections::Generic::List<System::Collections::Generic::Dictionary<String^, String^>^> ^a_list,tag_t line,char *werks,char *stlan,string pid, tag_t relation_type,boolean is_hl,boolean is_judge,vector<string> &bom_ids)
{ int line_cnt;
tag_t *lines;
BOM_line_ask_child_lines(line, &line_cnt, &lines);
char *id;
AOM_UIF_ask_value(line, "bl_item_item_id", &id);
if (a_list->Count == 0) {
pid = pid.length() > 0 ? pid : id;
int index = pid.find('-');
if (find(bom_ids.begin(), bom_ids.end(), id) != bom_ids.end())
return;
bom_ids.push_back(id);
if(a_list->Count==0)
{
pid = pid.length()>0?pid:id; int index = pid.find('-');
if (index != -1)
pid = pid.substr(0,index);
}
@ -260,7 +263,7 @@ void get_bom(System::Collections::Generic::List<System::Collections::Generic::Di
} else {
printf("obj:%s pid:%s\n", obj_str, id);
}
get_bom(a_list, lines[j], werks, stlan, pid.length() > 0 ? pid : id, relation_type, child_is_hl, is_judge);
get_bom(a_list, lines[j], werks, stlan, pid.length()>0 ? pid : id, relation_type, child_is_hl, is_judge,bom_ids);
continue;
}
// if (tc_strcmp(val1, "F") == 0 && tc_strlen(val2) == 0)
@ -271,7 +274,7 @@ void get_bom(System::Collections::Generic::List<System::Collections::Generic::Di
}
a_list->Add(dic);
get_bom(a_list, lines[j], werks, stlan, "", relation_type, child_is_hl, is_judge);
get_bom(a_list, lines[j], werks, stlan,"",relation_type, child_is_hl, is_judge,bom_ids);
}
}
@ -321,9 +324,11 @@ int bs_sap_bom(EPM_action_message_t msg) {
}
}
printf("has _99:%d\n", has_99);
for (int i = 0; i < att_count; i++) {
if (isTypeOf(attachments[i], "PSBOMViewRevision")) {
printf("execute\n");
vector<string> bom_ids;
for (int i = 0; i < att_count; i++)
{
if (isTypeOf(attachments[i], "PSBOMViewRevision"))
{ printf("execute\n");
int rel_cnt, line_cnt;
System::Collections::Generic::List<System::Collections::Generic::Dictionary<String^, String^>^> ^a_list = gcnew System::Collections::Generic::List<System::Collections::Generic::Dictionary<String^, String^>^>();
tag_t top_line, *lines, rev, *rels;
@ -336,9 +341,13 @@ int bs_sap_bom(EPM_action_message_t msg) {
continue;
GRM_list_secondary_objects_only(rev, relation_type, &rel_cnt, &rels);
AOM_ask_value_string(rev, "item_id", &id);
if (has_99) {
if (id[0] != '9' || id[1] != '9') {
printf("not 99:%s\n", id);
if (find(bom_ids.begin(), bom_ids.end(), id) != bom_ids.end())
continue;
if(has_99)
{
if (id[0] != '9' || id[1] != '9')
{ printf("not 99:%s\n", id);
continue;
}
@ -353,7 +362,7 @@ int bs_sap_bom(EPM_action_message_t msg) {
if (tc_strlen(werks) == 0 || tc_strlen(stlan) == 0)
continue;
boolean is_judege = id[0] == '9'&&id[1] == '9';
get_bom(a_list, top_line, werks, stlan, "", relation_type, is_hl, is_judege);
get_bom(a_list, top_line, werks, stlan,"", relation_type,is_hl,is_judege,bom_ids);
string result = ConvertToString(test->send_bom(url, user, password, a_list));
printf("result:%s\n", result.c_str());
if (result.length() && result[0] == 'E') {

@ -53,6 +53,7 @@ extern "C" {
int jd_send_mail(EPM_action_message_t msg);
int jd_get_target(EPM_action_message_t msg);
int jd_check_wlms_len(EPM_rule_message_t msg);
int jd_check_wlms_len(EPM_rule_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);

@ -165,8 +165,7 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) {
printf("register jd_check_wlms_len failed\n");
} else {
printf("register jd_check_wlms_len successfully\n");
}
//if(ifail == ITK_ok)
} //if(ifail == ITK_ok)
//{
// fprintf(stdout,"Registering action handler qtmc-sign-ir completed!\n");
//}

@ -1,5 +1,52 @@
#include "util.h"
int jd_check_wlms_len(EPM_rule_message_t msg)
{
POM_AM__set_application_bypass(true);
tag_t root_task, *attachments;
int att_cnt;
EPM_ask_root_task(msg.task, &root_task);
//获得根任务下的组件
EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt,&attachments);
for (int i = 0; i < att_cnt; i++)
{
if (isTypeOf(attachments[i],"ItemRevision"))
{
int form_att;
tag_t *forms;
AOM_ask_value_tags(attachments[i], "IMAN_master_form_rev", &form_att, &forms);
if (form_att==0)
{
continue;
}
char *wlms;
AOM_ask_value_string(forms[0], "jd2_wlms", &wlms);
cout << "jd2_wlms" << wlms << endl;
int length=0;
for (int i = 0; wlms[i]!=0; i++)
{
if (wlms[i]<128&& wlms[i]>0)
{
length++;
}
else
{
i += 2;
length++;
}
}
cout << "length: " << length << endl;
if (length>40)
{
POM_AM__set_application_bypass(false);
return EMH_store_error_s1(EMH_severity_error, EMH_IDGENERATION_ERROR_BASE, "字符不能超过40!!!");
}
}
POM_AM__set_application_bypass(false);
return EPM_go;
}
}#include "util.h"
int jd_check_wlms_len(EPM_rule_message_t msg) {
POM_AM__set_application_bypass(true);
tag_t root_task, *attachments;

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

@ -1,2 +1,2 @@
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=true:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
Release|x64|E:\work\vs_workspace\jditk\|
Release|x64|C:\Users\89512\Documents\Visual Studio 2015\Projects\itk\|

Loading…
Cancel
Save