コード例 #1
0
        public void getQX()
        {
            BLL.NJ.PermissionsBLL permissionsBLL = new BLL.NJ.PermissionsBLL();
            JavaScriptSerializer  js             = new JavaScriptSerializer();
            var    table = permissionsBLL.GetPermissios();
            string str   = js.Serialize(table);

            HttpContext.Current.Response.Write(str);
            HttpContext.Current.Response.End();
        }
コード例 #2
0
        /// <summary>
        /// 二级菜单
        /// </summary>
        public void getSePermissios1()
        {
            BLL.NJ.PermissionsBLL userBLL = new BLL.NJ.PermissionsBLL();
            var r = HttpContext.Current.Request.Form["caidan1"];
            JavaScriptSerializer js = new JavaScriptSerializer();
            var    table            = userBLL.getSeEJ(r);
            string str = js.Serialize(table);

            HttpContext.Current.Response.Write(str);
            HttpContext.Current.Response.End();
        }