Model.siteconfig siteConfig = new BLL.siteconfig().loadConfig(); //系统配置信息 public void ProcessRequest(HttpContext context) { //检查管理员是否登录 if (!new ManagePage().IsAdminLogin()) { context.Response.Write("{\"status\": 0, \"msg\": \"尚未登录或已超时,请登录后操作!\"}"); return; } //取得处事类型 string action = DTRequest.GetQueryString("action"); switch (action) { case "get_map": //验证用户名 string keywords = DTRequest.GetFormStringValue("keywords", ""); string areacode = DTRequest.GetFormStringValue("areacode", ""); int page = DTRequest.GetFormIntValue("page", 1); int pageSize = DTRequest.GetFormIntValue("pageSize", 1); string returnstr = getmap(areacode, keywords, page, pageSize); context.Response.ContentType = "text/plain"; context.Response.Write(returnstr); break; case "navigation_validate": //验证导航菜单别名是否重复 navigation_validate(context); break; case "manager_validate": //验证管理员用户名是否重复 manager_validate(context); break; case "get_navigation_list": //获取后台导航字符串 get_navigation_list(context); break; case "getJsonImgData": //获取图表数据 int id = DTRequest.GetFormIntValue("id", 0); string Date = DTRequest.GetFormStringValue("Date"); getJsonImgData(context, id, Date); break; } }