103 lines
3.3 KiB
C#
103 lines
3.3 KiB
C#
using Controladora;
|
|
using Entidades;
|
|
|
|
namespace Vista
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
// see https://aka.ms/applicationconfiguration.
|
|
PrecargarDatos();
|
|
ApplicationConfiguration.Initialize();
|
|
Application.Run(new PantallaPrincipal());
|
|
}
|
|
|
|
private static void PrecargarDatos()
|
|
{
|
|
Proveedor proveedor = new Proveedor
|
|
{
|
|
Cuit = 157618923,
|
|
Direccion = "La Rioja 6412",
|
|
Nombre = "Outlet Riojano",
|
|
Habilitado = true,
|
|
RazonSocial = "Vende Ropa"
|
|
|
|
};
|
|
ControladoraProveedores.Instance.Añadir(proveedor);
|
|
Proveedor proveedor2 = new Proveedor
|
|
{
|
|
Cuit = 357618653,
|
|
Direccion = "San Martin 2261",
|
|
Nombre = "Arrollito Deport",
|
|
Habilitado = true,
|
|
RazonSocial = "Vende Ropa Deportiva"
|
|
|
|
};
|
|
ControladoraProveedores.Instance.Añadir(proveedor2);
|
|
ControladoraClientes.Instance.Añadir(new Cliente{
|
|
Cuit = 23453659239,
|
|
Apellido = "Polidoro",
|
|
Nombre = "Federico",
|
|
Correo = "federico.nicolas.polidoro@gmail.com",
|
|
Direccion = "nose",
|
|
Habilitado = true
|
|
});
|
|
|
|
ControladoraClientes.Instance.Añadir(new Cliente{
|
|
Cuit = 17385912736,
|
|
Apellido = "Diana",
|
|
Nombre = "Ignacio",
|
|
Correo = "Ignaciodiana@gmail.com",
|
|
Direccion = "nose",
|
|
Habilitado = true
|
|
});
|
|
|
|
ControladoraCategorias.Instance.Añadir(new Entidades.Categoria{
|
|
Id = 1,
|
|
Descripcion = "Indumentaria"
|
|
});
|
|
|
|
ControladoraCategorias.Instance.Añadir(new Entidades.Categoria
|
|
{
|
|
Id = 2,
|
|
Descripcion = "Perfumeria"
|
|
});
|
|
ProductoNoPercedero producto = new ProductoNoPercedero
|
|
{
|
|
Id = 1,
|
|
Categoria = ControladoraCategorias.Instance.Listar()[0],
|
|
Habilitado = true,
|
|
Nombre = "Pantalones Vaqueros",
|
|
Precio = 2000.2,
|
|
TipoDeEnvase = EnvaseTipo.NoTiene,
|
|
EsPerecedero = false
|
|
};
|
|
producto.AñadirProveedor(proveedor);
|
|
ControladoraProductos.Instance.Añadir(producto);
|
|
|
|
Presupuesto presupuesto = new Presupuesto
|
|
{
|
|
Id = 1,
|
|
Aceptado = true,
|
|
Habilitado = true,
|
|
Fecha = DateTime.Now,
|
|
Proveedor = proveedor,
|
|
};
|
|
presupuesto.AñadirDetalle(new DetallePresupuesto
|
|
{
|
|
Id = 1,
|
|
Cantidad = 2,
|
|
IdPresupuesto = 1,
|
|
MontoCUPropuesto = 1000,
|
|
Producto = producto,
|
|
});
|
|
ControladoraPresupuestos.Instance.Añadir(presupuesto);
|
|
}
|
|
}
|
|
} |