Work order as finished 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;
}

Guess you like

Origin www.cnblogs.com/xtwkh1973/p/10990283.html