Reposfix: correjido gitignore

This commit is contained in:
2024-04-01 17:50:28 -03:00
committed by Nacho
parent 6a21854822
commit 6f63c32800
58 changed files with 14689 additions and 186 deletions

View File

@@ -0,0 +1,67 @@
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioCategoria : RepositorioSingleton<Categoria, RepositorioCategoria>
{
override public bool Add(Categoria t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Categoria t)
{
bool ret = false;
try
{
var categoriaAModificar = almacen.Find(x => x.Id == t.Id);
if (categoriaAModificar != null)
{
categoriaAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Categoria t)
{
bool ret = false;
try
{
var categoriaAEliminar = almacen.Find(x => x.Id == t.Id);
if (categoriaAEliminar != null)
{
almacen.Remove(categoriaAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
}
}

View File

@@ -0,0 +1,69 @@
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioClientes : RepositorioSingleton<Cliente, RepositorioClientes>
{
override public bool Add(Cliente t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Cliente t)
{
bool ret = false;
try
{
var clienteAModificar = almacen.Find(x => x.Cuit == t.Cuit);
if (clienteAModificar != null)
{
clienteAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Cliente t)
{
bool ret = false;
try
{
var clienteAEliminar = almacen.Find(x => x.Cuit == t.Cuit);
if (clienteAEliminar != null)
{
almacen.Remove(clienteAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
}
}

View File

@@ -0,0 +1,73 @@
using System.Collections.ObjectModel;
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioFactura : RepositorioSingleton<Factura, RepositorioFactura>
{
override public bool Add(Factura t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Factura t)
{
bool ret = false;
try
{
var facturaAModificar = almacen.Find(x => x.Id == t.Id);
if (facturaAModificar != null)
{
facturaAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Factura t)
{
bool ret = false;
try
{
var facturaAEliminar = almacen.Find(x => x.Id == t.Id);
if (facturaAEliminar != null)
{
almacen.Remove(facturaAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
public ReadOnlyCollection<DetalleFactura> MostrarDetalles(Factura factura)
{
return factura.MostrarDetalles();
}
}
}

67
Modelo/RepositorioLote.cs Normal file
View File

@@ -0,0 +1,67 @@
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioLote : RepositorioSingleton<Lote, RepositorioLote>
{
override public bool Add(Lote t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Lote t)
{
bool ret = false;
try
{
var loteAModificar = almacen.Find(x => x.Id == t.Id);
if (loteAModificar != null)
{
loteAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Lote t)
{
bool ret = false;
try
{
var loteAEliminar = almacen.Find(x => x.Id == t.Id);
if (loteAEliminar != null)
{
almacen.Remove(loteAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
}
}

View File

@@ -0,0 +1,73 @@
using System.Collections.ObjectModel;
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioOrdenDeCompra : RepositorioSingleton<OrdenDeCompra, RepositorioOrdenDeCompra>
{
override public bool Add(OrdenDeCompra t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(OrdenDeCompra t)
{
bool ret = false;
try
{
var ordenAModificar = almacen.Find(x => x.Id == t.Id);
if (ordenAModificar != null)
{
ordenAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(OrdenDeCompra t)
{
bool ret = false;
try
{
var ordenAEliminar = almacen.Find(x => x.Id == t.Id);
if (ordenAEliminar != null)
{
almacen.Remove(ordenAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
public ReadOnlyCollection<DetalleOrdenDeCompra> MostrarDetalles(OrdenDeCompra orden)
{
return orden.MostrarDetalles();
}
}
}

View File

@@ -0,0 +1,73 @@
using System.Collections.ObjectModel;
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioPedidoDePresupuesto : RepositorioSingleton<PedidoDePresupuesto, RepositorioPedidoDePresupuesto>
{
override public bool Add(PedidoDePresupuesto t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(PedidoDePresupuesto t)
{
bool ret = false;
try
{
var pedidoAModificar = almacen.Find(x => x.Id == t.Id);
if (pedidoAModificar != null)
{
pedidoAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(PedidoDePresupuesto t)
{
bool ret = false;
try
{
var pedidoAEliminar = almacen.Find(x => x.Id == t.Id);
if (pedidoAEliminar != null)
{
almacen.Remove(pedidoAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
public ReadOnlyCollection<DetallePedido> MostrarDetalles(PedidoDePresupuesto pedido)
{
return pedido.MostrarDetalles();
}
}
}

View File

@@ -0,0 +1,75 @@
using System.Collections.ObjectModel;
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioPresupuesto : RepositorioSingleton<Presupuesto, RepositorioPresupuesto>
{
override public bool Add(Presupuesto t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Presupuesto t)
{
bool ret = false;
try
{
var presupuestoAModificar = almacen.Find(x => x.Id == t.Id);
if (presupuestoAModificar != null)
{
presupuestoAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Presupuesto t)
{
bool ret = false;
try
{
var presupuestoAEliminar = almacen.Find(x => x.Id == t.Id);
if (presupuestoAEliminar != null)
{
almacen.Remove(presupuestoAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
public ReadOnlyCollection<DetallePresupuesto> MostrarDetalles(Presupuesto presupuesto)
{
return presupuesto.MostrarDetalles();
}
}
}

View File

@@ -24,21 +24,21 @@ namespace Modelo
override public bool Mod(Producto t)
{
bool ret = false;
bool ret = false;
try
{
var AModificar = almacen.Find(x => x.Id == t.Id);
AModificar = t;
ret = true;
}
catch (Exception)
{
throw;
}
try
{
var AModificar = almacen.Find(x => x.Id == t.Id);
AModificar = t;
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
return ret;
}
override public bool Del(Producto t)
{

View File

@@ -0,0 +1,67 @@
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioProveedor : RepositorioSingleton<Proveedor, RepositorioProveedor>
{
override public bool Add(Proveedor t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Proveedor t)
{
bool ret = false;
try
{
var proveedorAModificar = almacen.Find(x => x.Id == t.Id);
if (proveedorAModificar != null)
{
proveedorAModificar = t;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Proveedor t)
{
bool ret = false;
try
{
var proveedorAEliminar = almacen.Find(x => x.Id == t.Id);
if (proveedorAEliminar != null)
{
almacen.Remove(proveedorAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
}
}

View File

@@ -0,0 +1,80 @@
using System.Collections.ObjectModel;
using System.Runtime;
using Entidades;
namespace Modelo
{
public sealed class RepositorioRemito : RepositorioSingleton<Remito, RepositorioRemito>
{
override public bool Add(Remito t)
{
bool ret = false;
try
{
almacen.Add(t);
ret = true;
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Mod(Remito t)
{
bool ret = false;
try
{
var remitoAModificar = almacen.Find(x => x.Id == t.Id);
if (remitoAModificar != null)
{
remitoAModificar = t;
ret = true;
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
override public bool Del(Remito t)
{
bool ret = false;
try
{
var RemitoAEliminar = almacen.Find(x => x.Id == t.Id);
if (RemitoAEliminar != null)
{
almacen.Remove(RemitoAEliminar);
ret = true;
}
}
catch (Exception)
{
throw;
}
return ret;
}
public ReadOnlyCollection<Lote> MostrarLotes(Remito remito)
{
return remito.MostrarLotes();
}
}
}

View File

@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Modelo")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6a218548227333b04bf755c7f03cf40b2885af7b")]
[assembly: System.Reflection.AssemblyProductAttribute("Modelo")]
[assembly: System.Reflection.AssemblyTitleAttribute("Modelo")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
96d0d59bfa69a3c27ef653a551fb81c45157d195
f81c62590f056383e07d95b40558039742f156f73bd9d11d931a215a58b5eaac

View File

@@ -8,4 +8,6 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Modelo
build_property.ProjectDir = C:\Users\Nacho\Desktop\verdadero\Modelo\
build_property.ProjectDir = C:\Users\Nacho\Desktop\Final\Modelo\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =

View File

@@ -1,24 +1,20 @@
{
"format": 1,
"restore": {
"C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj": {}
"C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj": {}
},
"projects": {
"C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj": {
"C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj",
"projectName": "Modelo",
"projectPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj",
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj",
"projectName": "Entidades",
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj",
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\obj\\",
"outputPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Nacho\\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"
],
"originalTargetFrameworks": [
@@ -38,6 +34,89 @@
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.28, 6.0.28]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.28, 6.0.28]"
},
{
"name": "Microsoft.WindowsDesktop.App.Ref",
"version": "[6.0.28, 6.0.28]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
"projectName": "Modelo",
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\Nacho\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj": {
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
@@ -59,7 +138,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
}
}
}

View File

@@ -5,12 +5,11 @@
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Nacho\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Nacho\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Nacho\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@@ -1,31 +1,45 @@
{
"version": 3,
"targets": {
"net6.0": {}
"net6.0": {
"Entidades/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"compile": {
"bin/placeholder/Entidades.dll": {}
},
"runtime": {
"bin/placeholder/Entidades.dll": {}
}
}
}
},
"libraries": {
"Entidades/1.0.0": {
"type": "project",
"path": "../Entidades/Entidades.csproj",
"msbuildProject": "../Entidades/Entidades.csproj"
}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
"net6.0": [
"Entidades >= 1.0.0"
]
},
"packageFolders": {
"C:\\Users\\Nacho\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
"C:\\Users\\Nacho\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj",
"projectUniqueName": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
"projectName": "Modelo",
"projectPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj",
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
"packagesPath": "C:\\Users\\Nacho\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\obj\\",
"outputPath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Nacho\\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"
],
"originalTargetFrameworks": [
@@ -38,13 +52,22 @@
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
"projectReferences": {
"C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj": {
"projectPath": "C:\\Users\\Nacho\\Desktop\\Final\\Entidades\\Entidades.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
@@ -66,7 +89,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202\\RuntimeIdentifierGraph.json"
}
}
}

View File

@@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "S6oy1uJTEePnKEp+nLfT+BuzQHHRduI50IDiD69kwCh5sQiu2PMtSbEva7SbIQuL9sLxE84bvbnjd2/qf9kbYg==",
"dgSpecHash": "XVq/VkiS/2OZQs278MUjonRoHXUMlOMa9qlkhcfHPwj7k9ehCGNnB518lO+5rUB2WG7tWx1jsPwePiZ4z3n/5w==",
"success": true,
"projectFilePath": "C:\\Users\\Nacho\\Desktop\\verdadero\\Modelo\\Modelo.csproj",
"projectFilePath": "C:\\Users\\Nacho\\Desktop\\Final\\Modelo\\Modelo.csproj",
"expectedPackageFiles": [],
"logs": []
}