Example #1
0
        /// <summary>
        /// Adds the new availability.
        /// </summary>
        public void AddNewAvailability()
        {
            // Verificar sí existe una selección del vuelo en el datagridview
            InterJetFlight interJetselectedFlight = this.GetInterJetSelection();

            //Verificar sí existe en session vuelos previamente seleccionados
            if (interJetselectedFlight != null)
            {
                if (this.Session["SelectedFlights"] != null)
                {
                    // si existe bajar los vuelos previamente seleccionados
                    var selectedFlights = (InterJetSelectedFlights)this.Session["SelectedFlights"];
                    // añadir en la lista de vuelos seleccionados
                    selectedFlights.AddFlight(interJetselectedFlight);
                    // actualizar session
                    this.Session["SelectedFlights"] = selectedFlights;
                }
                else
                {
                    var selectedFlights = new InterJetSelectedFlights();
                    selectedFlights.AddFlight(interJetselectedFlight);
                    this.Session["SelectedFlights"] = selectedFlights;
                }
                this.Session["IsNewAvailability"] = true;
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucAvailability", this.CurrentUserControl.Parameter, null);
                this.CurrentUserControl.Dispose();
            }
            else
            {
                throw new Exception("NO SE HA SELECCIONADO ALGUN VUELO, POR FAVOR SELECCIONE UNO ANTES DE CONTINUAR.");
            }
        }
Example #2
0
        //Assign justification code and load ucAccountingInformation
        /// <summary>
        /// Se selecciona la justificación y despues de eso de acuerdo al DK
        /// es la forma en que continua el flujo y manda comandos
        /// </summary>
        public void justificationCodeSelected()
        {
            int    index = dgvJustifications.CurrentCell.RowIndex;
            DKTemp obj   = dgvJustifications.Rows[index].DataBoundItem as DKTemp;
            string commandreasonjustify = obj.Code.ToString();

            ucEndReservation.interrupt = false;
            if (!string.IsNullOrEmpty(DKToSearch))
            {
                if (DKToSearch.Equals(Resources.Reservations.MCAFEE))
                {
                    send = command + Resources.Constants.COMMANDS_5U99_RC_SLASH + commandreasonjustify;
                    using (CommandsAPI objCommands = new CommandsAPI())
                    {
                        objCommands.SendReceive(send);
                    }
                    string[] sendInfo = new string[] { Resources.Reservations.CONTINUE_RADIUS, optionSelected };
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCENDRESERVATION, sendInfo);
                }
                else
                {
                    string[] sendInfo = new string[] { Resources.Reservations.CONTINUE_SANTANDER, commandreasonjustify, optionSelected };
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCENDRESERVATION, sendInfo);
                }
            }
        }
Example #3
0
 /// <summary>
 /// Asignacion de acciones al presionar la tecla ENTER, ESC o DOWN
 /// cuando algún txt de ciudades tiene el foco
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CityCodeActions_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Escape)
     {
         if (ucNewFeeRule.LoadUserWelcome)
         {
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCNEWFEERULE, new string[] { "1" });
         }
         else
         {
             Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCNEWFEERULE);
         }
     }
     if (e.KeyData == Keys.Enter)
     {
         btnAccept_Click(sender, e);
     }
     if (e.KeyCode == Keys.Down)
     {
         if (lbCityCode.Items.Count > 0)
         {
             lbCityCode.SelectedIndex = 0;
             lbCityCode.Focus();
             lbCityCode.Visible = true;
             lbCityCode.Focus();
         }
     }
 }
Example #4
0
 /// <summary>
 /// Called when [reservation created complete].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The e.</param>
 private void OnReservationCreatedComplete(object sender, OnReservationCompletedEventArg e)
 {
     if (Reservation.Status == VolarisReservationStatus.Accepted)
     {
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucVolarisCustomerDK", this.Reservation, null);
     }
 }
 private void CommandsSend()
 {
     command = Resources.Constants.COMMANDS_5U99_CC_SLASH +
               txtCostCenter.Text + Resources.Constants.COMMANDS_END_IT_5U99_ID_SLASH +
               txtEmployesNumber.Text;
     using (CommandsAPI objCommand = new CommandsAPI())
     {
         result = objCommand.SendReceive(Resources.Constants.COMMANDS_WPOC_BY);
     }
     APIResponse();
     if (!string.IsNullOrEmpty(standardrate))
     {
         commandstandardrate = Resources.Constants.COMMANDS_5U99_HF_SLASH + standardrate;
         using (CommandsAPI objCommands = new CommandsAPI())
         {
             result      = objCommands.SendReceive(Resources.Constants.COMMANDS_WPNCS_CROSSLORAINE_MMXN);
             economyrate = true;
         }
         if (economyrate)
         {
             commandeconomyrate = Resources.Constants.COMMANDS_5U99_LF_SLASH + standardrate;
             send = command + Resources.Constants.END_ITEM + commandstandardrate +
                    Resources.Constants.END_ITEM + commandeconomyrate +
                    Resources.Constants.END_ITEM;
             string[] sendInfo = new string[] { Resources.Reservations.MCAFEE, send, optionSelected };
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCJUSTIFICATIONS, sendInfo);
         }
     }
 }
