diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs index e1d30040..3ec68e33 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs @@ -1055,17 +1055,21 @@ namespace FineUIPro.Web.CQMS.ManageReportNew { DataTable source = ObjectToTable(Grid9.DataSource); int Quantity1Total = 0, Quantity2Total = 0; - foreach (DataRow row in source.Rows) + if (source!=null) { - Quantity1Total += Convert.ToInt32(row["Quantity1"]); - Quantity2Total += Convert.ToInt32(row["Quantity2"]); - } + foreach (DataRow row in source.Rows) + { + Quantity1Total += Convert.ToInt32(row["Quantity1"]); + Quantity2Total += Convert.ToInt32(row["Quantity2"]); + } - JObject summary = new JObject(); - summary.Add("UnitOrMajor", "合计"); - summary.Add("Quantity1", Quantity1Total.ToString()); - summary.Add("Quantity2", Quantity2Total.ToString()); - Grid9.SummaryData = summary; + JObject summary = new JObject(); + summary.Add("UnitOrMajor", "合计"); + summary.Add("Quantity1", Quantity1Total.ToString()); + summary.Add("Quantity2", Quantity2Total.ToString()); + Grid9.SummaryData = summary; + } + } public static DataTable ObjectToTable(object obj) diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index 9fc55c34..963148f2 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -12,7 +12,7 @@ - + @@ -77,7 +77,7 @@ - + diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx b/SGGL/FineUIPro.Web/common/main_new.aspx index 5797a135..5cd7f954 100644 --- a/SGGL/FineUIPro.Web/common/main_new.aspx +++ b/SGGL/FineUIPro.Web/common/main_new.aspx @@ -107,8 +107,8 @@ -
-
关键事项 更多>
+
+
关键事项 更多>