예제 #1
0
        private void FrmTransFactura_Load(object sender, EventArgs e)
        {
            InicializarFormulario();
            LlenarCombo(cboCliente, clienteService.ObtenerTodos(), "Nombre", "IdCliente");
            LlenarCombo(cboArticulo, articuloService.ObtenerTodos(), "Nombre", "IdProducto");

            dgvDetalle.DataSource = listaFacturaDetalle;

            this.cboCliente.SelectedIndexChanged  += new System.EventHandler(this.CboCliente_SelectedIndexChanged);
            this.cboArticulo.SelectedIndexChanged += new System.EventHandler(this.CboArticulo_SelectedIndexChanged);
        }
예제 #2
0
        private void FrmTransFactura_Load(object sender, EventArgs e)
        {
            InicializarFormulario();
            LlenarCombo(cboCliente, clienteService.ObtenerTodos(), "Nombre", "IdCliente");
            LlenarCombo(cboArticulo, articuloService.ObtenerTodos(), "Nombre", "IdArticulo");
            LlenarCombo(cboVendedor, profesorService.ObtenerTodos(), "Apellido", "IdProfe");
            LlenarCombo(cboTipoFact, tipoFacturaService.ObtenerTodos(), "Descripcion", "IdTipoFactura");


            dgvDetalle.DataSource = listaFacturaDetalle;

            this.cboCliente.SelectedIndexChanged  += new System.EventHandler(this.CboCliente_SelectedIndexChanged);
            this.cboArticulo.SelectedIndexChanged += new System.EventHandler(this.CboArticulo_SelectedIndexChanged);
        }