Esempio n. 1
0
        private void FillComMode()
        {
            List <PermissionVo> voList = new List <PermissionVo>();
            DataTable           dt     = SelectDao.GetPermission();

            foreach (DataRow dr in dt.Rows)
            {
                comMode.Properties.Items.Add(dr[0].ToString());
            }
        }
Esempio n. 2
0
        public void GetUserRight(string userName)
        {
            DataTable dt = SelectDao.GetPermission(userName);

            foreach (DataRow dr in dt.Rows)
            {
                string mode = dr[0].ToString();
                if (RightDic.ContainsKey(mode))
                {
                    RightDic[mode] = true;
                }
            }
        }