using System; using System.Collections.Generic; using System.Linq; using System.Web; using web.Classes; namespace web.Interface { /// /// StatusController 的摘要说明 /// 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; } } } }