Ejemplo n.º 1
0
 private void dgvGrilla_RowEnter(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvGrilla.RowCount > 0)
     {
         _productoSeleccionado = (ComprobanteDeliveryDetalleDto)dgvGrilla.Rows[e.RowIndex].DataBoundItem;
     }
 }
Ejemplo n.º 2
0
        public _0010_VentaDelivery(ClienteDto Cliente, long EmpleadoId)
        {
            InitializeComponent();

            _clienteSeleccionado    = Cliente;
            _empleadoSeleccionadoId = EmpleadoId;
            _comprobante            = new ComprobanteDeliveryDto();
            _productoServicio       = new ProductoServicio();
            _productoSeleccionado   = new ComprobanteDeliveryDetalleDto();
            _empleadoServicio       = new EmpleadoServicio();
            _clienteServicio        = new ClienteServicio();
            _comprobanteDelivery    = new ComprobanteDeliveryServicio();
            _listaPrecioServicio    = new ListaPrecioServicio();
            _realizoAlgunaOperacion = false;

            txtDescripcion.KeyPress += Validacion.NoSimbolos;
            txtDescripcion.KeyPress += Validacion.NoInyeccion;

            txtObservacion.KeyPress += Validacion.NoInyeccion;


            txtObservacion.Enter += txt_Enter;
            txtObservacion.Leave += txt_Leave;

            txtDescripcion.Enter += txt_Enter;
            txtDescripcion.Leave += txt_Leave;

            nudCantidad.Enter += txt_Enter;
            nudCantidad.Leave += txt_Leave;

            nudDescuento.Enter += txt_Enter;
            nudDescuento.Leave += txt_Leave;
        }