_table.Columns.Add("QtyReceipt");
_table.Columns.Add("QtyBalance");
DataTable tableQtyReceipt = GetQtyReceiptSummary();
DataTable tableQtyBalance = GetQtyBalanceSummary();
DataRow row = null;
foreach (DataRow dataRow in _table.Rows)
{
row = tableQtyReceipt.Rows.Find(new object[] { Convert.ToString(dataRow["ReqNo"]), Convert.ToDecimal(dataRow["EntryNo"]) });
if (row != null)
dataRow["QtyReceipt"] = Convert.ToDecimal(row["QtyReceipt"]);
row = tableQtyBalance.Rows.Find(new object[] { Convert.ToString(dataRow["ItemNo"])});
if (row != null)
dataRow["QtyBalance"] = Convert.ToDecimal(row["QtyBalance"]);
}
DataTable相关代码整理
最新推荐文章于 2022-07-06 13:17:19 发布