Example #1
0
 public void SetupForm(BLogic BL, string cardNum)
 {
     this.BL      = BL;
     this.cardNum = cardNum;
     UserInterfaceHelper.CenterWindow(this);
     UserInterfaceHelper.VisibleForms.Add(this);
 }
 public void SetupForm(BLogic BL)
 {
     this.BL = BL;
     UserInterfaceHelper.CenterWindow(this);
     UserInterfaceHelper.VisibleForms.Add(this);
     // Colores --> Verde: #2a9800 - Rojo: #d74a2b - Naranja: #ffa909
     cancelar.BackColor = ColorTranslator.FromHtml("#d74a2b");
 }
        public void SetupForm(BLogic BL)
        {
            this.BL = BL;
            //this.variableTID = variableTID;
            UserInterfaceHelper.CenterWindow(this);
            UserInterfaceHelper.VisibleForms.Add(this);

            txtMonto.Text = SafeConvert.ToString(BL.CurrentTransaction.FoodToPay());
        }
        public void SetupForm(BLogic BL)
        {
            this.BL = BL;
            UserInterfaceHelper.TranslateForm(this);
            UserInterfaceHelper.CenterWindow(this);
            UserInterfaceHelper.VisibleForms.Add(this);

            DataTable bancos     = BL.DB.ExecuteDataTable("SELECT id, description FROM bes_banks WHERE status=0 ORDER BY description");
            int       contador   = bancos.Rows.Count;
            var       dataSource = new List <TestObject>();

            foreach (DataRow banco in bancos.Rows)
            {
                String description = banco["description"].ToString();
                int    id          = SafeConvert.ToInt32(banco["id"]);
                dataSource.Add(new TestObject()
                {
                    Name = description, Value = id
                });
            }
            this.x_banco_cheque.DataSource    = dataSource;
            this.x_banco_cheque.DisplayMember = "Name";
            this.x_banco_cheque.ValueMember   = "Value";
            this.x_banco_cheque.DropDownStyle = ComboBoxStyle.DropDownList;

            // Dia
            for (int i = 1; i <= 31; i++)
            {
                x_dia_cheque.Items.Add(i.ToString());
            }
            // Mes
            for (int i = 1; i <= 12; i++)
            {
                x_mes_cheque.Items.Add(i.ToString());
            }
            // Año
            for (int i = 2016; i <= 2018; i++)
            {
                x_anio_cheque.Items.Add(i.ToString());
            }
            // Colores --> Verde: #2a9800 - Rojo: #d74a2b - Naranja: #ffa909
            aceptar.BackColor  = ColorTranslator.FromHtml("#2a9800");
            cancelar.BackColor = ColorTranslator.FromHtml("#d74a2b");
            // Valores de Prueba por Defecto

            x_numero_cheque.Text = "0987654";
            //x_tasas_interes.Text = "2";
            rut_cheque.Text = "12345678A";
            x_nombre_completo_cheque.Text = "Domingo José Ilarreta Heydras";
            x_dia_cheque.Text             = DateTime.Now.ToString("dd");
            x_mes_cheque.Text             = DateTime.Now.ToString("MM");
            x_anio_cheque.Text            = DateTime.Now.ToString("yyyy");
            nro_cta_corriente.Text        = "09876543";
            x_cod_auth_cheque.Text        = "098768000000";

            x_monto.Text = BL.CurrentTransaction.FoodToPay().ToString();
        }
 public void SetupForm(BLogic BL)
 {
     this.BL = BL;
     UserInterfaceHelper.TranslateForm(this);
     UserInterfaceHelper.CenterWindow(this);
     UserInterfaceHelper.VisibleForms.Add(this);
     x_nro_operacion.Text = "000000";
     mensaje.Text         = "";
     // Colores --> Verde: #2a9800 - Rojo: #d74a2b - Naranja: #ffa909
     aceptar.BackColor  = ColorTranslator.FromHtml("#2a9800");
     cancelar.BackColor = ColorTranslator.FromHtml("#d74a2b");
 }
Example #6
0
 public void SetupForm(BLogic BL)
 {
     this.BL = BL;
     UserInterfaceHelper.TranslateForm(this);
     UserInterfaceHelper.CenterWindow(this);
     UserInterfaceHelper.VisibleForms.Add(this);
     x_monto.Text = BL.CurrentTransaction.FoodToPay().ToString();
     mensaje.Text = "";
     //ticket_boleta.Text = BL.DB.Counters.GetNextTransNum().ToString();
     // Colores --> Verde: #2a9800 - Rojo: #d74a2b - Naranja: #ffa909
     aceptar.BackColor  = ColorTranslator.FromHtml("#2a9800");
     cancelar.BackColor = ColorTranslator.FromHtml("#d74a2b");
 }
 public void SetupForm(BLogic BL)
 {
     this.BL = BL;
     UserInterfaceHelper.CenterWindow(this);
     UserInterfaceHelper.VisibleForms.Add(this);
 }