/// <summary> /// 绑定数据 /// </summary> private void BindData() { if (RoleID > 0) { try { Role role = biService.GetRole(RoleID); if (role != null) { txtName.Text = role.Name; rblstatus.SelectedValue = ((int)role.Status).ToString(); rblRoleTypes.SelectedValue = ((int)role.RoleType).ToString(); txtDescription.Text = role.Description; } } catch (NotRightException) { AlertBack("您没有权限执行此操作"); } } }