数据穿透

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
@@ -83,8 +83,8 @@
<f:TextBox ID="txtUnitName" runat="server" Label="所属单位" LabelAlign="Right"
Readonly="true" LabelWidth="110px"></f:TextBox>
<f:DropDownBox runat="server" Label="单位工程" ShowRedStar="true" LabelAlign="Right" LabelWidth="110px"
Required="true" ID="txtWorkArea" EmptyText="--请选择--" EnableMultiSelect="true" MatchFieldWidth="true">
<f:DropDownBox runat="server" Label="单位工程" LabelAlign="Right" LabelWidth="110px"
ID="txtWorkArea" EmptyText="--请选择--" EnableMultiSelect="true" MatchFieldWidth="true">
<PopPanel>
<f:Grid ID="gvWorkArea" DataIDField="UnitWorkId"
EnableMultiSelect="true" KeepCurrentSelection="true" Height="300px" Hidden="true" SortField="UnitWorkId" DataTextField="UnitWorkName"
@@ -359,6 +359,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
return;
}
SaveData();
#region
var porject = BLL.ProjectService.GetProjectByProjectId(this.ProjectId);
if (!string.IsNullOrWhiteSpace(porject.SubjectUnit) && !string.IsNullOrWhiteSpace(porject.SubjectProject))
{
//项目关联了总包单位项目,保存成功后自动推送至总包单位
APIPersonSyncService.pushPersonLists(this.ProjectId, this.PersonId);
}
#endregion
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}