This commit is contained in:
gaofei
2021-08-13 11:15:59 +08:00
parent 43acc57060
commit d8dff88c39
320 changed files with 37219 additions and 4678 deletions
@@ -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();