11
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user