20240604 修改各项目巡查汇总
This commit is contained in:
@@ -60,21 +60,21 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
if (DateTime.Now < NewDate)
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
if (ZyType == "1")
|
||||
{
|
||||
//统计所给时间段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
//统计所给时间段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
}
|
||||
else if (ZyType == "2")
|
||||
{
|
||||
//统计所给时间段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
//统计所给时间段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -99,23 +99,23 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
NextDate = Convert.ToDateTime(StartDate.Year + "-" + StartDate.Month + "-25");
|
||||
if (ZyType == "1")
|
||||
{
|
||||
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, true);
|
||||
}
|
||||
else if (ZyType == "2")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NextDate, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -141,22 +141,22 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
if (DateTime.Now < NewDate)
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
if (ZyType == "1")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
|
||||
}
|
||||
else if(ZyType=="2")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
|
||||
}
|
||||
else
|
||||
@@ -185,21 +185,21 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
if (ZyType == "1")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
}
|
||||
else if (ZyType == "2")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -240,21 +240,21 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
NewDate = Convert.ToDateTime(NextDate.Year + "-" + NextDate.Month + "-25");
|
||||
if (DateTime.Now < NewDate)
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
if (ZyType == "1")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
}
|
||||
else if(ZyType=="2")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, DateTime.Now, true);
|
||||
|
||||
}
|
||||
else
|
||||
@@ -281,20 +281,20 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
if (ZyType == "1")
|
||||
{
|
||||
//统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
}
|
||||
else if(ZyType=="2")
|
||||
{ //统计所给事件段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, false);
|
||||
//统计所给事件段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, NewDate, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -360,22 +360,22 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
Model.InspectionManagementStatistics Statistics = new Model.InspectionManagementStatistics();
|
||||
|
||||
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber = new List<Model.View_CQMS_InspectionManagementDetail>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListSunNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
List<Model.ProcessControl_InspectionManagement> managementListOneNumber = new List<Model.ProcessControl_InspectionManagement>();
|
||||
if (ZyType == "1")
|
||||
{
|
||||
//统计所给时间段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, false);
|
||||
//统计所给时间段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByCNProfessionalIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, true);
|
||||
|
||||
}
|
||||
else if(ZyType=="2")
|
||||
{
|
||||
//统计所给时间段的全部数量
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, false);
|
||||
managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, false);
|
||||
//统计所给时间段的合格数量
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, true);
|
||||
managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementByUnitIdAndDate(this.CurrUser.LoginProjectId, cNProfessionalId, StartDate, EndDate, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user