You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
3 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Web;
|
||
|
using Tools;
|
||
|
|
||
|
namespace PaintingScreen.Handler
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// StationPlanHandler 的摘要说明
|
||
|
/// </summary>
|
||
|
public class StationPlanHandler : IHttpHandler
|
||
|
{
|
||
|
|
||
|
HttpRequest Request = null;
|
||
|
HttpResponse Response = null;
|
||
|
|
||
|
public void ProcessRequest(HttpContext context)
|
||
|
{
|
||
|
context.Response.ContentType = "text/plain";
|
||
|
Request = context.Request;
|
||
|
Response = context.Response;
|
||
|
string method = Request.Params["method"];
|
||
|
switch (method)
|
||
|
{
|
||
|
case "GetTableContent":
|
||
|
GetTableContent();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public bool IsReusable
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void GetTableContent()
|
||
|
{
|
||
|
Response.Write(JSONTools.DataTableToJson("result", StationPlanFunction.GetTableContent()));
|
||
|
Response.End();
|
||
|
}
|
||
|
}
|
||
|
}
|