工单完工入库Job

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;
}
posted @ 2019-06-08 11:32  学习是进步的阶梯  阅读(265)  评论(0编辑  收藏  举报