周报 月报

This commit is contained in:
2025-09-30 10:04:56 +08:00
parent d7a11fdce3
commit f38e76b6c7
5 changed files with 2953 additions and 293 deletions
@@ -5697,7 +5697,17 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
}
report.CreateDate = DateTime.Now;
report.CreateMan = CurrUser.UserId;
bool save = false;
if (AddOrUpdate == "add")
{
save = true;
WeekAndMonthReportNewService.Insert(report);
}
else
{
save = true;
WeekAndMonthReportNewService.Update(report);
}
#region
//本月质量目标管理情况
//CqmsTargetService.Delete(ReportId);
@@ -5718,11 +5728,19 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//BLL.NextQualityControlService.DeleteNextQualityControlByReportId(ReportId);
#endregion
#region
//保存本月质量目标管理情况
saveTarget();
//保存文本框
saveTxtContent();
//保存3.1一般施工方案审批情况
saveYbsgfa();
@@ -5780,21 +5798,11 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
////保存23.施工照片
//saveImages();
//保存文本框
saveTxtContent();
#endregion
bool save = false;
if (AddOrUpdate == "add")
{
save = true;
WeekAndMonthReportNewService.Insert(report);
}
else
{
save = true;
WeekAndMonthReportNewService.Update(report);
}
if (save)
{
ShowNotify("保存成功!", MessageBoxIcon.Success);
@@ -5828,19 +5836,22 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
try
{
try
var result = db.Report_CqmsTarget.Where(a => a.ReportId == ReportId);
db.Report_CqmsTarget.DeleteAllOnSubmit(result);
if (detailLists.Count > 0)
{
CqmsTargetService.Delete(ReportId);//本月质量目标管理情况
//CqmsTargetService.Delete(ReportId);//本月质量目标管理情况
db.Report_CqmsTarget.InsertAllOnSubmit(detailLists);
db.SubmitChanges();
}
catch (Exception)
{
return;
}
db.SubmitChanges();
}
catch (Exception)
{
return;
}
}
#endregion
@@ -6216,7 +6227,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
#endregion
try
{
TextBoxContentService.Delete(ReportId);
var result = db.Report_TextBoxContent.Where(a => a.ReportId == ReportId).ToList();
db.Report_TextBoxContent.DeleteAllOnSubmit(result);
//TextBoxContentService.Delete(ReportId);
db.Report_TextBoxContent.InsertAllOnSubmit(txtContentList);
db.SubmitChanges();