首页 > 技术文章 > 工单完工入库Job

xtwkh1973 2019-06-08 11:32 原文

static void WL_YZF_ProdTableFinishingTest(Args _args)
{
ProdTable prodTable = ProdTable::find("prodId");
ProdParmReportFinished reportFinished;
ProdTableType tableType = ProdTableType::construct(prodTable);
InventDim inventDim;
;
inventDim.InventLocationId = "1";
inventDim.wMSLocationId = "A1";
ttsbegin;
reportFinished.clear();
reportFinished.initValue();
reportFinished.initFromProdTable(prodTable);
reportFinished.initParmDefault();
reportFinished.EndJob = NoYes::No;
reportFinished.QtyGood = 10;
reportFinished.InventDimId = InventDim::findOrCreate(inventDim).inventDimId;
reportFinished.insert();
tableType.runReportFinished(reportFinished);
ttscommit;
}

推荐阅读