public override void RenderPage() { try { UserRule objUserRule = new UserRule(); litRoleName.Text = objUserRule.Sys_Role.FirstOrDefault(s => s.RoleID == RoleID).RoleName; sys_authorizegroup objsys_authorizegroup = objUserRule.sys_authorizegroup.First(s => s.AuthorizeGroupID == AuthorizeGroupID); if (objsys_authorizegroup.IsSupertGroup) { XmlDataSource.Data = objPowerRule.GetPowerTreexXmlText(objsys_authorizegroup.ModuleTypeID, CurrentUser.IsSuper); } else { XmlDataSource.Data = objPowerRule.GetPowerTreexXmlText(objsys_authorizegroup.ModuleTypeID, objsys_authorizegroup.AuthorizeGroupID); } if (RoleID.IsNoNull()) { // 取得角色权限 tvwPower.SetSelectValue(objUserRule.GetRoleKeyPower(RoleID), false); } tvwPower.DataBind(); } catch { } }
/// <summary> /// 页面初始化 /// </summary> public override void RenderPage() { if (RoleID.IsNoNull()) { rptDatalList.DataSource = objModuleRule.GetRolePowerModuleData(ModuleID, RoleID); rptDatalList.DataBind(); } else { } }
/// <summary> /// 页面初始化 /// </summary> public override void RenderPage() { if (RoleID.IsNoNull()) { rptDatalList.DataSource = objModuleRule.GetUserRolePowerModuleData(ModuleID, CurrentAccountTypeAdminUserID); rptDatalList.DataBind(); } else { } }
public override void RenderPage() { if (RoleID.IsNoNull()) { objRole = objUserRule.Sys_Role.First(s => s.RoleID == RoleID && s.AuthorizeGroupID == AuthorizeGroupID); if (CheckEditObjectIsNull(objRole)) { return; } string userIDString = objUserRule.GetRoleUser(RoleID); if (!string.IsNullOrWhiteSpace(userIDString)) { foreach (Sys_User objSys_User in objUserRule.Sys_User.WhereCondition("it.UserID in {" + userIDString.ConvertStringID() + "}").ToList()) { chkRoleUser.Items.Add(new ListItem() { Text = objSys_User.UserName, Value = objSys_User.UserID, Selected = true }); } } Page.DataBind(); } }