This commit is contained in:
2024-05-24 09:36:11 +08:00
parent 4fb7817f31
commit f6fab4e448
3 changed files with 47 additions and 7 deletions
@@ -264,6 +264,20 @@ namespace FineUIPro.Web.ProjectData
this.InsertConstructionStandardListToProject(project.ProjectId); ////初始化项目标准规范清单
this.InsertITPListProject(project.ProjectId); // 初始化ITP列表
this.InsertZT(project); //初始化总图
if (project.ProjectState == "3")
{
var persons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == project.ProjectId);
foreach(var item in persons)
{if (!item.OutTime.HasValue)
{
item.OutTime = project.EndDate;
}
item.IsUsed = 0;
}
Funs.DB.SubmitChanges();
}
ShowNotify("保存数据成功!", MessageBoxIcon.Success);
// 2. 关闭本窗体,然后刷新父窗体
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());