Exemplo n.º 1
0
 /// <summary>
 /// 创建IBLL实例对象
 /// </summary>
 /// <returns></returns>
 public static EyouSoft.IBLL.TicketStructure.ITicketFlightCompany CreateInstance()
 {
     EyouSoft.IBLL.TicketStructure.ITicketFlightCompany op = null;
     if (op == null)
     {
         op = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IBLL.TicketStructure.ITicketFlightCompany>();
     }
     return(op);
 }
Exemplo n.º 2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string        companyName = Utils.GetQueryStringValue("seachKey");
            StringBuilder builder     = new StringBuilder();

            EyouSoft.IBLL.TicketStructure.ITicketFlightCompany         ticketCompanyBll = EyouSoft.BLL.TicketStructure.TicketFlightCompany.CreateInstance();
            IList <EyouSoft.Model.TicketStructure.TicketFlightCompany> list             = ticketCompanyBll.GetTicketFlightCompanyList(companyName);

            foreach (EyouSoft.Model.TicketStructure.TicketFlightCompany companyInfo in list)
            {
                builder.Append(companyInfo.AirportName + "(" + companyInfo.AirportCode + ")" + "~&&~" + companyInfo.Id + "\n");
            }
            context.Response.Write(builder.ToString());
        }