cambios para añadir proveedores en form de productos + proveedores y resuelto un bug en form proveedores

This commit is contained in:
fedpo
2024-08-05 00:01:17 +01:00
committed by fede
parent 77dc57dda2
commit 16bff577e4
21 changed files with 280 additions and 70 deletions

View File

@@ -20,16 +20,16 @@ namespace Vista
private static void PrecargarDatos()
{
ControladoraProveedores.Instance.Añadir(new Proveedor
Proveedor proveedor = new Proveedor
{
Cuit = 157618923,
Direccion = "La Rioja 6412",
Nombre = "Outlet Riojano",
Habilitado = true,
RazonSocial = "Vende Ropa"
});
};
ControladoraProveedores.Instance.Añadir(proveedor);
ControladoraClientes.Instance.Añadir(new Cliente{
Cuit = 23453659239,
@@ -59,15 +59,17 @@ namespace Vista
Id = 2,
Descripcion = "Perfumeria"
});
ControladoraProductos.Instance.Añadir(new Producto
Producto producto = new Producto
{
Id = 1,
Categoria = ControladoraCategorias.Instance.Listar()[0],
Habilitado = true,
Nombre = "Pantalones Vaqueros",
Precio = 2000.2
});
};
producto.AñadirProveedor(proveedor);
ControladoraProductos.Instance.Añadir(producto);
}
}
}