public static void AvResultToListView_Lowest(bool bpolicy, string avstring, System.Data.OleDb.OleDbConnection cn, string shieldstring, string wsaddr, ListView lv, string username, ref int pricei, ref int distancei) { EagleString.AvResult ar_new = new EagleString.AvResult(avstring, 0, 0); if (ar_new.SUCCEED) { int dist = EagleString.EagleFileIO.DistanceOf(ar_new.CityPair); int price = EagleString.EagleFileIO.PriceOf(ar_new.CityPair); if (price == 0) { EagleWebService.kernalFunkEx.FC_get_server_local(ar_new.CityPair, cn, wsaddr, ref dist, ref price); } ar_new.Price = price; ar_new.Distance = dist; ar_new.ShieldAirline = shieldstring; ar_new.ToListView(lv, false, EagleString.TO_LIST_WAYS.LOWEST); System.Threading.Thread.Sleep(100);//需要等待委托结束吗? if (bpolicy) { ProfitSet_LV_Lowest(lv, wsaddr, username, ar_new.FlightDate_DT.ToShortDateString(), ar_new.CityPair); } pricei = price; distancei = dist; } }
/// <summary> /// 将特殊舱位信息显示在ListView中 /// </summary> /// <param name="avstring">Av查询结果</param> /// <param name="wsaddr">WebService地址</param> /// <param name="lv">被显示的ListView</param> public static void SpecTickResultToListView_Spec(string avstring, string wsaddr, ListView lv, ListView lv2, int price) { EagleString.AvResult ar_new = new EagleString.AvResult(avstring, 0, 0); if (!ar_new.SUCCEED) { return; } EagleWebService.kernalFunc kf = new EagleWebService.kernalFunc(wsaddr); string outxml = ""; kf.SpecialTicketList(ar_new.CityPair, ar_new.FlightDate_DT, ref outxml); EagleString.SpecTicResult st = new EagleString.SpecTicResult(outxml); st.FlightDate = ar_new.FlightDate_DT; st.ToListView(lv, lv2, ar_new.Flights.ToArray(), ar_new.BunksLowest.ToArray(), price); }
public SsCommand(AvResult avr, string sd) { string[] a = sd.ToLower().Split('\r'); string s = a[0]; s = egString.trim(s.Substring(2), "/: "); int id = int.Parse(s.Substring(0, 1)); s = egString.trim(s.Substring(1), "/: "); for (int i = 0; i < avr.si[id - 1].fi.Length; i++) { m_flightno.Add(avr.si[id - 1].fi[i].info_Flight); m_bunk.Add(s.Substring(0, 1)); m_date.Add(avr.FlightDate_DT); m_citypair.Add(avr.si[id - 1].fi[i].info_CityPair); } Init(sd); }
/// <summary> /// 将AvResult显示到ListView中,其它返点政策为现有:profit(与重载2的不同点是profit为政策串,即已经取到了政策) /// </summary> /// <param name="avstring"></param> /// <param name="cn"></param> /// <param name="shieldstring"></param> /// <param name="wsaddr"></param> /// <param name="profit">用取到的GetPromot</param> /// <param name="lv"></param> /// <param name="pricei"></param> /// <param name="distancei"></param> public static void AvResultToListView_Lowest(string avstring, System.Data.OleDb.OleDbConnection cn, string shieldstring, string wsaddr, string profit, ListView lv, ref int pricei, ref int distancei) { EagleString.AvResult ar_new = new EagleString.AvResult(avstring, 0, 0); if (ar_new.SUCCEED) { int dist = EagleString.EagleFileIO.DistanceOf(ar_new.CityPair); int price = EagleString.EagleFileIO.PriceOf(ar_new.CityPair); if (price == 0) { EagleWebService.kernalFunkEx.FC_get_server_local(ar_new.CityPair, cn, wsaddr, ref dist, ref price); } ar_new.Price = price; ar_new.Distance = dist; ar_new.ShieldAirline = shieldstring; ar_new.ToListView(lv, false, EagleString.TO_LIST_WAYS.LOWEST); ProfitSet_LV_Lowest(lv, profit); pricei = price; distancei = dist; } }
public FdCommand(AvResult avr, string fd) { }
/// <summary> /// 将散拼信息显示在ListView中 /// </summary> /// <param name="username">当前登陆用户帐号</param> /// <param name="userclass">用户级别A,B,C,D,E,F</param> /// <param name="wsaddr">WebService地址</param> /// <param name="avstring">AV指令返回的结果串</param> /// <param name="lv">指向LV_GroupList的ListView</param> public static void GroupResultToListView_Group(string username, char userclass, string wsaddr, string avstring, ListView lv) { EagleString.AvResult ar_new = new EagleString.AvResult(avstring, 0, 0); GroupResultToListView_Group(username, ar_new.CityPair, ar_new.FlightDate_DT, userclass, wsaddr, lv); }