20240528 质量月报修改
This commit is contained in:
@@ -521,8 +521,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
|
||||
var query = from c in db.Comprehensive_MajorPlanApproval
|
||||
@@ -923,8 +923,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
|
||||
var query = from c in db.Comprehensive_InspectionPerson
|
||||
@@ -1143,12 +1143,12 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||
|
||||
int? totalNum0 = 0, totalNum1 = 0;//拍片数量合计
|
||||
|
||||
|
||||
foreach (var item in units)
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
int? num0 = 0, num1 = 0;//拍片数量小计
|
||||
|
||||
@@ -1336,8 +1336,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
|
||||
var query = from c in db.Comprehensive_InspectionEquipment
|
||||
@@ -1445,8 +1445,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from c in db.Comprehensive_InspectionMachine
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
@@ -1534,7 +1534,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
var cqmsDetail = from c in db.View_CQMS_InspectionManagementDetail
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
from u in unitJoin.DefaultIfEmpty()
|
||||
@@ -1546,7 +1546,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
u.UnitName,
|
||||
c.IsOnceQualified
|
||||
};
|
||||
foreach (var item in units)
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from x in cqmsDetail
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == item.UnitId
|
||||
@@ -1895,8 +1895,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from c in db.Comprehensive_PressurePipe
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
@@ -1972,8 +1972,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from c in db.Comprehensive_PressurePipe
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
@@ -2049,8 +2049,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from c in db.Comprehensive_SpecialEquipment
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
@@ -2132,9 +2132,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||
var unitLists = units.ToList();
|
||||
|
||||
foreach (var item in units)
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
|
||||
var query = from c in db.Comprehensive_NCRManagement
|
||||
@@ -2227,8 +2227,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from c in db.Check_CheckControl
|
||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||
@@ -2386,8 +2386,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||
// orderby y.UnitCode
|
||||
// select new { x.UnitId, y.UnitName };
|
||||
units = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||
foreach (var item in units)
|
||||
var unitLists = units.ToList();
|
||||
foreach (var item in unitLists)
|
||||
{
|
||||
var query = from c in db.Comprehensive_DataReceivingDoc
|
||||
join u in db.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
||||
|
||||
Reference in New Issue
Block a user