/// <summary> /// 获取此人的场景列表 /// </summary> /// <param name="context"></param> public void GetSence(HttpContext context) { if (HttpContext.Current.Session["userID"] != null) { string userId = HttpContext.Current.Session["userID"].ToString(); string selectStr = HttpContext.Current.Request.Form["selectStr"]; string hnagye = HttpContext.Current.Request.Form["hnagye"]; string PageInt = HttpContext.Current.Request.Form["PageInt"]; string CountRow = HttpContext.Current.Request.Form["CountRow"]; sceneBll bll = new sceneBll(); DataTable dt = bll.GetSenceByUserId(userId, selectStr, hnagye, int.Parse(PageInt), int.Parse(CountRow)); if (dt == null) { context.Response.Write("{\"status\":\"-1\"}"); return; } string json = f.ToJson(dt); json = json.Replace("\"", "\\\""); context.Response.Write("{\"status\":\"" + json + "\"}"); } else { context.Response.Write("{\"status\":\"-1\"}"); return; } }