月报编辑
This commit is contained in:
parent
4037e99a00
commit
2710d1d947
|
|
@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Model.SGGLDB db = Funs.DB;
|
//public Model.SGGLDB db = Funs.DB;
|
||||||
|
|
||||||
#region 列表集合
|
#region 列表集合
|
||||||
private static List<Model.Report_CqmsTarget> detailsGrid1 = new List<Model.Report_CqmsTarget>();
|
private static List<Model.Report_CqmsTarget> detailsGrid1 = new List<Model.Report_CqmsTarget>();
|
||||||
|
|
@ -127,13 +127,13 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
units = (from x in db.Project_ProjectUnit
|
units = (from x in Funs.DB.Project_ProjectUnit
|
||||||
join y in db.Base_Unit on x.UnitId equals y.UnitId
|
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||||
orderby y.UnitCode
|
orderby y.UnitCode
|
||||||
select new UnitClass { UnitId = x.UnitId, UnitName = y.UnitName, UnitType = x.UnitType }).ToList();
|
select new UnitClass { UnitId = x.UnitId, UnitName = y.UnitName, UnitType = x.UnitType }).ToList();
|
||||||
//加载所有专业
|
//加载所有专业
|
||||||
CNProfessionals = (from x in db.Base_CNProfessional
|
CNProfessionals = (from x in Funs.DB.Base_CNProfessional
|
||||||
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||||
&& x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
&& x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
||||||
orderby x.SortIndex
|
orderby x.SortIndex
|
||||||
|
|
@ -176,7 +176,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
#region 加载本月质量目标管理情况
|
#region 加载本月质量目标管理情况
|
||||||
detailsGrid1.Clear();
|
detailsGrid1.Clear();
|
||||||
detailsGrid1 = (from x in db.Report_CqmsTarget
|
detailsGrid1 = (from x in Funs.DB.Report_CqmsTarget
|
||||||
where x.ReportId == this.ReportId
|
where x.ReportId == this.ReportId
|
||||||
orderby x.SortId
|
orderby x.SortId
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
|
|
@ -190,7 +190,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 加载7.2 PQR/WPS报验情况
|
#region 加载7.2 PQR/WPS报验情况
|
||||||
var detailsGrid9 = (from x in db.Report_Construction_Plan
|
var detailsGrid9 = (from x in Funs.DB.Report_Construction_Plan
|
||||||
where x.ReportId == ReportId && x.ReType == "5"
|
where x.ReportId == ReportId && x.ReType == "5"
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
if (detailsGrid9.Count > 0)
|
if (detailsGrid9.Count > 0)
|
||||||
|
|
@ -214,7 +214,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
#region 加载18.本月质量问题处理情况
|
#region 加载18.本月质量问题处理情况
|
||||||
//(1)原材料问题
|
//(1)原材料问题
|
||||||
rowMaterialProblemLists.Clear();
|
rowMaterialProblemLists.Clear();
|
||||||
rowMaterialProblemLists = (from x in db.Report_RowMaterialProblem
|
rowMaterialProblemLists = (from x in Funs.DB.Report_RowMaterialProblem
|
||||||
where x.ReportId == this.ReportId
|
where x.ReportId == this.ReportId
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
if (rowMaterialProblemLists.Count > 0)
|
if (rowMaterialProblemLists.Count > 0)
|
||||||
|
|
@ -225,7 +225,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
//(2)施工过程问题
|
//(2)施工过程问题
|
||||||
constructionProblemsLists.Clear();
|
constructionProblemsLists.Clear();
|
||||||
constructionProblemsLists = (from x in db.Report_ConstructionProblems
|
constructionProblemsLists = (from x in Funs.DB.Report_ConstructionProblems
|
||||||
where x.ReportId == this.ReportId
|
where x.ReportId == this.ReportId
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
if (constructionProblemsLists.Count > 0)
|
if (constructionProblemsLists.Count > 0)
|
||||||
|
|
@ -238,7 +238,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
#region 加载19.下月质量控制重点
|
#region 加载19.下月质量控制重点
|
||||||
nextQualityControlLists.Clear();
|
nextQualityControlLists.Clear();
|
||||||
nextQualityControlLists = (from x in db.Report_NextQualityControl
|
nextQualityControlLists = (from x in Funs.DB.Report_NextQualityControl
|
||||||
where x.ReportId == this.ReportId
|
where x.ReportId == this.ReportId
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
if (nextQualityControlLists.Count > 0)
|
if (nextQualityControlLists.Count > 0)
|
||||||
|
|
@ -250,7 +250,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 加载文本框内容
|
#region 加载文本框内容
|
||||||
var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
var txtReportList = Funs.DB.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
||||||
if (txtReportList.Count > 0)
|
if (txtReportList.Count > 0)
|
||||||
{
|
{
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null)
|
if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null)
|
||||||
|
|
@ -847,7 +847,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int i = 1;
|
int i = 1;
|
||||||
var cNProfessionals = from x in db.Base_CNProfessional
|
var cNProfessionals = from x in Funs.DB.Base_CNProfessional
|
||||||
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||||
&& x.CNProfessionalId != BLL.Const.ComprehensiveId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
&& x.CNProfessionalId != BLL.Const.ComprehensiveId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
||||||
orderby x.SortIndex
|
orderby x.SortIndex
|
||||||
|
|
@ -2472,7 +2472,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "1");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "1");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
//model.RectificationRate = NewModel.RectificationRate;
|
//model.RectificationRate = NewModel.RectificationRate;
|
||||||
|
|
@ -2643,8 +2643,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
foreach (var item in units)
|
foreach (var item in units)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_DataReceivingDoc
|
var query = from c in Funs.DB.Comprehensive_DataReceivingDoc
|
||||||
join u in db.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.SendUnit == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.SendUnit == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -2681,7 +2681,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "3");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "3");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -2889,8 +2889,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
|
|
@ -2898,8 +2898,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
foreach (var item in generalPlanUnits)
|
foreach (var item in generalPlanUnits)
|
||||||
{
|
{
|
||||||
|
|
||||||
var query = from c in db.Comprehensive_GeneralPlanApproval
|
var query = from c in Funs.DB.Comprehensive_GeneralPlanApproval
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -2926,7 +2926,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "0");
|
var NewModel = Funs.DB.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "0");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -2982,8 +2982,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
int Quantity3Sum = 0;
|
int Quantity3Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
|
|
@ -2991,9 +2991,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
foreach (var item in majorPlanUnits)
|
foreach (var item in majorPlanUnits)
|
||||||
{
|
{
|
||||||
|
|
||||||
var query = from c in db.Comprehensive_MajorPlanApproval
|
var query = from c in Funs.DB.Comprehensive_MajorPlanApproval
|
||||||
|
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
|
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
|
|
||||||
|
|
@ -3025,7 +3025,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "1");
|
var NewModel = Funs.DB.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "1");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -3088,9 +3088,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
foreach (var item in CNProfessionals)
|
foreach (var item in CNProfessionals)
|
||||||
{
|
{
|
||||||
|
|
||||||
var query = from c in db.Inspection_Test_Plan
|
var query = from c in Funs.DB.Inspection_Test_Plan
|
||||||
|
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
|
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
|
|
||||||
|
|
@ -3120,7 +3120,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "2");
|
var NewModel = Funs.DB.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "2");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -3174,7 +3174,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有专业
|
//加载所有专业
|
||||||
//var CNProfessionals = from x in db.Base_CNProfessional
|
//var CNProfessionals = from x in Funs.DB.Base_CNProfessional
|
||||||
// where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
// where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||||
// && x.CNProfessionalId != BLL.Const.ComprehensiveId
|
// && x.CNProfessionalId != BLL.Const.ComprehensiveId
|
||||||
// orderby x.SortIndex
|
// orderby x.SortIndex
|
||||||
|
|
@ -3188,7 +3188,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
foreach (var item in CNProfessionals)
|
foreach (var item in CNProfessionals)
|
||||||
{
|
{
|
||||||
|
|
||||||
var query = from c in db.Comprehensive_DesignDetails
|
var query = from c in Funs.DB.Comprehensive_DesignDetails
|
||||||
|
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId
|
||||||
//&& c.Status == "3"
|
//&& c.Status == "3"
|
||||||
|
|
@ -3216,7 +3216,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "3");
|
var NewModel = Funs.DB.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "3");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -3269,7 +3269,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有专业
|
//加载所有专业
|
||||||
//var CNProfessionals = from x in db.Base_CNProfessional
|
//var CNProfessionals = from x in Funs.DB.Base_CNProfessional
|
||||||
// where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
// where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||||
// && x.CNProfessionalId != BLL.Const.ComprehensiveId
|
// && x.CNProfessionalId != BLL.Const.ComprehensiveId
|
||||||
// orderby x.SortIndex
|
// orderby x.SortIndex
|
||||||
|
|
@ -3283,7 +3283,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
foreach (var item in CNProfessionals)
|
foreach (var item in CNProfessionals)
|
||||||
{
|
{
|
||||||
|
|
||||||
var query = from c in db.Comprehensive_ReviewDrawings
|
var query = from c in Funs.DB.Comprehensive_ReviewDrawings
|
||||||
|
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.CNProfessionalId == item.CNProfessionalId
|
||||||
//&& c.Status == "3"
|
//&& c.Status == "3"
|
||||||
|
|
@ -3311,7 +3311,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "4");
|
var NewModel = Funs.DB.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.ProfessionalName && x.ReType == "4");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -3371,7 +3371,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int i = 1;
|
int i = 1;
|
||||||
var cNProfessionals = from x in db.Base_CNProfessional
|
var cNProfessionals = from x in Funs.DB.Base_CNProfessional
|
||||||
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||||
&& x.CNProfessionalId != BLL.Const.ComprehensiveId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
&& x.CNProfessionalId != BLL.Const.ComprehensiveId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
||||||
orderby x.SortIndex
|
orderby x.SortIndex
|
||||||
|
|
@ -3451,20 +3451,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int i = 1;
|
int i = 1;
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2
|
// where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var passWelderUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
var passWelderUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2).ToList();
|
||||||
foreach (var item in passWelderUnits)
|
foreach (var item in passWelderUnits)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_InspectionPerson
|
var query = from c in Funs.DB.Comprehensive_InspectionPerson
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
join cn in db.Base_CNProfessional on c.CNProfessionalId equals cn.CNProfessionalId into cnJoin
|
join cn in Funs.DB.Base_CNProfessional on c.CNProfessionalId equals cn.CNProfessionalId into cnJoin
|
||||||
from cn in cnJoin.DefaultIfEmpty()
|
from cn in cnJoin.DefaultIfEmpty()
|
||||||
join p in db.Base_Post on c.PostId equals p.PostId into postJoin
|
join p in Funs.DB.Base_Post on c.PostId equals p.PostId into postJoin
|
||||||
from p in postJoin.DefaultIfEmpty()
|
from p in postJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -3693,8 +3693,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
DateTime endDate = Convert.ToDateTime(string.Format("{0:yyyy-MM-dd HH:mm:ss}", this.txtEndDate.Text.Trim() + " 23:59:59"));
|
DateTime endDate = Convert.ToDateTime(string.Format("{0:yyyy-MM-dd HH:mm:ss}", this.txtEndDate.Text.Trim() + " 23:59:59"));
|
||||||
var list = new List<Model.ProcessControl_NondestructiveTest_New>();
|
var list = new List<Model.ProcessControl_NondestructiveTest_New>();
|
||||||
//加载所有施工分包单位
|
//加载所有施工分包单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
|
|
@ -3707,8 +3707,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
{
|
{
|
||||||
int? num0 = 0, num1 = 0;//拍片数量小计
|
int? num0 = 0, num1 = 0;//拍片数量小计
|
||||||
|
|
||||||
var query = from c in db.ProcessControl_NondestructiveTest_New
|
var query = from c in Funs.DB.ProcessControl_NondestructiveTest_New
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
&& c.CreateDate >= startDate && c.CreateDate <= endDate
|
&& c.CreateDate >= startDate && c.CreateDate <= endDate
|
||||||
|
|
@ -3901,17 +3901,17 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var inspectionEquipmentUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var inspectionEquipmentUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
foreach (var item in inspectionEquipmentUnits)
|
foreach (var item in inspectionEquipmentUnits)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_InspectionEquipment
|
var query = from c in Funs.DB.Comprehensive_InspectionEquipment
|
||||||
|
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
|
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
|
|
||||||
|
|
@ -3959,7 +3959,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "6");
|
var NewModel = Funs.DB.Report_Construction_Plan.FirstOrDefault(x => x.ReportId == ReportId && x.UnitOrMajor == item.UnitName && x.ReType == "6");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -4024,16 +4024,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var measuringInspectionUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var measuringInspectionUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
foreach (var item in measuringInspectionUnits)
|
foreach (var item in measuringInspectionUnits)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_InspectionMachine
|
var query = from c in Funs.DB.Comprehensive_InspectionMachine
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId && c.InspectionType.Equals("计量")
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId && c.InspectionType.Equals("计量")
|
||||||
select new
|
select new
|
||||||
|
|
@ -4056,7 +4056,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "9");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "9");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.RectificationRate = NewModel.RectificationRate;
|
model.RectificationRate = NewModel.RectificationRate;
|
||||||
|
|
@ -4144,8 +4144,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
string Quantity2Sum = String.Empty;//累计检查合格点数/累计检查点数
|
string Quantity2Sum = String.Empty;//累计检查合格点数/累计检查点数
|
||||||
|
|
||||||
var inspectionUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var inspectionUnits = 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
|
//var cqmsDetail = from c in Funs.DB.View_CQMS_InspectionManagementDetail
|
||||||
// join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
// join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
// from u in unitJoin.DefaultIfEmpty()
|
// from u in unitJoin.DefaultIfEmpty()
|
||||||
// select new
|
// select new
|
||||||
// {
|
// {
|
||||||
|
|
@ -4155,8 +4155,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
// u.UnitName,
|
// u.UnitName,
|
||||||
// c.IsOnceQualified
|
// c.IsOnceQualified
|
||||||
// };
|
// };
|
||||||
var cqmsList = from c in db.ProcessControl_InspectionManagement
|
var cqmsList = from c in Funs.DB.ProcessControl_InspectionManagement
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
|
|
@ -4216,7 +4216,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "10");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "10");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
checkStatisc.Remarks = NewModel.Remarks;
|
checkStatisc.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -4304,7 +4304,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//int i = 1;
|
//int i = 1;
|
||||||
string cNProfessionalId = (from x in db.Base_CNProfessional where x.CNProfessionalCode == cNProfessionalCode select x.CNProfessionalId).FirstOrDefault();
|
string cNProfessionalId = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalCode == cNProfessionalCode select x.CNProfessionalId).FirstOrDefault();
|
||||||
|
|
||||||
List<string> workNames = new List<string>();
|
List<string> workNames = new List<string>();
|
||||||
//专业下所有集合
|
//专业下所有集合
|
||||||
|
|
@ -4547,16 +4547,16 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var pressureUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var pressureUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
foreach (var item in pressureUnits)
|
foreach (var item in pressureUnits)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_PressurePipe
|
var query = from c in Funs.DB.Comprehensive_PressurePipe
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.Projctid == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.Projctid == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -4582,7 +4582,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -4638,16 +4638,16 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
|
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var pipingUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var pipingUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
foreach (var item in pipingUnits)
|
foreach (var item in pipingUnits)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_PressurePipe
|
var query = from c in Funs.DB.Comprehensive_PressurePipe
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.Projctid == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.Projctid == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -4673,7 +4673,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -4726,16 +4726,16 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
int Quantity1Sum = 0;
|
int Quantity1Sum = 0;
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var specialUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
var specialUnits = units.Where(x => x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1).ToList();
|
||||||
foreach (var item in specialUnits)
|
foreach (var item in specialUnits)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_SpecialEquipment
|
var query = from c in Funs.DB.Comprehensive_SpecialEquipment
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -4761,7 +4761,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "13");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "13");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -4821,8 +4821,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
{
|
{
|
||||||
projectStartDate = project.StartDate.Value;
|
projectStartDate = project.StartDate.Value;
|
||||||
}
|
}
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2
|
// where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitType == BLL.Const.ProjectUnitType_2
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
|
|
@ -4831,8 +4831,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
foreach (var item in ncrUnits)
|
foreach (var item in ncrUnits)
|
||||||
{
|
{
|
||||||
|
|
||||||
var query = from c in db.Comprehensive_NCRManagement
|
var query = from c in Funs.DB.Comprehensive_NCRManagement
|
||||||
join u in db.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.ReceiveUnit.Contains(item.UnitId)
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.ReceiveUnit.Contains(item.UnitId)
|
||||||
select new
|
select new
|
||||||
|
|
@ -4926,16 +4926,16 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
int Quantity2Sum = 0;
|
int Quantity2Sum = 0;
|
||||||
int ClosedCountSum = 0;
|
int ClosedCountSum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var units = from x in db.Project_ProjectUnit
|
//var units = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
// where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_2 || x.UnitType == BLL.Const.ProjectUnitType_1)
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var unitLists = 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();
|
||||||
foreach (var item in unitLists)
|
foreach (var item in unitLists)
|
||||||
{
|
{
|
||||||
var query = from c in db.Check_CheckControl
|
var query = from c in Funs.DB.Check_CheckControl
|
||||||
join u in db.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.UnitId equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.UnitId == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -4969,7 +4969,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "1");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "1");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
//model.RectificationRate = NewModel.RectificationRate;
|
//model.RectificationRate = NewModel.RectificationRate;
|
||||||
|
|
@ -5033,7 +5033,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
var lists = BLL.JointCheckService.GetCheckTypeList();
|
var lists = BLL.JointCheckService.GetCheckTypeList();
|
||||||
foreach (var item in lists)
|
foreach (var item in lists)
|
||||||
{
|
{
|
||||||
var query = from c in db.Check_JointCheck
|
var query = from c in Funs.DB.Check_JointCheck
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.CheckType == item.Key.ToString()
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.CheckType == item.Key.ToString()
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
|
|
@ -5054,7 +5054,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.Value && x.ReType == "2");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.Value && x.ReType == "2");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -5108,16 +5108,16 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
int Quantity3Sum = 0;
|
int Quantity3Sum = 0;
|
||||||
int Quantity4Sum = 0;
|
int Quantity4Sum = 0;
|
||||||
//加载所有单位
|
//加载所有单位
|
||||||
//var sendUnits = from x in db.Project_ProjectUnit
|
//var sendUnits = from x in Funs.DB.Project_ProjectUnit
|
||||||
// join y in db.Base_Unit on x.UnitId equals y.UnitId
|
// join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||||
// where x.ProjectId == this.CurrUser.LoginProjectId
|
// where x.ProjectId == this.CurrUser.LoginProjectId
|
||||||
// orderby y.UnitCode
|
// orderby y.UnitCode
|
||||||
// select new { x.UnitId, y.UnitName };
|
// select new { x.UnitId, y.UnitName };
|
||||||
var unitLists = units.ToList();
|
var unitLists = units.ToList();
|
||||||
foreach (var item in unitLists)
|
foreach (var item in unitLists)
|
||||||
{
|
{
|
||||||
var query = from c in db.Comprehensive_DataReceivingDoc
|
var query = from c in Funs.DB.Comprehensive_DataReceivingDoc
|
||||||
join u in db.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
join u in Funs.DB.Base_Unit on c.SendUnit equals u.UnitId into unitJoin
|
||||||
from u in unitJoin.DefaultIfEmpty()
|
from u in unitJoin.DefaultIfEmpty()
|
||||||
where c.ProjectId == this.CurrUser.LoginProjectId && c.SendUnit == item.UnitId
|
where c.ProjectId == this.CurrUser.LoginProjectId && c.SendUnit == item.UnitId
|
||||||
select new
|
select new
|
||||||
|
|
@ -5146,7 +5146,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//如果是修改,查询表中数据
|
//如果是修改,查询表中数据
|
||||||
if (objType == "1")
|
if (objType == "1")
|
||||||
{
|
{
|
||||||
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "3");
|
var NewModel = Funs.DB.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "3");
|
||||||
if (NewModel != null)
|
if (NewModel != null)
|
||||||
{
|
{
|
||||||
model.Remarks = NewModel.Remarks;
|
model.Remarks = NewModel.Remarks;
|
||||||
|
|
@ -5557,7 +5557,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
|
|
||||||
//#region 加载本月质量目标管理情况
|
//#region 加载本月质量目标管理情况
|
||||||
//detailsGrid1.Clear();
|
//detailsGrid1.Clear();
|
||||||
//detailsGrid1 = (from x in db.Report_CqmsTarget
|
//detailsGrid1 = (from x in Funs.DB.Report_CqmsTarget
|
||||||
// where x.ReportId == this.ReportId
|
// where x.ReportId == this.ReportId
|
||||||
// orderby x.SortId
|
// orderby x.SortId
|
||||||
// select x).ToList();
|
// select x).ToList();
|
||||||
|
|
@ -5571,7 +5571,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region 加载7.2 PQR/WPS报验情况
|
//#region 加载7.2 PQR/WPS报验情况
|
||||||
//var detailsGrid9 = (from x in db.Report_Construction_Plan
|
//var detailsGrid9 = (from x in Funs.DB.Report_Construction_Plan
|
||||||
// where x.ReportId == ReportId && x.ReType == "5"
|
// where x.ReportId == ReportId && x.ReType == "5"
|
||||||
// select x).ToList();
|
// select x).ToList();
|
||||||
//if (detailsGrid9.Count > 0)
|
//if (detailsGrid9.Count > 0)
|
||||||
|
|
@ -5595,7 +5595,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//#region 加载18.本月质量问题处理情况
|
//#region 加载18.本月质量问题处理情况
|
||||||
////(1)原材料问题
|
////(1)原材料问题
|
||||||
//rowMaterialProblemLists.Clear();
|
//rowMaterialProblemLists.Clear();
|
||||||
//rowMaterialProblemLists = (from x in db.Report_RowMaterialProblem
|
//rowMaterialProblemLists = (from x in Funs.DB.Report_RowMaterialProblem
|
||||||
// where x.ReportId == this.ReportId
|
// where x.ReportId == this.ReportId
|
||||||
// select x).ToList();
|
// select x).ToList();
|
||||||
//if (rowMaterialProblemLists.Count > 0)
|
//if (rowMaterialProblemLists.Count > 0)
|
||||||
|
|
@ -5606,7 +5606,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//}
|
//}
|
||||||
////(2)施工过程问题
|
////(2)施工过程问题
|
||||||
//constructionProblemsLists.Clear();
|
//constructionProblemsLists.Clear();
|
||||||
//constructionProblemsLists = (from x in db.Report_ConstructionProblems
|
//constructionProblemsLists = (from x in Funs.DB.Report_ConstructionProblems
|
||||||
// where x.ReportId == this.ReportId
|
// where x.ReportId == this.ReportId
|
||||||
// select x).ToList();
|
// select x).ToList();
|
||||||
//if (constructionProblemsLists.Count > 0)
|
//if (constructionProblemsLists.Count > 0)
|
||||||
|
|
@ -5619,7 +5619,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
|
|
||||||
//#region 加载19.下月质量控制重点
|
//#region 加载19.下月质量控制重点
|
||||||
//nextQualityControlLists.Clear();
|
//nextQualityControlLists.Clear();
|
||||||
//nextQualityControlLists = (from x in db.Report_NextQualityControl
|
//nextQualityControlLists = (from x in Funs.DB.Report_NextQualityControl
|
||||||
// where x.ReportId == this.ReportId
|
// where x.ReportId == this.ReportId
|
||||||
// select x).ToList();
|
// select x).ToList();
|
||||||
//if (nextQualityControlLists.Count > 0)
|
//if (nextQualityControlLists.Count > 0)
|
||||||
|
|
@ -5631,7 +5631,7 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region 加载文本框内容
|
//#region 加载文本框内容
|
||||||
//var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
//var txtReportList = Funs.DB.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
||||||
//if (txtReportList.Count > 0)
|
//if (txtReportList.Count > 0)
|
||||||
//{
|
//{
|
||||||
// if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null)
|
// if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null)
|
||||||
|
|
@ -5868,14 +5868,14 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var result = db.Report_CqmsTarget.Where(a => a.ReportId == ReportId);
|
var result = Funs.DB.Report_CqmsTarget.Where(a => a.ReportId == ReportId);
|
||||||
db.Report_CqmsTarget.DeleteAllOnSubmit(result);
|
Funs.DB.Report_CqmsTarget.DeleteAllOnSubmit(result);
|
||||||
if (detailLists.Count > 0)
|
if (detailLists.Count > 0)
|
||||||
{
|
{
|
||||||
//CqmsTargetService.Delete(ReportId);//本月质量目标管理情况
|
//CqmsTargetService.Delete(ReportId);//本月质量目标管理情况
|
||||||
db.Report_CqmsTarget.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CqmsTarget.InsertAllOnSubmit(detailLists);
|
||||||
}
|
}
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -5918,8 +5918,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "5");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "5");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -5963,8 +5963,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "0");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "0");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6007,8 +6007,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "1");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "1");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6050,8 +6050,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "2");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "2");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6095,8 +6095,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "3");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "3");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6140,8 +6140,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "4");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "4");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6186,8 +6186,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "6");
|
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "6");
|
||||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6257,11 +6257,11 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
#endregion
|
#endregion
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var result = db.Report_TextBoxContent.Where(a => a.ReportId == ReportId).ToList();
|
var result = Funs.DB.Report_TextBoxContent.Where(a => a.ReportId == ReportId).ToList();
|
||||||
db.Report_TextBoxContent.DeleteAllOnSubmit(result);
|
Funs.DB.Report_TextBoxContent.DeleteAllOnSubmit(result);
|
||||||
//TextBoxContentService.Delete(ReportId);
|
//TextBoxContentService.Delete(ReportId);
|
||||||
db.Report_TextBoxContent.InsertAllOnSubmit(txtContentList);
|
Funs.DB.Report_TextBoxContent.InsertAllOnSubmit(txtContentList);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
|
|
||||||
//保存23.施工照片
|
//保存23.施工照片
|
||||||
saveImages();
|
saveImages();
|
||||||
|
|
@ -6305,8 +6305,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "9");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "9");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6350,8 +6350,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-1");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-1");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6392,8 +6392,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-2");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-2");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6434,8 +6434,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-3");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-3");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6479,8 +6479,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-4");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-4");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6523,8 +6523,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-5");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-5");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6567,8 +6567,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-6");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-6");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6611,8 +6611,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-7");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-7");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6657,8 +6657,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6702,8 +6702,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "11");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "11");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6747,8 +6747,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "12");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "12");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6793,8 +6793,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "13");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "13");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6837,8 +6837,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "14");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "14");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6883,8 +6883,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "1");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "1");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6928,8 +6928,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "2");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "2");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -6974,8 +6974,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "3");
|
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "3");
|
||||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -7019,8 +7019,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.RowMaterialProblemService.DeleteRowMaterialProbleByReportId(ReportId);
|
BLL.RowMaterialProblemService.DeleteRowMaterialProbleByReportId(ReportId);
|
||||||
db.Report_RowMaterialProblem.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_RowMaterialProblem.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -7063,8 +7063,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.ConstructionProblemsService.DeleteConstructionProblemsByReportId(ReportId);
|
BLL.ConstructionProblemsService.DeleteConstructionProblemsByReportId(ReportId);
|
||||||
db.Report_ConstructionProblems.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_ConstructionProblems.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -7105,8 +7105,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BLL.NextQualityControlService.DeleteNextQualityControlByReportId(ReportId);
|
BLL.NextQualityControlService.DeleteNextQualityControlByReportId(ReportId);
|
||||||
db.Report_NextQualityControl.InsertAllOnSubmit(detailLists);
|
Funs.DB.Report_NextQualityControl.InsertAllOnSubmit(detailLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -7170,8 +7170,8 @@ from View_MonthReport_InspectionManagement a with(nolock)
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
db.Report_TextBoxContent.InsertAllOnSubmit(ImageLists);
|
Funs.DB.Report_TextBoxContent.InsertAllOnSubmit(ImageLists);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue