public VO_OTA_AirLowFareSearchLLSRQ( List <VO_OriginDestinationInformation> lvo_Rutas, string sMaximasParadas, List <string> lsAerolineaPreferida, List <string> lsClase, List <string> lsExcluirAerolinea, string sVuelosARetornar, bool bRetornarMaxResultados, bool bOnline, bool bInterLineado, string sFechaTiqueteo, string sPreferenciaIntervaloSal, string sPreferenciaIntervaloLleg, List <VO_Pasajero> lvo_Pasajeros, string sCodMonedaCotizacion, string sCodTarifaNegociada, bool bFareCalc, bool bSoloSegmentos, bool bConFarCalc, bool bFarePlublica, bool bFarePrivada, VO_Prioridades vo_Prioridades, bool bSinImpuestos, List <string> sCodigosImpExcluir, List <VO_Impuesto> lvo_SobreEscribir, Enum_TipoTrayecto eTipoTrayecto, Enum_TipoVuelo eTipoVuelo, List <string> lsEdadesNinios, List <string> lsEdadesInfante) { this.sMaximasParadas = sMaximasParadas; this.lsAerolineaPreferida = lsAerolineaPreferida; this.lsClase = lsClase; this.lsExcluirAerolinea = lsExcluirAerolinea; this.sVuelosARetornar = sVuelosARetornar; this.bRetornarMaxResultados = bRetornarMaxResultados; this.bOnline = bOnline; this.bInterLineado = bInterLineado; this.sFechaTiqueteo = sFechaTiqueteo; this.sPreferenciaIntervaloSal = sPreferenciaIntervaloSal; this.sPreferenciaIntervaloLleg = sPreferenciaIntervaloLleg; this.lvo_Pasajeros = lvo_Pasajeros; this.sCodMonedaCotizacion = sCodMonedaCotizacion; this.sCodTarifaNegociada = sCodTarifaNegociada; this.bFareCalc = bFareCalc; this.bSoloSegmentos = bSoloSegmentos; this.bConFarCalc = bConFarCalc; this.bFarePlublica = bFarePlublica; this.bFarePrivada = bFarePrivada; this.vo_Prioridades = vo_Prioridades; this.bSinImpuestos = bSinImpuestos; this.sCodigosImpExcluir = sCodigosImpExcluir; this.lvo_SobreEscribir = lvo_SobreEscribir; this.eTipoTrayecto = eTipoTrayecto; this.eTipoVuelo = eTipoVuelo; this.lsEdadesNinios = lsEdadesNinios; this.lsEdadesInfantes = lsEdadesInfante; }
public Enum_TipoVuelo getValidarTipoTrayecto(List <VO_OriginDestinationInformation> lvo_OriginDestinationInformation) { string sIdioma = clsSesiones.getIdioma(); Enum_TipoVuelo eTipoVuelo = Enum_TipoVuelo.Internacional; if (sIdioma.Equals("")) { sIdioma = clsValidaciones.GetKeyOrAdd("sIdioma", "es"); } string sPaisDefault = clsValidaciones.GetKeyOrAdd("PaisDefault", "COL"); DataTable dtConsulta = new CsConsultasVuelos().SPConsultaTabla("SPCONSULTAPAIS", new string[2] { sPaisDefault, sIdioma }); if (dtConsulta != null) { string strCodigoCOL = dtConsulta.Rows[0]["INTCODE"].ToString(); try { foreach (VO_OriginDestinationInformation vo_OriginDestinationInformation in lvo_OriginDestinationInformation) { VO_Aeropuerto vo_AeropuertoOrigen = vo_OriginDestinationInformation.Vo_AeropuertoOrigen; VO_Aeropuerto vo_AeropuertoDestino = vo_OriginDestinationInformation.Vo_AeropuertoDestino; string strConexion = this.Conexion; string strOrigen = new CsConsultasVuelos().ConsultaCodigo(vo_AeropuertoOrigen.SCodigo, "TBLIATA", "STRCOUNTRY", "STRCODE"); string strDestino = new CsConsultasVuelos().ConsultaCodigo(vo_AeropuertoDestino.SCodigo, "TBLIATA", "STRCOUNTRY", "STRCODE"); if ((strOrigen.Equals(strCodigoCOL) && strDestino.Equals(strCodigoCOL))) { eTipoVuelo = Enum_TipoVuelo.Nacional; } else { eTipoVuelo = Enum_TipoVuelo.Internacional; break; } } } catch { } } clsSesiones.setTipoVuelo(eTipoVuelo); return(eTipoVuelo); }
/// <summary> /// Para validar el tipo de salida, si sale de colombia y verificar si es internacional /// </summary> /// <param name="lvo_OriginDestinationInformation">Parametros de destinos</param> /// <returns>Tipo de salida (NAl o InterNal)</returns> public Enum_TipoVuelo getValidarTipoSalida(List <VO_OriginDestinationInformation> lvo_OriginDestinationInformation) { Enum_TipoVuelo eTipoSalida = Enum_TipoVuelo.Internacional; string sPaisDefault = clsValidaciones.GetKeyOrAdd("PaisDefault", "COL"); string strCodigoCOL = new CsConsultasVuelos().ConsultaCodigo(sPaisDefault, "TBLPAIS", "INTCODE", "STRCOUNTRYCODE"); try { foreach (VO_OriginDestinationInformation vo_OriginDestinationInformation in lvo_OriginDestinationInformation) { VO_Aeropuerto vo_AeropuertoOrigen = vo_OriginDestinationInformation.Vo_AeropuertoOrigen; VO_Aeropuerto vo_AeropuertoDestino = vo_OriginDestinationInformation.Vo_AeropuertoDestino; string strConexion = this.Conexion; DataTable dt = new CsConsultasVuelos().SPConsultaTabla("SPCONSULTAAEROPUERTO", new string[1] { vo_AeropuertoOrigen.SCodigo }); string strOrigen = dt.Rows[0][1].ToString(); dt = new CsConsultasVuelos().SPConsultaTabla("SPCONSULTAAEROPUERTO", new string[1] { vo_AeropuertoDestino.SCodigo }); string strDestino = dt.Rows[0][1].ToString(); if ((strOrigen.Equals(strCodigoCOL) && !strDestino.Equals(strCodigoCOL))) { eTipoSalida = Enum_TipoVuelo.Nacional; break; } } } catch { } return(eTipoSalida); }