diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjReport/DayWhiteEmbryo/GhWuLiaoInitDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjReport/DayWhiteEmbryo/GhWuLiaoInitDb.cs index 46e22b3..c961a1a 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjReport/DayWhiteEmbryo/GhWuLiaoInitDb.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjReport/DayWhiteEmbryo/GhWuLiaoInitDb.cs @@ -49,8 +49,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjReport.DayWhiteEmbryo - + SelectButton_Click(new object(),new EventArgs()); diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectRowAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectRowAction.cs index d5151ac..dd234bf 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectRowAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectRowAction.cs @@ -102,19 +102,28 @@ namespace Mesnac.Action.ChemicalWeighing.Report.DryMixer dbHelper.AddParameter("@reportId", lR_planID); DataTable table = dbHelper.ToDataTable(); - string bathNo = ""; + string bathNo = "0"; foreach (DataRow row in table.Rows) { - string a= row["批次号"].ToString().Trim(); + string a = row["批次号"].ToString().Trim(); if (a != "0") { - bathNo = a; + bathNo=a; break; } - else + } + + + + + foreach (DataRow row in table.Rows) + { + string a= row["批次号"].ToString().Trim(); + if (a == "0") { row["批次号"] = bathNo; } + row["实际重量"]= Convert.ToSingle(row["实际重量"]).ToString("#0.00"); row["实际公差"] = Convert.ToSingle(row["实际公差"]).ToString("#0.00");