Ejemplo n.º 1
0
        private void FrmComprar_Load(object sender, EventArgs e)
        {
            empleadosBindingSource.DataSource   = cEmpleados.ListadoEmpleados();
            proveedoresBindingSource.DataSource = cProveedores.ListadoProveedores();
            inventarioBindingSource.DataSource  = cInventario.ListadoInventarios();

            idEmpleadoComboBox.Enabled    = false;
            idProveedorComboBox.Enabled   = false;
            idInventarioComboBox.Enabled  = false;
            precioTextBox.Enabled         = false;
            cantidadNumericUpDown.Enabled = false;
            totalTextBox.Enabled          = false;

            detallesCompraDataGridView.Enabled = false;
        }
Ejemplo n.º 2
0
        private void frmVentas_Load(object sender, EventArgs e)
        {
            //inventarioBindingSource1.DataSource = inv;
            empleadosBindingSource.DataSource   = cDocumentos.ListadoDocumentos();
            empleadosBindingSource.DataSource   = cEmpleados.ListadoEmpleados();
            clientesBindingSource.DataSource    = cCliente.ListadoClientes();
            inventarioBindingSource1.DataSource = cInventario.ListadoInventarios();
            documentosBindingSource.DataSource  = cDocumentos.ListadoDocumentos();

            idEmpleadoComboBox.Enabled    = false;
            idClienteComboBox.Enabled     = false;
            idDocumentoComboBox.Enabled   = false;
            btnBuscarProdcuto.Enabled     = false;
            idInventarioComboBox.Enabled  = true;
            precioTextBox.Enabled         = true;
            cantidadNumericUpDown.Enabled = false;
            totalTextBox.Enabled          = true;

            detallesVentaDataGridView.Enabled = false;
        }
Ejemplo n.º 3
0
 public void CargarTabla()
 {
     inventarioBindingSource.DataSource  = cProducto.ListadoInventarios();
     categoriasBindingSource.DataSource  = cCategoria.ListadoCategorias();
     proveedoresBindingSource.DataSource = cProveedor.ListadoProveedores();
 }
Ejemplo n.º 4
0
 private void frmBuscarProducto_Load(object sender, EventArgs e)
 {
     inventarioBindingSource.DataSource = cInventario.ListadoInventarios();
 }