标签:odi update ons art rod stat com lin commit
static void startMo(Args _args)
{
ProdParmStartUp prodParmStartUp;
ProdTable prodTable = prodTable::find("WRK3-18-016899");
ProdTableType tableType = ProdTableType::construct(prodTable);
;
ttsbegin;
prodParmStartUp.clear();
prodParmStartUp.initValue();
prodParmStartUp.initParmDefault();
prodParmStartUp.ProdId = prodTable.ProdId;
prodParmStartUp.StartUpQty = 10;
prodParmStartUp.BOMJournalNameId = "pick";
prodParmStartUp.insert();
tableType.runStartUp(prodParmStartUp);
ttscommit;
}
一句代码更新开始工单:
ProdTable prodTable = prodTable::find("prodId");
prodTable.autoUpdate(ProdStatus::StartedUp);
工单更新开始代码
标签:odi update ons art rod stat com lin commit
原文地址:https://www.cnblogs.com/xtwkh1973/p/10990243.html