/// <summary> /// Inserta en la tabla DetailsPNR los datos obtenidos por /// el WEBSTERD /// </summary> private void InsertDetailsPNR(string recLoc) { try { if (myObject.PassengerTypeList.Count >= 1) { for (int i = 0; i < myObject.PaxNumberList.Count; i++) { for (int j = 0; j < myObject.DepartureAirportList.Count; j++) { SetDetailsPNRBL.AddDetailsPNR(recLoc, myObject.DepartureAirportList[j], myObject.ArrivalAirportList[j], myObject.DepartureDateTimeList[j], myObject.ArrivalDateTimeList[j], myObject.MarketingAirlineList[j], myObject.FlightNumberList[j], Convert.ToDateTime(myObject.DepartureDateList[j]), myObject.AirlineRefList[j], myObject.DepartureDateList[0], myObject.Location_DK, Convert.ToDecimal(myObject.PaxNumberList[i]), myObject.PassengerTypeList[i], myObject.GivenNameList[i], myObject.SurnameList[i], myObject.SegmentType, myObject.FareBasis, myObject.PCC, myObject.IDGroup, ucInsertDataPassenger.MasterPNR); } } } else { for (int j = 0; j < myObject.DepartureAirportList.Count; j++) { SetDetailsPNRBL.AddDetailsPNR(recLoc, myObject.DepartureAirportList[j], myObject.ArrivalAirportList[j], myObject.DepartureDateTimeList[j], myObject.ArrivalDateTimeList[j], myObject.MarketingAirlineList[j], myObject.FlightNumberList[j], Convert.ToDateTime(myObject.DepartureDateList[j]), myObject.AirlineRefList[j], myObject.DepartureDateList[0], myObject.Location_DK, Convert.ToDecimal(1.1), null, null, null, myObject.SegmentType, myObject.FareBasis, myObject.PCC, myObject.IDGroup, ucInsertDataPassenger.MasterPNR); } } ucInsertDataPassenger.MasterPNR = string.Empty; } catch { } }
private void InsertDetailsPNR() { for (int i = 0; i < myObject.PaxNumberList.Count; i++) { for (int j = 0; j < myObject.DepartureAirportList.Count; j++) { SetDetailsPNRBL.AddDetailsPNR(recLoc, myObject.DepartureAirportList[j], myObject.ArrivalAirportList[j], myObject.DepartureDateTimeList[j], myObject.ArrivalDateTimeList[j], myObject.MarketingAirlineList[j], myObject.FlightNumberList[j], Convert.ToDateTime(myObject.DepartureDateList[j]), myObject.AirlineRefList[j], myObject.DepartureDateList[0], myObject.Location_DK, Convert.ToDecimal(myObject.PaxNumberList[i]), myObject.PassengerTypeList[i], myObject.GivenNameList[i], myObject.SurnameList[i], myObject.SegmentType, myObject.FareBasis, myObject.PCC, myObject.IDGroup, null); } } }