Example #6
0
        /// <summary>
        /// Called when [payment complete].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="eventArgs">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void OnPaymentComplete(object sender, EventArgs eventArgs)
        {
            waitingForControls1.Visible = false;
            loadingControl.Visible      = false;

            if (Reservation.Payment.Status == VolarisPaymentStatus.Approved)
            {
                var cardCaptureInformation = mainContainer.Controls.OfType <ucPaymentInformationCapture>();
                if (cardCaptureInformation != null && cardCaptureInformation.Any())
                {
                    var          controlInformationCapture = cardCaptureInformation.FirstOrDefault();
                    const string cardType = "5.</C28*{0}/>";
                    //if (controlInformationCapture != null && controlInformationCapture.IsCTSCreditCard)
                    //{
                    //    Reservation.Remarks.Add(string.Format(cardType, "CTS"));
                    //}
                    if (controlInformationCapture != null && controlInformationCapture.IsClientCreditCard)
                    {
                        Reservation.Remarks.Add(string.Format(cardType, "CLIENTE"));
                    }
                }
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucVolarisBookingConfirmation",
                                                this.Reservation, null);
            }
        }
Example #7
0
        /// <summary>
        /// Called when [search customer dk completed].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="eventArgs">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void OnSearchCustomerDkCompleted(object sender, EventArgs eventArgs)
        {
            if (!Reservation.CustomerDk.Exist)
            {
                this.errorContainer.Visible = true;
                this.errorLabel.Text        = string.Format("El DK {0} no se encuentra en el sistema.\nPor favor verifique la información.", Reservation.CustomerDk.Value.ToUpper());
                ShowControlsOnError();
            }
            if (Reservation.CustomerDk.Exist && !Reservation.CustomerDk.IsActive)
            {
                this.errorContainer.Visible = true;
                this.errorLabel.Text        = string.Format("El DK {0} no se encuentra activo en el sistema.\nPor favor verifique la información.", Reservation.CustomerDk.Value.ToUpper());
                ShowControlsOnError();
            }

            if (Reservation.CustomerDk.Exist && Reservation.CustomerDk.IsActive)
            {
                ucFirstValidations.DK         = Reservation.CustomerDk.Value;
                ucFirstValidations.Attribute1 = Reservation.CustomerDk.Attribute;
                activeStepsCorporativeQC.CorporativeQualityControls = null;
                activeStepsCorporativeQC.loadQualityControlsList();
                ucFirstValidations.CorporativeQualityControls = activeStepsCorporativeQC.CorporativeQualityControls;
                ucAllQualityControls.globalPaxNumber          = Reservation.Passangers.GetTotalOfPassanger();
                ucQualitiesByPax.Pax = Reservation.Passangers.GetTotalOfPassanger();
                builtExtendedDescription();
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucVolarisPaymentForm", Reservation, null);
            }
        }
        //KeyDown
        /// <summary>
        /// Este se usa para todos los controles en general si se oprime
        /// Esc se manda a el User control de Welcome
        /// Enter se manda la accion de botón de Aceptar
        /// KeyDown se manda el foco al listBox
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BackEnterUserControl_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Escape)
            {
                if (ucAvailability.IsInterJetProcess)
                {
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucInterJetFlightsPricesDetailsForm", this.Parameter, null);
                }
                else
                {
                    this.Parameters = null;
                    VolarisSession.Clean();
                    Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME);
                }
            }

            if (e.KeyData == Keys.Enter)
            {
                btnAccept_Click(sender, e);
            }

            if (e.KeyCode == Keys.Down)
            {
                if (lbDK.Items.Count > 0)
                {
                    lbDK.SelectedIndex = 0;
                    lbDK.Focus();
                }
            }
        }
        /// <summary>
        /// Goes to next step.
        /// </summary>
        public void GoToNextStep()
        {
            VolarisSession.ItinerarioVolaris = new List <ItineraryFlowVolaris>();

            string companyName = Itinerary.Departure.OwnerCompany;



            if (Dispatcher.Contains(companyName))
            {
                string nextControlToLoad = Dispatcher[companyName].ToString();
                if (!IsInterJet)
                {
                    LogProductivity.LogTransaction(Login.Agent, "1-Seleccion vuelos de volaris para cotizar.--Volaris");
                    if (!NotExistSale)
                    {
                        Loader.AddToPanel(Loader.Zone.Middle, this, "ucQuoteVolaris");
                    }
                    else
                    {
                        MessageBox.Show("Elegir un vuelo con Tarifa Base mayor a 0", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }
                else
                {
                    VolarisSession.IsVolarisProcess = false;
                    LogProductivity.LogTransaction(Login.Agent, "Seleccion vuelos de InterJet para cotizar.--InterJet");
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, nextControlToLoad, ExtraData, null,
                                                    null);
                }
            }
        }
Example #10
0
        /// <summary>
        /// Loads the inter jet passanger capture form control.
        /// </summary>
        public void LoadInterJetPassangerCaptureFormControl()
        {
            // Verificar sí existe una selección del vuelo en el datagridview
            InterJetFlight interJetselectedFlight = this.GetInterJetSelection();

            bool thereIsNoSelectedFlight = (interJetselectedFlight == null && this.Session["SelectedFlights"] == null);

            if (thereIsNoSelectedFlight)
            {
                throw new Exception("POR FAVOR SELECCIONE EL VUELO DESEADO ANTES DE CONTINUAR CON LA CAPTURA DE LA INFORMACIÓN.");
            }


            //Verificar sí existe en session vuelos previamente seleccionados
            if (this.Session["SelectedFlights"] != null)
            {
                // si existe bajar los vuelos previamente seleccionados
                var selectedFlights = (InterJetSelectedFlights)this.Session["SelectedFlights"];
                // añadir en la lista de vuelos seleccionados
                selectedFlights.AddFlight(interJetselectedFlight);
                // actualizar session
                this.Session["SelectedFlights"] = selectedFlights;
            }
            else
            {
                var selectedFlights = new InterJetSelectedFlights();
                selectedFlights.AddFlight(interJetselectedFlight);
                this.Session["SelectedFlights"] = selectedFlights;
            }
            //Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetPassangerCaptureForm", this.CurrentUserControl.Parameter, null);
            Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetPreviousPrincingContainerControl", this.CurrentUserControl.Parameter, null);
        }
Example #11
0
        private void LoadJustificationsCTS()
        {
            string        ActualDK   = Resources.TicketEmission.Constants.DK_CTS_API_100;
            List <DKTemp> listDKTemp = DKTempBL.GetDKTemp(ActualDK, false);

            string[] sendInfo = new string[] { ActualDK };
            Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.TicketEmission.Constants.UC_TICKETS_JUSTIFICATIONS, sendInfo);
        }
        /// <summary>
        /// Continues to payment.
        /// </summary>
        public void ContinueToPayment()
        {
            var infants = this.GetInfants();
            var ticket  = (InterJetTicket)this.Session["CurrentTicket"];

            ticket.Passangers.AddPassangers(infants.Cast <InterJetPassanger>().ToList());
            this.Session["Infants"] = infants;
            Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentForm, "ucInterJetPaymentForm", this.CurrentForm.Parameter, null);
        }
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == (Keys.Escape))
     {
         ReturnForMisc = false;
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCAVAILABILITY, parametersreceived);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }
        /// <summary>
        /// Called when [search flights].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="eventArgs">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void OnSearchFlights(object sender, EventArgs eventArgs)
        {
            var avialabilitControl = sender as LowFareAvailabilitySearch;

            if (avialabilitControl != null)
            {
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucLowFareAvailability", avialabilitControl.Request, null);
            }
        }
        /// <summary>
        /// Este se usa para todos los controles en general si se oprime
        /// Esc se manda a el User control de Availability
        /// Enter se manda la accion de botón de Aceptar
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BackEnterUserControl_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Escape)
            {
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCAVAILABILITY, parametersreceived);
            }

            if (e.KeyData == Keys.Enter)
            {
                btnAccept_Click(sender, e);
            }
        }
 /// <summary>
 /// Backs to contact or infant.
 /// </summary>
 public void BackToContactOrInfant()
 {
     this.Session["IsAlreadyPriced"] = null;
     if (this.HasInfants)
     {
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetInfantCaptureForm", this.CurrentUserControl.Parameter, null);
     }
     else
     {
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetContactPassangerCaptureForm", this.CurrentUserControl.Parameter, null);
     }
 }
 private void backToFlightPriceDetails_Click(object sender, EventArgs e)
 {
     if (VolarisSession.IsVolarisProcess)
     {
         VolarisServiceManager cliente = new VolarisServiceManager();
         cliente.CloseReservation();
         Loader.AddToPanel(Loader.Zone.Middle, this, "ucAvailability");
     }
     else
     {
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucInterJetFlightsPricesDetailsForm", this.Parameter, null);
     }
 }
        /// <summary>
        /// Displays the inter jet availability form.
        /// </summary>
        public void DisplayInterJetAvailabilityForm()
        {
            const string warningMessage = "¿Desea regresar a disponibilidad?\n" +
                                          "En caso de ser así se perderan todos los segmentos previamente vendidos.";

            DialogResult result = MessageBox.Show(warningMessage.ToUpper(), Resources.Constants.MYCTS, MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (result == DialogResult.Yes)
            {
                this.Session["SelectedFlights"] = null;
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentForm, "ucInterJetAvailabilityOfFlights", this.CurrentForm.Parameter, null);
            }
        }
