#include #include #include #include #include #include #include #include #include #include #include #include #define EPM_HANDLER_COMMON #include using namespace std; #define ERROR_QRY_NOT_FOUND (EMH_USER_error_base + 120) struct FlowBean { vector flowList; tag_t flow_split = NULLTAG; tag_t flow_combine = NULLTAG; tag_t flow_end = NULLTAG; char* BEZFL; // ²Î¿¼Ë³Ðò string PLNFL = ""; // ÐòÁÐ boolean isMain = true; boolean isOther = false; vector flow_combine_list; }; //int readBomMsg(vector uidList,char * groupName,char* groupUid, char*code, char*userName); void getCcpAndBom(vector ccpVector, char* projectNo, char* groupName, char* wbs, char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName, bool isDY); void Split(string strArg, string spliter, vector& ans); char* getGXNR(tag_t gxLine); FlowBean getClone(FlowBean oldBean); void getSort(vector& flowBeans); void getSort(vector& materials); tag_t getSAPPart(tag_t rev, char* groupName); tag_t getZYDesign(tag_t rev); boolean vecContains(vector vec, string str); char* getZYSAPMENGE(tag_t design, tag_t part, tag_t line, boolean isBottom, char* codeMark, string& errMsg); tag_t getBOMPart(tag_t line, char* groupName); vector addLastRev(map> items2); void SAPZYGG2(vector ccpVector, char* projectNo, char* groupName, char* wbs, char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName); void SAPZZNewOp(vector ccpVector, char* projectNo, char* groupName, char* wbs, char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* type, vector dists, char* projectName); void getKTBom(vector ccpVector, char* projectNo, char* groupName, char* wbs, char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName); void BomSapWh(vector ccpVector, char* projectNo, char* groupName, char* wbs, char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName); void SAPPartZYOp2(vector ccpVector, char* projectNo, char* groupName, char* wbs, char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* type, char* projectName); void SAPBYOperation(tag_t target, char* groupName, char* now, char* code, char* wbs, char* userName, char* projectName); void SAPZYGGOperation(tag_t target, char* groupName, char* now, char* code, char* wbs, char* userName, char* projectName); void BomSapWhBjOp(tag_t target, char* groupName, char* now, char* code, char* wbs, char* userName, char* projectName); typedef struct { string ID; }DFL_ID; struct FLOW { string timeinfo; string userid; string type; }; struct WL_ITEM { string item_id; string item_name; string item_spec; string item_groupCode; string item_unit; string item_sourceCode; string item_brand; string item_rev; string oldMateriel; string item_uid; tag_t item_tag; string item_type; }; struct WL_ZJ { string zi_id; string last_mod_date; string yonglian; string work_id; string chajian_id; string beizhu_re; string plmkey; }; struct WL_BOM { string fu_id; string fu_uid; vector zjs; };