/*/// <summary> * /// btnSetAdminPrivsBySys_Click * /// </summary> * /// <param name="sender"></param> * /// <param name="e"></param> * protected void btnSetAdminPrivsBySys_Click(object sender, EventArgs e) * { * EyouSoft.BLL.SysStructure.BSys bll = new EyouSoft.BLL.SysStructure.BSys(); * if (bll.SetUserBySysPrivs(UserId, SysId) == 1) * { * RegisterAlertAndReloadScript("设置管理员账号权限为子系统权限成功"); * } * else * { * RegisterAlertAndReloadScript("设置管理员账号权限为子系统权限失败"); * } * bll = null; * }*/ /// <summary> /// btnSetAdminRoleByAdminRole_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSetAdminRoleByAdminRole_Click(object sender, EventArgs e) { EyouSoft.BLL.SysStructure.BSys bll = new EyouSoft.BLL.SysStructure.BSys(); int roleId = bll.GetSysRoleId(CompanyId); if (bll.SetUserRole(UserId, roleId)) { RegisterAlertAndReloadScript("设置管理员为管理员角色成功"); } else { RegisterAlertAndReloadScript("设置管理员为管理员角色成功"); } }
/// <summary> /// btnSetAdminPrivsBySys_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSetAdminRoleBySys_Click(object sender, EventArgs e) { EyouSoft.BLL.SysStructure.BSys bll = new EyouSoft.BLL.SysStructure.BSys(); int roleId = bll.GetSysRoleId(CompanyId); if (bll.SetRoleBySysPrivs(roleId, SysId) == 1) { RegisterAlertAndReloadScript("设置管理员角色权限为子系统权限成功"); } else { RegisterAlertAndReloadScript("设置管理员角色权限为子系统权限失败"); } bll = null; }