Example #19
0
        private void btnAcept_Click(object sender, EventArgs e)
        {
            if (IsValidateBusinessRules)
            {
                socialReason = txtSocialReason.Text;
                street       = txtStreet.Text;

                numberExt    = txtNumberExt.Text;
                numberInt    = txtNumberInt.Text;
                delegation   = txtDelegation.Text;
                city         = txtCity.Text;
                colony       = txtColony.Text;
                state        = txtState.Text;
                cp           = txtCP.Text;
                rfc1         = txtRFC1.Text;
                rfc2         = txtRFC2.Text;
                rfc3         = txtRFC3.Text;
                description1 = txtDescription1.Text;
                description2 = txtDescription2.Text;
                country      = txtCountry.Text;


                if (ucMenuReservations.BillingAdress)
                {
                    if (!string.IsNullOrEmpty(sabreConcat))
                    {
                        Remarks();
                    }
                    commandsBuild();
                    ucMenuReservations.BillingAdress = false;
                    ucEndReservation.EndReservation  = false;

                    Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME);
                }
                else if (ucEndReservation.EndReservation)
                {
                    if (!string.IsNullOrEmpty(sabreConcat))
                    {
                        Remarks();
                    }
                    commandsBuild();
                    ucMenuReservations.BillingAdress = false;
                    ucEndReservation.EndReservation  = false;
                    billingAdress = true;
                    string[] sendInfo = new string[] { option };
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCENDRESERVATION, sendInfo);
                }
            }
        }
 /// <summary>
 /// Displays the contact passanger form.
 /// </summary>
 public void DisplayContactPassangerForm()
 {
     if (ProfileIsSet)
     {
         this.Session["Passangers"] = this.GetPassangers();
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentForm,
                                         "ucInterJetContactPassangerCaptureForm", this.CurrentForm.Parameter,
                                         null);
     }
     else
     {
         ErrorProvider.SetError(this.FirstLevelProfileTextBox, "No se ha indicado el perfil del pasajero, en caso de contar con uno, crear uno en el modulo de perfiles.".ToUpper());
         FirstLevelProfileTextBox.Focus();
     }
 }
