Exemplo n.º 1
0
 public FrmProducto()
 {
     InitializeComponent();
     materiaPrimaService      = new MateriaPrimaService(ConfigConnection.connectionString);
     productoService          = new ProductoService(ConfigConnection.connectionString);
     compuestoProductoService = new CompuestoProductoService(ConfigConnection.connectionString);
     LlenarMateriaPrima();
 }
Exemplo n.º 2
0
        public FrmVenta()
        {
            vendedorService = new VendedorService(ConfigConnection.connectionString);
            vendedores      = new List <Vendedor>();

            productoService = new ProductoService(ConfigConnection.connectionString);
            productos       = new List <Producto>();

            detalleVentaService = new DetalleVentaService(ConfigConnection.connectionString);
            detallesVentas      = new List <DetalleVenta>();

            ventaService = new VentaService(ConfigConnection.connectionString);

            compuestoProductoService = new CompuestoProductoService(ConfigConnection.connectionString);
            materiaPrimaService      = new MateriaPrimaService(ConfigConnection.connectionString);
            materiaPrimas            = new List <MateriaPrima>();

            InitializeComponent();

            LlenarVendedor();
            LlenarProducto();

            Limpiar();
        }