This commit is contained in:
2024-09-25 15:13:49 +08:00
parent 5d5bc5598d
commit 5d70e1689a
16 changed files with 372 additions and 419 deletions
+29 -2
View File
@@ -243,7 +243,16 @@ namespace FineUIPro.Web.CLGL
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.Tw_OutPlanMasterMenuId, Const.BtnAdd))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("OutPlanMasterEdit.aspx", "新增 - ")));
if (string.IsNullOrEmpty(tvControlItem.SelectedNodeID))
{
Alert.ShowInTop("请选择单位工程!", MessageBoxIcon.Warning);
return;
}
else
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("OutPlanMasterEdit.aspx?UnitWorkId={0} ", tvControlItem.SelectedNodeID, "新增 - ")));
}
}
else
{
@@ -329,6 +338,23 @@ namespace FineUIPro.Web.CLGL
protected void btnMenuInOutPlanMasterEdit_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
string planId = Grid1.SelectedRowID;
var planMaster = BLL.TwInOutplanmasterService.GetById(planId);
if (planMaster.State != (int)TwConst.State. || planMaster.TypeInt != (int)TwConst.TypeInt.)
{
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
return;
}
else
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("OutPlanMasterEdit.aspx?UnitWorkId={0}&Id={1} ", tvControlItem.SelectedNodeID, planId, "新增 - ")));
}
}
protected void btnPassMaster_OnClick(object sender, EventArgs e)
@@ -573,8 +599,9 @@ namespace FineUIPro.Web.CLGL
}
}
}
#endregion
}
}