You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using web.Classes;
namespace web.Interface
{
/// <summary>
/// StatusController 的摘要说明
/// </summary>
public class StatusController : IHttpHandler
{
public void ProcessRequest ( HttpContext context )
{
string rst = "";
string action= context.Request["action"];
if (action == "GetStatusForWHLWithBLNO")
{
rst = GetStatusForWHLWithBLNO(context);
}
else
{
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
}
context.Response.Write(rst);
}
public string GetStatusForWHLWithBLNO ( HttpContext context )
{
context.Response.ContentType = "text/plain";
string blno = context.Request["blno"];
if (blno==null||blno=="")
{
return "";
}
WHLStatusSearchTools st = new WHLStatusSearchTools();
string html = st.GetWHLHTMLDataWithHBLNO(blno);
return html;
}
public bool IsReusable
{
get
{
return false;
}
}
}
}