质量月报修改

This commit is contained in:
潘鸿锋 2024-04-29 09:30:34 +08:00
parent 34b758f841
commit 1a2bcf6e3f
1 changed files with 13 additions and 9 deletions

View File

@ -1055,6 +1055,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
{
DataTable source = ObjectToTable(Grid9.DataSource);
int Quantity1Total = 0, Quantity2Total = 0;
if (source!=null)
{
foreach (DataRow row in source.Rows)
{
Quantity1Total += Convert.ToInt32(row["Quantity1"]);
@ -1068,6 +1070,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
Grid9.SummaryData = summary;
}
}
public static DataTable ObjectToTable(object obj)
{
try