20250227 机具报验导入
This commit is contained in:
@@ -2868,6 +2868,167 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
|
||||
ShowNotify("编辑成功!", MessageBoxIcon.Success);
|
||||
//PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
||||
Model.Report_WeekAndMonthReport_New weekAndMonthReport = WeekAndMonthReportNewService.Detail(this.ReportId);
|
||||
if (weekAndMonthReport != null)
|
||||
{
|
||||
if (weekAndMonthReport.SortId != null)
|
||||
{
|
||||
this.txtPeriod.Text = Convert.ToString(weekAndMonthReport.SortId);
|
||||
}
|
||||
if (weekAndMonthReport.StartDate != null)
|
||||
{
|
||||
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", weekAndMonthReport.StartDate);
|
||||
}
|
||||
if (weekAndMonthReport.EndDate != null)
|
||||
{
|
||||
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", weekAndMonthReport.EndDate);
|
||||
}
|
||||
}
|
||||
AddOrUpdate = "update";
|
||||
|
||||
#region 加载本月质量目标管理情况
|
||||
detailsGrid1.Clear();
|
||||
detailsGrid1 = (from x in db.Report_CqmsTarget
|
||||
where x.ReportId == this.ReportId
|
||||
orderby x.SortId
|
||||
select x).ToList();
|
||||
if (detailsGrid1.Count > 0)
|
||||
{
|
||||
Grid1.Hidden = false;
|
||||
Grid1.DataSource = detailsGrid1;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载7.2 PQR/WPS报验情况
|
||||
var detailsGrid9 = (from x in db.Report_Construction_Plan
|
||||
where x.ReportId == ReportId && x.ReType == "5"
|
||||
select x).ToList();
|
||||
if (detailsGrid9.Count > 0)
|
||||
{
|
||||
Grid9.Hidden = false;
|
||||
Grid9.DataSource = detailsGrid9;
|
||||
Grid9.DataBind();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(Request.Params["view"]))
|
||||
{
|
||||
//查看页面
|
||||
Button4.Hidden = true;
|
||||
Button3.Hidden = true;
|
||||
//合计
|
||||
OutPutSummaryGrid9();
|
||||
Grid1.FindColumn("Delete1").Hidden = true;
|
||||
Grid9.FindColumn("Delete9").Hidden = true;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载18.本月质量问题处理情况
|
||||
//(1)原材料问题
|
||||
rowMaterialProblemLists.Clear();
|
||||
rowMaterialProblemLists = (from x in db.Report_RowMaterialProblem
|
||||
where x.ReportId == this.ReportId
|
||||
select x).ToList();
|
||||
if (rowMaterialProblemLists.Count > 0)
|
||||
{
|
||||
gvRowMaterialProblem.Hidden = false;
|
||||
gvRowMaterialProblem.DataSource = rowMaterialProblemLists;
|
||||
gvRowMaterialProblem.DataBind();
|
||||
}
|
||||
//(2)施工过程问题
|
||||
constructionProblemsLists.Clear();
|
||||
constructionProblemsLists = (from x in db.Report_ConstructionProblems
|
||||
where x.ReportId == this.ReportId
|
||||
select x).ToList();
|
||||
if (constructionProblemsLists.Count > 0)
|
||||
{
|
||||
gvConstructionProblems.Hidden = false;
|
||||
gvConstructionProblems.DataSource = constructionProblemsLists;
|
||||
gvConstructionProblems.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载19.下月质量控制重点
|
||||
nextQualityControlLists.Clear();
|
||||
nextQualityControlLists = (from x in db.Report_NextQualityControl
|
||||
where x.ReportId == this.ReportId
|
||||
select x).ToList();
|
||||
if (nextQualityControlLists.Count > 0)
|
||||
{
|
||||
gvNextQualityControl.Hidden = false;
|
||||
gvNextQualityControl.DataSource = nextQualityControlLists;
|
||||
gvNextQualityControl.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载文本框内容
|
||||
var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
||||
if (txtReportList.Count > 0)
|
||||
{
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null)
|
||||
{
|
||||
txtAre0.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "1") != null)
|
||||
{
|
||||
txtAre1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "2") != null)
|
||||
{
|
||||
txtAre2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "20") != null)
|
||||
{
|
||||
txtAre20.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "21") != null)
|
||||
{
|
||||
txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "22") != null)
|
||||
{
|
||||
txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "8") != null)
|
||||
{
|
||||
txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-1") != null)
|
||||
{
|
||||
imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl;
|
||||
txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-2") != null)
|
||||
{
|
||||
imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl;
|
||||
txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-3") != null)
|
||||
{
|
||||
imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl;
|
||||
txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-4") != null)
|
||||
{
|
||||
imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl;
|
||||
txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-5") != null)
|
||||
{
|
||||
imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl;
|
||||
txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText;
|
||||
}
|
||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-6") != null)
|
||||
{
|
||||
imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl;
|
||||
txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
//加载所有grid
|
||||
lodAllGrid("1");
|
||||
}
|
||||
|
||||
private void SaveMethod()
|
||||
@@ -2904,7 +3065,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
//CqmsTargetService.Delete(ReportId);
|
||||
|
||||
//所有文本框表
|
||||
TextBoxContentService.Delete(ReportId);
|
||||
//TextBoxContentService.Delete(ReportId);
|
||||
|
||||
//删除施工方案及检验试验计划审批情况
|
||||
//BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId);
|
||||
@@ -2997,7 +3158,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
#region 保存本月质量目标管理情况
|
||||
void saveTarget()
|
||||
{
|
||||
CqmsTargetService.Delete(ReportId);//本月质量目标管理情况
|
||||
List<Model.Report_CqmsTarget> detailLists = new List<Model.Report_CqmsTarget>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3006,7 +3166,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.Report_CqmsTarget newDetail = new Model.Report_CqmsTarget
|
||||
{
|
||||
Id = values.Value<string>("Id"),
|
||||
//Id = values.Value<string>("Id"),
|
||||
ReportId = ReportId,
|
||||
ProStage = values.Value<string>("ProStage"),
|
||||
ProDescribe = values.Value<string>("ProDescribe"),
|
||||
@@ -3015,16 +3175,24 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
Remarks = values.Value<string>("Remarks"),
|
||||
SortId = rowIndex + 1
|
||||
};
|
||||
//if (Grid1.Rows[rowIndex].DataKeys.Length > 0)
|
||||
//{
|
||||
// newDetail.Id = Grid1.Rows[rowIndex].DataKeys[0].ToString();
|
||||
//}
|
||||
if (Grid1.Rows[rowIndex].DataKeys.Length > 0)
|
||||
{
|
||||
newDetail.Id = Grid1.Rows[rowIndex].DataKeys[0].ToString();
|
||||
}
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CqmsTarget.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
CqmsTargetService.Delete(ReportId);//本月质量目标管理情况
|
||||
db.Report_CqmsTarget.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3032,7 +3200,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
#region 保存PQR/WPS报验情况
|
||||
void savePqrWps()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "5");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid9.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3057,8 +3224,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "5");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3069,7 +3244,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveYbsgfa()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "0");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid2.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3094,8 +3268,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "0");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3104,7 +3286,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveWdgcfa()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "1");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid3.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3130,8 +3311,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "1");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3140,7 +3329,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveJysyjh()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "2");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid4.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3165,8 +3353,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "2");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3177,7 +3373,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveSjjd()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "3");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid5.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3202,8 +3397,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "3");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3214,7 +3417,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveTzhs()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "4");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid6.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3239,8 +3441,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "4");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3251,7 +3461,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveSbclBy()
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "6");
|
||||
List<Model.Report_Construction_Plan> detailLists = new List<Model.Report_Construction_Plan>();
|
||||
JArray teamGroupData = Grid11.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3277,8 +3486,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.CQMS.ManageReport.ReportNew.ConstructionPlanService.Delete(ReportId, "6");
|
||||
db.Report_Construction_Plan.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3341,15 +3558,22 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
model8.ContentText = txtAre8.Text;
|
||||
txtContentList.Add(model8);
|
||||
#endregion
|
||||
db.Report_TextBoxContent.InsertAllOnSubmit(txtContentList);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
TextBoxContentService.Delete(ReportId);
|
||||
db.Report_TextBoxContent.InsertAllOnSubmit(txtContentList);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 9.计量器具报验管理情况
|
||||
void saveMeasuringInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "9");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvMeasuringInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3375,8 +3599,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "9");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3384,7 +3616,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
#region 10.现场质量共检数据
|
||||
void saveTjInspection() //检验批统计:土建
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-1");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvTj.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3412,13 +3643,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-1");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
void saveSbInspection() //检验批统计:设备
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-2");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = GvSb.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3446,13 +3684,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-2");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
void saveGDInspection() //检验批统计:管道
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-3");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = GvGD.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3480,14 +3725,21 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-3");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void saveDQInspection() //检验批统计:电气
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-4");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = GvDq.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3517,13 +3769,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-4");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
void saveYBInspection() //检验批统计:仪表
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-5");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = GvYb.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3553,13 +3812,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-5");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
void saveFFInspection() //检验批统计:防腐
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-6");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = GvFf.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3589,13 +3855,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-6");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
void saveXFInspection() //检验批统计:消防
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-7");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = GvXf.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3625,13 +3898,20 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10-7");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
void saveInspectionDataInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvInspectionDataInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3663,17 +3943,23 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "10");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 11.压力管道监检情况
|
||||
void savePressureInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "11");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvPressureInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3700,17 +3986,23 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "11");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 12.管道试压包管理情况
|
||||
void savePipingInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "12");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvPipingInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3737,8 +4029,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "12");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3747,7 +4047,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
#region 13.特种设备监检情况
|
||||
void saveSpecialInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "13");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvSpecialInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3774,17 +4073,23 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "13");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 14.NCR管理情况
|
||||
void saveNcrManagementInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "14");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvNcrManagementInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3810,9 +4115,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "14");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3823,7 +4135,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveQualityInspection()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "1");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvQualityInspection.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3849,8 +4160,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "1");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3861,7 +4180,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveSpecialCheck()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "2");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvSpecialCheck.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3886,8 +4204,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "2");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3898,7 +4224,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveFileReport()
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "3");
|
||||
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
|
||||
JArray teamGroupData = gvFileReport.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3924,8 +4249,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(ReportId, "3");
|
||||
db.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3936,7 +4269,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveRowMaterialProblem()
|
||||
{
|
||||
BLL.RowMaterialProblemService.DeleteRowMaterialProbleByReportId(ReportId);
|
||||
List<Model.Report_RowMaterialProblem> detailLists = new List<Model.Report_RowMaterialProblem>();
|
||||
JArray teamGroupData = gvRowMaterialProblem.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3961,8 +4293,17 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_RowMaterialProblem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.RowMaterialProblemService.DeleteRowMaterialProbleByReportId(ReportId);
|
||||
db.Report_RowMaterialProblem.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3971,7 +4312,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveConstructionProblems()
|
||||
{
|
||||
BLL.ConstructionProblemsService.DeleteConstructionProblemsByReportId(ReportId);
|
||||
List<Model.Report_ConstructionProblems> detailLists = new List<Model.Report_ConstructionProblems>();
|
||||
JArray teamGroupData = gvConstructionProblems.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -3996,8 +4336,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_ConstructionProblems.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.ConstructionProblemsService.DeleteConstructionProblemsByReportId(ReportId);
|
||||
db.Report_ConstructionProblems.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4009,7 +4357,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
/// </summary>
|
||||
void saveNextQualityControl()
|
||||
{
|
||||
BLL.NextQualityControlService.DeleteNextQualityControlByReportId(ReportId);
|
||||
List<Model.Report_NextQualityControl> detailLists = new List<Model.Report_NextQualityControl>();
|
||||
JArray teamGroupData = gvNextQualityControl.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
@@ -4030,8 +4377,16 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
}
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
db.Report_NextQualityControl.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
BLL.NextQualityControlService.DeleteNextQualityControlByReportId(ReportId);
|
||||
db.Report_NextQualityControl.InsertAllOnSubmit(detailLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -4088,8 +4443,15 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
imgage6.ImageUrl = imgPhoto6.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1);
|
||||
ImageLists.Add(imgage6);
|
||||
|
||||
db.Report_TextBoxContent.InsertAllOnSubmit(ImageLists);
|
||||
db.SubmitChanges();
|
||||
try
|
||||
{
|
||||
db.Report_TextBoxContent.InsertAllOnSubmit(ImageLists);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user