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.
90 lines
2.2 KiB
90 lines
2.2 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)
|
|
|
|
//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);
|
|
void Split(string strArg, string spliter, vector<string>& ans);
|
|
|
|
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);
|
|
|
|
void getKTBom(vector<tag_t> ccpVector, char* projectNo, char* groupName, char* wbs,
|
|
char* now, string& errMsgBuf, char*code, char* transfer, 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;
|
|
};
|
|
|
|
|
|
|