Example #21
0
        /// <summary>
        /// Handles the RunWorkerCompleted event of the CommandWorker control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.ComponentModel.RunWorkerCompletedEventArgs"/> instance containing the event data.</param>
        void CommandWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            try
            {
                this.StopBackGroundWorker();

                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucConcludeReservation", this.CurrentUserControl.Parameter, null);
            }
            finally
            {
                this.CommandWorker.Dispose();
                this.Timer.Dispose();
                this.ProgressBar.Dispose();
            }
        }
Example #22
0
        /// <summary>
        /// Continues to passanger.
        /// </summary>
        public void ContinueToPassanger()
        {
            object session = null;

            if (UserControl.Data is InterJetSession)
            {
                session = UserControl.Data;
            }

            if (UserControl.Parameter is InterJetSession)
            {
                session = UserControl.Parameter;
            }

            Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.UserControl, "ucInterJetPassangerCaptureForm", session, null);
        }
Example #23
0
        /// <summary>
        /// Continues to payment.
        /// </summary>
        public void ContinueToPayment()
        {
            if (this.Session["UserInput"] != null)
            {
                var userInput = (InterJetAvailabilityUserInput)this.Session["UserInput"];

                if (userInput.HasInfantPassanger)
                {
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetInfantCaptureForm", this.CurrentUserControl.Parameter, null);
                }
                else
                {
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetPaymentForm", this.CurrentUserControl.Parameter, null);
                }
            }
        }
        /// <summary>
        /// Backs to payment form.
        /// </summary>
        public void BackToPaymentForm()
        {
            this.Session["IsAlreadyPriced"] = true;

            if (this.Session["GoToPayment"] != null)
            {
                this.Session["GoToPayment"]             = null;
                this.Session["ShowProfilesCreditCards"] = true;
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetPaymentForm", this.CurrentUserControl.Parameter, null);
            }
            else
            {
                //Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucInterJetPaymentForm", this.CurrentUserControl.Parameter, null);
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentUserControl, "ucDKClient",
                                                this.CurrentUserControl.Parameter, null);
            }
        }
