数据填充的代码
int startrow = sh3.Rows.Count;
sh3.Rows.Add(sh3.Rows.Count, list.Count);
foreach (var o in list)
{
sh3.Cells[startrow, lastinfo.x.上阶工单].Value = o.SFB86;//
sh3.Cells[startrow, lastinfo.x.排产工单].Value = o.SFA01;//
sh3.Cells[startrow, lastinfo.x.料号].Value = o.SFA03;//
sh3.Cells[startrow, lastinfo.x.替代码].Value = o.SFA26;//
sh3.Cells[startrow, lastinfo.x.发料单位].Value = o.SFA12;//
sh3.Cells[startrow, lastinfo.x.应发量].Value = o.SFA05;//
sh3.Cells[startrow, lastinfo.x.已发量].Value = o.SFA06;//
sh3.Cells[startrow, lastinfo.x.滚动累计].Value = o.QTY;//
sh3.Cells[startrow, lastinfo.x.可用量合计].Value = o.ALLQTY;//
sh3.Cells[startrow, lastinfo.x.余量].Value = o.OK;//
sh3.Cells[startrow, lastinfo.x.库存量].Value = o.IMG10;//
sh3.Cells[startrow, lastinfo.x.IQC量].Value = o.IQC;//
sh3.Cells[startrow, lastinfo.x.多拿料].Value = o.DUONA;//
sh3.Cells[startrow, lastinfo.x.优先度].Value = o.SN;//
sh3.Cells[startrow, lastinfo.x.顺序].Value = o.RN;//
startrow++;
} |