报表的bug

dep
我叫锄头 1 year ago
parent 43c24074d8
commit 4a8e833157

@ -109,16 +109,22 @@ t1.actValue as 实际重量,t1.actToler as 实际公差
dbHelper.AddParameter("@reportId", lR_planID);
DataTable table = dbHelper.ToDataTable();
string bathNo = "";
string bathNo = "0";
foreach (DataRow item in table.Rows)
foreach (DataRow row in table.Rows)
{
string a = item["批次号"].ToString().Trim();
string a = row["批次号"].ToString().Trim();
if (a != "0")
{
bathNo = a;
bathNo = a; break;
}
else
}
foreach (DataRow item in table.Rows)
{
string a = item["批次号"].ToString().Trim();
if (a == "0")
{
item["批次号"] = bathNo;
}

Loading…
Cancel
Save