Example #25
0
 private void btnAccept_Click(object sender, EventArgs e)
 {
     if (IsValidateBusinessRules)
     {
         CommandsSend();
         if (endReservation)
         {
             secureFlightPassenger = true;
             string[] sendInfo = new string[] { option };
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCENDRESERVATION, sendInfo);
         }
         else
         {
             Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME);
         }
     }
 }
Example #26
0
 //Button Accept
 /// <summary>
 /// Se realizan las validaciones despues de que el usuario ingresa datos,
 /// se mandan los comandos y termina el proceso llamando a otro User Control
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAccept_Click(object sender, EventArgs e)
 {
     if (IsValidateBusinessRules)
     {
         CommandsSend();
     }
     if (this.Parameters != null && ucEndReservation.EndReservation)
     {
         boletageDate = true;
         string[] sendInfo = new string[] { optionSelected };
         Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCENDRESERVATION, sendInfo);
     }
     else
     {
         Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME);
     }
 }
Example #27
0
 private void continueButton_Click(object sender, EventArgs e)
 {
     if (VolarisSession.IsVolarisProcess)
     {
         if (!FillVolarisRemarks())
         {
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucLowFareEndRecord", this.Parameter, new[] { "Volaris" });
         }
     }
     if (IsInterJet)
     {
         if (!FillInterJetRemarks())
         {
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, "ucLowFareEndRecord", this.Parameter, new[] { "InterJet" });
         }
     }
 }
Example #28
0
 private void BackEnterUserControl_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData.Equals(Keys.Escape))
     {
         if (ucNewFeeRule.LoadUserWelcome)
         {
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCNEWFEERULE, new string[] { "1" });
         }
         else
         {
             Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCNEWFEERULE);
         }
     }
     if (e.KeyData.Equals(Keys.Enter))
     {
         btnAccept_Click(sender, e);
     }
 }
Example #29
0
        /// <summary>
        /// Continues the with sell process or capture infant information.
        /// </summary>
        public void ContinueWithSellProcessOrCaptureInfantInformation()
        {
            this.FillContactEntity();
            this.Session["CurrentTicket"] = this.GenerateTicket();
            if (this.Session["UserInput"] != null)
            {
                var userInput = (InterJetAvailabilityUserInput)this.Session["UserInput"];

                if (userInput.HasInfantPassanger)
                {
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentForm, "ucInterJetInfantCaptureForm", this.CurrentForm.Parameter, null);
                }
                else
                {
                    Loader.AddToPanelWithParameters(Loader.Zone.Middle, this.CurrentForm, "ucInterJetPaymentForm", this.CurrentForm.Parameter, null);
                }
            }
        }
 /// <summary>
 /// Busca errores en la clase de ERR_SellAirSegment de acuerdo a las respuestas recibidas por el
 /// Emulador de Sabre y de acuerdo a ellas se realizan ciertas acciones ya sea
 /// mandar un mensaje de error al usuario notificando del mismo o mandando a otro
 /// User Control
 /// </summary>
 private void APIResponse()
 {
     if (!String.IsNullOrEmpty(result))
     {
         ERR_SellAirSegment.err_SellAirSegment(result);
         if ((!ERR_SellAirSegment.Status))
         {
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCAIR_RATE, parametersreceived);
         }
         else if (ERR_SellAirSegment.ShowUserControl)
         {
             Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCAVAILABILITY);
         }
         else
         {
             MessageBox.Show(ERR_SellAirSegment.CustomUserMsg, Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }