0813
This commit is contained in:
@@ -118,7 +118,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
private void GetComprehensive()
|
||||
{
|
||||
int 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);
|
||||
@@ -127,7 +127,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt3.Text = Convert.ToString(count);
|
||||
|
||||
int 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);
|
||||
@@ -136,6 +136,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
|
||||
@@ -144,12 +145,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
|
||||
@@ -158,6 +161,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