cosas que faltaban
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
@@ -10,8 +9,19 @@ namespace Entidades
|
||||
public string Apellido { get; set; }
|
||||
public string Direccion { 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,5 +4,7 @@ namespace Entidades
|
||||
public class DetallePedido : Detalle<Producto>
|
||||
{
|
||||
public int IdPedido { get; set; }
|
||||
public int CantidadPedido { get; set; }
|
||||
public List<Producto> Productos { get; set; } = new List<Producto>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace Entidades
|
||||
public string Nombre { get; set; }
|
||||
public double Precio { get; set; }
|
||||
public bool Habilitado { get; set; }
|
||||
public Categoria Categoria { get; set; }
|
||||
private List<Categoria> categorias = new List<Categoria>();
|
||||
|
||||
public void AñadirCategoria(Categoria cat) {
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
public class ProductoNoPercedero: Producto
|
||||
{
|
||||
public EnvaseTipo TipoDeEnvase { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
public class ProductoPercedero: Producto
|
||||
{
|
||||
public int MesesHastaConsumoPreferente { get; set; }
|
||||
public int MesesHastaVencimiento { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
|
||||
@@ -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\fedpo\source\repos\Final_OOP\Entidades\
|
||||
build_property.ProjectDir = C:\Users\fedpo\Downloads\Final\Final\Entidades\
|
||||
|
||||
Binary file not shown.
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj": {}
|
||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj": {
|
||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
|
||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
||||
"projectName": "Entidades",
|
||||
"projectPath": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
|
||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\obj\\",
|
||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
|
||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
||||
"projectName": "Entidades",
|
||||
"projectPath": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
|
||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\obj\\",
|
||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "HXGSmDVQyRmnk0PltQ/0YQ5GVlG0+k5yrwjE8AEym5VgLOBWNEQdRU3yZ7m5TuvHzpPyj4xzCWtK6uATLanIjg==",
|
||||
"dgSpecHash": "iQ0EifyjZh9oi0Mdt+E3sLhf14CzOUsLKHxZb9iRQ9RyPF+gexIoaaQb71/6xZGzSye9KUJ3V77rlL+eNkHOdw==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\fedpo\\source\\repos\\Final_OOP\\Entidades\\Entidades.csproj",
|
||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
Reference in New Issue
Block a user