0813
This commit is contained in:
@@ -118,7 +118,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
private void GetComprehensive()
|
||||
{
|
||||
decimal? count = 0;
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" select x).ToList();
|
||||
foreach (var item in inspectionEquipments)
|
||||
{
|
||||
count += Funs.GetNewIntOrZero(item.Counts);
|
||||
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt3.Text = Convert.ToString(count);
|
||||
|
||||
decimal? thisWeekCount = 0;
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
foreach (var item in equpments)
|
||||
{
|
||||
thisWeekCount += Funs.GetNewIntOrZero(item.Counts);
|
||||
@@ -142,6 +142,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
//}
|
||||
var Uequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
@@ -150,12 +151,14 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var Tequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt6.Text = Tequipments.ToString();
|
||||
|
||||
var CUequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
@@ -164,6 +167,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var CTequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt8.Text = CTequipments.ToString();
|
||||
|
||||
Reference in New Issue
Block a user