数据穿透

This commit is contained in:
geh
2026-03-06 14:24:20 +08:00
parent 474e208256
commit a05f640047
115 changed files with 14173 additions and 203 deletions
@@ -1053,6 +1053,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.Grid1.DataBind();
}
var personList = new List<Model.SitePerson_Person>();
if (string.IsNullOrEmpty(errorInfos))
{
@@ -1147,6 +1148,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
getPerson.IsCardUsed = persons[i].IsCardUsedName == "是" ? true : false;
Funs.DB.SubmitChanges();
}
personList.Add(getPerson);
}
//Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ProjectInformation);
//Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.OfSafetySupervisors);
@@ -1158,6 +1161,19 @@ namespace FineUIPro.Web.HSSE.SitePerson
System.IO.File.Delete(filePath);//删除上传的XLS文件
}
ShowNotify("导入成功!", MessageBoxIcon.Success);
var porject = BLL.ProjectService.GetProjectByProjectId(this.ProjectId);
if (!string.IsNullOrWhiteSpace(porject.SubjectUnit) && !string.IsNullOrWhiteSpace(porject.SubjectProject))
{
if (personList.Count > 0)
{
foreach (var sitePersonPerson in personList)
{
//项目关联了总包单位项目,保存成功后自动推送至总包单位
APIPersonSyncService.pushPersonLists(this.ProjectId, sitePersonPerson.PersonId);
}
}
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else