#ifndef CUST_CS_H #define CUST_CS_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //add by Tim 20130409 #include #include //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