public string getRulesCommand()
        {
            string sRespuesta = string.Empty;

            try
            {
                clsParametros cParametros = new clsParametros();
                cParametros.Message     = "Entra getRulesCommand";
                cParametros.Complemento = "Reserva Vuelos";
                ExceptionHandled.Publicar(cParametros);


                VO_SabreCommandLLSRS vo = new VO_SabreCommandLLSRS();
                vo.BCDATA     = true;
                vo.StrComando = "WPRD*PADT¥C2/15/16/19/22¥S1";

                clsSabreCommandLLS oclsSabreCommandLLS = new clsSabreCommandLLS();
                oclsSabreCommandLLS.StrSesion = strSesion;
                WS_SsoftSabre.SabreCommandLLS.SabreCommandLLSRS respuesta = oclsSabreCommandLLS.getEjecutarComando(vo);
                int iPosIni = respuesta.Response.IndexOf("02.DAY/TIME");
                if (iPosIni == -1)
                {
                    iPosIni = 0;
                }
                //int iPosFin = respuesta.Response.Length;

                sRespuesta = respuesta.Response.Remove(0, iPosIni);
            }
            catch { }
            return(sRespuesta);
        }
        public clsParametros getRulesSegment()
        {
            clsParametros        objParametros      = new clsParametros();
            VO_SabreCommandLLSRS vo                 = new VO_SabreCommandLLSRS();
            DateTime             dtm_Fecha_Segmento = DateTime.Now;
            /*SE SUMAN LOS 330 DIAS*/
            int iDias = 330;

            try { iDias = clsSesiones.getCredentials().SegmentoFuturo; }
            catch { }
            if (iDias.Equals(0))
            {
                objParametros.Id       = 0;
                objParametros.Code     = "0";
                objParametros.Info     = "Segmento no incluido por ser valor 0";
                objParametros.Message  = "No icluye OTH";
                objParametros.Severity = clsSeveridad.Baja;
                objParametros.Metodo   = "clsRulesFromPrice.getRulesSegment()";
                objParametros.Tipo     = clsTipoError.WebServices;
                Ssoft.ManejadorExcepciones.ExceptionHandled.Publicar(objParametros);
            }
            else
            {
                dtm_Fecha_Segmento = dtm_Fecha_Segmento.AddDays(iDias);
                /*OBTENEMOS EL MES EN LETRAS, EN INGLES*/
                string str_Mes_Letras = clsValidaciones.RetornaMesLetrasCorto(dtm_Fecha_Segmento.Month.ToString(), "en");
                String str_Dia        = dtm_Fecha_Segmento.Day.ToString();
                if (str_Dia.Length == 1)
                {
                    str_Dia = "0" + str_Dia;
                }
                String str_Comando = "0OTHAAGK1BOG" + str_Dia + str_Mes_Letras.ToUpper();
                vo.BCDATA     = true;
                vo.StrComando = str_Comando;
                clsSabreCommandLLS oclsSabreCommandLLS = new clsSabreCommandLLS();
                oclsSabreCommandLLS.StrSesion = strSesion;
                WS_SsoftSabre.SabreCommandLLS.SabreCommandLLSRS respuesta = oclsSabreCommandLLS.getEjecutarComando(vo);

                if (respuesta.ErrorRS != null)
                {
                    objParametros.Id       = 0;
                    objParametros.Code     = respuesta.ErrorRS.Errors.Error.ErrorCode;
                    objParametros.Info     = respuesta.ErrorRS.Errors.Error.ErrorInfo.Message;
                    objParametros.Message  = respuesta.ErrorRS.Errors.Error.ErrorMessage;
                    objParametros.Severity = respuesta.ErrorRS.Errors.Error.Severity;
                    objParametros.Metodo   = "clsRulesFromPrice.getRulesSegment()";
                    objParametros.Tipo     = Ssoft.ManejadorExcepciones.clsTipoError.WebServices;
                    Ssoft.ManejadorExcepciones.ExceptionHandled.Publicar(objParametros);
                }
                else
                {
                    objParametros.Id       = 1;
                    objParametros.Message  = respuesta.Response;
                    objParametros.DatoAdic = respuesta.AltLangID;
                    objParametros.DatoAdicArr.Add(respuesta.EchoToken);
                    objParametros.Data   = respuesta.PrimaryLangID;
                    objParametros.Metodo = "clsRulesFromPrice.getRulesSegment()";
                    Ssoft.ManejadorExcepciones.ExceptionHandled.Publicar(objParametros);
                }
            }
            return(objParametros);
        }