/// <summary>
        /// En esta funcion extrae el DK, primero se manda un comando
        /// despues se buscada una frase y si la encuentra copia el DK
        /// </summary>
        private void DK()
        {
            recordLocator = RecordLocalizer.GetRecordLocalizer();
            send          = Resources.TicketEmission.Constants.COMMANDS_AST_PDK;

            using (CommandsAPI objCommand = new CommandsAPI())
            {
                result = objCommand.SendReceive(send, 0, 0);
            }
            CommandsQik.searchResponse(result, Resources.TicketEmission.ValitationLabels.CUSTOMER_NUMBER, ref row, ref col, 1, 2, 1, 64);
            if (row != 0 || col != 0)
            {
                dk = string.Empty;
                CommandsQik.CopyResponse(result, ref dk, row, 19, 6);
            }
        }
        /// <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)
            {
            }
        }