You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.3 KiB

/**
* @addtogroup batch service
* @{
*/
/**
* @file erp_utils.h
*
* @brief import item from middle table
*
* @author Ray Li
*
* @history
* ===================================================================================
* Date Name Description of Change
* 3-Feb-2015 Ray created
*/
/**
* @headerfile tcua 头文件
*/
#include <ict/ict_userservice.h>
#include <tccore/item.h>
#include <ae/ae.h>
#include <tc/folder.h>
#include <tccore/aom.h>
#include <pom/pom/pom.h>
#include <sa/sa.h>
#include <tccore/aom_prop.h>
#include <property/prop_errors.h>
#include <tccore/workspaceobject.h>
#include <tc/preferences.h>
#include <tccore/imantype.h>
#include <tccore//grm.h>
#include <tccore/grmtype.h>
#include <sa/am.h>
#include <cfm/cfm.h>
#include <bom/bom.h>
#include <tccore/uom.h>
#include <ps/ps.h>
#include <epm/epm.h>
#include <epm/signoff.h>
#include <epm/epm_task_template_itk.h>
#include <epm/epm_toolkit_tc_utils.h>
#include <fclasses/tc_date.h>
#include <tcinit/tcinit.h>
#include <ics/ics.h>
#include <ics/ics2.h>
#include <pom/enq/enq.h>
/**
* @headerfile standard c & cpp header files
*/
#include <time.h>
#include <string>
#include <vector>
#include <map>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <io.h>
#include <direct.h>
#include <tccore/method.h>
#include <tccore/tc_msg.h>
#include <tccore/iman_msg.h>
using namespace std;
//erp table name
#define PART_INFO_TABLE "ERP_PART_INFO_TABLE"
#define PREF_JF3_ERP_DB_Login_Info "TM2_ERP_DB_Login_Info"
#define CUST_CP_NAME_PROPS "Cust_ERP_PLM_CP_Name_Props"//成品名称规则
#define CUST_CP_GG_PROPS "Cust_ERP_PLM_CP_GG_Props"//成品规格规则
#define CUST_BCP_NAME_PROPS "Cust_ERP_PLM_BCP_Name_Props"//半成品名称规格
#define CUST_BCP_GG_PROPS "Cust_ERP_PLM_BCP_GG_Props"//半成品规格规则
#define CUST_YCL_NAME_PROPS "Cust_ERP_PLM_YCL_NAME_Props"//原材料名称规则
#define CUST_WL_PROPS "Cust_ERP_PLM_WL_Props"//物料JAVA取属性规则
//error
#define ERROR_PREFERENCE_ERROR (EMH_USER_error_base + 1)
#define ERROR_ERP_LOGIN_FAIL (EMH_USER_error_base + 2)
//ERP
#define ERROR_OCI_FAIL (EMH_USER_error_base + 11)
#ifdef __cplusplus
extern "C"
{
#endif
int getPrefStrings( const char *preference, TC_preference_search_scope_t scope, vector<string> &pref_vec );
#ifdef __cplusplus
}
#endif