private void frmUpdateProfiles_Load(object sender, EventArgs e)
        {
            var parameters = new string[4];

            frmPreloading fr = new frmPreloading(this);

            fr.Show();

            parameters[3] = "NewUpdate";

            if (_level == "First")
            {
                SearchProfileParameters1L();
                parameters[0] = ObjStar1Dfup.Pcc;
                parameters[1] = ObjStar1Dfup.ProfileName;
                parameters[2] = null;

                LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Left, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY);
                LoaderProfiles.AddToPanelWithParameters(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_FIRST_LEVEL_PROFILES, parameters);
            }

            if (_level == "Second")
            {
                SearchProfileParameters2L();
                parameters[0] = ObjStar2Dfup.Pcc;
                parameters[1] = ObjStar2Dfup.Level1;
                parameters[2] = ObjStar2Dfup.Level2;

                LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Left, this, Resources.Profiles.Constants.UC_PROFILE_INFO_DISPLAY);
                LoaderProfiles.AddToPanelWithParameters(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SECOND_LEVEL_PROFILES, parameters);
            }
        }
Example #2
0
        //Se indica los parametros de ancho y alto
        private void frmCorporateConsulting_Load(object sender, EventArgs e)
        {
            frmPreloading fr = new frmPreloading(this);

            fr.Show();
            MinWidth  = this.Width;
            MinHeight = this.Height;
            IsMinSize = true;
            Focus();
            InitialProcess();
        }
 private void toolStriptxtSearch_KeyPress(object sender, KeyPressEventArgs e)
 {
     toolStripProfileMenu.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
     if (e.KeyChar == (char)13)
     {
         string        sValorBuscar = ((ToolStripTextBox)sender).Text;
         frmPreloading frm2         = new frmPreloading(this);
         frm2.Show();
         int iTotal = ProfileSearch.LoadProfileSearchResult(sValorBuscar, sTipoBusqueda, true);
         TxtContadorRegistros.Visible = true;
         TxtContadorRegistros.Text    = "Se han encontrado un total de " + iTotal + " registros en su busqueda";
     }
 }
 /// <summary>
 /// Carga user control para la busqueda avanzada de perfil
 /// </summary>
 private void LoadSearchProfileDetailed()
 {
     if (!IsMinSize)
     {
         this.Width  = this.MinWidth;
         this.Height = this.MinHeight;
         //this.CenterForm();
         IsMinSize = true;
         frmPreloading frm2 = new frmPreloading(this);
         frm2.Show();
     }
     _ucProfileSearch = null;
     LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SEARCH_PROFILE_DETAILED);
 }
        //Evento frmProfiles_Load
        private void frmProfiles_Load(object sender, EventArgs e)
        {
            ucAvailability.IsInterJetProcess = false;
            frmPreloading fr = new frmPreloading(this);

            fr.Show();
            MinWidth  = this.Width;
            MinHeight = this.Height;
            IsMinSize = true;
            Focus();
            InitialProcess();
            if (IsTicket)
            {
                LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SECOND_LEVEL_PROFILES);
                TxtContadorRegistros.Visible = false;
            }
        }
 private void timerBusqueda_Tick(object sender, EventArgs e)
 {
     if (sTextoActual.Trim() == sTextoAnterior.Trim())
     {
         if (TimerTiempoBase.ElapsedMilliseconds > 1000)
         {
             frmPreloading frm2   = new frmPreloading(this);
             int           iTotal = ProfileSearch.LoadProfileSearchResult(sTextoActual, sTipoBusqueda, true);
             frm2.Show();
             TxtContadorRegistros.Visible = true;
             TxtContadorRegistros.Text    = "Se han encontrado un total de " + iTotal + " registros en su busqueda";
             TimerTiempoBase.Stop();
             TimerTiempoBase = new Stopwatch();
         }
     }
     else
     {
         TimerTiempoBase.Start();
         sTextoAnterior = sTextoActual;
     }
 }
        /// <summary>
        /// Deacuerdo a la opcion que eligio se guarda el nombre de cada uno
        /// de los radios esto con la finalidad de cuando regrese de otro user control
        /// se mantengan los datos anteriormente seleccionados.
        /// Despues se hace el control de calidad para todas las opciones
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAccept_Click(object sender, EventArgs e)
        {
            try
            {
                ucRemoveRemarks.qcCTSValues = null;
                if (ucAvailability.IsInterJetProcess)
                {
                    var fromLoading = new frmPreloading(this);
                    fromLoading.Show();
                }

                string send = Resources.Constants.COMMANDS_QSORT_AST;
                using (CommandsAPI objCommand = new CommandsAPI())
                {
                    result = objCommand.SendReceive(send);
                }

                if (result.Contains(Resources.Constants.NONE))
                {
                    send = string.Concat(Resources.Constants.COMMANDS_QSORT_SLASH, Login.Queue);

                    using (CommandsAPI objCommand = new CommandsAPI())
                    {
                        result = objCommand.SendReceive(send);
                    }
                }

                PNR = RecordLocalizer.GetRecordLocalizer();
                if (string.IsNullOrEmpty(PNR))
                {
                    newpnr = true;
                }
                else
                {
                    newpnr = false;
                }

                using (CommandsAPI objCommand = new CommandsAPI())
                {
                    result = objCommand.SendReceive(Resources.Constants.COMMANDS_AST_IO);
                    APIResponseSegment();
                }

                bool validationQueue = false;

                if (rdoCloseRecover.Checked)
                {
                    optionSelected = rdoCloseRecover.Name;
                }
                else if (rdoClosecopyitinerary.Checked)
                {
                    optionSelected = rdoClosecopyitinerary.Name;
                }
                else if (rdoPlaceQueue.Checked)
                {
                    if (IsValidBusinessRules)
                    {
                        LoadParametersValues();
                        CommandsSend();
                        optionSelected = rdoPlaceQueue.Name;
                    }
                    else
                    {
                        validationQueue = true;
                    }
                }
                else if (rdoCloseSendMail.Checked)
                {
                    optionSelected = rdoCloseSendMail.Name;
                }
                else if (rdoCloseUpgradeRecord.Checked)
                {
                    optionSelected = rdoCloseUpgradeRecord.Name;
                }
                else if (rdoCloseSendMailBlackBerry.Checked)
                {
                    optionSelected = rdoCloseSendMailBlackBerry.Name;
                }

                if (!validationQueue)
                {
                    if (!string.IsNullOrEmpty(ucBoletageReceived.param6Received))
                    {
                        sixReceived = ucBoletageReceived.param6Received;
                    }

                    agente                     = Login.Firm;
                    mail                       = Login.Mail;
                    serchSegmHotels            = string.Empty;
                    TempHotel.SearchSegmHotels = serchSegmHotels;
                    TempHotel.PNR              = PNR;
                    TempHotel.Agent            = agente;
                    TempHotel.Mail             = mail;
                    Loader.AddToPanel(Loader.Zone.Middle, this, "ucClientQualityControls");
                }
            }
            catch (Exception err)
            {
            }
        }
        public void PayServiceFee()
        {
            frmPreloading frm2 = new frmPreloading(this);

            frm2.Show();
            List <ListaFiltrada> lstListaFiltrada = new List <ListaFiltrada>();

            UsuarioValidoParaCargosPorServicio = ChargesPerService.ValidateTestingUsers(OrigenTipo);
            if ((OrigenTipo != ChargesPerService.OrigenTipoCargo.Independiente) && !UsuarioValidoParaCargosPorServicio)
            {
                Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME);
            }
            else
            {
                if (OrigenTipo == ChargesPerService.OrigenTipoCargo.BajoCosto)
                {
                    if (String.IsNullOrEmpty(PNRBajoCostoSabre))
                    {
                        MessageBox.Show("No ha sido posible generar la factura para el servicio aéreo,\n por tal motivo los cargos por servicio en linea\n no pudieron ser completados", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information);
                        return;
                    }
                    else
                    {
                        using (CommandsAPI objCommand = new CommandsAPI())
                        {
                            string sabreAnswer = objCommand.SendReceive("*" + PNRBajoCostoSabre);
                        }
                        recLoc = PNRBajoCostoSabre;
                    }
                }
                else if (OrigenTipo == ChargesPerService.OrigenTipoCargo.Hoteles || OrigenTipo == ChargesPerService.OrigenTipoCargo.Autos)
                {
                    TransaccionesRespuestasEntities Respuesta = new TransaccionesRespuestasEntities();
                    PagarHotel(ref lstListaFiltrada, ref Respuesta);
                    using (CommandsAPI objCommand = new CommandsAPI())
                    {
                        objCommand.SendReceive(ChargesPerService.PreguntasASabre.VERIFICAR_RESERVA);
                    }
                }
                else
                {
                    RecuperarPNR();
                }

                if (tarjeta != null)
                {
                    lstDatosTarjeta.Add(tarjeta);
                }

                if (!string.IsNullOrEmpty(recLoc) && recLoc.Length == 6 && ValidateRegularExpression.ValidatePNR(recLoc) &&
                    OrigenTipo != ChargesPerService.OrigenTipoCargo.Hoteles && OrigenTipo != ChargesPerService.OrigenTipoCargo.Autos)
                {
                    FlujoPagos();
                }

                lstListaFiltrada = FiltrarLista(lstDatosTarjeta);
                if (!string.IsNullOrEmpty(recLoc) && recLoc.Length == 6 && ValidateRegularExpression.ValidatePNR(recLoc) &&
                    OrigenTipo != ChargesPerService.OrigenTipoCargo.Hoteles && OrigenTipo != ChargesPerService.OrigenTipoCargo.Autos)
                {
                    MandarDin(lstListaFiltrada);
                }
            }
        }