private void LoadGroup() { RightGroupManage RightGroupManage = new RightGroupManage(); DataTable dtl = RightGroupManage.GetRightGroupInfo(); gridGroup.DataSource = dtl; }
/// <summary> /// 加载权限组 /// </summary> private void LoadRightGroup() { RightGroupManage RightGroupManage = new RightGroupManage(); DataTable dtl = RightGroupManage.GetRightGroupInfo(); ListItem listitem = new ListItem(); chklstGroup.Items.Clear(); for (int i = 0; i < dtl.Rows.Count; i++) { listitem = new ListItem(); listitem.Text = dtl.Rows[i]["GroupName"].ToString(); listitem.Value = dtl.Rows[i]["GroupGuid"].ToString(); chklstGroup.Items.Add(listitem); } }