This commit is contained in:
Ignacio Jesús Diana
2024-02-24 17:07:56 -03:00
parent 5318e28925
commit ee0ec5f0e8
27 changed files with 122 additions and 59 deletions

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Entidades
{
internal class DetallePedido
internal class DetallePedido : Detalle <T>
{
public int IdPedido { get; set; }
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Entidades
{
public enum TipoEnvase
public enum EnvaseTipo
{
Plastico,
Enlatado,

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -15,7 +16,24 @@ namespace Entidades
private List<DetalleFactura> detalles { get; set; }
public ReadOnlyCollection<DetalleFactura> MostrarDetalles()
{
}
public void AñadirDetalle(DetalleFactura detalle)
{
}
public void ModificarDetalle(DetalleFactura detalle)
{
}
public void EliminarDetalle(DetalleFactura detalle)
{
}
}
}

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -14,5 +15,24 @@ namespace Entidades
public Proveedor Proveedor { get; set; }
public ReadOnlyCollection<DetalleOrdenDeCompra> MostrarDetalles()
{
}
public void AñadirDetalle(DetalleOrdenDeCompra detalle)
{
}
public void ModificarDetalle(DetalleOrdenDeCompra detalle)
{
}
public void EliminarDetalle(DetalleOrdenDeCompra detalle)
{
}
}
}

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -15,5 +16,34 @@ namespace Entidades
private List<DetallePedido> detallesPedidos { get; set; }
public Proveedor Proveedor { get; set; }
public void AñadirDetalle(DetallePedido detalle)
{
{
try
{
detallesPedidos.Add(detalle);
}
catch (Exception)
{
throw;
}
}
}
public ReadOnlyCollection<DetallePedido> MostrarDetalles()
{
return detallesPedidos.AsReadOnly();
}
public void EliminarDetalle(DetallePedido detalle)
{
var aeliminar = detallesPedidos.Find(x => x.Id == detalle.Id);
detallesPedidos.Remove(aeliminar);
}
}
}

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -19,5 +20,7 @@ namespace Entidades
private List<DetallePresupuesto> Detalles { get; set; }
public Proveedor Proveedor { get; set; }
}
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Entidades
{
internal class ProductoNoPercedero
public class ProductoNoPercedero
{
public EnvaseTipo TipoDeEnvase { get; set; }
}

View File

@@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
@@ -13,5 +15,25 @@ namespace Entidades
private List<Lote> LotesDeProductosEntregados { get; set; }
public Proveedor Proveedor { get; set; }
public ReadOnlyCollection<Lote> MostrarLotes()
{
return LotesDeProductosEntregados.AsReadOnly();
}
public bool AñadirLote(Lote lote)
{
bool ret = false;
try
{
LotesDeProductosEntregados.Add(lote);
ret= true;
}
catch (Exception)
{
throw;
}
return ret;
}
}
}

View File

@@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Entidades
build_property.ProjectDir = C:\Users\Nacho\Source\Repos\Final_OOP\Entidades\
build_property.ProjectDir = C:\Users\Nacho\source\repos\Final_OOP\Entidades\

View File

@@ -1,17 +1,17 @@
{
"format": 1,
"restore": {
"C:\\Users\\Nacho\\Source\\Repos\\Final_OOP\\Entidades\\Entidades.csproj": {}
"C:\\Users\\Nacho\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj": {}
},
"projects": {
"C:\\Users\\Nacho\\Source\\Repos\\Final_OOP\\Entidades\\Entidades.csproj": {
"C:\\Users\\Nacho\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Nacho\\Source\\Repos\\Final_OOP\\Entidades\\Entidades.csproj",
"projectUniqueName": "C:\\Users\\Nacho\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
"projectName": "Entidades",
"projectPath": "C:\\Users\\Nacho\\Source\\Repos\\Final_OOP\\Entidades\\Entidades.csproj",
"projectPath": "C:\\Users\\Nacho\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Nacho\\Source\\Repos\\Final_OOP\\Entidades\\obj\\",
"outputPath": "C:\\Users\\Nacho\\source\\repos\\Final_OOP\\Entidades\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"

View File

@@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "PVHbAkBavzDaKw3OCgyd9rnGdDfX8by0UmuqYuanHJ+yk6ZVoLP+E3bU6vhQ/0x1vtX0M598J9FWQPCpvqRiVA==",
"dgSpecHash": "tvasUP43wH1NBUEUPJHfWfHDb7vl/ue6UGCiCs9/RHVC8i0KjmP5A48yb1CHnF1ar9ummXM37j0MdF/dyo/7GA==",
"success": true,
"projectFilePath": "C:\\Users\\Nacho\\Source\\Repos\\Final_OOP\\Entidades\\Entidades.csproj",
"projectFilePath": "C:\\Users\\Nacho\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
"expectedPackageFiles": [],
"logs": []
}