/*---------------CANCELAR-----------------*/ public static bool _CancelarReserva(String strRecord, string COMANDO_) { bool Result_ = false; try { Result_ = _Sabre_CancelarReserva(COMANDO_); new clsEndTransactionLLS()._CerrarReserva(ref strRecord); Negocios_WebServiceSession._CerrarSesion(); } catch (Exception Ex) { clsParametros cParametros = new clsParametros(); cParametros.Id = 0; cParametros.Message = Ex.Message.ToString(); cParametros.Tipo = clsTipoError.Library; cParametros.Severity = clsSeveridad.Media; cParametros.Complemento = "Error al cerrar reserva en sabre"; try { cParametros.Metodo = System.Reflection.MethodBase.GetCurrentMethod().Name; } catch { cParametros.Metodo = "Cerrar rserva"; } ExceptionHandled.Publicar(cParametros); Result_ = false; } return(Result_); }
public static clsParametros _ADD(List <VO_Remarks> vlRemark, string sRecord) { clsParametros cParametros = new clsParametros(); try { clsOTA_TravelItineraryRead ota_TravelItineraryRead = new clsOTA_TravelItineraryRead(); OTA_TravelItineraryRS ota_TravelItineraryRS = ota_TravelItineraryRead._Sabre_LeerInformacionPNR(sRecord); cParametros = new WebService_Remark()._Sabre_AgregarObservaciones(vlRemark); Negocios_WebServiceSabreCommand.setER(); Negocios_WebServiceSession._CerrarSesion(); } catch (Exception Ex) { cParametros.Id = 0; cParametros.Message = Ex.Message.ToString(); cParametros.Source = Ex.Source.ToString(); cParametros.Tipo = clsTipoError.Library; cParametros.Severity = clsSeveridad.Alta; cParametros.StackTrace = Ex.StackTrace.ToString(); cParametros.Complemento = "Error al ejecutar Reamrk Sabre"; ExceptionHandled.Publicar(cParametros); } return(cParametros); }
public void setCancelaSesion() { try { Negocios_WebServiceSession._CerrarSesion(); } catch { } try { clsCache cCache = new csCache().cCache(); if (cCache != null) { clsCacheControl cCacheControl = new clsCacheControl(); cCacheControl.EliminarCache(cCache.SessionID.ToString()); } } catch { } try { HttpContext.Current.Session.Abandon(); } catch { } try { csGeneralsPag.EliminaCookie(); } catch { } }
public static string GET_SabreSession() { if (HttpContext.Current.Session["SesionSabre"] == null) { sSession = null; sSession = Negocios_WebServiceSession._CrearSesion(); SET_SabreSession(sSession); return(sSession); } else { return(HttpContext.Current.Session["SesionSabre"].ToString()); } }
public void setCerrarPagina(Page PageSource) { try { Negocios_WebServiceSession._CerrarSesion(); } catch { } try { string sIndex = clsValidaciones.GetKeyOrAdd("GeneraIndexTmp", "False"); if (sIndex.ToUpper().Equals("TRUE")) { } } catch { } try { clsCache cCache = new csCache().cCache(); clsCacheControl cCacheControl = new clsCacheControl(); cCacheControl.EliminarCache(cCache.SessionID.ToString()); } catch { } try { HttpContext.Current.Session.Abandon(); } catch { } try { csGeneralsPag.EliminaCookie(); } catch { } HttpContext.Current.Response.Write("<script>window.close();</script>"); }
protected void btnReserva_Command(object sender, CommandEventArgs e) { ExceptionHandled.Publicar("....:::::::::::::::::::::::/******************* Se oprime el boton de reservar vuelos *******************/:::::::::::::::::::::::...."); if (((Button)sender).CommandName.Equals("Confirmar")) { if (csRefere.bValidaFechas(this)) { if (csRefere.bValidaListas(this)) { if (!Validacampos()) { lblError.Text = "Por favor diligencia todos los campos marcados con (*)"; MPEEReserva.Hide(); } else { if (!cbAcepto.Checked) { lblError.Text = "Por favor acepta los terminos y condicones"; MPEEReserva.Hide(); return; } clsParametros Registro = csRefere.setCrearNoRegistroVuelos(this, ucRegistro, Enum_Login.LoginGen, false); if (Registro.Id != 0) { csRefere.setCommand(this, sender, e); btnPagar.Visible = false; btnGuardar.Visible = false; btnPagar.Enabled = false; btnGuardar.Enabled = false; rblFormasPago.Enabled = false; MPEEReserva.Hide(); MPERecord.Show(); } else { MPEEReserva.Hide(); clsParametros objParametros = new clsParametros(); objParametros.Tipo = clsTipoError.Library; objParametros.Severity = clsSeveridad.Moderada; objParametros.Sugerencia.Add("No se pudo confirmar tu solicitud"); objParametros.ViewMessage.Add("Por favor intentalo nuevamente o comunicate con nosotros"); clsErrorMensaje objErrorMensaje = new clsErrorMensaje(); objErrorMensaje.getError(objParametros, dPanel); Negocios_WebServiceSession._CerrarSesion(); } MPEEReserva.Hide(); } } else { MPEEReserva.Hide(); } } else { MPEEReserva.Hide(); } } else { csRefere.setCommand(this, sender, e); MPEEReserva.Hide(); btnPagar.Visible = false; btnGuardar.Visible = false; btnPagar.Enabled = false; btnGuardar.Enabled = false; rblFormasPago.Enabled = false; } }