コード例 #1
0
        /// <summary>
        /// 员工权限信息查询
        /// </summary>
        public void getManagement()
        {
            BLL.NJ.ManagementBLL manbll = new BLL.NJ.ManagementBLL();
            var s = HttpContext.Current.Request.Form["dep"];
            var d = HttpContext.Current.Request.Form["curr"];
            var f = HttpContext.Current.Request.Form["pos"];
            JavaScriptSerializer js = new JavaScriptSerializer();
            var    table            = manbll.getManagement(s, d, f);
            string str = js.Serialize(table);

            HttpContext.Current.Response.Write(str);
            HttpContext.Current.Response.End();
        }
コード例 #2
0
        /// <summary>
        /// 删除员工
        /// </summary>
        public void getUpnabage()
        {
            BLL.NJ.ManagementBLL dep = new BLL.NJ.ManagementBLL();
            var s = "false";
            var d = HttpContext.Current.Request.Form["job"];
            var r = dep.getUpManage(s, d);
            JavaScriptSerializer js = new JavaScriptSerializer();
            var obj = new { msg = "删除失败", code = 201 };

            if (r)
            {
                obj = new { msg = "删除成功", code = 200 };
            }
            string str = js.Serialize(obj);

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