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.
245 lines
2.9 KiB
245 lines
2.9 KiB
#ifndef CUST_CS_H
|
|
|
|
#define CUST_CS_H
|
|
|
|
|
|
|
|
#include <constants/constants.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <epm/epm.h>
|
|
|
|
#include <tccore/custom.h>
|
|
|
|
#include <ict/ict_userservice.h>
|
|
|
|
#include <itk/mem.h>
|
|
|
|
#include <tc/iman_arguments.h>
|
|
|
|
#include <tc/emh.h>
|
|
|
|
#include <sa/sa.h>
|
|
|
|
#include <tccore/item.h>
|
|
|
|
#include <bom/bom_attr.h>
|
|
|
|
#include <tccore/grmtype.h>
|
|
|
|
#include <tccore/imantype.h>
|
|
|
|
#include <tccore/aom_prop.h>
|
|
|
|
#include <sa/tcfile.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <tc/preferences.h>
|
|
|
|
|
|
|
|
//add by Tim 20130409
|
|
|
|
#include <lov.h>
|
|
|
|
#include <lov_msg.h>
|
|
|
|
//end add
|
|
|
|
|
|
|
|
#include "hi2_coding.h"
|
|
|
|
#include "hi2_auto.h"
|
|
|
|
#include "hi2_prod_code.h"
|
|
|
|
#include "hi2_prod_code_kt.h"
|
|
|
|
#include "hi2_autosign.h"
|
|
|
|
#include "hi2_up_and_down.h"
|
|
|
|
#include "update_dateproperty_one.h"
|
|
|
|
#include "update_formproperty_one.h"
|
|
|
|
#include "hi2_check_req.h"
|
|
|
|
#include "hi2_sap.h"
|
|
|
|
#include "hi2_prod_model.h"
|
|
|
|
#include "hi2_auto_class.h"
|
|
|
|
#include "hi2_remove_reviews.h"
|
|
|
|
#include "hi2_test_bomline.h"
|
|
|
|
#include "mdm_send_message.h"
|
|
|
|
#include "hi2_check_order.h"
|
|
|
|
|
|
|
|
//add by Tim 20130409
|
|
|
|
|
|
|
|
#define USER_ERROR (EMH_USER_error_base + 002)
|
|
|
|
|
|
|
|
#define MAX_PATH_LENGTH 1000
|
|
|
|
#define MAX_PRINTLINE_LENGTH 2000
|
|
|
|
#define SENDING_CMD_SIZE 20000
|
|
|
|
|
|
|
|
#define CHECK_STATUS "-check_status="
|
|
|
|
#define RELATION_NAME "-relation="
|
|
|
|
#define SEND_ERP_MODE "-erp_mode="
|
|
|
|
#define ARG_CM_TYPE_NAME "-cm_rev_type="
|
|
|
|
#define ARG_KM_PROP_NAME "-km_prop_name="
|
|
|
|
|
|
|
|
#define PART_IDENTIFY_REVISION_TYPE "HI2_LBJRD_LGRevision"
|
|
|
|
#define PART_REVISION_TYPE "HI2_LBJ_LGRevision"
|
|
|
|
#define PART_ID_PROP_NAME "hi2_LBJRD_LGRev_00"
|
|
|
|
#define SUPPLIER_PROP_NAME "hi2_LBJRD_LGRev_04"
|
|
|
|
#define RALTION_SUPPLIER_PART ""
|
|
|
|
|
|
|
|
#define PROP_PART_ID "hi2_GZMJ_LGRev_21"
|
|
|
|
#define PROP_PART_REV "hi2_GZMJ_LGRev_30"
|
|
|
|
|
|
|
|
void common_get_prefix(char* input, char bot, char* prefix);
|
|
|
|
int get_rev_master(tag_t item_rev, tag_t* form_tag);
|
|
|
|
|
|
|
|
//end add
|
|
|
|
|
|
|
|
#define SAFECALL(x) \
|
|
|
|
{ \
|
|
|
|
err_function = #x; err_line = __LINE__; \
|
|
|
|
if((rcode = (x)) != ITK_ok) \
|
|
|
|
{ \
|
|
|
|
goto CLEANUP; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define TCFREE(obj) { \
|
|
|
|
if(obj) { \
|
|
|
|
MEM_free(obj); \
|
|
|
|
obj = NULL; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define FREE(obj) { \
|
|
|
|
if(obj) { \
|
|
|
|
free(obj); \
|
|
|
|
obj = NULL; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DOFREE(obj) \
|
|
|
|
{ \
|
|
|
|
if(obj) \
|
|
|
|
{ \
|
|
|
|
MEM_free(obj); \
|
|
|
|
obj = NULL; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DOFREE_STRINGS(obj) \
|
|
|
|
{ \
|
|
|
|
if(obj) \
|
|
|
|
{ \
|
|
|
|
TC_free_strings(obj); \
|
|
|
|
obj = NULL; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define CLOSEFILE(filePtr) \
|
|
|
|
{ \
|
|
|
|
if(filePtr) \
|
|
|
|
{ \
|
|
|
|
fclose(filePtr); \
|
|
|
|
filePtr = NULL; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|