59 lines
1.5 KiB
C#
59 lines
1.5 KiB
C#
|
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
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// SESReport1 的摘要说明
|
|||
|
/// </summary>
|
|||
|
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);
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 查询数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="FoNo"></param>
|
|||
|
/// <returns></returns>
|
|||
|
public string SESReportBrid(string FoNo)
|
|||
|
{
|
|||
|
string strJson = "";
|
|||
|
List<FC_SESReport> 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|