修改项目成立页面保存后刷新问题

This commit is contained in:
2023-10-31 12:42:06 +08:00
parent fa926c80f1
commit 431c62a9a5
5 changed files with 61 additions and 36 deletions
@@ -37,7 +37,7 @@ namespace FineUIPro.Web.ProjectData
ProjectTypeService.InitProjectTypeDropDownList(this.drpProjectType, true);
ProjectTypeService.InitProvinceDropDownList(this.drpProvince, true);
this.ProjectId = Request.QueryString["ProjectId"];
UnitService.InitBranchUnitDropDownList(this.drpUnit, true, true);
this.drpUnit.SelectedValue = Const.UnitId_SEDIN;
if (!String.IsNullOrEmpty(this.ProjectId))
@@ -82,7 +82,7 @@ namespace FineUIPro.Web.ProjectData
this.drpHSSEManager.SelectedValue = SitePerson_PersonService.GetPersonIdByProjectIdRoleID(this.ProjectId, Const.HSSEManager);
this.drpProjectState.SelectedValue = project.ProjectState;
this.ckIsUpTotalMonth.Checked = project.IsUpTotalMonth.Value;
if (project.IsForeign == true)
@@ -150,8 +150,8 @@ namespace FineUIPro.Web.ProjectData
Country = this.txtCountry.Text.Trim(),
City = this.txtCity.Text.Trim(),
EnglishRemark = this.txtEnglishRemark.Text.Trim(),
ProjectRealCode=this.txtProjectRealCode.Text.Trim(),
IsCNCECShow=Convert.ToBoolean( this.rbIsCNCECShow.SelectedValue),
ProjectRealCode = this.txtProjectRealCode.Text.Trim(),
IsCNCECShow = Convert.ToBoolean(this.rbIsCNCECShow.SelectedValue),
};
if (!string.IsNullOrEmpty(txtStartDate.Text.Trim()))
@@ -207,7 +207,7 @@ namespace FineUIPro.Web.ProjectData
// 2. 关闭本窗体,然后刷新父窗体
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
// 2. 关闭本窗体,然后回发父窗体
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(Request.Params["PageIndex"] + "," + Request.Params["PageSize"]) + ActiveWindow.GetHidePostBackReference());
//PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(wedId) + ActiveWindow.GetHideReference());
}
@@ -295,6 +295,6 @@ namespace FineUIPro.Web.ProjectData
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpConstructionManager, null, unitId, null, true);
///安全经理
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpHSSEManager, null, unitId, null, true);
}
}
}
}