修改实施计划

This commit is contained in:
2023-07-07 11:22:17 +08:00
parent 8d785cef99
commit 1aeb58e84f
2 changed files with 33 additions and 2 deletions
@@ -243,6 +243,11 @@
function reloadGrid() { function reloadGrid() {
__doPostBack(null, 'reloadGrid'); __doPostBack(null, 'reloadGrid');
} }
function removeActiveTab() {
debugger;
window.parent.parent.removeActiveTab();
}
</script> </script>
</body> </body>
</html> </html>
@@ -299,9 +299,22 @@ namespace FineUIPro.Web.ZHGL.Plan
Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning); Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning);
return; return;
} }
Model.ActionPlan_ActionPlanList actionPlanList = ActionPlanListService.GetActionPlanListById(ActionPlanListId);
string state = string.Empty;
if (actionPlanList != null)
{
state = actionPlanList.States;
}
this.SaveData(BLL.Const.BtnSave); this.SaveData(BLL.Const.BtnSave);
if (state == Const.ActionPlanList_DepartReview)
{
PageContext.RegisterStartupScript(String.Format("removeActiveTab();"));
}
else
{
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
} }
}
/// <summary> /// <summary>
/// 提交按钮 /// 提交按钮
@@ -325,9 +338,22 @@ namespace FineUIPro.Web.ZHGL.Plan
Alert.ShowInTop("请选择评审人员!", MessageBoxIcon.Warning); Alert.ShowInTop("请选择评审人员!", MessageBoxIcon.Warning);
return; return;
} }
Model.ActionPlan_ActionPlanList actionPlanList = ActionPlanListService.GetActionPlanListById(ActionPlanListId);
string state = string.Empty;
if (actionPlanList != null)
{
state = actionPlanList.States;
}
this.SaveData(BLL.Const.BtnSubmit); this.SaveData(BLL.Const.BtnSubmit);
if (state == Const.ActionPlanList_DepartReview)
{
PageContext.RegisterStartupScript(String.Format("removeActiveTab();"));
}
else
{
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
} }
}
/// <summary> /// <summary>
/// 保存数据 /// 保存数据