Example #1
0
        private void AbrirPantalladeNuevaVenta()
        {
            FormAMVenta PantVenta = new FormAMVenta();



            PantVenta.ShowDialog();
        }
Example #2
0
        private void nbiNuevaVenta_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            FormAMVenta formVenta    = new FormAMVenta();
            int         IntIdCliente = idCliente;

            formVenta.IdCliente          = IntIdCliente;
            formVenta.strApellidoCliente = StrApellidoCliente;
            formVenta.strNombreCliente   = StrNombreCliente;


            formVenta.ShowDialog();
        }
Example #3
0
        public FormaPagoCombinada(FormAMVenta Venta, float Efectivo, float Tarjeta, float Cheque, float CuentaCorriente, bool Combinado, float Importe) : this()
        {
            this.Importe               = Importe;
            this.lblMontoTotal.Text    = lblMontoTotal.Text + Importe.ToString();
            this.lblMontoRestante.Text = lblMontoRestante.Text + (Importe - Efectivo - Tarjeta - Cheque - CuentaCorriente).ToString();

            Source                = Venta;
            Venta.Efectivo        = Efectivo;
            Venta.Cheque          = Cheque;
            Venta.CuentaCorriente = CuentaCorriente;
            Venta.Tarjeta         = Tarjeta;
            Venta.Combinado       = Combinado;
        }
Example #4
0
        private void nbiModificarVenta_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            int[] selRows = ((GridView)this.dgvVentas.MainView).GetSelectedRows();

            if (selRows.Length != 0)
            {
                FormAMVenta formVenta = new FormAMVenta();
                formVenta.ShowDialog();
                //formVenta.IdCliente = IntIdCliente;
                formVenta.strApellidoCliente = StrApellidoCliente;
                formVenta.strNombreCliente   = StrNombreCliente;
            }
            else
            {
                XtraMessageBox.Show("Debe seleccionar una Venta", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }