This commit is contained in:
parent
2f9728e457
commit
e48087673e
|
@ -357,6 +357,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim());
|
DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim());
|
||||||
DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim());
|
DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim());
|
||||||
var units21 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var units21 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
|
var units22 = units.Where(x => x.UnitId != Const.UnitId_CWCEC && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)).ToList();
|
||||||
var units2 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
var units2 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||||
|
|
||||||
var remarks = loadRemarksDt();
|
var remarks = loadRemarksDt();
|
||||||
|
@ -461,7 +462,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
|
|
||||||
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
||||||
|
@ -529,7 +530,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -1340,7 +1341,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -1956,12 +1957,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var item in units22)
|
||||||
|
|
||||||
foreach (var item in units21)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
Model.CheckStatisc checkStatisc = new Model.CheckStatisc();
|
Model.CheckStatisc checkStatisc = new Model.CheckStatisc();
|
||||||
checkStatisc.Id = Guid.NewGuid().ToString();
|
checkStatisc.Id = Guid.NewGuid().ToString();
|
||||||
checkStatisc.ReportId = ReportId;
|
checkStatisc.ReportId = ReportId;
|
||||||
|
@ -1971,8 +1968,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
checkStatisc.CheckNum = Quantity1Dic[item.UnitId];
|
checkStatisc.CheckNum = Quantity1Dic[item.UnitId];
|
||||||
checkStatisc.TotalCheckNum = Quantity2Dic[item.UnitId];
|
checkStatisc.TotalCheckNum = Quantity2Dic[item.UnitId];
|
||||||
checkStatisc.OKNum = Quantity3Dic[item.UnitId]; ;
|
checkStatisc.OKNum = Quantity3Dic[item.UnitId]; ;
|
||||||
checkStatisc.TotalOKNum = Quantity4Dic[item.UnitId]; ;
|
checkStatisc.TotalOKNum = Quantity4Dic[item.UnitId];
|
||||||
|
|
||||||
}
|
}
|
||||||
if (checkStatisc.CheckNum != 0)//被除数不能为零
|
if (checkStatisc.CheckNum != 0)//被除数不能为零
|
||||||
{
|
{
|
||||||
|
@ -2004,8 +2000,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
OKNum += checkStatisc.OKNum;
|
OKNum += checkStatisc.OKNum;
|
||||||
TotalOKNum += checkStatisc.TotalOKNum;
|
TotalOKNum += checkStatisc.TotalOKNum;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gvInspectionDataInspection.DataSource = list;
|
gvInspectionDataInspection.DataSource = list;
|
||||||
|
@ -2082,7 +2076,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
Quantity2Dic[UnitId] = Quantity2Dic[UnitId] + PressurePipeNumber;
|
Quantity2Dic[UnitId] = Quantity2Dic[UnitId] + PressurePipeNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -2158,10 +2152,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + IssuedReportNumber;
|
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + IssuedReportNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
model.ContentName = item.UnitName;
|
model.ContentName = item.UnitName;
|
||||||
|
@ -2238,7 +2230,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + MonitoringReportNumber;
|
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + MonitoringReportNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -2334,6 +2326,10 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
foreach (var item in units)
|
foreach (var item in units)
|
||||||
{
|
{
|
||||||
|
if (item.UnitId == Const.UnitId_CWCEC)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc();
|
Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc();
|
||||||
NCRStatisc.Id = Guid.NewGuid().ToString();
|
NCRStatisc.Id = Guid.NewGuid().ToString();
|
||||||
NCRStatisc.WorkName = item.UnitName;
|
NCRStatisc.WorkName = item.UnitName;
|
||||||
|
@ -2428,7 +2424,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
|
|
||||||
var ClosedCount = 0;
|
var ClosedCount = 0;
|
||||||
|
|
|
@ -329,6 +329,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim());
|
DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim());
|
||||||
DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim());
|
DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim());
|
||||||
var units21 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var units21 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
|
var units22 = units.Where(x => x.UnitId != Const.UnitId_CWCEC && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)).ToList();
|
||||||
var units2 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
var units2 = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||||
|
|
||||||
var remarks = loadRemarksDt();
|
var remarks = loadRemarksDt();
|
||||||
|
@ -433,7 +434,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
|
|
||||||
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
||||||
|
@ -501,7 +502,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -1312,7 +1313,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -1928,12 +1929,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var item in units22)
|
||||||
|
|
||||||
foreach (var item in units21)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
Model.CheckStatisc checkStatisc = new Model.CheckStatisc();
|
Model.CheckStatisc checkStatisc = new Model.CheckStatisc();
|
||||||
checkStatisc.Id = Guid.NewGuid().ToString();
|
checkStatisc.Id = Guid.NewGuid().ToString();
|
||||||
checkStatisc.ReportId = ReportId;
|
checkStatisc.ReportId = ReportId;
|
||||||
|
@ -1976,8 +1973,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
OKNum += checkStatisc.OKNum;
|
OKNum += checkStatisc.OKNum;
|
||||||
TotalOKNum += checkStatisc.TotalOKNum;
|
TotalOKNum += checkStatisc.TotalOKNum;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gvInspectionDataInspection.DataSource = list;
|
gvInspectionDataInspection.DataSource = list;
|
||||||
|
@ -2054,7 +2049,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
Quantity2Dic[UnitId] = Quantity2Dic[UnitId] + PressurePipeNumber;
|
Quantity2Dic[UnitId] = Quantity2Dic[UnitId] + PressurePipeNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -2130,10 +2125,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + IssuedReportNumber;
|
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + IssuedReportNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
model.ContentName = item.UnitName;
|
model.ContentName = item.UnitName;
|
||||||
|
@ -2210,7 +2203,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + MonitoringReportNumber;
|
Quantity3Dic[UnitId] = Quantity3Dic[UnitId] + MonitoringReportNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
@ -2306,6 +2299,10 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
foreach (var item in units)
|
foreach (var item in units)
|
||||||
{
|
{
|
||||||
|
if (item.UnitId == Const.UnitId_CWCEC)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc();
|
Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc();
|
||||||
NCRStatisc.Id = Guid.NewGuid().ToString();
|
NCRStatisc.Id = Guid.NewGuid().ToString();
|
||||||
NCRStatisc.WorkName = item.UnitName;
|
NCRStatisc.WorkName = item.UnitName;
|
||||||
|
@ -2400,9 +2397,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in units21)
|
foreach (var item in units22)
|
||||||
{
|
{
|
||||||
|
|
||||||
var ClosedCount = 0;
|
var ClosedCount = 0;
|
||||||
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
|
||||||
model.Id = Guid.NewGuid().ToString();
|
model.Id = Guid.NewGuid().ToString();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
<UseIISExpress>true</UseIISExpress>
|
<UseIISExpress>true</UseIISExpress>
|
||||||
<Use64BitIISExpress />
|
<Use64BitIISExpress />
|
||||||
<IISExpressSSLPort />
|
<IISExpressSSLPort />
|
||||||
|
|
Loading…
Reference in New Issue