/// <summary>
        /// Este por el momento no se ocupa ya que le boleto se ingresa
        /// en el textbox
        /// </summary>
        private void CancelBoletage()
        {
            CommandsQik.searchResponse(result, Resources.ErrorMessages.VOID_MSG_SENT_WITHIN_BSP_APPROVED, ref row, ref col);
            if (row != 0 || col != 0)
            {
                DK();
                //List<LabelXMLRemarks> listXMLRemarks = LabelXMLRemarksBL.GetLabelXMLRemarks(dk, "Cancellation","01" , txtNumberTicket.Text);
                //xlmtktvoid = listXMLRemarks[0].XMLFutureLabel;
                GetAndSetAttribute1    Attribute      = GetAndSetAttribute1BL.GetAttribute(dk);
                List <LabelXMLRemarks> listXMLRemarks =
                    LabelXMLRemarksBL.GetLabelXMLRemarks(Attribute.Attribute1.ToString(), "Cancellation", txtNumberTicket.Text);

                //using (CommandsAPI objCommand = new CommandsAPI())
                //{
                //    objCommand.SendReceive(xlmtktvoid, 0, 0);
                //}
                string[] sendInfo = new string[] { txtNumberTicket.Text };
                Loader.AddToPanelWithParameters(Loader.Zone.Middle, this, Resources.Constants.UCBOLETAGE_RECEIVED, sendInfo);
            }
        }
Beispiel #2
0
        //Load DataSource with database values and dgvJustifications get focus
        /// <summary>
        /// Si existen parametros que vienen de otro User Control
        /// se asignas esos parametros a variables y se carga el dataGridView
        /// de acuerdo al DK
        /// </summary>
        public void initialStatements()
        {
            if (this.Parameters != null)
            {
                if (this.Parameters.Length == 3)
                {
                    DKToSearch     = this.Parameters[0];
                    command        = this.Parameters[1];
                    optionSelected = this.Parameters[2];
                }
                else
                {
                    DKToSearch     = this.Parameters[0];
                    optionSelected = this.Parameters[1];
                }

                GetAndSetAttribute1 Attribute = GetAndSetAttribute1BL.GetAttribute(DKToSearch);
                bindingSource1.DataSource = DKTempBL.GetDKTemp(Attribute.Attribute1.ToString(), false);
            }
            dgvJustifications.Focus();
        }