commit
8b69365c4e
@ -0,0 +1,8 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ASMSmaliIdeaPluginConfiguration">
|
||||
<asm skipDebug="true" skipFrames="true" skipCode="false" expandFrames="false" />
|
||||
<groovy codeStyle="LEGACY" />
|
||||
</component>
|
||||
<component name="ProjectInspectionProfilesVisibleTreeState">
|
||||
<entry key="Project Default">
|
||||
<profile-state>
|
||||
<expanded-state>
|
||||
<State>
|
||||
<id>JUnit</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>JVM 语言</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>Java 5Java 语言级别迁移帮助Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>Java 8Java 语言级别迁移帮助Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>Java 语言级别迁移帮助Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>JavadocJava</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>Spring</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>Spring AOPSpring</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>TestNGJava</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>代码成熟度Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>性能Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>数值问题Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>类结构Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>线程问题Java</id>
|
||||
</State>
|
||||
<State>
|
||||
<id>编译器问题Java</id>
|
||||
</State>
|
||||
</expanded-state>
|
||||
<selected-state>
|
||||
<State>
|
||||
<id>用户定义</id>
|
||||
</State>
|
||||
</selected-state>
|
||||
</profile-state>
|
||||
</entry>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="JavaSE-1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
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.
@ -0,0 +1,73 @@
|
||||
#include <server_exits/user_server_exits.h>
|
||||
#include <tccore/custom.h>
|
||||
#include <tccore/item_msg.h>
|
||||
#include <epm/epm.h>
|
||||
#include "Register_handler.h"
|
||||
#include "SB_handler.h"
|
||||
|
||||
|
||||
/*
|
||||
标准的注册供流程调用服务handler的入口
|
||||
*/
|
||||
extern DLLAPI int registerHandler(int *decision, va_list args)
|
||||
{
|
||||
int ifail = ITK_ok;
|
||||
|
||||
ifail = EPM_register_action_handler("Lao", "Lao", (EPM_action_handler_t)Lao);
|
||||
if (ifail == 0) {
|
||||
printf("Register action handler Lao successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register action handler Lao failed %d\n", ifail);
|
||||
}
|
||||
|
||||
ifail = EPM_register_action_handler("Xin", "Xin", (EPM_action_handler_t)Xin);
|
||||
if (ifail == 0) {
|
||||
printf("Register action handler Xin successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register action handler Xin failed %d\n", ifail);
|
||||
}
|
||||
|
||||
ifail = EPM_register_action_handler("convertToPDF", "convertToPDF", (EPM_action_handler_t)convertToPDF);
|
||||
if (ifail == 0) {
|
||||
printf("Register action handler convertToPDF successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register action handler convertToPDF failed %d\n", ifail);
|
||||
}
|
||||
|
||||
ifail = EPM_register_action_handler("SB_controlled_Lao", "SB_controlled_Lao", (EPM_action_handler_t)SB_controlled_Lao);
|
||||
if (ifail == 0) {
|
||||
printf("Register action handler SB_controlled_Lao successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register action handler SB_controlled_Lao failed %d\n", ifail);
|
||||
}
|
||||
|
||||
ifail = EPM_register_action_handler("SB_controlled_Xin", "SB_controlled_Xin", (EPM_action_handler_t)SB_controlled_Xin);
|
||||
if (ifail == 0) {
|
||||
printf("Register action handler SB_controlled_Xin successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register action handler SB_controlled_Xin failed %d\n", ifail);
|
||||
}
|
||||
|
||||
ifail = EPM_register_action_handler("SB6_PR_AutoAssign", "SB6_PR_AutoAssign", (EPM_action_handler_t)SB6_PR_AutoAssign);
|
||||
if (ifail == 0) {
|
||||
printf("Register action handler SB6_PR_AutoAssign successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register action handler SB6_PR_AutoAssign failed %d\n", ifail);
|
||||
}
|
||||
|
||||
ifail = EPM_register_rule_handler("Origin_CheckTask_handler2", "Origin_CheckTask_handler2", (EPM_rule_handler_t)Origin_CheckTask_handler2);
|
||||
if (ifail == 0) {
|
||||
printf("Register rule handler Origin_CheckTask_handler2 successful\n");
|
||||
}
|
||||
else {
|
||||
printf("Register rule handler Origin_CheckTask_handler2 failed %d\n", ifail);
|
||||
}
|
||||
|
||||
return ifail;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
#ifndef EPM_REGISTER_HANDLER_CUSTOM
|
||||
#define EPM_REGISTER_HANDLER_CUSTOM
|
||||
#include <epm/epm.h>
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
#endif
|
||||
extern DLLAPI int registerHandler(int *, va_list);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
// SB.cpp : 定义控制台应用程序的入口点。
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -0,0 +1,60 @@
|
||||
<?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="Register_handler.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="SB_handler.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="string_helper.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SB.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Main_lib.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Register_handler.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SB_handler.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="string_helper.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SB6_PR_AutoAssign.cpp">
|
||||
<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>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,84 @@
|
||||
#pragma once
|
||||
#include <ae/ae.h>
|
||||
#include <ae/dataset.h>
|
||||
#include <bom/bom.h>
|
||||
#include <cfm\cfm.h>
|
||||
#include <ctime>
|
||||
#include <epm/signoff.h>
|
||||
#include <epm/epm.h>
|
||||
#include <epm/epm_toolkit_tc_utils.h>
|
||||
#include <ps/ps.h>
|
||||
#include <ps/vrule.h>
|
||||
#include <sa/sa.h>
|
||||
#include <sa/am.h>
|
||||
#include <sstream>
|
||||
#include <tccore/aom.h>
|
||||
#include <tccore/aom_prop.h>
|
||||
#include <tccore/custom.h>
|
||||
#include <tccore/grm.h>
|
||||
#include <tccore/item.h>
|
||||
#include <tccore/workspaceobject.h>
|
||||
#include <tccore//grm.h>
|
||||
#include <tccore/grmtype.h>
|
||||
#include <tccore/uom.h>
|
||||
#include <fclasses/tc_basic.h>
|
||||
#include <tc/tc.h>
|
||||
#include <tc/folder.h>
|
||||
#include <tc/tc_util.h>
|
||||
#include <tc/preferences.h>
|
||||
#include <time.h>
|
||||
#include <ict/ict_userservice.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <locale>
|
||||
#include <codecvt>
|
||||
#include <iostream>
|
||||
#include <regex>
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <fstream>
|
||||
#include <ctype.h>
|
||||
#include <algorithm>
|
||||
#include <io.h>
|
||||
#include <property/prop_errors.h>
|
||||
#include <fclasses/tc_date.h>
|
||||
#include <ics/ics.h>
|
||||
#include <ics/ics2.h>
|
||||
#include <rdv/arch.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <tccore\item.h>
|
||||
#include <property\prop.h>
|
||||
#include <property\propdesc.h>
|
||||
#include <property\prop_errors.h>
|
||||
#include <property\prop_msg.h>
|
||||
#include <property\PropertyInfo.hxx>
|
||||
#include <pom\pom\pom.h>
|
||||
#include <pom\pom\pom_errors.h>
|
||||
extern "C" int POM_AM__set_application_bypass(logical bypass);
|
||||
|
||||
|
||||
int Lao(EPM_action_message_t msg);
|
||||
int Lao_excute_pdf(tag_t dateset, char *file_path, char *file_name, char* ext);
|
||||
int Xin(EPM_action_message_t msg);
|
||||
int Xin_excute_pdf(tag_t dateset, char *file_path, char *file_name, char* ext);
|
||||
|
||||
int convertToPDF(EPM_action_message_t msg);
|
||||
void startConversion(tag_t item_rev_tag, tag_t dataset, tag_t rel_tag, char *ref_name, char *ext, char *jar_name);
|
||||
void importPdf2(tag_t rev_tag, tag_t rel_tag, const char* pdfFile, char* datasetName, char* pdfName, tag_t owner_user);
|
||||
void import_dataset_file(tag_t dataset, char* ref_name, char* ext, char* fullfilename, char* original_name);
|
||||
|
||||
int SB_controlled_Lao(EPM_action_message_t msg);
|
||||
int SB_controlled_Xin(EPM_action_message_t msg);
|
||||
int SB6_PR_AutoAssign(EPM_action_message_t msg);
|
||||
int Origin_CheckTask_handler2(EPM_rule_message_t msg);
|
||||
void singoff_picture(tag_t item_rev_tag, tag_t dataset, tag_t rel_tag, char *ref_name, char *ext, char *jar_name, char *dat_file);
|
||||
void getVector(const char* value, std::vector<std::string>& targetVector, char delimiter);
|
@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : 只包括标准包含文件的源文件
|
||||
// SB.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,96 @@
|
||||
/**
|
||||
* @file string_helper.cpp
|
||||
* @brief string utility functions' implemention
|
||||
* @author James
|
||||
* @history
|
||||
* ===================================================================================
|
||||
* Date Name Description of Change
|
||||
* 09-July-2008 James
|
||||
* 14-Jau-2009 James modify Split functions, add trim blank characters
|
||||
*/
|
||||
#pragma warning(disable:4996)
|
||||
#include "string_helper.h"
|
||||
|
||||
string TrimString(string strArg)
|
||||
{
|
||||
size_t index1 = 0;
|
||||
index1 = strArg.find_first_not_of(' ');
|
||||
if (index1 != string::npos)
|
||||
strArg.erase(strArg.begin(), strArg.begin() + index1);
|
||||
index1 = strArg.find_last_not_of(' ');
|
||||
if (index1 != string::npos)
|
||||
strArg.erase(strArg.begin() + index1 + 1);
|
||||
return strArg;
|
||||
}
|
||||
|
||||
void Split(string strArg, char spliter, vector<string>& ans)
|
||||
{
|
||||
ans.clear();
|
||||
size_t index0 = 0;
|
||||
string one_arg;
|
||||
if (strArg.find_first_not_of(' ') == string::npos)
|
||||
strArg = "";
|
||||
while (strArg.size() > 0)
|
||||
{
|
||||
index0 = strArg.find_first_of(spliter);
|
||||
if (index0 != string::npos)
|
||||
{
|
||||
one_arg = strArg.substr(0, index0);
|
||||
strArg = strArg.substr(index0 + 1);
|
||||
ans.push_back(one_arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
ans.push_back(strArg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Split(string strArg, string spliter, vector<string>& ans)
|
||||
{
|
||||
|
||||
ans.clear();
|
||||
|
||||
size_t index0;
|
||||
string one_arg;
|
||||
|
||||
if (strArg.find_first_not_of(" ") == string::npos)
|
||||
strArg = "";
|
||||
|
||||
|
||||
while (strArg.size() > 0)
|
||||
{
|
||||
|
||||
index0 = strArg.find(spliter);
|
||||
|
||||
if (index0 != string::npos)
|
||||
{
|
||||
|
||||
one_arg = strArg.substr(0, index0);
|
||||
strArg = strArg.substr(index0 + spliter.size());
|
||||
|
||||
ans.push_back(one_arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
ans.push_back(strArg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RemoveLiner(string& in, string& out)
|
||||
{
|
||||
char buf[BUFSIZ] = "";
|
||||
for (int i = 0; i < (int)in.size(); i++)
|
||||
{
|
||||
if (in[i] == '\n')
|
||||
continue;
|
||||
else
|
||||
sprintf(buf, "%s%c", buf, in[i]);
|
||||
}
|
||||
out.assign(buf);
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @file string_helper.h
|
||||
* @brief string utilities to help dealing with string
|
||||
* @author James
|
||||
* @history
|
||||
* ===================================================================================
|
||||
* Date Name Description of Change
|
||||
* 09-July-2008 James
|
||||
*/
|
||||
|
||||
#ifndef STRING_HELPER
|
||||
#define STRING_HELPER
|
||||
#include <string>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
string TrimString(string strArg);
|
||||
void Split(string strArg, char spliter, vector<string>& ans);
|
||||
void Split(string strArg, string spliter, vector<string>& ans);
|
||||
void RemoveLiner(string& in, string& out);
|
||||
|
||||
#endif
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,21 @@
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\vc142.pdb
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\string_helper.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\stdafx.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb_handler.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb6_pr_autoassign.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\register_handler.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\main_lib.obj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\x64\release\sb.dll
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.ipdb
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.iobj
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\x64\release\sb.pdb
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\x64\release\sb.lib
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\x64\release\sb.exp
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\cl.command.1.tlog
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\cl.read.1.tlog
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\cl.write.1.tlog
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\link.command.1.tlog
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\link.read.1.tlog
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\link.write.1.tlog
|
||||
e:\itk_workspace\itk\世宝\杭州世宝\sb\sb\sb\x64\release\sb.tlog\sb.write.1u.tlog
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>E:\ITK_WorkSpace\ITK\世宝\杭州世宝\SB\SB\x64\Release\SB.dll</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
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,2 @@
|
||||
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:TargetPlatformVersion=10.0.19041.0:
|
||||
Release|x64|E:\ITK_WorkSpace\ITK\世宝\杭州世宝\SB\SB\|
|
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