diff --git a/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx index 8bbb55d5..b0b2dce9 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx @@ -243,6 +243,11 @@ function reloadGrid() { __doPostBack(null, 'reloadGrid'); } + + function removeActiveTab() { + debugger; + window.parent.parent.removeActiveTab(); + } diff --git a/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx.cs index 42878ac1..aa0bf3f7 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx.cs @@ -299,8 +299,21 @@ namespace FineUIPro.Web.ZHGL.Plan Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning); return; } + Model.ActionPlan_ActionPlanList actionPlanList = ActionPlanListService.GetActionPlanListById(ActionPlanListId); + string state = string.Empty; + if (actionPlanList != null) + { + state = actionPlanList.States; + } this.SaveData(BLL.Const.BtnSave); - PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + if (state == Const.ActionPlanList_DepartReview) + { + PageContext.RegisterStartupScript(String.Format("removeActiveTab();")); + } + else + { + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } } /// @@ -325,8 +338,21 @@ namespace FineUIPro.Web.ZHGL.Plan Alert.ShowInTop("请选择评审人员!", MessageBoxIcon.Warning); return; } + Model.ActionPlan_ActionPlanList actionPlanList = ActionPlanListService.GetActionPlanListById(ActionPlanListId); + string state = string.Empty; + if (actionPlanList != null) + { + state = actionPlanList.States; + } this.SaveData(BLL.Const.BtnSubmit); - PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + if (state == Const.ActionPlanList_DepartReview) + { + PageContext.RegisterStartupScript(String.Format("removeActiveTab();")); + } + else + { + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } } ///