Beispiel #1
0
        public List <ClsUserProcesscs> GetAllUserPermission()
        {
            UserMaster Tables             = new UserMaster();
            DataSet    ds                 = Tables.GetAllUserPermission();
            List <ClsUserProcesscs> _list = new List <ClsUserProcesscs>();
            ClsUserProcesscs        DetailList;

            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    if (ds.Tables[0].Rows[i] != null)
                    {
                        DetailList             = new ClsUserProcesscs();
                        DetailList.ProcessID   = Convert.ToInt32(ds.Tables[0].Rows[i]["ProcessID"].ToString());
                        DetailList.ProcessKey  = ds.Tables[0].Rows[i]["ProcessKey"].ToString();
                        DetailList.ProcessDesc = ds.Tables[0].Rows[i]["ProcessDesc"].ToString();
                        _list.Add(DetailList);
                    }
                }
                return(_list);
            }
        }