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.
62 lines
995 B
62 lines
995 B
#include "tc_util.h"
|
|
//#include "util.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
{
|
|
string ebCnCode;
|
|
string ebUpperId;
|
|
string ebLine;
|
|
string ebGoodsCode;
|
|
string ebQty;
|
|
string ebTeRe;
|
|
string ebSign;
|
|
string edId;
|
|
tag_t rev;
|
|
tag_t item;
|
|
|
|
}CcemEb_child;
|
|
|
|
typedef struct
|
|
{
|
|
string ebGoodsCode;
|
|
string ebCnCode;
|
|
string ebTeRe;
|
|
string zt2_MaterialNo;
|
|
string ebId;
|
|
vector<CcemEb_child> childs;
|
|
tag_t rev;
|
|
tag_t item;
|
|
}CcemEb_parent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*诚创数据库连接*/
|
|
typedef struct
|
|
{
|
|
//string url = "10.128.10.135:1433:1433@CHINT_DB";
|
|
//string user = "PLMUser";
|
|
//string password = "PLMUser";
|
|
} dbProperties_CC;
|
|
|
|
|
|
typedef struct
|
|
{
|
|
tag_t factoryNo; //出厂编号对象
|
|
string factoryNo_id; //出厂编号ID
|
|
vector<string> list_FnCnCodes; //规范书号
|
|
vector<CcemEb_parent> boms; //规范书对应的BOM
|
|
|
|
}CcemFactoryBean;
|
|
|
|
bool isEmpty(const char str);
|
|
bool isEmpty(string &str);
|
|
std::string format(const char *pszFmt, ...);
|
|
//查询
|
|
int queryResult(string queryName, map<string, string> fields, vector<tag_t> *result); |