|
|
|
@ -108,8 +108,21 @@ t1.actValue as 实际重量,t1.actToler as 实际公差
|
|
|
|
|
dbHelper.CommandType = System.Data.CommandType.Text;
|
|
|
|
|
dbHelper.AddParameter("@reportId", lR_planID);
|
|
|
|
|
DataTable table = dbHelper.ToDataTable();
|
|
|
|
|
|
|
|
|
|
string bathNo = "";
|
|
|
|
|
|
|
|
|
|
foreach (DataRow item in table.Rows)
|
|
|
|
|
{
|
|
|
|
|
string a = item["批次号"].ToString().Trim();
|
|
|
|
|
if (a != "0")
|
|
|
|
|
{
|
|
|
|
|
bathNo = a;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
item["批次号"] = bathNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var dr = tableNew.NewRow();
|
|
|
|
|
dr["批次号"] = item["批次号"];
|
|
|
|
|
dr["物料"] = item["物料"];
|
|
|
|
|