2023-10-19
This commit is contained in:
@@ -91,8 +91,14 @@ namespace FineUIPro.Web.PHTGL.BillOfQuantities
|
||||
case "4":
|
||||
menuid = Const.TemQuantityListMenuId4;
|
||||
break;
|
||||
case "5":
|
||||
menuid = Const.TemQuantityListMenuId5;
|
||||
case "5.1":
|
||||
menuid = Const.TemQuantityListMenuId5_1;
|
||||
break;
|
||||
case "5.2":
|
||||
menuid = Const.TemQuantityListMenuId5_2;
|
||||
break;
|
||||
case "5.3":
|
||||
menuid = Const.TemQuantityListMenuId5_3;
|
||||
break;
|
||||
case "6":
|
||||
menuid = Const.TemQuantityListMenuId6;
|
||||
@@ -115,6 +121,11 @@ namespace FineUIPro.Web.PHTGL.BillOfQuantities
|
||||
if (buttonList.Contains(Const.BtnModify)) btnMenuEdit.Hidden = false;
|
||||
if (buttonList.Contains(Const.BtnDelete)) btnMenuDelete.Hidden = false;
|
||||
}
|
||||
|
||||
if (this.CurrUser.PersonId==Const.hfnbdId)
|
||||
{
|
||||
btnCheck.Hidden=false;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -296,5 +307,14 @@ namespace FineUIPro.Web.PHTGL.BillOfQuantities
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
protected void btnCheck_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
var table = new PHTGL_Quantity();
|
||||
table.Major = BLL.PHTGL_QuantityService.GetMajorItems().Where(x => x.Text == Type).Select(x => x.Value).FirstOrDefault() ?? "";
|
||||
table.IsTemplate = true;
|
||||
var tb = PHTGL_QuantityService.GetPHTGL_QuantityByModle(table);
|
||||
PHTGL_QuantityService.CheckSubProjectName(tb);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user