Compare commits
22 Commits
2c8ca41f13
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad10d7dc30 | ||
| 9bf517e851 | |||
| ab0a1185d4 | |||
| 57e1d4526e | |||
| 18ee45927a | |||
| 721c770fcd | |||
| ed59d68c8e | |||
| 1baf2d9351 | |||
| 04704c4cc9 | |||
| 58d732320f | |||
| f51929c23d | |||
| abfd18e86f | |||
| 13ce2d317c | |||
| 56ec4226da | |||
| 82fc7a09c6 | |||
| aaa7f39a42 | |||
| 9f04a9c0af | |||
| c40f19e7c7 | |||
| 32bad7f9ac | |||
| 4139a58f6e | |||
| ea209bc4fc | |||
| ffd6001a08 |
@@ -1,7 +0,0 @@
|
||||
namespace Controladora
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,4 +11,9 @@
|
||||
<PackageReference Include="webhookSharp" Version="1.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Modelo\Modelo.csproj" />
|
||||
<ProjectReference Include="..\Entidades\Entidades.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
36
Controladora/ControladoraBase.cs
Normal file
36
Controladora/ControladoraBase.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.InteropServices;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
public abstract class ControladoraBase<T /*Tipo de Dato*/ ,
|
||||
J /*Singleton*/>
|
||||
where J : new()
|
||||
{
|
||||
|
||||
|
||||
// Singleton thread-safe por si quiero usar "Parallel"
|
||||
private static J instance = new J();
|
||||
public static J Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Lista los contenidos del repositorio
|
||||
abstract public ReadOnlyCollection<T> Listar();
|
||||
|
||||
// Recibe mensajes de la Vista para dar de alta
|
||||
abstract public string Añadir(T t);
|
||||
|
||||
// Recibe mensajes para modificar
|
||||
abstract public string Modificar(T t);
|
||||
|
||||
// Recibe mensajes para eliminar
|
||||
abstract public string Eliminar(T t);
|
||||
}
|
||||
}
|
||||
42
Controladora/ControladoraCategorias.cs
Normal file
42
Controladora/ControladoraCategorias.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraCategorias : ControladoraBase<Categoria, ControladoraCategorias>
|
||||
{
|
||||
public override string Añadir(Categoria t)
|
||||
{
|
||||
if (t == null) return "El Categoria es nulo fallo la carga";
|
||||
|
||||
return (RepositorioCategoria.Instance.Add(t)) ?
|
||||
$"El Categoria {t.Descripcion} se cargo correctamente":
|
||||
$"Fallo la carga del Categoria {t.Descripcion}";
|
||||
}
|
||||
|
||||
override public string Eliminar(Categoria t)
|
||||
{
|
||||
if (t == null) return "El Categoria es nulo fallo la carga";
|
||||
|
||||
return (RepositorioCategoria.Instance.Del(t)) ?
|
||||
$"El Categoria {t.Descripcion} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del Categoria {t.Descripcion}";
|
||||
}
|
||||
|
||||
override public string Modificar(Categoria t)
|
||||
{
|
||||
if (t == null) return "El Categoria es nulo fallo la carga";
|
||||
|
||||
return (RepositorioCategoria.Instance.Mod(t)) ?
|
||||
$"El Categoria {t.Descripcion} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del Categoria {t.Descripcion}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<Categoria> Listar()
|
||||
{
|
||||
return RepositorioCategoria.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
41
Controladora/ControladoraClientes.cs
Normal file
41
Controladora/ControladoraClientes.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraClientes : ControladoraBase<Cliente, ControladoraClientes>
|
||||
{
|
||||
public override string Añadir(Cliente t)
|
||||
{
|
||||
if (t == null) return "El Cliente es nulo fallo la carga";
|
||||
|
||||
return (RepositorioClientes.Instance.Add(t)) ?
|
||||
$"El Cliente {t.Nombre} se cargo correctamente":
|
||||
$"Fallo la carga del Cliente {t.Nombre}";
|
||||
}
|
||||
|
||||
override public string Eliminar(Cliente t)
|
||||
{
|
||||
if (t == null) return "El Cliente es nulo fallo la carga";
|
||||
|
||||
return (RepositorioClientes.Instance.Del(t)) ?
|
||||
$"El Cliente {t.Nombre} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del Cliente {t.Nombre}";
|
||||
}
|
||||
|
||||
override public string Modificar(Cliente t)
|
||||
{
|
||||
if (t == null) return "El Cliente es nulo fallo la carga";
|
||||
|
||||
return (RepositorioClientes.Instance.Mod(t)) ?
|
||||
$"El Cliente {t.Nombre} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del Cliente {t.Nombre}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<Cliente> Listar()
|
||||
{
|
||||
return RepositorioClientes.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
41
Controladora/ControladoraFacturas.cs
Normal file
41
Controladora/ControladoraFacturas.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraFacturas : ControladoraBase<Factura, ControladoraFacturas>
|
||||
{
|
||||
public override string Añadir(Factura t)
|
||||
{
|
||||
if (t == null) return "El Factura es nulo fallo la carga";
|
||||
|
||||
return (RepositorioFactura.Instance.Add(t)) ?
|
||||
$"El Factura {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del Factura {t.Id}";
|
||||
}
|
||||
|
||||
override public string Eliminar(Factura t)
|
||||
{
|
||||
if (t == null) return "El Factura es nulo fallo la carga";
|
||||
|
||||
return (RepositorioFactura.Instance.Del(t)) ?
|
||||
$"El Factura {t.Id} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del Factura {t.Id}";
|
||||
}
|
||||
|
||||
override public string Modificar(Factura t)
|
||||
{
|
||||
if (t == null) return "El Factura es nulo fallo la carga";
|
||||
|
||||
return (RepositorioFactura.Instance.Mod(t)) ?
|
||||
$"El Factura {t.Id} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del Factura {t.Id}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<Factura> Listar()
|
||||
{
|
||||
return RepositorioFactura.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Controladora/ControladoraOrdenesDeCompra.cs
Normal file
42
Controladora/ControladoraOrdenesDeCompra.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraOrdenDeCompras : ControladoraBase<OrdenDeCompra, ControladoraOrdenDeCompras>
|
||||
{
|
||||
public override string Añadir(OrdenDeCompra t)
|
||||
{
|
||||
if (t == null) return "El OrdenDeCompra es nulo fallo la carga";
|
||||
|
||||
return (RepositorioOrdenDeCompra.Instance.Add(t)) ?
|
||||
$"El OrdenDeCompra {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del OrdenDeCompra {t.Id}";
|
||||
}
|
||||
|
||||
override public string Eliminar(OrdenDeCompra t)
|
||||
{
|
||||
if (t == null) return "El OrdenDeCompra es nulo fallo la carga";
|
||||
|
||||
return (RepositorioOrdenDeCompra.Instance.Del(t)) ?
|
||||
$"El OrdenDeCompra {t.Id} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del OrdenDeCompra {t.Id}";
|
||||
}
|
||||
|
||||
override public string Modificar(OrdenDeCompra t)
|
||||
{
|
||||
if (t == null) return "El OrdenDeCompra es nulo fallo la carga";
|
||||
|
||||
return (RepositorioOrdenDeCompra.Instance.Mod(t)) ?
|
||||
$"El OrdenDeCompra {t.Id} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del OrdenDeCompra {t.Id}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<OrdenDeCompra> Listar()
|
||||
{
|
||||
return RepositorioOrdenDeCompra.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
42
Controladora/ControladoraPedidoPresupuesto.cs
Normal file
42
Controladora/ControladoraPedidoPresupuesto.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraPedidoDePresupuestos : ControladoraBase<PedidoDePresupuesto, ControladoraPedidoDePresupuestos>
|
||||
{
|
||||
public override string Añadir(PedidoDePresupuesto t)
|
||||
{
|
||||
if (t == null) return "El PedidoDePresupuesto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioPedidoDePresupuesto.Instance.Add(t)) ?
|
||||
$"El PedidoDePresupuesto {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del PedidoDePresupuesto {t.Id}";
|
||||
}
|
||||
|
||||
override public string Eliminar(PedidoDePresupuesto t)
|
||||
{
|
||||
if (t == null) return "El PedidoDePresupuesto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioPedidoDePresupuesto.Instance.Del(t)) ?
|
||||
$"El PedidoDePresupuesto {t.Id} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del PedidoDePresupuesto {t.Id}";
|
||||
}
|
||||
|
||||
override public string Modificar(PedidoDePresupuesto t)
|
||||
{
|
||||
if (t == null) return "El PedidoDePresupuesto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioPedidoDePresupuesto.Instance.Mod(t)) ?
|
||||
$"El PedidoDePresupuesto {t.Id} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del PedidoDePresupuesto {t.Id}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<PedidoDePresupuesto> Listar()
|
||||
{
|
||||
return RepositorioPedidoDePresupuesto.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
41
Controladora/ControladoraPresupuestos.cs
Normal file
41
Controladora/ControladoraPresupuestos.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraPresupuestos : ControladoraBase<Presupuesto, ControladoraPresupuestos>
|
||||
{
|
||||
public override string Añadir(Presupuesto t)
|
||||
{
|
||||
if (t == null) return "El Presupuesto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioPresupuesto.Instance.Add(t)) ?
|
||||
$"El Presupuesto {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del Presupuesto {t.Id}";
|
||||
}
|
||||
|
||||
override public string Eliminar(Presupuesto t)
|
||||
{
|
||||
if (t == null) return "El Presupuesto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioPresupuesto.Instance.Del(t)) ?
|
||||
$"El Presupuesto {t.Id} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del Presupuesto {t.Id}";
|
||||
}
|
||||
|
||||
override public string Modificar(Presupuesto t)
|
||||
{
|
||||
if (t == null) return "El Presupuesto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioPresupuesto.Instance.Mod(t)) ?
|
||||
$"El Presupuesto {t.Id} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del Presupuesto {t.Id}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<Presupuesto> Listar()
|
||||
{
|
||||
return RepositorioPresupuesto.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
41
Controladora/ControladoraProductos.cs
Normal file
41
Controladora/ControladoraProductos.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraProductos : ControladoraBase<Producto, ControladoraProductos>
|
||||
{
|
||||
public override string Añadir(Producto t)
|
||||
{
|
||||
if (t == null) return "El Producto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioProductos.Instance.Add(t)) ?
|
||||
$"El Producto {t.Nombre} se cargo correctamente":
|
||||
$"Fallo la carga del Producto {t.Nombre}";
|
||||
}
|
||||
|
||||
public override string Eliminar(Producto t)
|
||||
{
|
||||
if (t == null) return "El Producto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioProductos.Instance.Del(t)) ?
|
||||
$"El Producto {t.Nombre} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del Producto {t.Nombre}";
|
||||
}
|
||||
|
||||
public override string Modificar(Producto t)
|
||||
{
|
||||
if (t == null) return "El Producto es nulo fallo la carga";
|
||||
|
||||
return (RepositorioProductos.Instance.Mod(t)) ?
|
||||
$"El Producto {t.Nombre} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del Producto {t.Nombre}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<Producto> Listar()
|
||||
{
|
||||
return RepositorioProductos.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
41
Controladora/ControladoraProveedores.cs
Normal file
41
Controladora/ControladoraProveedores.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraProveedores : ControladoraBase<Proveedor, ControladoraProveedores>
|
||||
{
|
||||
public override string Añadir(Proveedor t)
|
||||
{
|
||||
if (t == null) return "El Proveedor es nulo fallo la carga";
|
||||
|
||||
return (RepositorioProveedor.Instance.Add(t)) ?
|
||||
$"El Proveedor {t.Nombre} se cargo correctamente":
|
||||
$"Fallo la carga del Proveedor {t.Nombre}";
|
||||
}
|
||||
|
||||
public override string Eliminar(Proveedor t)
|
||||
{
|
||||
if (t == null) return "El Proveedor es nulo fallo la carga";
|
||||
|
||||
return (RepositorioProveedor.Instance.Del(t)) ?
|
||||
$"El Proveedor {t.Nombre} se Elimino correctamente":
|
||||
$"Fallo la Eliminacion del Proveedor {t.Nombre}";
|
||||
}
|
||||
|
||||
public override string Modificar(Proveedor t)
|
||||
{
|
||||
if (t == null) return "El Proveedor es nulo fallo la carga";
|
||||
|
||||
return (RepositorioProveedor.Instance.Mod(t)) ?
|
||||
$"El Proveedor {t.Nombre} se Modifico correctamente":
|
||||
$"Fallo la Modificacion del Proveedor {t.Nombre}";
|
||||
}
|
||||
|
||||
public override ReadOnlyCollection<Proveedor> Listar()
|
||||
{
|
||||
return RepositorioProveedor.Instance.Listar();
|
||||
}
|
||||
}
|
||||
}
|
||||
43
Controladora/ControladoraRemito.cs
Normal file
43
Controladora/ControladoraRemito.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Modelo;
|
||||
|
||||
namespace Controladora
|
||||
{
|
||||
class ControladoraRemito : ControladoraBase<Remito, ControladoraRemito>
|
||||
{
|
||||
public override ReadOnlyCollection<Remito> Listar()
|
||||
{
|
||||
return RepositorioRemito.Instance.Listar();
|
||||
}
|
||||
|
||||
override public string Añadir(Remito t)
|
||||
{
|
||||
if (t == null) return "El Remito es nulo fallo la carga";
|
||||
|
||||
return (RepositorioRemito.Instance.Add(t)) ?
|
||||
$"El remito {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del remito {t.Id}";
|
||||
|
||||
}
|
||||
override public string Modificar(Remito t)
|
||||
{
|
||||
if (t == null) return "El Remito es nulo fallo la carga";
|
||||
|
||||
return (RepositorioRemito.Instance.Add(t)) ?
|
||||
$"El remito {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del remito {t.Id}";
|
||||
|
||||
}
|
||||
override public string Eliminar(Remito t)
|
||||
{
|
||||
if (t == null) return "El Remito es nulo fallo la carga";
|
||||
|
||||
return (RepositorioRemito.Instance.Add(t)) ?
|
||||
$"El remito {t.Id} se cargo correctamente":
|
||||
$"Fallo la carga del remito {t.Id}";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Entidades
|
||||
{
|
||||
public class Proveedor
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public Int64 Cuit { get; set; }
|
||||
public string Nombre { get; set; }
|
||||
public string RazonSocial { get; set; }
|
||||
public bool Habilitado { get; set; }
|
||||
|
||||
25
Modelo/Modelo.sln
Normal file
25
Modelo/Modelo.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.002.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modelo", "Modelo.csproj", "{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {DFA3F249-7A0D-474C-A190-5C2E568DFB1C}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -1,8 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public abstract class RepositorioSingleton<T, J>
|
||||
public abstract class RepositorioBase<T, J>
|
||||
where J : new()
|
||||
{
|
||||
|
||||
@@ -10,7 +11,7 @@ namespace Modelo
|
||||
|
||||
//es protected para que solo se pueda llamar desde
|
||||
//las clases que implementen a esta clase
|
||||
protected RepositorioSingleton() {
|
||||
protected RepositorioBase() {
|
||||
almacen = new List<T>();
|
||||
}
|
||||
|
||||
@@ -24,6 +25,11 @@ namespace Modelo
|
||||
}
|
||||
}
|
||||
|
||||
// Lista el contenido del repositorio
|
||||
public ReadOnlyCollection<T> Listar(){
|
||||
return almacen.AsReadOnly();
|
||||
}
|
||||
|
||||
// Añade objetos al almacen
|
||||
abstract public bool Add(T t);
|
||||
|
||||
@@ -3,7 +3,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioCategoria : RepositorioSingleton<Categoria, RepositorioCategoria>
|
||||
public sealed class RepositorioCategoria : RepositorioBase<Categoria, RepositorioCategoria>
|
||||
{
|
||||
override public bool Add(Categoria t)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioClientes : RepositorioSingleton<Cliente, RepositorioClientes>
|
||||
public sealed class RepositorioClientes : RepositorioBase<Cliente, RepositorioClientes>
|
||||
{
|
||||
override public bool Add(Cliente t)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioFactura : RepositorioSingleton<Factura, RepositorioFactura>
|
||||
public sealed class RepositorioFactura : RepositorioBase<Factura, RepositorioFactura>
|
||||
{
|
||||
override public bool Add(Factura t)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioLote : RepositorioSingleton<Lote, RepositorioLote>
|
||||
public sealed class RepositorioLote : RepositorioBase<Lote, RepositorioLote>
|
||||
{
|
||||
override public bool Add(Lote t)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioOrdenDeCompra : RepositorioSingleton<OrdenDeCompra, RepositorioOrdenDeCompra>
|
||||
public sealed class RepositorioOrdenDeCompra : RepositorioBase<OrdenDeCompra, RepositorioOrdenDeCompra>
|
||||
{
|
||||
override public bool Add(OrdenDeCompra t)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioPedidoDePresupuesto : RepositorioSingleton<PedidoDePresupuesto, RepositorioPedidoDePresupuesto>
|
||||
public sealed class RepositorioPedidoDePresupuesto : RepositorioBase<PedidoDePresupuesto, RepositorioPedidoDePresupuesto>
|
||||
{
|
||||
override public bool Add(PedidoDePresupuesto t)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioPresupuesto : RepositorioSingleton<Presupuesto, RepositorioPresupuesto>
|
||||
public sealed class RepositorioPresupuesto : RepositorioBase<Presupuesto, RepositorioPresupuesto>
|
||||
{
|
||||
override public bool Add(Presupuesto t)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioProductos : RepositorioSingleton<Producto, RepositorioProductos>
|
||||
public sealed class RepositorioProductos : RepositorioBase<Producto, RepositorioProductos>
|
||||
{
|
||||
override public bool Add(Producto t)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioProveedor : RepositorioSingleton<Proveedor, RepositorioProveedor>
|
||||
public sealed class RepositorioProveedor : RepositorioBase<Proveedor, RepositorioProveedor>
|
||||
{
|
||||
override public bool Add(Proveedor t)
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace Modelo
|
||||
|
||||
try
|
||||
{
|
||||
var proveedorAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
var proveedorAModificar = almacen.Find(x => x.Cuit == t.Cuit);
|
||||
if (proveedorAModificar != null)
|
||||
{
|
||||
proveedorAModificar = t;
|
||||
@@ -49,7 +49,7 @@ namespace Modelo
|
||||
|
||||
try
|
||||
{
|
||||
var proveedorAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
var proveedorAEliminar = almacen.Find(x => x.Cuit == t.Cuit);
|
||||
if (proveedorAEliminar != null)
|
||||
{
|
||||
almacen.Remove(proveedorAEliminar);
|
||||
|
||||
@@ -4,7 +4,7 @@ using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioRemito : RepositorioSingleton<Remito, RepositorioRemito>
|
||||
public sealed class RepositorioRemito : RepositorioBase<Remito, RepositorioRemito>
|
||||
{
|
||||
|
||||
override public bool Add(Remito t)
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public abstract class RepositorioSingleton<T, J>
|
||||
where J : new()
|
||||
{
|
||||
|
||||
protected List<T> almacen;
|
||||
|
||||
//es protected para que solo se pueda llamar desde
|
||||
//las clases que implementen a esta clase
|
||||
protected RepositorioSingleton() {
|
||||
almacen = new List<T>();
|
||||
}
|
||||
|
||||
// Singleton thread-safe por si quiero usar "Parallel"
|
||||
private static J instance = new J();
|
||||
public static J Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Añade objetos al almacen
|
||||
abstract public bool Add(T t);
|
||||
|
||||
// Modifica objetos del almacen
|
||||
abstract public bool Mod(T t);
|
||||
|
||||
// Elimina objetos del almacen
|
||||
abstract public bool Del(T t);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Entidades\Entidades.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,67 +0,0 @@
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioCategoria : RepositorioSingleton<Categoria, RepositorioCategoria>
|
||||
{
|
||||
override public bool Add(Categoria t)
|
||||
{
|
||||
bool ret = false;
|
||||
//commit
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Categoria t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var categoriaAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (categoriaAModificar != null)
|
||||
{
|
||||
categoriaAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Categoria t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var categoriaAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (categoriaAEliminar != null)
|
||||
{
|
||||
almacen.Remove(categoriaAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioClientes : RepositorioSingleton<Cliente, RepositorioClientes>
|
||||
{
|
||||
override public bool Add(Cliente t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Cliente t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
var clienteAModificar = almacen.Find(x => x.Cuit == t.Cuit);
|
||||
if (clienteAModificar != null)
|
||||
{
|
||||
clienteAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Cliente t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var clienteAEliminar = almacen.Find(x => x.Cuit == t.Cuit);
|
||||
if (clienteAEliminar != null)
|
||||
{
|
||||
almacen.Remove(clienteAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioFactura : RepositorioSingleton<Factura, RepositorioFactura>
|
||||
{
|
||||
override public bool Add(Factura t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Factura t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var facturaAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (facturaAModificar != null)
|
||||
{
|
||||
facturaAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Factura t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var facturaAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (facturaAEliminar != null)
|
||||
{
|
||||
almacen.Remove(facturaAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<DetalleFactura> MostrarDetalles(Factura factura)
|
||||
{
|
||||
return factura.MostrarDetalles();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioLote : RepositorioSingleton<Lote, RepositorioLote>
|
||||
{
|
||||
override public bool Add(Lote t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Lote t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var loteAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (loteAModificar != null)
|
||||
{
|
||||
loteAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Lote t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var loteAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (loteAEliminar != null)
|
||||
{
|
||||
almacen.Remove(loteAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioOrdenDeCompra : RepositorioSingleton<OrdenDeCompra, RepositorioOrdenDeCompra>
|
||||
{
|
||||
override public bool Add(OrdenDeCompra t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(OrdenDeCompra t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var ordenAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (ordenAModificar != null)
|
||||
{
|
||||
ordenAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(OrdenDeCompra t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var ordenAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (ordenAEliminar != null)
|
||||
{
|
||||
almacen.Remove(ordenAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<DetalleOrdenDeCompra> MostrarDetalles(OrdenDeCompra orden)
|
||||
{
|
||||
return orden.MostrarDetalles();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioPedidoDePresupuesto : RepositorioSingleton<PedidoDePresupuesto, RepositorioPedidoDePresupuesto>
|
||||
{
|
||||
override public bool Add(PedidoDePresupuesto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(PedidoDePresupuesto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var pedidoAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (pedidoAModificar != null)
|
||||
{
|
||||
pedidoAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(PedidoDePresupuesto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var pedidoAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (pedidoAEliminar != null)
|
||||
{
|
||||
almacen.Remove(pedidoAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ReadOnlyCollection<DetallePedido> MostrarDetalles(PedidoDePresupuesto pedido)
|
||||
{
|
||||
return pedido.MostrarDetalles();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioPresupuesto : RepositorioSingleton<Presupuesto, RepositorioPresupuesto>
|
||||
{
|
||||
override public bool Add(Presupuesto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Presupuesto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var presupuestoAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (presupuestoAModificar != null)
|
||||
{
|
||||
|
||||
presupuestoAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Presupuesto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var presupuestoAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (presupuestoAEliminar != null)
|
||||
{
|
||||
almacen.Remove(presupuestoAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
public ReadOnlyCollection<DetallePresupuesto> MostrarDetalles(Presupuesto presupuesto)
|
||||
{
|
||||
return presupuesto.MostrarDetalles();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioProductos : RepositorioSingleton<Producto, RepositorioProductos>
|
||||
{
|
||||
override public bool Add(Producto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Producto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var AModificar = almacen.Find(x => x.Id == t.Id);
|
||||
AModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Producto t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var AEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (AEliminar == null) return ret;
|
||||
almacen.Remove(AEliminar);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioProveedor : RepositorioSingleton<Proveedor, RepositorioProveedor>
|
||||
{
|
||||
override public bool Add(Proveedor t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Mod(Proveedor t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var proveedorAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (proveedorAModificar != null)
|
||||
{
|
||||
proveedorAModificar = t;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
override public bool Del(Proveedor t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var proveedorAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (proveedorAEliminar != null)
|
||||
{
|
||||
almacen.Remove(proveedorAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime;
|
||||
using Entidades;
|
||||
|
||||
namespace Modelo
|
||||
{
|
||||
public sealed class RepositorioRemito : RepositorioSingleton<Remito, RepositorioRemito>
|
||||
{
|
||||
|
||||
override public bool Add(Remito t)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
almacen.Add(t);
|
||||
ret = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
override public bool Mod(Remito t)
|
||||
{
|
||||
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var remitoAModificar = almacen.Find(x => x.Id == t.Id);
|
||||
if (remitoAModificar != null)
|
||||
{
|
||||
|
||||
remitoAModificar = t;
|
||||
ret = true;
|
||||
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
override public bool Del(Remito t)
|
||||
{
|
||||
|
||||
bool ret = false;
|
||||
|
||||
try
|
||||
{
|
||||
var RemitoAEliminar = almacen.Find(x => x.Id == t.Id);
|
||||
if (RemitoAEliminar != null)
|
||||
{
|
||||
almacen.Remove(RemitoAEliminar);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
public ReadOnlyCollection<Lote> MostrarLotes(Remito remito)
|
||||
{
|
||||
return remito.MostrarLotes();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
||||
@@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime:4.0.30319.42000
|
||||
//
|
||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||
// se vuelve a generar el código.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Modelo")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc4cbf98b694fea6cb9a1180800c286a8c9baceb")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Modelo")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Modelo")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generado por la clase WriteCodeFragment de MSBuild.
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
e8d52fba3acd089aa4e5bd467c5b234fd3f59031a10de52f1b6621464b430c5d
|
||||
@@ -1,13 +0,0 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net6.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Modelo
|
||||
build_property.ProjectDir = C:\Users\Nacho\Desktop\Final\Modelo\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
@@ -1,8 +0,0 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
@@ -1,132 +0,0 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj",
|
||||
"projectName": "Entidades",
|
||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj",
|
||||
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Nacho\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
|
||||
"projectName": "Modelo",
|
||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
|
||||
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Nacho\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {
|
||||
"C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj": {
|
||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Nacho\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.2</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Nacho\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -1,4 +0,0 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
||||
@@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Modelo")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Modelo")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Modelo")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
62b2a3bcc43d28f54304e0bcd7e2b7d409425118
|
||||
@@ -1,11 +0,0 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net6.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Modelo
|
||||
build_property.ProjectDir = C:\Users\fedpo\Source\Repos\Final_OOP\Modelo\
|
||||
@@ -1,8 +0,0 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,96 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net6.0": {
|
||||
"Entidades/1.0.0": {
|
||||
"type": "project",
|
||||
"framework": ".NETCoreApp,Version=v6.0",
|
||||
"compile": {
|
||||
"bin/placeholder/Entidades.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"bin/placeholder/Entidades.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Entidades/1.0.0": {
|
||||
"type": "project",
|
||||
"path": "../Entidades/Entidades.csproj",
|
||||
"msbuildProject": "../Entidades/Entidades.csproj"
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net6.0": [
|
||||
"Entidades >= 1.0.0"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\Nacho\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
|
||||
"projectName": "Modelo",
|
||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
|
||||
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Nacho\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {
|
||||
"C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj": {
|
||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "T12qmRj5Q9rvsNY7xEFXm3MUiD/DlNMsnkrwj708Ox38z6CidLP3fTzwdB3PJvsKuH9BlXCvzreylK2Srxz2KA==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
Reference in New Issue
Block a user