/// <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);
            }
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        public static GetAndSetAttribute1 GetAttribute(string Location)
        {
            GetAndSetAttribute1    listAttribute = new GetAndSetAttribute1();
            GetAndSetAttribute1DAL objAttribute  = new GetAndSetAttribute1DAL();

            try
            {
                try
                {
                    listAttribute = objAttribute.GetAttribute(Location, UserBL.OrgIdBL, CommonENT.MYCTSDB_CONNECTION);
                }
                catch (Exception ex)
                {
                    new EventsManager.EventsManager(ex, EventsManager.EventsManager.OrigenError.BaseDeDatos);
                    listAttribute = objAttribute.GetAttribute(Location, UserBL.OrgIdBL, CommonENT.MYCTSDBBACKUP_CONNECTION);
                }
            }
            catch
            { }
            return(listAttribute);
        }
Exemplo n.º 4
0
        public GetAndSetAttribute1 GetAttribute(string Location, int OrgId, string connectionName)
        {
            Database  db        = DatabaseFactory.CreateDatabase(connectionName);
            DbCommand dbCommand = db.GetStoredProcCommand(Resources.GetAndSetAttribute1Resources.SP_GetAttribute1);

            db.AddInParameter(dbCommand, Resources.GetAndSetAttribute1Resources.PARAM_QUERY, DbType.String, Location);
            db.AddInParameter(dbCommand, Resources.GetAndSetAttribute1Resources.PARAM_ORG_ID, DbType.Int32, OrgId);

            GetAndSetAttribute1 AttributeList = new GetAndSetAttribute1();

            using (IDataReader dr = db.ExecuteReader(dbCommand))
            {
                int _attribute = dr.GetOrdinal(Resources.GetAndSetAttribute1Resources.ATTRIBUTE1);

                while (dr.Read())
                {
                    GetAndSetAttribute1 item = new GetAndSetAttribute1();
                    item.Attribute1 = dr.GetString(_attribute);
                    AttributeList   = item;
                }
            }

            return(AttributeList);
        }