commit
19c4643c27
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -0,0 +1,63 @@
|
||||
<?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;hh;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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="ReadMe.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="stdafx.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="targetver.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="connor_handler.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="connor_test.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="sjjjy.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="tc_log.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ConsoleApplication1.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="connor_handler.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="connor_test.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="main_lib.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="sjjjy.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="tc_log.cxx">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
|
||||
Release|Win32|C:\vs2015\Projects\ConsoleApplication1\|
|
@ -0,0 +1,12 @@
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consoleapplication1.pch
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\vc140.pdb
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\stdafx.obj
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consoleapplication1.obj
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\connor_test.obj
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\connor_handler.obj
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consolea.39ca478e.tlog\cl.command.1.tlog
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consolea.39ca478e.tlog\cl.read.1.tlog
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consolea.39ca478e.tlog\cl.write.1.tlog
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consolea.39ca478e.tlog\link.command.1.tlog
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consolea.39ca478e.tlog\link.read.1.tlog
|
||||
c:\vs2015\projects\consoleapplication1\consoleapplication1\release\consolea.39ca478e.tlog\link.write.1.tlog
|
@ -0,0 +1,64 @@
|
||||
生成启动时间为 2022/10/24 16:46:31。
|
||||
1>项目“C:\vs2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.vcxproj”在节点 2 上(Rebuild 个目标)。
|
||||
1>ClCompile:
|
||||
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /IC:\Siemens\Teamcenter13\include_cpp /IC:\Siemens\Teamcenter13\include /Zi /nologo /W3 /WX- /sdl /O2 /Oi /Oy- /GL /D WIN32 /D NDEBUG /D _CONSOLE /D IPLIB=none /D _WINDLL /D _UNICODE /D UNICODE /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Yc"stdafx.h" /Fp"Release\ConsoleApplication1.pch" /Fo"Release\\" /Fd"Release\vc140.pdb" /Gd /TP /analyze- /errorReport:prompt stdafx.cpp
|
||||
stdafx.cpp
|
||||
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /IC:\Siemens\Teamcenter13\include_cpp /IC:\Siemens\Teamcenter13\include /Zi /nologo /W3 /WX- /sdl /O2 /Oi /Oy- /GL /D WIN32 /D NDEBUG /D _CONSOLE /D IPLIB=none /D _WINDLL /D _UNICODE /D UNICODE /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Release\\" /Fd"Release\vc140.pdb" /Gd /TP /analyze- /errorReport:prompt connor_handler.cpp connor_test.cpp ConsoleApplication1.cpp
|
||||
connor_handler.cpp
|
||||
1>C:\Siemens\Teamcenter13\include\pom/pom/pom.h(801): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
|
||||
1>C:\Siemens\Teamcenter13\include\pom/pom/pom.h(5415): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
|
||||
1>c:\vs2015\projects\consoleapplication1\consoleapplication1\connor_handler.h(9): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
|
||||
1>connor_handler.cpp(28): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(37): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(121): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(130): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(218): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(227): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(285): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_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.10150.0\ucrt\string.h(119): note: 参见“strcpy”的声明
|
||||
1>connor_handler.cpp(283): warning C4996: 'strtok': This function or variable may be unsafe. Consider using strtok_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.10150.0\ucrt\string.h(453): note: 参见“strtok”的声明
|
||||
1>connor_handler.cpp(292): warning C4996: 'strtok': This function or variable may be unsafe. Consider using strtok_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.10150.0\ucrt\string.h(453): note: 参见“strtok”的声明
|
||||
connor_test.cpp
|
||||
1>C:\Siemens\Teamcenter13\include\pom/pom/pom.h(801): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
|
||||
1>C:\Siemens\Teamcenter13\include\pom/pom/pom.h(5415): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
|
||||
1>c:\vs2015\projects\consoleapplication1\consoleapplication1\connor_handler.h(9): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
|
||||
1>connor_test.cpp(15): warning C4101: “now”: 未引用的局部变量
|
||||
1>connor_test.cpp(14): warning C4101: “temp2”: 未引用的局部变量
|
||||
1>connor_test.cpp(14): warning C4101: “expire_date”: 未引用的局部变量
|
||||
1>connor_test.cpp(14): warning C4101: “date_buf”: 未引用的局部变量
|
||||
1>connor_test.cpp(16): warning C4101: “p”: 未引用的局部变量
|
||||
1>connor_test.cpp(14): warning C4101: “env”: 未引用的局部变量
|
||||
1>connor_test.cpp(14): warning C4101: “temp1”: 未引用的局部变量
|
||||
ConsoleApplication1.cpp
|
||||
Link:
|
||||
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\vs2015\Projects\ConsoleApplication1\Release\ConsoleApplication1.dll" /INCREMENTAL:NO /NOLOGO "C:\Siemens\Teamcenter13\lib\*.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /NODEFAULTLIB:libuser_exits.ar.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /Debug /PDB:"C:\vs2015\Projects\ConsoleApplication1\Release\ConsoleApplication1.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG:incremental /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\vs2015\Projects\ConsoleApplication1\Release\ConsoleApplication1.lib" /MACHINE:X86 /SAFESEH /DLL Release\connor_handler.obj
|
||||
Release\connor_test.obj
|
||||
Release\ConsoleApplication1.obj
|
||||
Release\stdafx.obj
|
||||
正在创建库 C:\vs2015\Projects\ConsoleApplication1\Release\ConsoleApplication1.lib 和对象 C:\vs2015\Projects\ConsoleApplication1\Release\ConsoleApplication1.exp
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__EPM_ask_root_task
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__AOM_set_value_string
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__EPM_ask_attachments
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__EMH_store_error_s1
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__TC_printf
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__EMH_ask_error_text
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__AOM_ask_value_string
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__MEM_free
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__ITEM_ask_item_of_rev
|
||||
1>connor_handler.obj : error LNK2001: 无法解析的外部符号 __imp__ITK_ask_argument_named_value
|
||||
1>connor_test.obj : error LNK2001: 无法解析的外部符号 __imp__EPM_register_action_handler
|
||||
1>connor_test.obj : error LNK2001: 无法解析的外部符号 __imp__EPM_register_rule_handler
|
||||
1>C:\vs2015\Projects\ConsoleApplication1\Release\ConsoleApplication1.dll : fatal error LNK1120: 12 个无法解析的外部命令
|
||||
1>已完成生成项目“C:\vs2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.vcxproj”(Rebuild 个目标)的操作 - 失败。
|
||||
|
||||
生成失败。
|
||||
|
||||
已用时间 00:00:08.54
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,47 @@
|
||||
#include <tc/folder.h>
|
||||
#include <ict/ict_userservice.h>
|
||||
#include <tccore/custom.h>
|
||||
#include <epm/epm_toolkit_tc_utils.h>
|
||||
#include <tccore/aom.h>
|
||||
#include <tccore/aom_prop.h>
|
||||
#include <tccore/item.h>
|
||||
#include <bom/bom.h>
|
||||
#include <ps/ps.h>;
|
||||
#include <ps/vrule.h>
|
||||
#include <sstream>
|
||||
#include <cfm\cfm.h>
|
||||
#include <tccore/grm.h>
|
||||
#include <epm/epm.h>
|
||||
#include <sa/sa.h>
|
||||
#include <map>
|
||||
#include <epm/signoff.h>
|
||||
#include <ctime>
|
||||
#include <vector>
|
||||
#include <locale>
|
||||
#include <codecvt>
|
||||
#include <ae/dataset.h>
|
||||
#include <iostream>
|
||||
#include <regex>
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <tccore/item_errors.h>
|
||||
#include <ics/ics_enquiry.h>
|
||||
#include <ict/ict_userservice.h>
|
||||
#include <bom/bom_msg.h>
|
||||
#include <tccore/tc_msg.h>
|
||||
#include <ics/ics.h>
|
||||
#include <property/prop_msg.h>
|
||||
#include <bom/bom_msg.h>
|
||||
#include <tccore/item_msg.h>
|
||||
|
||||
int LB_copy_gx(EPM_action_message_t mag);
|
||||
|
||||
int LB2_Check_Code_Version_Rule(EPM_rule_message_t mag);
|
||||
|
||||
int LB2_Dub_Check_Code_Version(EPM_rule_message_t mag);
|
||||
|
||||
|
@ -0,0 +1,152 @@
|
||||
#include <server_exits/user_server_exits.h>
|
||||
#include <tccore/custom.h>
|
||||
#include <tccore/item_msg.h>
|
||||
#include <epm/epm.h>
|
||||
#include "connor_test.h"
|
||||
#include "stdafx.h"
|
||||
#include "sjjjy.h"
|
||||
#include <tc\preferences.h>
|
||||
|
||||
//供流程调用的
|
||||
// 标准的注册供流程调用服务handler的入口 TC_save_msg
|
||||
|
||||
extern DLLAPI int USERSERVICE_custom_register_handlers(int *decision, va_list args)
|
||||
{
|
||||
char * operation = va_arg(args, char*);
|
||||
printf("operation============================================================%s\n", operation);
|
||||
int ifail = ITK_ok, n = 0;
|
||||
char date_buf[80], *expire_date, env[512], temp1[512], temp2[512];
|
||||
time_t now;
|
||||
struct tm *p;
|
||||
|
||||
*decision = ALL_CUSTOMIZATIONS;
|
||||
|
||||
int status = ITK_ok;
|
||||
|
||||
|
||||
//action handler
|
||||
(ifail = EPM_register_action_handler("Connor_AVIC_TransToPDF", "Connor_AVIC_TransToPDF", (EPM_action_handler_t)Connor_AVIC_TransToPDF));
|
||||
if (ifail == 0) {
|
||||
printf("Registering action handler Connor_AVIC_TransToPDF successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Registering action handler Connor_AVIC_TransToPDF failed %d\n", ifail);
|
||||
}
|
||||
|
||||
(ifail = EPM_register_action_handler("Connor_AVIC_Set_Property", "Connor_AVIC_Set_Property", (EPM_action_handler_t)Connor_AVIC_Set_Property));
|
||||
if (ifail == 0) {
|
||||
printf("Registering action handler 1)Connor_AVIC_Set_Property successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Registering action handler 1)Connor_AVIC_Set_Property failed %d\n", ifail);
|
||||
}
|
||||
|
||||
(ifail = EPM_register_action_handler("Connor_AVIC_Check_XYSX", "Connor_AVIC_Check_XYSX", (EPM_action_handler_t)Connor_AVIC_Check_XYSX));
|
||||
if (ifail == 0) {
|
||||
printf("Registering action handler Connor_AVIC_Check_XYSX successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Registering action handler Connor_AVIC_Check_XYSX failed %d\n", ifail);
|
||||
}
|
||||
|
||||
(ifail = EPM_register_action_handler("Connor_AVIC_Check_GetInfo", "Connor_AVIC_Check_GetInfo", (EPM_action_handler_t)Connor_AVIC_Check_GetInfo));
|
||||
if (ifail == 0) {
|
||||
printf("Registering action handler Connor_AVIC_Check_GetInfo successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Registering action handler Connor_AVIC_Check_GetInfo failed %d\n", ifail);
|
||||
}
|
||||
|
||||
|
||||
return ifail;
|
||||
}
|
||||
extern "C" int POM_AM__set_application_bypass(logical bypass);
|
||||
int Connor_open_bypass(void* returnValue)
|
||||
{
|
||||
POM_AM__set_application_bypass(true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Connor_close_bypass(void* returnValue)
|
||||
{
|
||||
POM_AM__set_application_bypass(false);
|
||||
return 0;
|
||||
}
|
||||
extern DLLAPI int USERSERVICE_custom_register_methods(int *decision, va_list args)
|
||||
{
|
||||
|
||||
int
|
||||
status = ITK_ok,
|
||||
numberOfArguments = 0,
|
||||
returnValueType = NULL,
|
||||
*argumentList = NULL;
|
||||
USER_function_t functionPtr;
|
||||
METHOD_id_t mth_tag;
|
||||
|
||||
//开旁路
|
||||
{
|
||||
numberOfArguments = 1;
|
||||
functionPtr = Connor_open_bypass;
|
||||
argumentList = (int*)MEM_alloc(numberOfArguments * sizeof(int));
|
||||
argumentList[0] = USERARG_STRING_TYPE;
|
||||
returnValueType = USERARG_VOID_TYPE;
|
||||
char* mth_name = (char*)malloc(1 + sizeof(char) * strlen("CONNOR_open_bypass"));
|
||||
tc_strcpy(mth_name, "CONNOR_open_bypass");
|
||||
ITKCALL(status = USERSERVICE_register_method(mth_name, functionPtr, numberOfArguments,
|
||||
argumentList, returnValueType));
|
||||
MEM_free(argumentList);
|
||||
if (status == ITK_ok)
|
||||
{
|
||||
printf("Method: %s\n", mth_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Method register failed [%d]: %s\n", status, mth_name);
|
||||
}
|
||||
}
|
||||
|
||||
//关旁路
|
||||
{
|
||||
numberOfArguments = 1;
|
||||
functionPtr = Connor_close_bypass;
|
||||
argumentList = (int*)MEM_alloc(numberOfArguments * sizeof(int));
|
||||
argumentList[0] = USERARG_STRING_TYPE;
|
||||
returnValueType = USERARG_VOID_TYPE;
|
||||
char* mth_name = (char*)malloc(1 + sizeof(char) * strlen("CONNOR_close_bypass"));
|
||||
tc_strcpy(mth_name, "CONNOR_close_bypass");
|
||||
ITKCALL(status = USERSERVICE_register_method(mth_name, functionPtr, numberOfArguments,
|
||||
argumentList, returnValueType));
|
||||
MEM_free(argumentList);
|
||||
if (status == ITK_ok)
|
||||
{
|
||||
printf("Method: %s\n", mth_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Method register failed [%d]: %s\n", status, mth_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
numberOfArguments = 1;
|
||||
functionPtr = TransToPDF;
|
||||
argumentList = (int*)MEM_alloc(numberOfArguments * sizeof(int));
|
||||
argumentList[0] = USERARG_STRING_TYPE;
|
||||
returnValueType = USERARG_VOID_TYPE,
|
||||
status = USERSERVICE_register_method("TransToPDF", functionPtr, numberOfArguments,argumentList, returnValueType);
|
||||
MEM_free(argumentList);
|
||||
if (status == ITK_ok)
|
||||
{
|
||||
fprintf(stdout, "\n Registering TransToPDF finished\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stdout, "\n Registering TransToPDF failed %d\n", status);
|
||||
}
|
||||
|
||||
return ITK_ok;
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,20 @@
|
||||
|
||||
#ifndef EPM_REGISTER_HANDLER_CUSTOM
|
||||
#define EPM_REGISTER_HANDLER_CUSTOM
|
||||
|
||||
#include <epm/epm.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern DLLAPI int USERSERVICE_custom_register_handlers(int *, va_list);
|
||||
extern DLLAPI int USERSERVICE_custom_register_methods(int *decision, va_list args);
|
||||
//USERSERVICE_custom_register_methods
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,53 @@
|
||||
#include <tc/folder.h>
|
||||
#include <ict/ict_userservice.h>
|
||||
#include <tccore/custom.h>
|
||||
#include <epm/epm_toolkit_tc_utils.h>
|
||||
#include <tccore/aom.h>
|
||||
#include <tccore/aom_prop.h>
|
||||
#include <tccore/item.h>
|
||||
#include <bom/bom.h>
|
||||
#include <ps/ps.h>;
|
||||
#include <ps/vrule.h>
|
||||
#include <sstream>
|
||||
#include <cfm\cfm.h>
|
||||
#include <tccore/grm.h>
|
||||
#include <epm/epm.h>
|
||||
#include <sa/sa.h>
|
||||
#include <map>
|
||||
#include <epm/signoff.h>
|
||||
#include <ctime>
|
||||
#include <vector>
|
||||
#include <locale>
|
||||
#include <codecvt>
|
||||
#include <ae/dataset.h>
|
||||
#include <iostream>
|
||||
#include <regex>
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <algorithm>
|
||||
|
||||
#include <tccore/item_errors.h>
|
||||
#include <ics/ics_enquiry.h>
|
||||
#include <ict/ict_userservice.h>
|
||||
#include <bom/bom_msg.h>
|
||||
#include <tccore/tc_msg.h>
|
||||
#include <ics/ics.h>
|
||||
#include <property/prop_msg.h>
|
||||
#include <bom/bom_msg.h>
|
||||
#include <tccore/item_msg.h>
|
||||
|
||||
int Connor_AVIC_TransToPDF(EPM_action_message_t mag);
|
||||
|
||||
int Connor_AVIC_Set_Property(EPM_action_message_t mag);
|
||||
|
||||
int Connor_AVIC_Check_XYSX(EPM_action_message_t mag);
|
||||
|
||||
int Connor_AVIC_Check_GetInfo(EPM_action_message_t mag);
|
||||
|
||||
int TransToPDF(void *returnValue);
|
||||
|
||||
//int Cust_Add_BOMLine_Post(METHOD_message_t* msg, va_list args);
|
||||
|
@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : 只包括标准包含文件的源文件
|
||||
// ConsoleApplication1.pch 将作为预编译头
|
||||
// stdafx.obj 将包含预编译类型信息
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: 在 STDAFX.H 中引用任何所需的附加头文件,
|
||||
//而不是在此文件中引用
|
@ -0,0 +1,15 @@
|
||||
// stdafx.h : 标准系统包含文件的包含文件,
|
||||
// 或是经常使用但不常更改的
|
||||
// 特定于项目的包含文件
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "targetver.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
||||
|
||||
// TODO: 在此处引用程序需要的其他头文件
|
@ -0,0 +1,128 @@
|
||||
/**
|
||||
* @file common_itk_util.cpp
|
||||
* @brief itk warpper utility function
|
||||
* @author James
|
||||
* @history
|
||||
* ===================================================================================
|
||||
* Date Name Description of Change
|
||||
* 18-July-2008 Ray
|
||||
*/
|
||||
#include <tc/tc.h>
|
||||
#include <tc/tc_util.h>
|
||||
#include <tc/tc_arguments.h>
|
||||
|
||||
#include <time.h>
|
||||
//
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#include <direct.h>
|
||||
#else
|
||||
//#include <unistd.h>
|
||||
#endif
|
||||
//
|
||||
#include "tc_log.h"
|
||||
using namespace std;
|
||||
|
||||
#define ARGS_LENGTH 200
|
||||
#define MAX_PRINTLINE_LENGTH 2000
|
||||
#define MAX_PATH_LENGTH 2000
|
||||
#define MAX_ARGUMENT_LENGTH 400
|
||||
#define MAX_PARAMNAME_LENGTH 50
|
||||
#define MAX_FILE_EXT_LENGTH 10
|
||||
#define TRUE_FLAG 1
|
||||
#define FALSE_FLAG 0
|
||||
#define DETAILLOG 1
|
||||
|
||||
#define DOFREE(obj) \
|
||||
{ \
|
||||
if(obj) \
|
||||
{ \
|
||||
MEM_free(obj); \
|
||||
obj = NULL; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
FILE* lidy_logFile = NULL;
|
||||
char *log_path = NULL;
|
||||
|
||||
void CreateLogFile(const char* lidy_logFileName)
|
||||
{
|
||||
int i=0;
|
||||
|
||||
lidy_logFile = NULL;
|
||||
if (log_path) {
|
||||
MEM_free(log_path);
|
||||
log_path = NULL;
|
||||
}
|
||||
|
||||
log_path = (char*)MEM_alloc((strlen(lidy_logFileName) + 1) * sizeof(char*));
|
||||
strcpy(log_path, lidy_logFileName);
|
||||
|
||||
//get lidy_logFileName
|
||||
//sprintf(lidy_logFileName, "%s", lidy_logFileName);
|
||||
printf("log file name: %s\n", lidy_logFileName);
|
||||
|
||||
|
||||
//create log file
|
||||
if((lidy_logFile = fopen(lidy_logFileName, "a"))==NULL)
|
||||
{
|
||||
printf("log file create failed\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void WriteLog(const char* format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
char tmp[8192];
|
||||
|
||||
if(lidy_logFile)
|
||||
{
|
||||
//get the message
|
||||
memset(tmp, 0, sizeof(tmp));
|
||||
va_start(arg, format);
|
||||
vsprintf(tmp, format, arg);
|
||||
va_end(arg);
|
||||
|
||||
//----------print to command window for trace--------//
|
||||
printf("%s\n", tmp);
|
||||
|
||||
//print message to log file
|
||||
fprintf(lidy_logFile, "%s\n", tmp);
|
||||
fflush(lidy_logFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("*!Error!*: Log File Not Exist\n");
|
||||
}
|
||||
}
|
||||
|
||||
void CloseLog(void)
|
||||
{
|
||||
if(lidy_logFile)
|
||||
{
|
||||
fclose(lidy_logFile);
|
||||
lidy_logFile = NULL;
|
||||
}
|
||||
|
||||
if (log_path) {
|
||||
MEM_free(log_path);
|
||||
log_path = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void log_open(void) {
|
||||
if (log_path) {
|
||||
if ((lidy_logFile = fopen(log_path, "a")) == NULL) {
|
||||
printf("log file create failed\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void log_close(void) {
|
||||
if (lidy_logFile) {
|
||||
fclose(lidy_logFile);
|
||||
lidy_logFile = NULL;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @file common_itk_util.h
|
||||
* @brief itk warpper utility function
|
||||
* @author Ray
|
||||
* @history
|
||||
* ===================================================================================
|
||||
* Date Name Description of Change
|
||||
* 09-July-2008 Ray
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
using namespace std;
|
||||
|
||||
#ifndef TC_LOG_H
|
||||
#define TC_LOG_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void CreateLogFile(const char* logFileName);
|
||||
void WriteLog(const char* format, ...);
|
||||
void CloseLog(void);
|
||||
void log_open(void);
|
||||
void log_close(void);
|
||||
//string getNow(char* format);
|
||||
//int FindDatasetReferenceExt( tag_t datasettype, const char *datasettype_ref, char ext[10] );
|
||||
//int CompareDate( date_t date1, date_t date2 );
|
||||
//int GetRandomTempFile( char tempFile[256] );
|
||||
//logical IsItemRevisionType( char object_type[WSO_name_size_c + 1] );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
|
||||
Release|x64|D:\Project\105\ConsoleApplication1\|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,33 @@
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\consoleapplication1.pch
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\vc140.pdb
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\stdafx.obj
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\tc_log.obj
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\sjjjy.obj
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\main_lib.obj
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\consoleapplication1.obj
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\connor_test.obj
|
||||
z:\tc_install\105\c\consoleapplication1\consoleapplication1\x64\release\connor_handler.obj
|
||||
z:\tc_install\105\c\consoleapplication1\x64\release\consoleapplication1.lib
|
||||
z:\tc_install\105\c\consoleapplication1\x64\release\consoleapplication1.exp
|
||||
z:\tc_install\105\c\consoleapplication1\x64\release\consoleapplication1.dll
|
||||
z:\tc_install\105\c\consoleapplication1\x64\release\consoleapplication1.ipdb
|
||||
z:\tc_install\105\c\consoleapplication1\x64\release\consoleapplication1.iobj
|
||||
z:\tc_install\105\c\consoleapplication1\x64\release\consoleapplication1.pdb
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\connor_handler.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\connor_test.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consoleapplication1.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\main_lib.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\sjjjy.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\stdafx.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\tc_log.obj
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consoleapplication1.pch
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\vc140.pdb
|
||||
d:\project\105\consoleapplication1\x64\release\consoleapplication1.pdb
|
||||
d:\project\105\consoleapplication1\x64\release\consoleapplication1.dll
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\cl.command.1.tlog
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\cl.read.1.tlog
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\cl.write.1.tlog
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\consoleapplication1.write.1u.tlog
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\link.command.1.tlog
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\link.read.1.tlog
|
||||
d:\project\105\consoleapplication1\consoleapplication1\x64\release\consolea.39ca478e.tlog\link.write.1.tlog
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue