Esempio n. 1
0
        /// <summary>
        /// 查询航班信息
        /// </summary>
        void initFlights()
        {
            StringBuilder searchXML = new StringBuilder();
            string s = Utils.GetQueryStringValue("s");//出发城市
            string d = Utils.GetQueryStringValue("d");//到达城市
            if (s.Split('-').Length > 1)//获取城市三字码
            {
                s = s.Split('-')[1];
            }
            if (d.Split('-').Length > 1)
            {
                d = d.Split('-')[1];
            }
            if (string.IsNullOrEmpty(s)
                || string.IsNullOrEmpty(d))
            {
                Utils.RCWE("<a href='/AppPage/weixin/jp_Search.aspx?weidianid=" + WeiDianId + "'>没有相关航班,返回修改出发地或日期</a>");
            }
            searchXML.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
            searchXML.Append("<QueryWebFlights_1_1>");
            searchXML.AppendFormat("<From>{0}</From>", s);
            searchXML.AppendFormat("<Arrive>{0}</Arrive>", d);
            searchXML.AppendFormat("<Date>{0}</Date>", Utils.GetQueryStringValue("t"));
            searchXML.Append("<Carrier/>");
            searchXML.AppendFormat("<Time>0000</Time>");
            searchXML.Append("<StopType>D</StopType>");
            searchXML.Append("<CmdShare>0</CmdShare>");
            searchXML.Append("<BeTolerateTimes>60</BeTolerateTimes>");
            searchXML.Append("</QueryWebFlights_1_1>");

            var list = new com._8222666.fxb2b.Service().XmlSubmit(getIdentityXMLString(), searchXML.ToString(), "");

            XmlDocument dom = new XmlDocument();

            dom.LoadXml(list);

            if (dom.SelectSingleNode("ErrorInfo_1_0") != null)
            {
                return;
            }
            XmlNode nodeHash = dom.SelectSingleNode("QueryWebFlights_1_1").SelectSingleNode("Yeesky.AOIS.AV.ClassDescription");

            foreach (XmlNode item in nodeHash.ChildNodes)
            {
                hash.Add(item.Attributes["Key"].Value, item.Attributes["T"].Value);
            }
            if (hash != null)
            {
                Session["codes"] = hash;
            }

            XmlNode gzHash = dom.SelectSingleNode("QueryWebFlights_1_1").SelectSingleNode("Yeesky.AOIS.AV.TicketRules");

            foreach (XmlNode item in gzHash.ChildNodes)
            {
                List<string> lists = new List<string>();
                lists.Add(item.SelectSingleNode("Refund").InnerText);
                lists.Add(item.SelectSingleNode("Endorsement").InnerText);
                lists.Add(item.SelectSingleNode("Change").InnerText);
                //list.AddRange({item.SelectSingleNode("Refund").InnerText; item.SelectSingleNode("Endorsement").InnerText; item.SelectSingleNode("Change").InnerText});
                //gzhashs.Add(item.SelectSingleNode("TRID").InnerText, item.SelectSingleNode("Refund").InnerText);
                //gzhashs.Add(item.SelectSingleNode("TRID").InnerText, item.SelectSingleNode("Refund").InnerText);
                gzhashs.Add(item.SelectSingleNode("TRID").InnerText, lists);
            }

            List<Eyousoft_yhq.Model.HBModel> datalist = new List<Eyousoft_yhq.Model.HBModel>();
            XmlNodeList nodes = dom.SelectSingleNode("QueryWebFlights_1_1").SelectSingleNode("Yeesky.AOIS.AV.Results").SelectNodes("AV.Result");
            if (nodes.Count > 0)
            {
                for (int i = 0; i < nodes.Count; i++)
                {
                    var model = new Eyousoft_yhq.Model.HBModel();
                    model.ID = nodes[i].SelectSingleNode("ID").InnerText;
                    model.FlightID = nodes[i].SelectSingleNode("FlightID").InnerText;
                    model.ElementNo = nodes[i].SelectSingleNode("ElementNo").InnerText;
                    model.Carrier = nodes[i].SelectSingleNode("Carrier").InnerText;
                    model.CarrierName = nodes[i].SelectSingleNode("CarrierName").InnerText;
                    model.FlightNo = nodes[i].SelectSingleNode("FlightNo").InnerText;
                    model.ShareCarrier = nodes[i].SelectSingleNode("ShareCarrier").InnerText;
                    model.ShareCarrierName = nodes[i].SelectSingleNode("ShareCarrierName").InnerText;
                    model.ShareFlight = nodes[i].SelectSingleNode("ShareFlight").InnerText;
                    model.BoardPoint = nodes[i].SelectSingleNode("BoardPoint").InnerText;
                    model.BoardPointName = nodes[i].SelectSingleNode("BoardPointName").InnerText;
                    model.OffPoint = nodes[i].SelectSingleNode("OffPoint").InnerText;
                    model.OffPointName = nodes[i].SelectSingleNode("OffPointName").InnerText;
                    model.DepartureDate = Utils.GetDateTime(nodes[i].SelectSingleNode("DepartureDate").InnerText);
                    model.DepartureTime = Utils.GetDateTime(nodes[i].SelectSingleNode("DepartureTime").InnerText);
                    model.ArrivalDate = Utils.GetDateTime(nodes[i].SelectSingleNode("ArrivalDate").InnerText);
                    model.ArrivalTime = Utils.GetDateTime(nodes[i].SelectSingleNode("ArrivalTime").InnerText);
                    model.Aircraft = nodes[i].SelectSingleNode("Aircraft").InnerText;
                    model.AircraftName = nodes[i].SelectSingleNode("AircraftName").InnerText;
                    model.Meal = nodes[i].SelectSingleNode("Meal").InnerText;
                    model.MealName = nodes[i].SelectSingleNode("MealName").InnerText;
                    model.ViaPort = Utils.GetInt(nodes[i].SelectSingleNode("ViaPort").InnerText);
                    model.ETicket = nodes[i].SelectSingleNode("ETicket").InnerText;
                    model.ASR = nodes[i].SelectSingleNode("ASR").InnerText;
                    model.LinkLevel = nodes[i].SelectSingleNode("LinkLevel").InnerText;
                    model.AirportTax = Utils.GetDecimal(nodes[i].SelectSingleNode("AirportTax").InnerText);
                    model.FuelSurTax = Utils.GetDecimal(nodes[i].SelectSingleNode("FuelSurTax").InnerText);
                    model.Mileage = Utils.GetInt(nodes[i].SelectSingleNode("Mileage").InnerText);
                    //model.Flightx = nodes[i].SelectSingleNode("Flightx").InnerText;
                    //model.BoardTimex = nodes[i].SelectSingleNode("BoardTimex").InnerText;
                    //model.OffTimex = nodes[i].SelectSingleNode("OffTimex").InnerText;
                    model.BoardPointAT = nodes[i].SelectSingleNode("BoardPointAT").InnerText;
                    model.OffPointAT = nodes[i].SelectSingleNode("OffPointAT").InnerText;
                    model.YPrice = Utils.GetDecimal(nodes[i].SelectSingleNode("YPrice").InnerText);
                    model.Class = new List<Eyousoft_yhq.Model.webFlightInfo>();
                    XmlNode node = nodes[i].SelectSingleNode("Class");
                    int identyty = 0;
                    foreach (XmlNode item in node.ChildNodes)
                    {
                        Eyousoft_yhq.Model.webFlightInfo classModel = new Eyousoft_yhq.Model.webFlightInfo();
                        classModel.Seat = item.SelectSingleNode("Seat").InnerText;
                        classModel.Code = item.SelectSingleNode("Code").InnerText;
                        classModel.TradeId = item.SelectSingleNode("TradeId").InnerText;
                        classModel.TRID = Utils.GetInt(item.SelectSingleNode("TRID").InnerText);
                        classModel.Type_class = item.SelectSingleNode("Type").InnerText;
                        classModel.F = Utils.GetDecimal(item.SelectSingleNode("F").InnerText);
                        classModel.R = Utils.GetDecimal(item.SelectSingleNode("R").InnerText);
                        classModel.X = Utils.GetDecimal(item.SelectSingleNode("X").InnerText);
                        classModel.A = Utils.GetDecimal(item.SelectSingleNode("A").InnerText);
                        classModel.C = Utils.GetDecimal(item.SelectSingleNode("C").InnerText);
                        classModel.M = Utils.GetDecimal(item.SelectSingleNode("M").InnerText);
                        classModel.S = Utils.GetDecimal(item.SelectSingleNode("S").InnerText);
                        classModel.PriceSource = Utils.GetDecimal(item.SelectSingleNode("PriceSource").InnerText);
                        classModel.XmlNodeName = item.Name;
                        classModel.Identity = identyty;
                        if (classModel.F > 0)
                        {
                            identyty++;
                            model.Class.Add(classModel);
                        }
                    }
                    datalist.Add(model);

                }
            }
            int count = datalist.Count;
            StringBuilder strHTML = new StringBuilder();
            foreach (var item in datalist)
            {
                if (item.Class.Count == 0)
                    continue;
                strHTML.Append("<li>");
                strHTML.Append("<div class=\"jp-item\">");
                strHTML.Append("<a href=\"javascript:;\" target=\"_self\">");
                strHTML.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
                strHTML.Append("<tr>");
                strHTML.AppendFormat("<td class=\"leftside\">{0}</td>", item.DepartureTime.ToString("HH:mm"));
                strHTML.AppendFormat("<td class=\"midside\">{0}{1}</td>", item.CarrierName, item.FlightNo);
                var f = item.Class.Count > 0 ? item.Class.Select(x => x.F).Min() : 0;
                var t = (from c in item.Class
                         where c.F == f
                         select c).First();
                strHTML.AppendFormat("<td class=\"rightside\"><span class=\"price\"><dfn>¥</dfn>{0}</span></td>", f.ToString().TrimEnd('0').TrimEnd('.'));
                strHTML.Append("</tr>");
                strHTML.Append("<tr class=\"font-color\">");
                strHTML.AppendFormat("<td class=\"leftside\">{0}</td>", item.ArrivalTime.ToString("HH:mm"));
                strHTML.AppendFormat("<td class=\"midside\">{0}-{1}</td>", item.BoardPointName, item.OffPointName);
                strHTML.AppendFormat("<td class=\"rightside\"><a href=\"javascript:void(0):;\" onclick=\"showflightinfo($(this),'{0}')\" class=\"fontblue\">退改签</a></td>", Server.HtmlEncode(GetGZHtml(t.TRID.ToString())));

                strHTML.Append("</tr>");
                strHTML.Append("</table>");
                strHTML.Append("</a>");

                strHTML.Append("</div>");//拼接航班信息
                strHTML.Append("<div class=\"down\"></div>");
                if (item.Class != null && item.Class.Count > 0)
                {
                    strHTML.Append("<div class=\"jp_more\" style=\"display:none;\">");
                    strHTML.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
                    for (int k = 0; k < item.Class.Count; k++)
                    {
                        strHTML.Append("<tr>");
                        strHTML.AppendFormat("<td class=\"leftside\">{0}</td>", getCM(item.Carrier, item.Class[k].Code));
                        strHTML.AppendFormat("<td class=\"font_yellow\">{0}</td>", getZK(item.Class[k].XmlNodeName));
                        if (getYW(item.Class[k].Seat) == "0")
                        {
                            strHTML.Append("<td>已满</td>");
                            //strHTML.Append("<td></td>");
                        }
                        else
                        {
                            strHTML.AppendFormat("<td>余:{0}</td>", getYW(item.Class[k].Seat));
                            //<a href="javascript:void(0);" onmouseover="showflightinfo($(this),'CZ8465');" class="flightselectdetail">详细</a>

                        }
                        //如果没有退签
                        if (string.IsNullOrEmpty(gzhashs[item.Class[k].TRID.ToString()].ToString()) || item.Class[k].TRID.ToString() == "0")
                        {

                            strHTML.AppendFormat("<td align=\"center\"><a href=\"javascript:void(0);\" onclick=\"showflightinfo($(this),'{0}');\" class=\"fontblue\"></a></td>", "暂无");
                        }
                        else
                        {

                            strHTML.AppendFormat("<td align=\"center\"><a href=\"javascript:void(0);\" onclick=\"showflightinfo($(this),'{0}');\" class=\"fontblue\">退改签</a></td>", Server.HtmlEncode(GetGZHtml(item.Class[k].TRID.ToString())));
                        }
                        //如果座位没有显示为已满
                        if (getYW(item.Class[k].Seat) == "0")
                        {
                            strHTML.AppendFormat("<td class=\"rightside\"><a data-Id=\"{2}\" href=\"javascript:;\" class=\"price-btn\">{0}</a><div style=\"display:none;\">{1}</div></td>", "已满", Newtonsoft.Json.JsonConvert.SerializeObject(item), item.Class[k].Identity);

                        }
                        else
                        {
                            strHTML.AppendFormat("<td class=\"rightside\"><a data-Id=\"{2}\" href=\"javascript:;\" class=\"price-btn selectHB\"><dfn>¥</dfn>{0}</a><div style=\"display:none;\">{1}</div></td>", item.Class[k].F.ToString().TrimEnd('0').TrimEnd('.'), Newtonsoft.Json.JsonConvert.SerializeObject(item), item.Class[k].Identity);

                        }
                        //strHTML.Append("<a herf=\"javascript:;\" onclick=\"$('.gz').show()\">退签</a>");
                        //strHTML.AppendFormat("<input class=\"gz\" type=\"hidden\" value={0}/>", gzhashs[item.Class[k].TRID]);
                        strHTML.Append("</tr>");
                    }

                    strHTML.Append("</table>");
                    strHTML.Append("</div>");
                }
                strHTML.Append("</li>");
            }
            litHTML.Text = strHTML.ToString();
        }
Esempio n. 2
0
        /// <summary>
        /// 查询航班信息
        /// </summary>
        void initFlights()
        {
            StringBuilder searchXML = new StringBuilder();
            string        s         = Utils.GetQueryStringValue("s"); //出发城市
            string        d         = Utils.GetQueryStringValue("d"); //到达城市

            if (s.Split('-').Length > 1)                              //获取城市三字码
            {
                s = s.Split('-')[1];
            }
            if (d.Split('-').Length > 1)
            {
                d = d.Split('-')[1];
            }
            if (string.IsNullOrEmpty(s) ||
                string.IsNullOrEmpty(d))
            {
                Utils.RCWE("<a href='/AppPage/weixin/jp_Search.aspx?weidianid=" + WeiDianId + "'>没有相关航班,返回修改出发地或日期</a>");
            }
            searchXML.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
            searchXML.Append("<QueryWebFlights_1_1>");
            searchXML.AppendFormat("<From>{0}</From>", s);
            searchXML.AppendFormat("<Arrive>{0}</Arrive>", d);
            searchXML.AppendFormat("<Date>{0}</Date>", Utils.GetQueryStringValue("t"));
            searchXML.Append("<Carrier/>");
            searchXML.AppendFormat("<Time>0000</Time>");
            searchXML.Append("<StopType>D</StopType>");
            searchXML.Append("<CmdShare>0</CmdShare>");
            searchXML.Append("<BeTolerateTimes>60</BeTolerateTimes>");
            searchXML.Append("</QueryWebFlights_1_1>");

            var list = new com._8222666.fxb2b.Service().XmlSubmit(getIdentityXMLString(), searchXML.ToString(), "");

            XmlDocument dom = new XmlDocument();

            dom.LoadXml(list);

            if (dom.SelectSingleNode("ErrorInfo_1_0") != null)
            {
                return;
            }
            XmlNode nodeHash = dom.SelectSingleNode("QueryWebFlights_1_1").SelectSingleNode("Yeesky.AOIS.AV.ClassDescription");

            foreach (XmlNode item in nodeHash.ChildNodes)
            {
                hash.Add(item.Attributes["Key"].Value, item.Attributes["T"].Value);
            }
            if (hash != null)
            {
                Session["codes"] = hash;
            }

            XmlNode gzHash = dom.SelectSingleNode("QueryWebFlights_1_1").SelectSingleNode("Yeesky.AOIS.AV.TicketRules");

            foreach (XmlNode item in gzHash.ChildNodes)
            {
                List <string> lists = new List <string>();
                lists.Add(item.SelectSingleNode("Refund").InnerText);
                lists.Add(item.SelectSingleNode("Endorsement").InnerText);
                lists.Add(item.SelectSingleNode("Change").InnerText);
                //list.AddRange({item.SelectSingleNode("Refund").InnerText; item.SelectSingleNode("Endorsement").InnerText; item.SelectSingleNode("Change").InnerText});
                //gzhashs.Add(item.SelectSingleNode("TRID").InnerText, item.SelectSingleNode("Refund").InnerText);
                //gzhashs.Add(item.SelectSingleNode("TRID").InnerText, item.SelectSingleNode("Refund").InnerText);
                gzhashs.Add(item.SelectSingleNode("TRID").InnerText, lists);
            }



            List <Eyousoft_yhq.Model.HBModel> datalist = new List <Eyousoft_yhq.Model.HBModel>();
            XmlNodeList nodes = dom.SelectSingleNode("QueryWebFlights_1_1").SelectSingleNode("Yeesky.AOIS.AV.Results").SelectNodes("AV.Result");

            if (nodes.Count > 0)
            {
                for (int i = 0; i < nodes.Count; i++)
                {
                    var model = new Eyousoft_yhq.Model.HBModel();
                    model.ID               = nodes[i].SelectSingleNode("ID").InnerText;
                    model.FlightID         = nodes[i].SelectSingleNode("FlightID").InnerText;
                    model.ElementNo        = nodes[i].SelectSingleNode("ElementNo").InnerText;
                    model.Carrier          = nodes[i].SelectSingleNode("Carrier").InnerText;
                    model.CarrierName      = nodes[i].SelectSingleNode("CarrierName").InnerText;
                    model.FlightNo         = nodes[i].SelectSingleNode("FlightNo").InnerText;
                    model.ShareCarrier     = nodes[i].SelectSingleNode("ShareCarrier").InnerText;
                    model.ShareCarrierName = nodes[i].SelectSingleNode("ShareCarrierName").InnerText;
                    model.ShareFlight      = nodes[i].SelectSingleNode("ShareFlight").InnerText;
                    model.BoardPoint       = nodes[i].SelectSingleNode("BoardPoint").InnerText;
                    model.BoardPointName   = nodes[i].SelectSingleNode("BoardPointName").InnerText;
                    model.OffPoint         = nodes[i].SelectSingleNode("OffPoint").InnerText;
                    model.OffPointName     = nodes[i].SelectSingleNode("OffPointName").InnerText;
                    model.DepartureDate    = Utils.GetDateTime(nodes[i].SelectSingleNode("DepartureDate").InnerText);
                    model.DepartureTime    = Utils.GetDateTime(nodes[i].SelectSingleNode("DepartureTime").InnerText);
                    model.ArrivalDate      = Utils.GetDateTime(nodes[i].SelectSingleNode("ArrivalDate").InnerText);
                    model.ArrivalTime      = Utils.GetDateTime(nodes[i].SelectSingleNode("ArrivalTime").InnerText);
                    model.Aircraft         = nodes[i].SelectSingleNode("Aircraft").InnerText;
                    model.AircraftName     = nodes[i].SelectSingleNode("AircraftName").InnerText;
                    model.Meal             = nodes[i].SelectSingleNode("Meal").InnerText;
                    model.MealName         = nodes[i].SelectSingleNode("MealName").InnerText;
                    model.ViaPort          = Utils.GetInt(nodes[i].SelectSingleNode("ViaPort").InnerText);
                    model.ETicket          = nodes[i].SelectSingleNode("ETicket").InnerText;
                    model.ASR              = nodes[i].SelectSingleNode("ASR").InnerText;
                    model.LinkLevel        = nodes[i].SelectSingleNode("LinkLevel").InnerText;
                    model.AirportTax       = Utils.GetDecimal(nodes[i].SelectSingleNode("AirportTax").InnerText);
                    model.FuelSurTax       = Utils.GetDecimal(nodes[i].SelectSingleNode("FuelSurTax").InnerText);
                    model.Mileage          = Utils.GetInt(nodes[i].SelectSingleNode("Mileage").InnerText);
                    //model.Flightx = nodes[i].SelectSingleNode("Flightx").InnerText;
                    //model.BoardTimex = nodes[i].SelectSingleNode("BoardTimex").InnerText;
                    //model.OffTimex = nodes[i].SelectSingleNode("OffTimex").InnerText;
                    model.BoardPointAT = nodes[i].SelectSingleNode("BoardPointAT").InnerText;
                    model.OffPointAT   = nodes[i].SelectSingleNode("OffPointAT").InnerText;
                    model.YPrice       = Utils.GetDecimal(nodes[i].SelectSingleNode("YPrice").InnerText);
                    model.Class        = new List <Eyousoft_yhq.Model.webFlightInfo>();
                    XmlNode node     = nodes[i].SelectSingleNode("Class");
                    int     identyty = 0;
                    foreach (XmlNode item in node.ChildNodes)
                    {
                        Eyousoft_yhq.Model.webFlightInfo classModel = new Eyousoft_yhq.Model.webFlightInfo();
                        classModel.Seat        = item.SelectSingleNode("Seat").InnerText;
                        classModel.Code        = item.SelectSingleNode("Code").InnerText;
                        classModel.TradeId     = item.SelectSingleNode("TradeId").InnerText;
                        classModel.TRID        = Utils.GetInt(item.SelectSingleNode("TRID").InnerText);
                        classModel.Type_class  = item.SelectSingleNode("Type").InnerText;
                        classModel.F           = Utils.GetDecimal(item.SelectSingleNode("F").InnerText);
                        classModel.R           = Utils.GetDecimal(item.SelectSingleNode("R").InnerText);
                        classModel.X           = Utils.GetDecimal(item.SelectSingleNode("X").InnerText);
                        classModel.A           = Utils.GetDecimal(item.SelectSingleNode("A").InnerText);
                        classModel.C           = Utils.GetDecimal(item.SelectSingleNode("C").InnerText);
                        classModel.M           = Utils.GetDecimal(item.SelectSingleNode("M").InnerText);
                        classModel.S           = Utils.GetDecimal(item.SelectSingleNode("S").InnerText);
                        classModel.PriceSource = Utils.GetDecimal(item.SelectSingleNode("PriceSource").InnerText);
                        classModel.XmlNodeName = item.Name;
                        classModel.Identity    = identyty;
                        if (classModel.F > 0)
                        {
                            identyty++;
                            model.Class.Add(classModel);
                        }
                    }
                    datalist.Add(model);
                }
            }
            int           count   = datalist.Count;
            StringBuilder strHTML = new StringBuilder();

            foreach (var item in datalist)
            {
                if (item.Class.Count == 0)
                {
                    continue;
                }
                strHTML.Append("<li>");
                strHTML.Append("<div class=\"jp-item\">");
                strHTML.Append("<a href=\"javascript:;\" target=\"_self\">");
                strHTML.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
                strHTML.Append("<tr>");
                strHTML.AppendFormat("<td class=\"leftside\">{0}</td>", item.DepartureTime.ToString("HH:mm"));
                strHTML.AppendFormat("<td class=\"midside\">{0}{1}</td>", item.CarrierName, item.FlightNo);
                var f = item.Class.Count > 0 ? item.Class.Select(x => x.F).Min() : 0;
                var t = (from c in item.Class
                         where c.F == f
                         select c).First();
                strHTML.AppendFormat("<td class=\"rightside\"><span class=\"price\"><dfn>¥</dfn>{0}</span></td>", f.ToString().TrimEnd('0').TrimEnd('.'));
                strHTML.Append("</tr>");
                strHTML.Append("<tr class=\"font-color\">");
                strHTML.AppendFormat("<td class=\"leftside\">{0}</td>", item.ArrivalTime.ToString("HH:mm"));
                strHTML.AppendFormat("<td class=\"midside\">{0}-{1}</td>", item.BoardPointName, item.OffPointName);
                strHTML.AppendFormat("<td class=\"rightside\"><a href=\"javascript:void(0):;\" onclick=\"showflightinfo($(this),'{0}')\" class=\"fontblue\">退改签</a></td>", Server.HtmlEncode(GetGZHtml(t.TRID.ToString())));

                strHTML.Append("</tr>");
                strHTML.Append("</table>");
                strHTML.Append("</a>");

                strHTML.Append("</div>");//拼接航班信息
                strHTML.Append("<div class=\"down\"></div>");
                if (item.Class != null && item.Class.Count > 0)
                {
                    strHTML.Append("<div class=\"jp_more\" style=\"display:none;\">");
                    strHTML.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
                    for (int k = 0; k < item.Class.Count; k++)
                    {
                        strHTML.Append("<tr>");
                        strHTML.AppendFormat("<td class=\"leftside\">{0}</td>", getCM(item.Carrier, item.Class[k].Code));
                        strHTML.AppendFormat("<td class=\"font_yellow\">{0}</td>", getZK(item.Class[k].XmlNodeName));
                        if (getYW(item.Class[k].Seat) == "0")
                        {
                            strHTML.Append("<td>已满</td>");
                            //strHTML.Append("<td></td>");
                        }
                        else
                        {
                            strHTML.AppendFormat("<td>余:{0}</td>", getYW(item.Class[k].Seat));
                            //<a href="javascript:void(0);" onmouseover="showflightinfo($(this),'CZ8465');" class="flightselectdetail">详细</a>
                        }
                        //如果没有退签
                        if (string.IsNullOrEmpty(gzhashs[item.Class[k].TRID.ToString()].ToString()) || item.Class[k].TRID.ToString() == "0")
                        {
                            strHTML.AppendFormat("<td align=\"center\"><a href=\"javascript:void(0);\" onclick=\"showflightinfo($(this),'{0}');\" class=\"fontblue\"></a></td>", "暂无");
                        }
                        else
                        {
                            strHTML.AppendFormat("<td align=\"center\"><a href=\"javascript:void(0);\" onclick=\"showflightinfo($(this),'{0}');\" class=\"fontblue\">退改签</a></td>", Server.HtmlEncode(GetGZHtml(item.Class[k].TRID.ToString())));
                        }
                        //如果座位没有显示为已满
                        if (getYW(item.Class[k].Seat) == "0")
                        {
                            strHTML.AppendFormat("<td class=\"rightside\"><a data-Id=\"{2}\" href=\"javascript:;\" class=\"price-btn\">{0}</a><div style=\"display:none;\">{1}</div></td>", "已满", Newtonsoft.Json.JsonConvert.SerializeObject(item), item.Class[k].Identity);
                        }
                        else
                        {
                            strHTML.AppendFormat("<td class=\"rightside\"><a data-Id=\"{2}\" href=\"javascript:;\" class=\"price-btn selectHB\"><dfn>¥</dfn>{0}</a><div style=\"display:none;\">{1}</div></td>", item.Class[k].F.ToString().TrimEnd('0').TrimEnd('.'), Newtonsoft.Json.JsonConvert.SerializeObject(item), item.Class[k].Identity);
                        }
                        //strHTML.Append("<a herf=\"javascript:;\" onclick=\"$('.gz').show()\">退签</a>");
                        //strHTML.AppendFormat("<input class=\"gz\" type=\"hidden\" value={0}/>", gzhashs[item.Class[k].TRID]);
                        strHTML.Append("</tr>");
                    }

                    strHTML.Append("</table>");
                    strHTML.Append("</div>");
                }
                strHTML.Append("</li>");
            }
            litHTML.Text = strHTML.ToString();
        }