Compare commits
57 Commits
6a21854822
...
informes
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a60ab0dcf | |||
|
|
be585cff1d | ||
| 5479db7c97 | |||
| 9ca365f6ac | |||
| 208ebd6148 | |||
| 5b78d74e54 | |||
| 6092f6f08b | |||
| 628b33f922 | |||
| 4bc99e9cc6 | |||
| 84d414b536 | |||
| 8de480aed5 | |||
| 3616449d84 | |||
| 57b84cdf9a | |||
| c493033009 | |||
| aa3a281092 | |||
| 812b9a9fba | |||
| eb25f4700f | |||
| 1aba8e7cd5 | |||
| 390fafce97 | |||
| ae8dc07364 | |||
| 675d86f38d | |||
| 51676e6434 | |||
| 9b0bde293b | |||
| 04e6a0b9bb | |||
|
|
ad10d7dc30 | ||
|
|
f2457d4eaa | ||
| cefd645974 | |||
| 9bf517e851 | |||
| ab0a1185d4 | |||
| 57e1d4526e | |||
| 18ee45927a | |||
| 721c770fcd | |||
| ed59d68c8e | |||
| d72741b43e | |||
| 1baf2d9351 | |||
|
|
8ad9dc6e8b | ||
| 04704c4cc9 | |||
| 58d732320f | |||
| f51929c23d | |||
| abfd18e86f | |||
| 13ce2d317c | |||
| 56ec4226da | |||
| 82fc7a09c6 | |||
| aaa7f39a42 | |||
| 9f04a9c0af | |||
| c40f19e7c7 | |||
| 32bad7f9ac | |||
| 4139a58f6e | |||
| ea209bc4fc | |||
| ffd6001a08 | |||
| 2c8ca41f13 | |||
| ca71eefd6c | |||
|
|
14f1488e44 | ||
|
|
4584ea6529 | ||
|
|
5d29abefe6 | ||
|
|
bc4cbf98b6 | ||
| 6f63c32800 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"CurrentProjectSetting": null
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"ExpandedNodes": [
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"SelectedNode": "\\Final_OOP.sln",
|
|
||||||
"PreviewInSolutionExplorer": false
|
|
||||||
}
|
|
||||||
BIN
.vs/slnx.sqlite
BIN
.vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
|||||||
namespace Controladora
|
|
||||||
{
|
|
||||||
public class Class1
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -6,9 +6,12 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Emailer" Version="1.0.0" />
|
<ProjectReference Include="..\Modelo\Modelo.csproj" />
|
||||||
<PackageReference Include="webhookSharp" Version="1.0.0" />
|
<ProjectReference Include="..\Entidades\Entidades.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
58
Controladora/ControladoraCategorias.cs
Normal file
58
Controladora/ControladoraCategorias.cs
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraCategorias : Singleton<ControladoraCategorias>
|
||||||
|
{
|
||||||
|
// Método para verificar si una categoría con un ID ya existe
|
||||||
|
private bool CategoriaExiste(int id)
|
||||||
|
{
|
||||||
|
var categorias = RepositorioCategoria.Instance.Listar();
|
||||||
|
return categorias.Any(c => c.Id == id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Añadir(Categoria t)
|
||||||
|
{
|
||||||
|
if (t == null) return "La categoría es nula, fallo la carga";
|
||||||
|
|
||||||
|
if (CategoriaExiste(t.Id))
|
||||||
|
{
|
||||||
|
return $"Ya existe una categoría con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
|
||||||
|
return (RepositorioCategoria.Instance.Add(t)) ?
|
||||||
|
$"La categoría {t.Descripcion} se cargó correctamente" :
|
||||||
|
$"Falló la carga de la categoría {t.Descripcion}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Eliminar(Categoria t)
|
||||||
|
{
|
||||||
|
if (t == null) return "La categoría es nula, fallo la carga";
|
||||||
|
|
||||||
|
return (RepositorioCategoria.Instance.Del(t)) ?
|
||||||
|
$"La categoría {t.Descripcion} se eliminó correctamente" :
|
||||||
|
$"Falló la eliminación de la categoría {t.Descripcion}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Modificar(Categoria t)
|
||||||
|
{
|
||||||
|
if (t == null) return "La categoría es nula, fallo la carga";
|
||||||
|
|
||||||
|
if (!CategoriaExiste(t.Id))
|
||||||
|
{
|
||||||
|
return $"No se encontró una categoría con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
|
||||||
|
return (RepositorioCategoria.Instance.Mod(t)) ?
|
||||||
|
$"La categoría {t.Descripcion} se modificó correctamente" :
|
||||||
|
$"Falló la modificación de la categoría {t.Descripcion}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<Categoria> Listar()
|
||||||
|
{
|
||||||
|
return RepositorioCategoria.Instance.Listar();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
61
Controladora/ControladoraClientes.cs
Normal file
61
Controladora/ControladoraClientes.cs
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraClientes : Singleton<ControladoraClientes>
|
||||||
|
{
|
||||||
|
public string Añadir(Cliente t)
|
||||||
|
{
|
||||||
|
if (t == null)
|
||||||
|
{
|
||||||
|
return "El Cliente es nulo, fallo la carga";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verificar si el CUIT ya existe en el repositorio
|
||||||
|
if (RepositorioClientes.Instance.ExistePorCuit(t.Cuit))
|
||||||
|
{
|
||||||
|
return $"El Cliente con el CUIT {t.Cuit} ya existe";
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioClientes.Instance.Add(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Cliente con el CUIT {t.Cuit} se cargó correctamente" :
|
||||||
|
$"Falló la carga del Cliente con el CUIT {t.Cuit}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Eliminar(long cuit)
|
||||||
|
{
|
||||||
|
// Buscar el cliente por CUIT antes de eliminar
|
||||||
|
var cliente = RepositorioClientes.Instance.Listar().FirstOrDefault(x => x.Cuit == cuit);
|
||||||
|
if (cliente == null) return "El Cliente no existe";
|
||||||
|
|
||||||
|
return (RepositorioClientes.Instance.Del(cliente)) ?
|
||||||
|
$"El Cliente {cliente.Nombre} se eliminó correctamente" :
|
||||||
|
$"Falló la eliminación del Cliente con el CUIT {cuit}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Modificar(Cliente t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Cliente es nulo, fallo la carga";
|
||||||
|
|
||||||
|
return (RepositorioClientes.Instance.Mod(t)) ?
|
||||||
|
$"El Cliente con el CUIT {t.Cuit} se modificó correctamente" :
|
||||||
|
$"Falló la modificación del Cliente con el CUIT {t.Cuit}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<Cliente> Listar()
|
||||||
|
{
|
||||||
|
return RepositorioClientes.Instance.Listar();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
62
Controladora/ControladoraFacturas.cs
Normal file
62
Controladora/ControladoraFacturas.cs
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraFacturas : Singleton<ControladoraFacturas>
|
||||||
|
{
|
||||||
|
public string Añadir(Factura t)
|
||||||
|
{
|
||||||
|
if (t == null) return "La Factura es nula, fallo la carga";
|
||||||
|
|
||||||
|
if (RepositorioFactura.Instance.ExistePorId(t.Id))
|
||||||
|
{
|
||||||
|
return $"La Factura con el ID {t.Id} ya existe";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verificar si el cliente está seleccionado
|
||||||
|
if (t.Cliente == null || t.Cliente.Cuit == 0)
|
||||||
|
{
|
||||||
|
return "Debe seleccionar un cliente antes de agregar la factura";
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioFactura.Instance.Add(t);
|
||||||
|
return resultado ?
|
||||||
|
$"La Factura con el ID {t.Id} se cargó correctamente" :
|
||||||
|
$"Falló la carga de la Factura con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Eliminar(Factura t)
|
||||||
|
{
|
||||||
|
if (t == null) return "La Factura es nula, fallo la carga";
|
||||||
|
|
||||||
|
return (RepositorioFactura.Instance.Del(t)) ?
|
||||||
|
$"La Factura con el ID {t.Id} se eliminó correctamente" :
|
||||||
|
$"Falló la eliminación de la Factura con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Modificar(Factura t)
|
||||||
|
{
|
||||||
|
if (t == null) return "La Factura es nula, fallo la carga";
|
||||||
|
|
||||||
|
return (RepositorioFactura.Instance.Mod(t)) ?
|
||||||
|
$"La Factura con el ID {t.Id} se modificó correctamente" :
|
||||||
|
$"Falló la modificación de la Factura con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<Factura> Listar()
|
||||||
|
{
|
||||||
|
return RepositorioFactura.Instance.Listar();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
119
Controladora/ControladoraLotes.cs
Normal file
119
Controladora/ControladoraLotes.cs
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraLotes : Singleton<ControladoraLotes>
|
||||||
|
{
|
||||||
|
public string Añadir(Lote t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Lote es nulo, falló la carga";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioLote.Instance.Add(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Lote con el ID {t.Id} se cargó correctamente" :
|
||||||
|
$"Falló la carga del Lote con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Modificar(Lote t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Lote es nulo, falló la modificación";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioLote.Instance.Mod(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Lote con el ID {t.Id} se modificó correctamente" :
|
||||||
|
$"Falló la modificación del Lote con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Eliminar(Lote t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Lote es nulo, falló la eliminación";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioLote.Instance.Del(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Lote con el ID {t.Id} se eliminó correctamente" :
|
||||||
|
$"Falló la eliminación del Lote con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string EliminarPorFacturaId(int facturaId)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var lotes = RepositorioLote.Instance.Listar();
|
||||||
|
var lotesAEliminar = lotes.Where(lote => lote.Id == facturaId).ToList();
|
||||||
|
|
||||||
|
foreach (var lote in lotesAEliminar)
|
||||||
|
{
|
||||||
|
RepositorioLote.Instance.Del(lote);
|
||||||
|
}
|
||||||
|
|
||||||
|
return lotesAEliminar.Any() ?
|
||||||
|
$"Los Lotes asociados a la Factura con el ID {facturaId} se eliminaron correctamente" :
|
||||||
|
$"No se encontraron Lotes asociados a la Factura con el ID {facturaId}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<Lote> ListarPorFacturaId(int facturaId)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var lotes = RepositorioLote.Instance.Listar();
|
||||||
|
var lotesPorFactura = lotes.Where(lote => lote.Id == facturaId).ToList();
|
||||||
|
return new ReadOnlyCollection<Lote>(lotesPorFactura);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
throw new InvalidOperationException($"Ocurrió un error inesperado: {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<Lote> Listar()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return RepositorioLote.Instance.Listar();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
throw new InvalidOperationException($"Ocurrió un error inesperado: {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
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
|
||||||
|
{
|
||||||
|
public class ControladoraOrdenDeCompras : Singleton<ControladoraOrdenDeCompras>
|
||||||
|
{
|
||||||
|
public 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}";
|
||||||
|
}
|
||||||
|
|
||||||
|
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}";
|
||||||
|
}
|
||||||
|
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
public class ControladoraPedidoDePresupuestos : Singleton<ControladoraPedidoDePresupuestos>
|
||||||
|
{
|
||||||
|
public 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}";
|
||||||
|
}
|
||||||
|
|
||||||
|
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}";
|
||||||
|
}
|
||||||
|
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
public class ControladoraPresupuestos : Singleton<ControladoraPresupuestos>
|
||||||
|
{
|
||||||
|
public 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}";
|
||||||
|
}
|
||||||
|
|
||||||
|
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}";
|
||||||
|
}
|
||||||
|
|
||||||
|
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 ReadOnlyCollection<Presupuesto> Listar()
|
||||||
|
{
|
||||||
|
return RepositorioPresupuesto.Instance.Listar();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
43
Controladora/ControladoraProductos.cs
Normal file
43
Controladora/ControladoraProductos.cs
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraProductos : Singleton<ControladoraProductos>
|
||||||
|
{
|
||||||
|
public 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 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 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 ReadOnlyCollection<Producto> Listar()
|
||||||
|
{
|
||||||
|
return RepositorioProductos.Instance.Listar();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
50
Controladora/ControladoraProveedores.cs
Normal file
50
Controladora/ControladoraProveedores.cs
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraProveedores : Singleton<ControladoraProveedores>
|
||||||
|
{
|
||||||
|
public string Añadir(Proveedor t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Proveedor es nulo fallo la carga";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return RepositorioProveedor.Instance.Add(t) ?
|
||||||
|
$"El Proveedor {t.Nombre} se cargó correctamente" :
|
||||||
|
$"Falló la carga del Proveedor {t.Nombre}";
|
||||||
|
}
|
||||||
|
catch (InvalidOperationException ex)
|
||||||
|
{
|
||||||
|
return ex.Message; // Captura la excepción y muestra el mensaje adecuado
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Eliminar(long t)
|
||||||
|
{
|
||||||
|
var proveedor = RepositorioProveedor.Instance.Listar().FirstOrDefault(x => x.Cuit == t);
|
||||||
|
|
||||||
|
if (proveedor == null) return "El Proveedor es nulo fallo la baja";
|
||||||
|
|
||||||
|
return (RepositorioProveedor.Instance.Del(proveedor)) ?
|
||||||
|
$"El Proveedor {proveedor.Nombre} se eliminó correctamente" :
|
||||||
|
$"Falló la eliminación del Proveedor {t}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Modificar(Proveedor t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Proveedor es nulo fallo la modificación";
|
||||||
|
|
||||||
|
return (RepositorioProveedor.Instance.Mod(t)) ?
|
||||||
|
$"El Proveedor {t.Nombre} se modificó correctamente" :
|
||||||
|
$"Falló la modificación del Proveedor {t.Nombre}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public 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
|
||||||
|
{
|
||||||
|
public class ControladoraRemito : Singleton<ControladoraRemito>
|
||||||
|
{
|
||||||
|
public ReadOnlyCollection<Remito> Listar()
|
||||||
|
{
|
||||||
|
return RepositorioRemito.Instance.Listar();
|
||||||
|
}
|
||||||
|
|
||||||
|
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}";
|
||||||
|
|
||||||
|
}
|
||||||
|
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}";
|
||||||
|
|
||||||
|
}
|
||||||
|
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}";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
16
Controladora/Singleton.cs
Normal file
16
Controladora/Singleton.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class Singleton<T> where T : new()
|
||||||
|
{
|
||||||
|
// Singleton thread-safe por si quiero usar "Parallel"
|
||||||
|
private static T instance = new T();
|
||||||
|
public static T Instance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,9 +7,26 @@
|
|||||||
"targets": {
|
"targets": {
|
||||||
".NETCoreApp,Version=v6.0": {
|
".NETCoreApp,Version=v6.0": {
|
||||||
"Controladora/1.0.0": {
|
"Controladora/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Entidades": "1.0.0",
|
||||||
|
"Modelo": "1.0.0"
|
||||||
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"Controladora.dll": {}
|
"Controladora.dll": {}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Entidades/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"Entidades.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Modelo/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Entidades": "1.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"Modelo.dll": {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -18,6 +35,16 @@
|
|||||||
"type": "project",
|
"type": "project",
|
||||||
"serviceable": false,
|
"serviceable": false,
|
||||||
"sha512": ""
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Entidades/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Modelo/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,25 +1,90 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "/home/fede/.nuget/packages/",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "/home/fede/proyectos/Final_OOP/Controladora/obj/",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"/home/fede/.nuget/NuGet/NuGet.Config"
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net6.0"
|
"net6.0"
|
||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {},
|
||||||
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"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\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
|
"projectName": "Entidades",
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\fedpo\\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": {},
|
"https://api.nuget.org/v3/index.json": {},
|
||||||
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
},
|
},
|
||||||
@@ -38,38 +103,83 @@
|
|||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"dependencies": {
|
|
||||||
"Emailer": {
|
|
||||||
"target": "Package",
|
|
||||||
"version": "[1.0.0, )"
|
|
||||||
},
|
|
||||||
"webhookSharp": {
|
|
||||||
"target": "Package",
|
|
||||||
"version": "[1.0.0, )"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"imports": [
|
"imports": [
|
||||||
"net461",
|
"net461",
|
||||||
"net462",
|
"net462",
|
||||||
"net47",
|
"net47",
|
||||||
"net471",
|
"net471",
|
||||||
"net472",
|
"net472",
|
||||||
"net48"
|
"net48",
|
||||||
|
"net481"
|
||||||
],
|
],
|
||||||
"assetTargetFallback": true,
|
"assetTargetFallback": true,
|
||||||
"warn": true,
|
"warn": true,
|
||||||
"downloadDependencies": [
|
|
||||||
{
|
|
||||||
"name": "Microsoft.AspNetCore.App.Ref",
|
|
||||||
"version": "[6.0.28, 6.0.28]"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"frameworkReferences": {
|
"frameworkReferences": {
|
||||||
"Microsoft.NETCore.App": {
|
"Microsoft.NETCore.App": {
|
||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.128/RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
|
"projectName": "Modelo",
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\fedpo\\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": {},
|
||||||
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"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\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/fede/.nuget/packages/</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/fede/.nuget/packages/</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\fedpo\.nuget\packages\</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.5</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.6.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="/home/fede/.nuget/packages/" />
|
<SourceRoot Include="C:\Users\fedpo\.nuget\packages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Este código fue generado por una herramienta.
|
// This code was generated by a tool.
|
||||||
// Versión de runtime:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// se vuelve a generar el código.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -19,5 +19,5 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyTitleAttribute("Controladora")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("Controladora")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
// Generado por la clase WriteCodeFragment de MSBuild.
|
// Generated by the MSBuild WriteCodeFragment class.
|
||||||
|
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = Controladora
|
build_property.RootNamespace = Controladora
|
||||||
build_property.ProjectDir = C:\Users\Nacho\Desktop\verdadero\Controladora\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Controladora\
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1 +1,5 @@
|
|||||||
a8e0260e0db6be55f0b0f28b550784baab05fd07
|
<<<<<<< HEAD
|
||||||
|
07cbdde4e47ec2d3a6db548797ff84a15aa08946633217fe5ed64773b3cc8491
|
||||||
|
=======
|
||||||
|
a7a9c23e29aac78d8fc99e5e2578c73ffe3d4cba
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
|
|||||||
@@ -10,3 +10,128 @@ C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\Controladora.dll
|
|||||||
C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\Controladora.pdb
|
C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
C:\Users\Nacho\Desktop\verdadero\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\source\repos\Final\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\source\repos\Final\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\Nacho\source\repos\Final\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\Controla.1EE7A4DA.Up2Date
|
||||||
|
C:\Users\Nacho\Source\Repos\Final_OOP\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\source\repos\Final_OOP\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\Controla.1EE7A4DA.Up2Date
|
||||||
|
C:\Users\Nacho\Desktop\Final\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controla.1EE7A4DA.Up2Date
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Desktop\ASDDD\Final\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controla.1EE7A4DA.Up2Date
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,10 +1,10 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// Este código fue generado por una herramienta.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Versión de runtime:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||||
// the code is regenerated.
|
// se vuelve a generar el código.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -14,10 +14,10 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Controladora")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Controladora")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+abfd18e86f40a98925507ec03c2e8832ee47a3eb")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("Controladora")]
|
[assembly: System.Reflection.AssemblyProductAttribute("Controladora")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("Controladora")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("Controladora")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
// Generated by the MSBuild WriteCodeFragment class.
|
// Generado por la clase WriteCodeFragment de MSBuild.
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1a11c83cae779abe705573d149b53d62cfc015f0
|
1300c7ac552248a2e20058b6f2d7f7eb38539ca91bc222d9d6bfd7bbcb24e9ab
|
||||||
|
|||||||
@@ -8,4 +8,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = Controladora
|
build_property.RootNamespace = Controladora
|
||||||
build_property.ProjectDir = C:\Users\fedpo\source\repos\Final_OOP\Controladora\
|
build_property.ProjectDir = C:\Users\Nacho\source\repos\Final\Controladora\
|
||||||
|
build_property.EnableComHosting =
|
||||||
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -2,82 +2,84 @@
|
|||||||
"version": 3,
|
"version": 3,
|
||||||
"targets": {
|
"targets": {
|
||||||
"net6.0": {
|
"net6.0": {
|
||||||
"Emailer/1.0.0": {
|
"Entidades/1.0.0": {
|
||||||
"type": "package",
|
"type": "project",
|
||||||
|
"framework": ".NETCoreApp,Version=v6.0",
|
||||||
"compile": {
|
"compile": {
|
||||||
"lib/net6.0/emailer-sharp.dll": {}
|
"bin/placeholder/Entidades.dll": {}
|
||||||
},
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"lib/net6.0/emailer-sharp.dll": {}
|
"bin/placeholder/Entidades.dll": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"webhookSharp/1.0.0": {
|
"Modelo/1.0.0": {
|
||||||
"type": "package",
|
"type": "project",
|
||||||
|
"framework": ".NETCoreApp,Version=v6.0",
|
||||||
|
"dependencies": {
|
||||||
|
"Entidades": "1.0.0"
|
||||||
|
},
|
||||||
"compile": {
|
"compile": {
|
||||||
"lib/net6.0/webhook#.dll": {}
|
"bin/placeholder/Modelo.dll": {}
|
||||||
},
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"lib/net6.0/webhook#.dll": {}
|
"bin/placeholder/Modelo.dll": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"Emailer/1.0.0": {
|
"Entidades/1.0.0": {
|
||||||
"sha512": "1KO1ENEfu344rZ+NtgBGC7ER8Q1o240Cbo03kHks6ZAJjnqhkdvKtX9FwvXRIMJG6ctB/S7ofcOvZH5Coss1dw==",
|
"type": "project",
|
||||||
"type": "package",
|
"path": "../Entidades/Entidades.csproj",
|
||||||
"path": "emailer/1.0.0",
|
"msbuildProject": "../Entidades/Entidades.csproj"
|
||||||
"files": [
|
|
||||||
".nupkg.metadata",
|
|
||||||
"emailer.1.0.0.nupkg.sha512",
|
|
||||||
"emailer.nuspec",
|
|
||||||
"lib/net6.0/emailer-sharp.dll"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"webhookSharp/1.0.0": {
|
"Modelo/1.0.0": {
|
||||||
"sha512": "13BokBv/Zp6c1UBuEZPtehyOhzGWVhQ/PsqQTjn3oBZObX7dfdIPJDEoMCxdGKjpT15OnneyeWRHzR5ytxKCvQ==",
|
"type": "project",
|
||||||
"type": "package",
|
"path": "../Modelo/Modelo.csproj",
|
||||||
"path": "webhooksharp/1.0.0",
|
"msbuildProject": "../Modelo/Modelo.csproj"
|
||||||
"files": [
|
|
||||||
".nupkg.metadata",
|
|
||||||
"lib/net6.0/webhook#.dll",
|
|
||||||
"webhooksharp.1.0.0.nupkg.sha512",
|
|
||||||
"webhooksharp.nuspec"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projectFileDependencyGroups": {
|
"projectFileDependencyGroups": {
|
||||||
"net6.0": [
|
"net6.0": [
|
||||||
"Emailer >= 1.0.0",
|
"Entidades >= 1.0.0",
|
||||||
"webhookSharp >= 1.0.0"
|
"Modelo >= 1.0.0"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
"/home/fede/.nuget/packages/": {}
|
"C:\\Users\\fedpo\\.nuget\\packages\\": {}
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "/home/fede/.nuget/packages/",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "/home/fede/proyectos/Final_OOP/Controladora/obj/",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"/home/fede/.nuget/NuGet/NuGet.Config"
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net6.0"
|
"net6.0"
|
||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
"https://api.nuget.org/v3/index.json": {},
|
"https://api.nuget.org/v3/index.json": {},
|
||||||
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {}
|
"projectReferences": {
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"warningProperties": {
|
"warningProperties": {
|
||||||
@@ -89,38 +91,23 @@
|
|||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"dependencies": {
|
|
||||||
"Emailer": {
|
|
||||||
"target": "Package",
|
|
||||||
"version": "[1.0.0, )"
|
|
||||||
},
|
|
||||||
"webhookSharp": {
|
|
||||||
"target": "Package",
|
|
||||||
"version": "[1.0.0, )"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"imports": [
|
"imports": [
|
||||||
"net461",
|
"net461",
|
||||||
"net462",
|
"net462",
|
||||||
"net47",
|
"net47",
|
||||||
"net471",
|
"net471",
|
||||||
"net472",
|
"net472",
|
||||||
"net48"
|
"net48",
|
||||||
|
"net481"
|
||||||
],
|
],
|
||||||
"assetTargetFallback": true,
|
"assetTargetFallback": true,
|
||||||
"warn": true,
|
"warn": true,
|
||||||
"downloadDependencies": [
|
|
||||||
{
|
|
||||||
"name": "Microsoft.AspNetCore.App.Ref",
|
|
||||||
"version": "[6.0.28, 6.0.28]"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"frameworkReferences": {
|
"frameworkReferences": {
|
||||||
"Microsoft.NETCore.App": {
|
"Microsoft.NETCore.App": {
|
||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/6.0.128/RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "ndeKWJ3i2cOgJMo8P2HFJn5phPHzCChMtk7ERbjKUcYJvobIBu3jky081HBMuZa0U0cJW0MWDj78TIjUjZG0Zw==",
|
"dgSpecHash": "AVYTA+Cdyhg6wCEQPUiY9Zgnvl4qcFZo9nD09bdg1F+72oerfmmuZj274FC2KL/pXGSF1iqxwV37ZtH0RMkuXw==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "/home/fede/proyectos/Final_OOP/Controladora/Controladora.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [],
|
||||||
"/home/fede/.nuget/packages/emailer/1.0.0/emailer.1.0.0.nupkg.sha512",
|
|
||||||
"/home/fede/.nuget/packages/webhooksharp/1.0.0/webhooksharp.1.0.0.nupkg.sha512",
|
|
||||||
"/home/fede/.nuget/packages/microsoft.aspnetcore.app.ref/6.0.28/microsoft.aspnetcore.app.ref.6.0.28.nupkg.sha512"
|
|
||||||
],
|
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class Categoria
|
public class Categoria
|
||||||
|
|||||||
@@ -1,17 +1,27 @@
|
|||||||
using System;
|
using System.ComponentModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class Cliente
|
public class Cliente
|
||||||
{
|
{
|
||||||
public string Cuit { get; set; }
|
public Int64 Cuit { get; set; }
|
||||||
public string Nombre { get; set; }
|
public string Nombre { get; set; }
|
||||||
public string Apellido { get; set; }
|
public string Apellido { get; set; }
|
||||||
public string Direccion { get; set; }
|
public string Direccion { get; set; }
|
||||||
public string Correo { get; set; }
|
public string Correo { get; set; }
|
||||||
|
|
||||||
|
[Browsable(false)]
|
||||||
|
public bool Habilitado { get; set; }
|
||||||
|
|
||||||
|
public string NombreCompleto
|
||||||
|
{
|
||||||
|
get { return $"{Nombre} {Apellido}"; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sobreescribir ToString() para mostrar el nombre completo
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return NombreCompleto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class DetalleFactura: Detalle<Producto>
|
public class DetalleFactura: Detalle<Producto>
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class DetalleOrdenDeCompra: Detalle<Producto>
|
public class DetalleOrdenDeCompra: Detalle<Producto>
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class DetallePedido : Detalle<Producto>
|
public class DetallePedido : Detalle<Producto>
|
||||||
{
|
{
|
||||||
public int IdPedido { get; set; }
|
public int IdPedido { get; set; }
|
||||||
|
public int CantidadPedido { get; set; }
|
||||||
|
public List<Producto> Productos { get; set; } = new List<Producto>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class DetallePresupuesto: Detalle<Producto>
|
public class DetallePresupuesto: Detalle<Producto>
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public enum EnvaseTipo
|
public enum EnvaseTipo
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class Factura
|
public class Factura
|
||||||
{
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
public double Total { get; set; }
|
public double Total { get; set; }
|
||||||
public DateTime Fecha { get; set; }
|
public DateTime Fecha { get; set; }
|
||||||
public Cliente Cliente { get; set; }
|
public Cliente Cliente { get; set; }
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class Lote
|
public class Lote
|
||||||
@@ -13,5 +8,21 @@ namespace Entidades
|
|||||||
public Producto Producto { get; set; }
|
public Producto Producto { get; set; }
|
||||||
public long CantidadDeProductos { get; set; }
|
public long CantidadDeProductos { get; set; }
|
||||||
public bool Habilitado { get; set; }
|
public bool Habilitado { get; set; }
|
||||||
|
public string NombreProducto
|
||||||
|
{
|
||||||
|
get { return Producto?.Nombre ?? string.Empty; }
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
|
public double PrecioUnitario
|
||||||
|
{
|
||||||
|
get { return Producto?.Precio ?? 0; }
|
||||||
|
}
|
||||||
|
public double Subtotal
|
||||||
|
{
|
||||||
|
get { return PrecioUnitario * CantidadDeProductos; }
|
||||||
|
}
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
@@ -13,6 +8,7 @@ namespace Entidades
|
|||||||
public string Nombre { get; set; }
|
public string Nombre { get; set; }
|
||||||
public double Precio { get; set; }
|
public double Precio { get; set; }
|
||||||
public bool Habilitado { get; set; }
|
public bool Habilitado { get; set; }
|
||||||
|
public Categoria Categoria { get; set; }
|
||||||
private List<Categoria> categorias = new List<Categoria>();
|
private List<Categoria> categorias = new List<Categoria>();
|
||||||
|
|
||||||
public void AñadirCategoria(Categoria cat) {
|
public void AñadirCategoria(Categoria cat) {
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
|
||||||
{
|
|
||||||
public class ProductoNoPercedero: Producto
|
|
||||||
{
|
|
||||||
public EnvaseTipo TipoDeEnvase { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
|
||||||
{
|
|
||||||
public class ProductoPercedero: Producto
|
|
||||||
{
|
|
||||||
public int MesesHastaConsumoPreferente { get; set; }
|
|
||||||
public int MesesHastaVencimiento { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,16 +1,13 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
public class Proveedor
|
public class Proveedor
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public Int64 Cuit { get; set; }
|
||||||
public string Nombre { get; set; }
|
public string Nombre { get; set; }
|
||||||
public string RazonSocial { get; set; }
|
public string RazonSocial { get; set; }
|
||||||
|
public string Direccion { get; set; }
|
||||||
public bool Habilitado { get; set; }
|
public bool Habilitado { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Security.Cryptography.X509Certificates;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Entidades
|
namespace Entidades
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Este código fue generado por una herramienta.
|
// This code was generated by a tool.
|
||||||
// Versión de runtime:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// se vuelve a generar el código.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -19,5 +19,5 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyTitleAttribute("Entidades")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("Entidades")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
// Generado por la clase WriteCodeFragment de MSBuild.
|
// Generated by the MSBuild WriteCodeFragment class.
|
||||||
|
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = Entidades
|
build_property.RootNamespace = Entidades
|
||||||
build_property.ProjectDir = C:\Users\Nacho\Desktop\verdadero\Entidades\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Entidades\
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,24 +1,20 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
|
||||||
],
|
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\Nacho\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
@@ -26,7 +22,8 @@
|
|||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
"https://api.nuget.org/v3/index.json": {}
|
"https://api.nuget.org/v3/index.json": {},
|
||||||
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net6.0": {
|
"net6.0": {
|
||||||
@@ -59,7 +56,7 @@
|
|||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,11 @@
|
|||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Nacho\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\fedpo\.nuget\packages\</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.6.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\Nacho\.nuget\packages\" />
|
<SourceRoot Include="C:\Users\fedpo\.nuget\packages\" />
|
||||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// Este código fue generado por una herramienta.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Versión de runtime:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||||
// the code is regenerated.
|
// se vuelve a generar el código.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -14,10 +14,10 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Entidades")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Entidades")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+abfd18e86f40a98925507ec03c2e8832ee47a3eb")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("Entidades")]
|
[assembly: System.Reflection.AssemblyProductAttribute("Entidades")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("Entidades")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("Entidades")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
// Generated by the MSBuild WriteCodeFragment class.
|
// Generado por la clase WriteCodeFragment de MSBuild.
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1dac91cef82b545d186b8ab941058cf01df1dea3
|
0f23a71dabcab7104ee2511db3de6cc1ef434f03702a8d033e7694541758b7dd
|
||||||
|
|||||||
@@ -8,4 +8,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = Entidades
|
build_property.RootNamespace = Entidades
|
||||||
build_property.ProjectDir = C:\Users\fedpo\Source\Repos\Final_OOP\Entidades\
|
build_property.ProjectDir = C:\Users\Nacho\source\repos\Final\Entidades\
|
||||||
|
build_property.EnableComHosting =
|
||||||
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
|||||||
Binary file not shown.
@@ -8,24 +8,19 @@
|
|||||||
"net6.0": []
|
"net6.0": []
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
"C:\\Users\\Nacho\\.nuget\\packages\\": {},
|
"C:\\Users\\fedpo\\.nuget\\packages\\": {}
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
|
||||||
],
|
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\Nacho\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
@@ -33,7 +28,8 @@
|
|||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
"https://api.nuget.org/v3/index.json": {}
|
"https://api.nuget.org/v3/index.json": {},
|
||||||
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net6.0": {
|
"net6.0": {
|
||||||
@@ -66,7 +62,7 @@
|
|||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "EfKv1rzAP1O64kLam1piP0r6XmMQp58hllO9EbJzCiEt9P6u3A0JBGuj+WL6esbN+qeMKjy+GNcUs/OIe7UhTQ==",
|
"dgSpecHash": "xYCKCMKm+oXscuoQamJhNB9nRxekBQBuz6IDgUB/8WpDnH3Ts7NVTClR8NJpQF10id2fDRpsOygcKaFzlcHs+w==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Entidades\\Entidades.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -4,12 +4,24 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
VisualStudioVersion = 17.6.33829.357
|
VisualStudioVersion = 17.6.33829.357
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controladora", "Controladora\Controladora.csproj", "{7168B549-F229-4D49-8C53-AF1CEB9BBB6B}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Controladora", "Controladora\Controladora.csproj", "{7168B549-F229-4D49-8C53-AF1CEB9BBB6B}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A} = {6C83A4AB-C70D-4D4E-A879-5E960C4A103A}
|
||||||
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Entidades", "Entidades\Entidades.csproj", "{78A331E5-86D4-427E-AA45-5879F9E5E98B}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Entidades", "Entidades\Entidades.csproj", "{78A331E5-86D4-427E-AA45-5879F9E5E98B}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modelo", "Modelo\Modelo.csproj", "{9A0960D9-C909-4B68-8BBB-8C44B9CD0E97}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modelo", "Modelo\Modelo.csproj", "{9A0960D9-C909-4B68-8BBB-8C44B9CD0E97}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vista", "Vista\Vista.csproj", "{8C9E8090-5D8F-42AE-9813-C68D384C6863}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vista", "Vista\Vista.csproj", "{8C9E8090-5D8F-42AE-9813-C68D384C6863}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A} = {6C83A4AB-C70D-4D4E-A879-5E960C4A103A}
|
||||||
|
{7168B549-F229-4D49-8C53-AF1CEB9BBB6B} = {7168B549-F229-4D49-8C53-AF1CEB9BBB6B}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Informes", "Informes\Informes.csproj", "{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{78A331E5-86D4-427E-AA45-5879F9E5E98B} = {78A331E5-86D4-427E-AA45-5879F9E5E98B}
|
||||||
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -33,6 +45,10 @@ Global
|
|||||||
{8C9E8090-5D8F-42AE-9813-C68D384C6863}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{8C9E8090-5D8F-42AE-9813-C68D384C6863}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{8C9E8090-5D8F-42AE-9813-C68D384C6863}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{8C9E8090-5D8F-42AE-9813-C68D384C6863}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{8C9E8090-5D8F-42AE-9813-C68D384C6863}.Release|Any CPU.Build.0 = Release|Any CPU
|
{8C9E8090-5D8F-42AE-9813-C68D384C6863}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
10
Informes/ConfigEmail.cs
Normal file
10
Informes/ConfigEmail.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
namespace Informes
|
||||||
|
{
|
||||||
|
public class ConfigEmail
|
||||||
|
{
|
||||||
|
public string EmailAddr { get; set; }
|
||||||
|
public string EmailPass { get; set; }
|
||||||
|
public List<string> EmailTarget { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
133
Informes/InformeEmail.cs
Normal file
133
Informes/InformeEmail.cs
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
using System.Diagnostics;
|
||||||
|
using System.Net.Mail;
|
||||||
|
using System.Net;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
using Entidades;
|
||||||
|
namespace Informes
|
||||||
|
{
|
||||||
|
public class InformeEmail
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Envia Informes por Email
|
||||||
|
/// </summary>
|
||||||
|
|
||||||
|
private static InformeEmail instance = new();
|
||||||
|
public static InformeEmail Instance
|
||||||
|
{
|
||||||
|
get { return instance; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public string EnviarEmailFactura(string titulo, List<DetalleFactura> desc)
|
||||||
|
{
|
||||||
|
string? ret = null;
|
||||||
|
string json;
|
||||||
|
ConfigEmail config;
|
||||||
|
try
|
||||||
|
{ // leemos el archivo de configuracion para obtener los certificados y mails destino de los informes
|
||||||
|
json = File.ReadAllText("settings.json");
|
||||||
|
config = JsonSerializer.Deserialize<ConfigEmail>(json);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (IOException)
|
||||||
|
{
|
||||||
|
ret = "No se pudo leer el archivo \"settings.json\"";
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var i in config.EmailTarget)
|
||||||
|
{
|
||||||
|
if (String.IsNullOrWhiteSpace(i)) return "Hay Emails mal cargados";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
SmtpClient smtp = new SmtpClient();
|
||||||
|
smtp.Host = "smtp.gmail.com";
|
||||||
|
smtp.Port = 587;
|
||||||
|
smtp.Credentials = new NetworkCredential(config.EmailAddr, config.EmailPass);
|
||||||
|
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
|
||||||
|
smtp.EnableSsl = true;
|
||||||
|
|
||||||
|
MailMessage mail = new MailMessage();
|
||||||
|
mail.Subject = titulo;
|
||||||
|
mail.IsBodyHtml = true;
|
||||||
|
mail.Body = GenerarTabla(desc);
|
||||||
|
mail.Sender = new MailAddress(config.EmailAddr);
|
||||||
|
foreach (var i in config.EmailTarget) mail.To.Add(i);
|
||||||
|
mail.From = new MailAddress(config.EmailAddr);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
Console.WriteLine($"From: {config.EmailAddr}, Title: {titulo}");
|
||||||
|
#endif
|
||||||
|
smtp.Send(mail);
|
||||||
|
mail.Dispose();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
ret = "No se pudo comunicar con el server SMTP";
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Decimos que se envio el email correctamente si el valor del retorno sigue siendo nulo en otro caso tendra la descripcion del error.
|
||||||
|
return (ret == null) ?
|
||||||
|
"Se envio el Email Correctamente":
|
||||||
|
ret;
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GenerarTabla(List<DetalleFactura> desc)
|
||||||
|
{
|
||||||
|
// Esta seccion es el armado del mail html
|
||||||
|
string body =
|
||||||
|
@"
|
||||||
|
<style>
|
||||||
|
table, td, th {
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Producto</td>
|
||||||
|
<th>Cantidad</td>
|
||||||
|
<th>Precio CU</td>
|
||||||
|
<th>Subtotal</td>
|
||||||
|
</tr>";
|
||||||
|
|
||||||
|
foreach (var i in desc)
|
||||||
|
{
|
||||||
|
body +=
|
||||||
|
@$"
|
||||||
|
<tr>
|
||||||
|
<td>{i.Producto.Nombre}</td>
|
||||||
|
<td>{i.Cantidad}</td>
|
||||||
|
<td>{i.Producto.Precio}</td>
|
||||||
|
<td>{i.Producto.Precio * i.Cantidad}</td>
|
||||||
|
</tr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
body +=
|
||||||
|
@$"
|
||||||
|
<tr>
|
||||||
|
<td>Total</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td>{CalcularTotal(desc)}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
";
|
||||||
|
return body;
|
||||||
|
}
|
||||||
|
private double CalcularTotal(List<DetalleFactura> desc)
|
||||||
|
{
|
||||||
|
double total = 0;
|
||||||
|
foreach (var i in desc)
|
||||||
|
{
|
||||||
|
total += i.Producto.Precio * i.Cantidad;
|
||||||
|
}
|
||||||
|
return total;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
13
Informes/Informes.csproj
Normal file
13
Informes/Informes.csproj
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Entidades\Entidades.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
BIN
Informes/bin/Debug/net6.0/Entidades.dll
Normal file
BIN
Informes/bin/Debug/net6.0/Entidades.dll
Normal file
Binary file not shown.
BIN
Informes/bin/Debug/net6.0/Entidades.pdb
Normal file
BIN
Informes/bin/Debug/net6.0/Entidades.pdb
Normal file
Binary file not shown.
36
Informes/bin/Debug/net6.0/Informes.deps.json
Normal file
36
Informes/bin/Debug/net6.0/Informes.deps.json
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v6.0": {
|
||||||
|
"Informes/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Entidades": "1.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"Informes.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Entidades/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"Entidades.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"Informes/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Entidades/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Informes/bin/Debug/net6.0/Informes.dll
Normal file
BIN
Informes/bin/Debug/net6.0/Informes.dll
Normal file
Binary file not shown.
BIN
Informes/bin/Debug/net6.0/Informes.pdb
Normal file
BIN
Informes/bin/Debug/net6.0/Informes.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
||||||
23
Informes/obj/Debug/net6.0/Informes.AssemblyInfo.cs
Normal file
23
Informes/obj/Debug/net6.0/Informes.AssemblyInfo.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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("Informes")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("Informes")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("Informes")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Generated by the MSBuild WriteCodeFragment class.
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
55f9793ce92bee586e65f5b38a3a7676261de34c
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
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 = Informes
|
||||||
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Informes\
|
||||||
8
Informes/obj/Debug/net6.0/Informes.GlobalUsings.g.cs
Normal file
8
Informes/obj/Debug/net6.0/Informes.GlobalUsings.g.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
// <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;
|
||||||
BIN
Informes/obj/Debug/net6.0/Informes.assets.cache
Normal file
BIN
Informes/obj/Debug/net6.0/Informes.assets.cache
Normal file
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
59ca0345c28b4ca3e61ae3f6ff36103ebf42ff8f
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Informes.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Informes.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\refint\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\ref\Informes.dll
|
||||||
BIN
Informes/obj/Debug/net6.0/Informes.dll
Normal file
BIN
Informes/obj/Debug/net6.0/Informes.dll
Normal file
Binary file not shown.
BIN
Informes/obj/Debug/net6.0/Informes.pdb
Normal file
BIN
Informes/obj/Debug/net6.0/Informes.pdb
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user