DynamicObject org = objects[0]["PurchaseOrgId"] as DynamicObject;
List<GetExpectQtyArgs> queryExpectQtyArgs = new List<GetExpectQtyArgs>();
queryExpectQtyArgs.Add(new GetExpectQtyArgs()
{
StockOrgId = Convert.ToInt64(row["FStockOrgId_Id"]),
MaterialId = Convert.ToInt64(ma["Id"]),
MaterialMasterId = Convert.ToInt64(ma["msterID"]),
}); ;
//查询预计可发库存
var results = ExpectQtyQueryServiceHelper.GetExpectQty(this.Context, queryExpectQtyArgs);
if (results.Count > 0)
{
args.FormateValue = results[0].ExpectQty.ToString("F2");
}
推荐阅读