using BLL; using Model; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Script.Serialization; using System.Web.SessionState; namespace FineUIPro.Web.SES { /// /// SESReport1 的摘要说明 /// public class SESReport1 : IHttpHandler, IRequiresSessionState { public static Model.FCLDB db = Funs.DB; JavaScriptSerializer j = new JavaScriptSerializer(); private void ResponseError(HttpContext context) { // 出错了 context.Response.StatusCode = 500; context.Response.Write("No SES"); } public void ProcessRequest(HttpContext context) { string FoNo = context.Request.Form["FoNo"]; //查询数据 string strJson = SESReportBrid(FoNo); context.Response.Write(strJson); } /// /// 查询数据 /// /// /// public string SESReportBrid(string FoNo) { string strJson = ""; List ListReport = db.FC_SESReport.Where(p => p.FO == FoNo).ToList(); if (ListReport.Count > 0) { strJson = j.Serialize(ListReport); } return strJson; } public bool IsReusable { get { return false; } } } }