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.
119 lines
3.3 KiB
119 lines
3.3 KiB
#include <vector>
|
|
#include <map>
|
|
#include <string>
|
|
#include <ict/ict_userservice.h>
|
|
#include <tccore/item_errors.h>
|
|
#include <tc/preferences.h>
|
|
#include <bom/bom_msg.h>
|
|
#include <tccore/tc_msg.h>
|
|
#include <bom/bom.h>
|
|
#include <ics/ics.h>
|
|
#include <ics/ics2.h>
|
|
|
|
#include <time.h>
|
|
#define EPM_HANDLER_COMMON
|
|
#include <epm/epm.h>
|
|
using namespace std;
|
|
|
|
|
|
|
|
#define ERROR_QRY_NOT_FOUND (EMH_USER_error_base + 120)
|
|
|
|
struct FlowBean {
|
|
vector<tag_t> 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<tag_t> flow_combine_list;
|
|
};
|
|
//int readBomMsg(vector<tag_t> uidList,char * groupName,char* groupUid, char*code, char*userName);
|
|
|
|
void getCcpAndBom(vector<tag_t> 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<string>& ans);
|
|
char* getGXNR(tag_t gxLine);
|
|
FlowBean getClone(FlowBean oldBean);
|
|
void getSort(vector<FlowBean>& flowBeans);
|
|
void getSort(vector<char*>& materials);
|
|
|
|
tag_t getSAPPart(tag_t rev, char* groupName);
|
|
tag_t getZYDesign(tag_t rev);
|
|
boolean vecContains(vector<string> 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<tag_t> addLastRev(map<tag_t, vector<tag_t>> items2);
|
|
|
|
void SAPZYGG2(vector<tag_t> ccpVector, char* projectNo, char* groupName, char* wbs,
|
|
char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName);
|
|
|
|
void SAPZZNewOp(vector<tag_t> ccpVector, char* projectNo, char* groupName, char* wbs,
|
|
char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* type, vector<string> dists, char* projectName);
|
|
|
|
void getKTBom(vector<tag_t> ccpVector, char* projectNo, char* groupName, char* wbs,
|
|
char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName);
|
|
|
|
void BomSapWh(vector<tag_t> ccpVector, char* projectNo, char* groupName, char* wbs,
|
|
char* now, string& errMsgBuf, char*code, char* transfer, char* userName, char* projectName);
|
|
|
|
void SAPPartZYOp2(vector<tag_t> 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<WL_ZJ> zjs;
|
|
};
|
|
|
|
|
|
|