ahi va todo fixeado por ahora faltan forms

This commit is contained in:
2024-08-11 18:22:54 -03:00
parent 1877f7705c
commit 08cb7d769f
25 changed files with 77 additions and 67 deletions

View File

@@ -27,10 +27,10 @@ namespace Modelo
try
{
var categoriaAModificar = almacen.Find(x => x.Id == t.Id);
if (categoriaAModificar != null)
var categoriaAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (categoriaAModificar > -1)
{
categoriaAModificar = t;
almacen[categoriaAModificar] = t;
ret = true;
}
}

View File

@@ -28,10 +28,10 @@ namespace Modelo
try
{
var clienteAModificar = almacen.Find(x => x.Cuit == t.Cuit);
if (clienteAModificar != null)
var clienteAModificar = almacen.FindIndex(x => x.Cuit == t.Cuit);
if (clienteAModificar > -1)
{
clienteAModificar = t;
almacen[clienteAModificar] = t;
ret = true;
}
}

View File

@@ -28,10 +28,10 @@ namespace Modelo
try
{
var facturaAModificar = almacen.Find(x => x.Id == t.Id);
if (facturaAModificar != null)
var facturaAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (facturaAModificar > -1)
{
facturaAModificar = t;
almacen[facturaAModificar] = t;
ret = true;
}
}

View File

@@ -27,10 +27,10 @@ namespace Modelo
try
{
var loteAModificar = almacen.Find(x => x.Id == t.Id);
if (loteAModificar != null)
var loteAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (loteAModificar > -1)
{
loteAModificar = t;
almacen[loteAModificar] = t;
ret = true;
}
}

View File

@@ -28,10 +28,10 @@ namespace Modelo
try
{
var ordenAModificar = almacen.Find(x => x.Id == t.Id);
if (ordenAModificar != null)
var ordenAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (ordenAModificar > -1)
{
ordenAModificar = t;
almacen[ordenAModificar] = t;
ret = true;
}
}

View File

@@ -28,10 +28,10 @@ namespace Modelo
try
{
var pedidoAModificar = almacen.Find(x => x.Id == t.Id);
if (pedidoAModificar != null)
var pedidoAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (pedidoAModificar > -1)
{
pedidoAModificar = t;
almacen[pedidoAModificar] = t;
ret = true;
}
}

View File

@@ -28,11 +28,11 @@ namespace Modelo
try
{
var presupuestoAModificar = almacen.Find(x => x.Id == t.Id);
if (presupuestoAModificar != null)
var presupuestoAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (presupuestoAModificar > -1)
{
presupuestoAModificar = t;
almacen[presupuestoAModificar] = t;
ret = true;
}
}

View File

@@ -27,8 +27,8 @@ namespace Modelo
try
{
var AModificar = almacen.Find(x => x.Id == t.Id);
AModificar = t;
var AModificar = almacen.FindIndex(x => x.Id == t.Id);
almacen[AModificar] = t;
ret = true;
}
catch (Exception)

View File

@@ -27,10 +27,10 @@ namespace Modelo
try
{
var proveedorAModificar = almacen.Find(x => x.Cuit == t.Cuit);
if (proveedorAModificar != null)
var proveedorAModificar = almacen.FindIndex(x => x.Cuit == t.Cuit);
if (proveedorAModificar > -1)
{
proveedorAModificar = t;
almacen[proveedorAModificar] = t;
ret = true;
}
}

View File

@@ -29,11 +29,11 @@ namespace Modelo
try
{
var remitoAModificar = almacen.Find(x => x.Id == t.Id);
if (remitoAModificar != null)
var remitoAModificar = almacen.FindIndex(x => x.Id == t.Id);
if (remitoAModificar > -1)
{
remitoAModificar = t;
almacen[remitoAModificar] = t;
ret = true;
ret = true;