Exemplo n.º 1
0
        private void LoadGroup()
        {
            RightGroupManage RightGroupManage = new RightGroupManage();
            DataTable        dtl = RightGroupManage.GetRightGroupInfo();

            gridGroup.DataSource = dtl;
        }
Exemplo n.º 2
0
        /// <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);
            }
        }