提交代码

This commit is contained in:
高飞 2023-10-25 15:24:07 +08:00
parent ffbb79697d
commit d1a4134e7b
1 changed files with 27 additions and 1 deletions

View File

@ -304,7 +304,33 @@ namespace FineUIPro.Web.PZHGL.InformationProject
foreach (var personLog in personLogs)
{
var projectUser = SitePerson_PersonService.GetSitePersonByProjectIdPersonId(this.CurrUser.LoginProjectId, personLog.CompileMan);
if (projectUser != null && projectUser.WorkPostId != BLL.Const.WorkPost_ConstructionManager)
if (projectUser != null)
{
if (projectUser.WorkPostId != BLL.Const.WorkPost_ConstructionManager)
{
if (!string.IsNullOrEmpty(personLog.HSETodaySummary) || !string.IsNullOrEmpty(personLog.HSETodaySummaryRemark) || !string.IsNullOrEmpty(personLog.HSETomorrowPlan) || !string.IsNullOrEmpty(personLog.HSETomorrowPlanRemark))
{
Model.ConstructionLogHSE hse = new Model.ConstructionLogHSE();
hse.ConstructionLogId = personLog.ConstructionLogId;
hse.HSETodaySummary = personLog.HSETodaySummary;
hse.HSETodaySummaryRemark = personLog.HSETodaySummaryRemark;
hse.HSETomorrowPlan = personLog.HSETomorrowPlan;
hse.HSETomorrowPlanRemark = personLog.HSETomorrowPlanRemark;
hses.Add(hse);
}
if (!string.IsNullOrEmpty(personLog.CQMSTodaySummary) || !string.IsNullOrEmpty(personLog.CQMSTodaySummaryRemark) || !string.IsNullOrEmpty(personLog.CQMSTomorrowPlan) || !string.IsNullOrEmpty(personLog.CQMSTomorrowPlanRemark))
{
Model.ConstructionLogCQMS cqms = new Model.ConstructionLogCQMS();
cqms.ConstructionLogId = personLog.ConstructionLogId;
cqms.CQMSTodaySummary = personLog.CQMSTodaySummary;
cqms.CQMSTodaySummaryRemark = personLog.CQMSTodaySummaryRemark;
cqms.CQMSTomorrowPlan = personLog.CQMSTomorrowPlan;
cqms.CQMSTomorrowPlanRemark = personLog.CQMSTomorrowPlanRemark;
cqmss.Add(cqms);
}
}
}
else
{
if (!string.IsNullOrEmpty(personLog.HSETodaySummary) || !string.IsNullOrEmpty(personLog.HSETodaySummaryRemark) || !string.IsNullOrEmpty(personLog.HSETomorrowPlan) || !string.IsNullOrEmpty(personLog.HSETomorrowPlanRemark))
{