Esempio n. 1
0
        /// <summary>
        /// 获取数据
        /// </summary>
        /// <returns></returns>
        public void GetRoleList()
        {
            int       parentid = 0;
            int       roleId   = 0;
            DataTable dt       = bll_m.GetMenuListByParentID(parentid, roleId).Tables[0];

            rpt_RoleList.DataSource = dt.DefaultView;
            rpt_RoleList.DataBind();
        }
Esempio n. 2
0
        /// <summary>
        /// 获取数据
        /// </summary>
        /// <returns></returns>
        public DataTable GetInfoDS()
        {
            BLL.Sys_MenuBLL bll_m  = new BLL.Sys_MenuBLL();
            int             pid    = 0;
            int             roleId = int.Parse(Session["RoleID"].ToString());
            DataSet         ds     = bll_m.GetMenuListByParentID(pid, roleId);

            if (ds.Tables[0].Rows.Count > 0)
            {
                return(ds.Tables[0]);
            }
            else
            {
                return(null);
            }
        }