From 1aeb58e84f9488c78802542509396e27ee405216 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 7 Jul 2023 11:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9E=E6=96=BD=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ZHGL/Plan/ActionPlanListEdit.aspx | 5 ++++ .../ZHGL/Plan/ActionPlanListEdit.aspx.cs | 30 +++++++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) 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()); + } } ///