This commit is contained in:
parent
74ed6ce38d
commit
5030ef836e
|
@ -18,10 +18,25 @@ namespace BLL
|
|||
public const string sysglyId = "AF17168B-87BD-4GLY-1111-F0A0A1158F9B";
|
||||
|
||||
/// <summary>
|
||||
/// 系统管理员ID
|
||||
/// 系统管理员ID——JT
|
||||
/// </summary>
|
||||
public const string hfnbdId = "C4A62EC0-E5D3-4EBF-A5FA-E56AA89633C0";
|
||||
|
||||
/// <summary>
|
||||
/// 施工部——付伟
|
||||
/// </summary>
|
||||
public const string fuweiId = "dd72a950-8a8e-4958-ba8c-954c58a9beea";
|
||||
|
||||
/// <summary>
|
||||
/// 施工部——申银行
|
||||
/// </summary>
|
||||
public const string shenyinhangId = "fb3b3171-f2f3-40b1-b40b-9424cc14ecfe";
|
||||
|
||||
/// <summary>
|
||||
/// 施工部——张慧敏
|
||||
/// </summary>
|
||||
public const string zhanghuiminId = "fb3b3171-f2f3-40b1-b40b-9424cc14ecfe";
|
||||
|
||||
/// <summary>
|
||||
/// 公共临时账户ID
|
||||
/// </summary>
|
||||
|
|
|
@ -316,11 +316,11 @@ namespace FineUIPro.Web.ProjectData
|
|||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, menuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
btnUpdata.Hidden = false;
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
//if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
//{
|
||||
// btnUpdata.Hidden = false;
|
||||
// this.btnNew.Hidden = false;
|
||||
//}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify) || buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
|
@ -330,6 +330,13 @@ namespace FineUIPro.Web.ProjectData
|
|||
this.btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
|
||||
string curruserId = this.CurrUser.UserId;
|
||||
if (curruserId == Const.sysglyId || curruserId == Const.hfnbdId || curruserId == Const.fuweiId || curruserId == Const.shenyinhangId || curruserId == Const.zhanghuiminId)
|
||||
{//只有管理员、JT、付伟、申银行、张慧敏的账号可以新增和维护项目数据
|
||||
btnUpdata.Hidden = false;
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -178,8 +178,8 @@
|
|||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtWorkRange" runat="server" Label="工作范围" MaxLength="500" Height="100px"></f:TextArea>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="项目概况" MaxLength="500" Height="100px" LabelWidth="150px"></f:TextArea>
|
||||
<f:TextArea ID="txtWorkRange" runat="server" Label="工作范围" MaxLength="500" Height="120px"></f:TextArea>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="项目概况" MaxLength="500" Height="120px" LabelWidth="150px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
|
|
@ -35,6 +35,18 @@ namespace FineUIPro.Web.ProjectData
|
|||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
string curruserId = this.CurrUser.UserId;
|
||||
if (curruserId == Const.sysglyId || curruserId == Const.hfnbdId || curruserId == Const.fuweiId || curruserId == Const.shenyinhangId || curruserId == Const.zhanghuiminId)
|
||||
{//只有管理员、JT、付伟、申银行、张慧敏的账号可以新增和维护项目数据
|
||||
btnSave.Hidden = false;
|
||||
this.btnSave.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnSave.Hidden = true;
|
||||
this.btnSave.Hidden = true;
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
BindGrid2();
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
|
Loading…
Reference in New Issue