feat: terminados 4 de 7 forms
This commit is contained in:
@@ -57,6 +57,14 @@ namespace Controladora
|
|||||||
{
|
{
|
||||||
return RepositorioFactura.Instance.Listar();
|
return RepositorioFactura.Instance.Listar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<DetalleFactura> ListarDetallesFactura(Factura factura)
|
||||||
|
{
|
||||||
|
Factura facturaalistar = ControladoraFacturas.Instance.Listar().First(x => x.Id == factura.Id);
|
||||||
|
if (facturaalistar == null) return new ReadOnlyCollection<DetalleFactura>(new List<DetalleFactura>());
|
||||||
|
return facturaalistar.MostrarDetalles();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,30 +65,7 @@ namespace Controladora
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string EliminarPorFacturaId(int facturaId)
|
/*public ReadOnlyCollection<Lote> ListarPorFacturaId(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
|
try
|
||||||
{
|
{
|
||||||
@@ -101,7 +78,7 @@ namespace Controladora
|
|||||||
// Captura cualquier excepción no prevista
|
// Captura cualquier excepción no prevista
|
||||||
throw new InvalidOperationException($"Ocurrió un error inesperado: {ex.Message}");
|
throw new InvalidOperationException($"Ocurrió un error inesperado: {ex.Message}");
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public ReadOnlyCollection<Lote> Listar()
|
public ReadOnlyCollection<Lote> Listar()
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -29,11 +29,11 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -67,14 +67,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -123,14 +123,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -148,8 +148,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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\fedpo\Downloads\Final actual(2)\Final actual\Controladora\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\Controladora\
|
||||||
|
|||||||
@@ -1,5 +1 @@
|
|||||||
<<<<<<< HEAD
|
dba3ec7c7a0b4bd2c09ad0be4ae57d8a36772676
|
||||||
07cbdde4e47ec2d3a6db548797ff84a15aa08946633217fe5ed64773b3cc8491
|
|
||||||
=======
|
|
||||||
39c8634b9e930bb7c3ea67187f4543b71aaf8be2
|
|
||||||
>>>>>>> 82ef086a3b4ba88ace772a05870081eea1cebbf9
|
|
||||||
|
|||||||
@@ -32,3 +32,20 @@ C:\Users\Nacho\Desktop\Final actual\Controladora\obj\Debug\net6.0\Controladora.d
|
|||||||
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\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\Controladora.pdb
|
||||||
C:\Users\Nacho\Desktop\Final actual\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
C:\Users\Nacho\Desktop\Final actual\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -51,11 +51,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -73,11 +73,11 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "r6yZkn7vz8/vk90IKpsbux5MO0+aB5kxgPItYHl5ZJHIUAUs/bsNzJEgYyHcVZOte6JF54JInW9sHlpZnQcQMQ==",
|
"dgSpecHash": "IpwbiXL3dRwH5wx4tbGN8sdWb7j6j3mIXiyS0Hjs/qZK1voDpRMu2YLROEx5AIgE25tapPlkUXWChBlhRVT26A==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,6 @@ namespace Entidades
|
|||||||
public class DetalleFactura: Detalle<Producto>
|
public class DetalleFactura: Detalle<Producto>
|
||||||
{
|
{
|
||||||
public int IdFactura { get; set; }
|
public int IdFactura { get; set; }
|
||||||
public double PrecioUnitario { get; set; }
|
|
||||||
public double Subtotal { get; set; }
|
public double Subtotal { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,18 +8,6 @@ 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; }
|
|
||||||
}
|
|
||||||
public double PrecioUnitario
|
|
||||||
{
|
|
||||||
get { return Producto?.Precio ?? 0; }
|
|
||||||
}
|
|
||||||
public double Subtotal
|
|
||||||
{
|
|
||||||
get { return PrecioUnitario * CantidadDeProductos; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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\fedpo\Downloads\Final actual(2)\Final actual\Entidades\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\Entidades\
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
|||||||
@@ -13,11 +13,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "vCw9TkU23iJeVGdgwKLwcggjjvRCnx4IVmqtdUC1cx6S4CwC+/lso1ry576JGcrpGs6Tvfs4jnEYWVDgrNS9aA==",
|
"dgSpecHash": "JjmZ/x9rvI6DKcp6sqA/2XwtSHr6XeI0O0c8c5GAHxMcNMVKoIzQeSSZe+awvwhJFTb+hDsL4RbtngW8O8CFow==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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 = Informes
|
build_property.RootNamespace = Informes
|
||||||
build_property.ProjectDir = C:\Users\fedpo\Downloads\Final actual(2)\Final actual\Informes\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\Informes\
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
3fd66116ceaea5e07433507fe6494c4f357d71a3a526da0eea8f6d1df7fb86c5
|
32b22c0691397986a9530089854cd0f201093600
|
||||||
|
|||||||
@@ -28,3 +28,18 @@ C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\Informes.dll
|
|||||||
C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\refint\Informes.dll
|
C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\refint\Informes.dll
|
||||||
C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\Informes.pdb
|
C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\Informes.pdb
|
||||||
C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\ref\Informes.dll
|
C:\Users\Nacho\Desktop\Final actual\Informes\obj\Debug\net6.0\ref\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\bin\Debug\net6.0\Informes.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\bin\Debug\net6.0\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\bin\Debug\net6.0\Informes.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\refint\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\Informes.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\Informes\obj\Debug\net6.0\ref\Informes.dll
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -60,14 +60,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"projectName": "Informes",
|
"projectName": "Informes",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -85,8 +85,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,11 +32,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"projectName": "Informes",
|
"projectName": "Informes",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "wSRUDPAOADbuzfBaccmKkWkxTPKcGjNIB8Bpaz2yc1b+hR10rBbeJ6qupMQnFD6UaiKUQHlyxseEoFUSlbM17A==",
|
"dgSpecHash": "iKJAdqV1q/kMNu72oEWf+wTcoFyU56YA7P8rCel2LyJMylEEsdJ3zg2KDcBSbSFYhociP4Acc3XZ4KiTT60MbQ==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -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 = Modelo
|
build_property.RootNamespace = Modelo
|
||||||
build_property.ProjectDir = C:\Users\fedpo\Downloads\Final actual(2)\Final actual\Modelo\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\Modelo\
|
||||||
|
|||||||
Binary file not shown.
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -60,14 +60,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -85,8 +85,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,11 +32,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "gEY07P7prGCYVR0m9ujCWDU4VIm7roMDseNKc2YK6GTpNG+hy+RKyuu6ewyYVPxE4rRuW4p/7q2JBw4Oa4TZHw==",
|
"dgSpecHash": "+dSzN8HQCE/7+A8WiGWZUevsFyBg+RjmhJtwnva8KQTR/8cIYqrYcGitnOradj5OOEtIzia0uezPEUiSGR+5rw==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
208
Vista/FrmFactura.Designer.cs
generated
208
Vista/FrmFactura.Designer.cs
generated
@@ -28,8 +28,8 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
button1 = new Button();
|
btnAceptar = new Button();
|
||||||
button2 = new Button();
|
btnCancelar = new Button();
|
||||||
numid = new NumericUpDown();
|
numid = new NumericUpDown();
|
||||||
label1 = new Label();
|
label1 = new Label();
|
||||||
numtotal = new NumericUpDown();
|
numtotal = new NumericUpDown();
|
||||||
@@ -38,41 +38,44 @@
|
|||||||
label3 = new Label();
|
label3 = new Label();
|
||||||
label4 = new Label();
|
label4 = new Label();
|
||||||
cmbCliente = new ComboBox();
|
cmbCliente = new ComboBox();
|
||||||
dataGridView1 = new DataGridView();
|
dgvProductos = new DataGridView();
|
||||||
dataGridView2 = new DataGridView();
|
dgvDetalles = new DataGridView();
|
||||||
numericUpDown1 = new NumericUpDown();
|
numCantidad = new NumericUpDown();
|
||||||
Unidades = new Label();
|
Unidades = new Label();
|
||||||
button3 = new Button();
|
btnAddDetalle = new Button();
|
||||||
|
label5 = new Label();
|
||||||
|
label6 = new Label();
|
||||||
|
btnEliminar = new Button();
|
||||||
((System.ComponentModel.ISupportInitialize)numid).BeginInit();
|
((System.ComponentModel.ISupportInitialize)numid).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)numtotal).BeginInit();
|
((System.ComponentModel.ISupportInitialize)numtotal).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dgvProductos).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView2).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dgvDetalles).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
|
((System.ComponentModel.ISupportInitialize)numCantidad).BeginInit();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// button1
|
// btnAceptar
|
||||||
//
|
//
|
||||||
button1.Location = new Point(12, 367);
|
btnAceptar.Location = new Point(12, 395);
|
||||||
button1.Name = "button1";
|
btnAceptar.Name = "btnAceptar";
|
||||||
button1.Size = new Size(113, 46);
|
btnAceptar.Size = new Size(82, 26);
|
||||||
button1.TabIndex = 0;
|
btnAceptar.TabIndex = 0;
|
||||||
button1.Text = "Aceptar";
|
btnAceptar.Text = "Aceptar";
|
||||||
button1.UseVisualStyleBackColor = true;
|
btnAceptar.UseVisualStyleBackColor = true;
|
||||||
button1.Click += button1_Click;
|
btnAceptar.Click += btnAceptar_Click;
|
||||||
//
|
//
|
||||||
// button2
|
// btnCancelar
|
||||||
//
|
//
|
||||||
button2.Location = new Point(172, 367);
|
btnCancelar.Location = new Point(873, 395);
|
||||||
button2.Name = "button2";
|
btnCancelar.Name = "btnCancelar";
|
||||||
button2.Size = new Size(115, 46);
|
btnCancelar.Size = new Size(80, 26);
|
||||||
button2.TabIndex = 1;
|
btnCancelar.TabIndex = 1;
|
||||||
button2.Text = "Cancelar";
|
btnCancelar.Text = "Cancelar";
|
||||||
button2.UseVisualStyleBackColor = true;
|
btnCancelar.UseVisualStyleBackColor = true;
|
||||||
button2.Click += button2_Click;
|
btnCancelar.Click += btnCerrar_Click;
|
||||||
//
|
//
|
||||||
// numid
|
// numid
|
||||||
//
|
//
|
||||||
numid.Location = new Point(97, 26);
|
numid.Location = new Point(60, 14);
|
||||||
numid.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
|
numid.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
|
||||||
numid.Name = "numid";
|
numid.Name = "numid";
|
||||||
numid.Size = new Size(120, 23);
|
numid.Size = new Size(120, 23);
|
||||||
@@ -81,7 +84,7 @@
|
|||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
label1.AutoSize = true;
|
label1.AutoSize = true;
|
||||||
label1.Location = new Point(69, 34);
|
label1.Location = new Point(32, 22);
|
||||||
label1.Name = "label1";
|
label1.Name = "label1";
|
||||||
label1.Size = new Size(18, 15);
|
label1.Size = new Size(18, 15);
|
||||||
label1.TabIndex = 3;
|
label1.TabIndex = 3;
|
||||||
@@ -90,7 +93,7 @@
|
|||||||
// numtotal
|
// numtotal
|
||||||
//
|
//
|
||||||
numtotal.Enabled = false;
|
numtotal.Enabled = false;
|
||||||
numtotal.Location = new Point(97, 57);
|
numtotal.Location = new Point(60, 45);
|
||||||
numtotal.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
|
numtotal.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
|
||||||
numtotal.Name = "numtotal";
|
numtotal.Name = "numtotal";
|
||||||
numtotal.ReadOnly = true;
|
numtotal.ReadOnly = true;
|
||||||
@@ -100,7 +103,7 @@
|
|||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
label2.AutoSize = true;
|
label2.AutoSize = true;
|
||||||
label2.Location = new Point(59, 65);
|
label2.Location = new Point(22, 53);
|
||||||
label2.Name = "label2";
|
label2.Name = "label2";
|
||||||
label2.Size = new Size(32, 15);
|
label2.Size = new Size(32, 15);
|
||||||
label2.TabIndex = 5;
|
label2.TabIndex = 5;
|
||||||
@@ -108,16 +111,15 @@
|
|||||||
//
|
//
|
||||||
// datepick
|
// datepick
|
||||||
//
|
//
|
||||||
datepick.Location = new Point(97, 88);
|
datepick.Location = new Point(60, 76);
|
||||||
datepick.Name = "datepick";
|
datepick.Name = "datepick";
|
||||||
datepick.Size = new Size(120, 23);
|
datepick.Size = new Size(120, 23);
|
||||||
datepick.TabIndex = 6;
|
datepick.TabIndex = 6;
|
||||||
datepick.ValueChanged += datepick_ValueChanged;
|
|
||||||
//
|
//
|
||||||
// label3
|
// label3
|
||||||
//
|
//
|
||||||
label3.AutoSize = true;
|
label3.AutoSize = true;
|
||||||
label3.Location = new Point(49, 94);
|
label3.Location = new Point(12, 82);
|
||||||
label3.Name = "label3";
|
label3.Name = "label3";
|
||||||
label3.Size = new Size(38, 15);
|
label3.Size = new Size(38, 15);
|
||||||
label3.TabIndex = 7;
|
label3.TabIndex = 7;
|
||||||
@@ -126,7 +128,7 @@
|
|||||||
// label4
|
// label4
|
||||||
//
|
//
|
||||||
label4.AutoSize = true;
|
label4.AutoSize = true;
|
||||||
label4.Location = new Point(49, 124);
|
label4.Location = new Point(12, 112);
|
||||||
label4.Name = "label4";
|
label4.Name = "label4";
|
||||||
label4.Size = new Size(44, 15);
|
label4.Size = new Size(44, 15);
|
||||||
label4.TabIndex = 8;
|
label4.TabIndex = 8;
|
||||||
@@ -136,69 +138,106 @@
|
|||||||
//
|
//
|
||||||
cmbCliente.DropDownStyle = ComboBoxStyle.DropDownList;
|
cmbCliente.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||||
cmbCliente.FormattingEnabled = true;
|
cmbCliente.FormattingEnabled = true;
|
||||||
cmbCliente.Location = new Point(99, 121);
|
cmbCliente.Location = new Point(62, 109);
|
||||||
cmbCliente.Name = "cmbCliente";
|
cmbCliente.Name = "cmbCliente";
|
||||||
cmbCliente.Size = new Size(121, 23);
|
cmbCliente.Size = new Size(121, 23);
|
||||||
cmbCliente.TabIndex = 10;
|
cmbCliente.TabIndex = 10;
|
||||||
//
|
//
|
||||||
// dataGridView1
|
// dgvProductos
|
||||||
//
|
//
|
||||||
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
dgvProductos.AllowUserToAddRows = false;
|
||||||
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
dgvProductos.AllowUserToDeleteRows = false;
|
||||||
dataGridView1.Location = new Point(290, 12);
|
dgvProductos.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
dataGridView1.Name = "dataGridView1";
|
dgvProductos.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
dataGridView1.RowTemplate.Height = 25;
|
dgvProductos.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||||
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
dgvProductos.Location = new Point(237, 30);
|
||||||
dataGridView1.Size = new Size(324, 318);
|
dgvProductos.Name = "dgvProductos";
|
||||||
dataGridView1.TabIndex = 11;
|
dgvProductos.RowTemplate.Height = 25;
|
||||||
|
dgvProductos.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dgvProductos.Size = new Size(350, 318);
|
||||||
|
dgvProductos.TabIndex = 11;
|
||||||
//
|
//
|
||||||
// dataGridView2
|
// dgvDetalles
|
||||||
//
|
//
|
||||||
dataGridView2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
dgvDetalles.AllowUserToAddRows = false;
|
||||||
dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
dgvDetalles.AllowUserToDeleteRows = false;
|
||||||
dataGridView2.Location = new Point(674, 12);
|
dgvDetalles.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
dataGridView2.Name = "dataGridView2";
|
dgvDetalles.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
dataGridView2.RowTemplate.Height = 25;
|
dgvDetalles.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||||
dataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
dgvDetalles.Location = new Point(593, 30);
|
||||||
dataGridView2.Size = new Size(290, 336);
|
dgvDetalles.Name = "dgvDetalles";
|
||||||
dataGridView2.TabIndex = 12;
|
dgvDetalles.RowTemplate.Height = 25;
|
||||||
|
dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dgvDetalles.Size = new Size(360, 318);
|
||||||
|
dgvDetalles.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// numericUpDown1
|
// numCantidad
|
||||||
//
|
//
|
||||||
numericUpDown1.Location = new Point(494, 359);
|
numCantidad.Location = new Point(309, 354);
|
||||||
numericUpDown1.Name = "numericUpDown1";
|
numCantidad.Name = "numCantidad";
|
||||||
numericUpDown1.Size = new Size(120, 23);
|
numCantidad.Size = new Size(120, 23);
|
||||||
numericUpDown1.TabIndex = 13;
|
numCantidad.TabIndex = 13;
|
||||||
//
|
//
|
||||||
// Unidades
|
// Unidades
|
||||||
//
|
//
|
||||||
Unidades.AutoSize = true;
|
Unidades.AutoSize = true;
|
||||||
Unidades.Location = new Point(420, 367);
|
Unidades.Location = new Point(235, 362);
|
||||||
Unidades.Name = "Unidades";
|
Unidades.Name = "Unidades";
|
||||||
Unidades.Size = new Size(56, 15);
|
Unidades.Size = new Size(56, 15);
|
||||||
Unidades.TabIndex = 14;
|
Unidades.TabIndex = 14;
|
||||||
Unidades.Text = "Unidades";
|
Unidades.Text = "Unidades";
|
||||||
//
|
//
|
||||||
// button3
|
// btnAddDetalle
|
||||||
//
|
//
|
||||||
button3.Location = new Point(420, 390);
|
btnAddDetalle.Location = new Point(235, 385);
|
||||||
button3.Name = "button3";
|
btnAddDetalle.Name = "btnAddDetalle";
|
||||||
button3.Size = new Size(194, 36);
|
btnAddDetalle.Size = new Size(80, 31);
|
||||||
button3.TabIndex = 15;
|
btnAddDetalle.TabIndex = 15;
|
||||||
button3.Text = "Añadir";
|
btnAddDetalle.Text = "Añadir";
|
||||||
button3.UseVisualStyleBackColor = true;
|
btnAddDetalle.UseVisualStyleBackColor = true;
|
||||||
button3.Click += button3_Click;
|
btnAddDetalle.Click += btnAddDetalle_Click;
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
label5.AutoSize = true;
|
||||||
|
label5.Location = new Point(593, 9);
|
||||||
|
label5.Name = "label5";
|
||||||
|
label5.Size = new Size(48, 15);
|
||||||
|
label5.TabIndex = 16;
|
||||||
|
label5.Text = "Detalles";
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
label6.AutoSize = true;
|
||||||
|
label6.Location = new Point(237, 5);
|
||||||
|
label6.Name = "label6";
|
||||||
|
label6.Size = new Size(61, 15);
|
||||||
|
label6.TabIndex = 17;
|
||||||
|
label6.Text = "Productos";
|
||||||
|
//
|
||||||
|
// btnEliminar
|
||||||
|
//
|
||||||
|
btnEliminar.Location = new Point(321, 385);
|
||||||
|
btnEliminar.Name = "btnEliminar";
|
||||||
|
btnEliminar.Size = new Size(80, 31);
|
||||||
|
btnEliminar.TabIndex = 18;
|
||||||
|
btnEliminar.Text = "Eliminar";
|
||||||
|
btnEliminar.UseVisualStyleBackColor = true;
|
||||||
|
btnEliminar.Click += btnEliminar_Click;
|
||||||
//
|
//
|
||||||
// FrmFactura
|
// FrmFactura
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(976, 450);
|
ClientSize = new Size(965, 428);
|
||||||
Controls.Add(button3);
|
Controls.Add(btnEliminar);
|
||||||
|
Controls.Add(label6);
|
||||||
|
Controls.Add(label5);
|
||||||
|
Controls.Add(btnAddDetalle);
|
||||||
Controls.Add(Unidades);
|
Controls.Add(Unidades);
|
||||||
Controls.Add(numericUpDown1);
|
Controls.Add(numCantidad);
|
||||||
Controls.Add(dataGridView2);
|
Controls.Add(dgvDetalles);
|
||||||
Controls.Add(dataGridView1);
|
Controls.Add(dgvProductos);
|
||||||
Controls.Add(cmbCliente);
|
Controls.Add(cmbCliente);
|
||||||
Controls.Add(label4);
|
Controls.Add(label4);
|
||||||
Controls.Add(label3);
|
Controls.Add(label3);
|
||||||
@@ -207,23 +246,23 @@
|
|||||||
Controls.Add(numtotal);
|
Controls.Add(numtotal);
|
||||||
Controls.Add(label1);
|
Controls.Add(label1);
|
||||||
Controls.Add(numid);
|
Controls.Add(numid);
|
||||||
Controls.Add(button2);
|
Controls.Add(btnCancelar);
|
||||||
Controls.Add(button1);
|
Controls.Add(btnAceptar);
|
||||||
Name = "FrmFactura";
|
Name = "FrmFactura";
|
||||||
Text = "Form1";
|
Text = "Agregar Factura";
|
||||||
((System.ComponentModel.ISupportInitialize)numid).EndInit();
|
((System.ComponentModel.ISupportInitialize)numid).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)numtotal).EndInit();
|
((System.ComponentModel.ISupportInitialize)numtotal).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
|
((System.ComponentModel.ISupportInitialize)dgvProductos).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView2).EndInit();
|
((System.ComponentModel.ISupportInitialize)dgvDetalles).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
|
((System.ComponentModel.ISupportInitialize)numCantidad).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private Button button1;
|
private Button btnAceptar;
|
||||||
private Button button2;
|
private Button btnCancelar;
|
||||||
private NumericUpDown numid;
|
private NumericUpDown numid;
|
||||||
private Label label1;
|
private Label label1;
|
||||||
private NumericUpDown numtotal;
|
private NumericUpDown numtotal;
|
||||||
@@ -232,10 +271,13 @@
|
|||||||
private Label label3;
|
private Label label3;
|
||||||
private Label label4;
|
private Label label4;
|
||||||
private ComboBox cmbCliente;
|
private ComboBox cmbCliente;
|
||||||
private DataGridView dataGridView1;
|
private DataGridView dgvProductos;
|
||||||
private DataGridView dataGridView2;
|
private DataGridView dgvDetalles;
|
||||||
private NumericUpDown numericUpDown1;
|
private NumericUpDown numCantidad;
|
||||||
private Label Unidades;
|
private Label Unidades;
|
||||||
private Button button3;
|
private Button btnAddDetalle;
|
||||||
|
private Label label5;
|
||||||
|
private Label label6;
|
||||||
|
private Button btnEliminar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
using Controladora;
|
using Controladora;
|
||||||
using Entidades;
|
using Entidades;
|
||||||
using Modelo;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
@@ -16,134 +15,76 @@ namespace Vista
|
|||||||
{
|
{
|
||||||
public partial class FrmFactura : Form
|
public partial class FrmFactura : Form
|
||||||
{
|
{
|
||||||
private Factura factura;
|
private Factura factura = new Factura();
|
||||||
private Cliente clienteSeleccionado;
|
private int detalleid;
|
||||||
private List<Lote> carrito; // Lista para almacenar los lotes en el carrito
|
public FrmFactura()
|
||||||
|
|
||||||
public FrmFactura(Factura? factura = null)
|
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
ConfigurarDataGridView();
|
|
||||||
ConfigurarDataGridViewCarrito(); // Nueva configuración del DataGridView para el carrito
|
|
||||||
ActualizarGrilla();
|
ActualizarGrilla();
|
||||||
CargarClientes();
|
CargarDatos();
|
||||||
carrito = new List<Lote>(); // Inicializar la lista del carrito
|
|
||||||
|
|
||||||
cmbCliente.SelectedIndexChanged += comboBox1_SelectedIndexChanged;
|
|
||||||
|
|
||||||
// Para el primer control NumericUpDown
|
|
||||||
numid.Maximum = int.MaxValue; // Esto permitirá IDs muy grandes
|
|
||||||
|
|
||||||
// Para el segundo control NumericUpDown
|
|
||||||
numtotal.Maximum = decimal.MaxValue; // Esto permitirá totales muy grandes
|
|
||||||
numtotal.Enabled = false; // Deshabilitar el control para que no se pueda modificar
|
|
||||||
|
|
||||||
// Configurar NumericUpDown para unidades
|
|
||||||
numericUpDown1.Maximum = int.MaxValue; // Configurar el máximo valor permitido
|
|
||||||
|
|
||||||
cmbCliente.DisplayMember = "Cliente";
|
cmbCliente.DisplayMember = "Cliente";
|
||||||
cmbCliente.SelectedIndex = -1;
|
cmbCliente.SelectedIndex = -1;
|
||||||
|
|
||||||
if (factura != null)
|
|
||||||
{
|
|
||||||
this.factura = factura;
|
|
||||||
this.Text = "Modificar Factura";
|
|
||||||
CargarDatos();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.Text = "Agregar Factura";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ConfigurarDataGridView()
|
private void ActualizarGrilla()
|
||||||
{
|
{
|
||||||
dataGridView1.AutoGenerateColumns = false;
|
dgvProductos.DataSource = null;
|
||||||
|
dgvProductos.DataSource = ControladoraProductos.Instance.Listar();
|
||||||
|
|
||||||
|
dgvDetalles.AutoGenerateColumns = false;
|
||||||
|
|
||||||
// Definir las columnas manualmente
|
// Definir las columnas manualmente
|
||||||
dataGridView1.Columns.Add(new DataGridViewTextBoxColumn
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
{
|
{
|
||||||
DataPropertyName = "Id",
|
DataPropertyName = "Id", // Usa la propiedad NombreProducto
|
||||||
HeaderText = "ID",
|
HeaderText = "Id",
|
||||||
Name = "Id"
|
Name = "Id"
|
||||||
});
|
});
|
||||||
dataGridView1.Columns.Add(new DataGridViewTextBoxColumn
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
{
|
{
|
||||||
DataPropertyName = "Nombre",
|
DataPropertyName = "Producto", // Usa la propiedad NombreProducto
|
||||||
HeaderText = "Nombre",
|
|
||||||
Name = "Nombre"
|
|
||||||
});
|
|
||||||
dataGridView1.Columns.Add(new DataGridViewTextBoxColumn
|
|
||||||
{
|
|
||||||
DataPropertyName = "Precio",
|
|
||||||
HeaderText = "Precio",
|
|
||||||
Name = "Precio"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ConfigurarDataGridViewCarrito()
|
|
||||||
{
|
|
||||||
dataGridView2.AutoGenerateColumns = false;
|
|
||||||
|
|
||||||
// Definir las columnas manualmente
|
|
||||||
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
|
||||||
{
|
|
||||||
DataPropertyName = "NombreProducto", // Usa la propiedad NombreProducto
|
|
||||||
HeaderText = "Producto",
|
HeaderText = "Producto",
|
||||||
Name = "Producto"
|
Name = "Producto"
|
||||||
});
|
});
|
||||||
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
{
|
{
|
||||||
DataPropertyName = "CantidadDeProductos",
|
DataPropertyName = "CantidadDeProductos",
|
||||||
HeaderText = "Cantidad",
|
HeaderText = "Cantidad",
|
||||||
Name = "CantidadDeProductos"
|
Name = "CantidadDeProductos"
|
||||||
});
|
});
|
||||||
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "PrecioUnitario",
|
||||||
|
HeaderText = "PrecioUnitario"
|
||||||
|
});
|
||||||
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "Subtotal",
|
||||||
|
HeaderText = "Subtotal"
|
||||||
|
});
|
||||||
|
|
||||||
// Asignar la lista de lotes al DataGridView
|
|
||||||
dataGridView2.DataSource = carrito;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void ActualizarGrilla()
|
|
||||||
{
|
|
||||||
dataGridView1.DataSource = null;
|
|
||||||
dataGridView1.DataSource = ControladoraProductos.Instance.Listar();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CargarClientes()
|
|
||||||
{
|
|
||||||
// Obtener la lista de clientes desde el repositorio
|
|
||||||
ReadOnlyCollection<Cliente> clientes = RepositorioClientes.Instance.Listar();
|
|
||||||
|
|
||||||
// Asignar la lista de clientes como origen de datos para el ComboBox
|
|
||||||
cmbCliente.DataSource = clientes;
|
|
||||||
|
|
||||||
// Establecer la propiedad para mostrar el nombre del cliente en el ComboBox
|
|
||||||
cmbCliente.DisplayMember = "NombreCompleto";
|
|
||||||
}
|
|
||||||
|
|
||||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
clienteSeleccionado = (Cliente)cmbCliente.SelectedItem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CargarDatos()
|
private void CargarDatos()
|
||||||
{
|
{
|
||||||
numid.Value = factura.Id;
|
// Asignar la lista de clientes como origen de datos para el ComboBox
|
||||||
numtotal.Value = (decimal)factura.Total;
|
cmbCliente.DataSource = ControladoraClientes.Instance.Listar();
|
||||||
datepick.Value = factura.Fecha;
|
|
||||||
|
|
||||||
// Asignar el cliente seleccionado en el ComboBox
|
// Establecer la propiedad para mostrar el nombre del cliente en el ComboBox
|
||||||
if (factura.Cliente != null)
|
cmbCliente.DisplayMember = "NombreCompleto";
|
||||||
{
|
|
||||||
cmbCliente.SelectedItem = factura.Cliente;
|
var listdetalle = ControladoraFacturas.Instance.Listar();
|
||||||
}
|
numid.Value = (listdetalle.Count > 0) ?
|
||||||
|
listdetalle.Max(x => x.Id + 1) :
|
||||||
|
0;
|
||||||
|
|
||||||
|
numid.Enabled = false; // Deshabilitar el control para que no se pueda modificar
|
||||||
|
|
||||||
|
numtotal.Enabled = false; // Deshabilitar el control para que no se pueda modificar
|
||||||
|
|
||||||
// Recuperar los lotes asociados a la factura y actualizar el DataGridView
|
// Recuperar los lotes asociados a la factura y actualizar el DataGridView
|
||||||
carrito = ControladoraLotes.Instance.ListarPorFacturaId(factura.Id).ToList() ?? new List<Lote>();
|
// var listaDetalles = ControladoraFacturas.Instance.ListarDetallesFactura(factura);
|
||||||
|
|
||||||
dataGridView2.DataSource = null;
|
|
||||||
dataGridView2.DataSource = carrito;
|
|
||||||
|
|
||||||
// Actualizar el total
|
// Actualizar el total
|
||||||
ActualizarTotal();
|
ActualizarTotal();
|
||||||
@@ -153,9 +94,9 @@ namespace Vista
|
|||||||
{
|
{
|
||||||
// Recalcular el total de la factura
|
// Recalcular el total de la factura
|
||||||
decimal total = 0;
|
decimal total = 0;
|
||||||
foreach (var lote in carrito)
|
foreach (var detalle in factura.MostrarDetalles())
|
||||||
{
|
{
|
||||||
total += (decimal)(lote.Producto.Precio * lote.CantidadDeProductos);
|
total += (decimal)(detalle.Producto.Precio * detalle.Cantidad);
|
||||||
}
|
}
|
||||||
numtotal.Value = total;
|
numtotal.Value = total;
|
||||||
}
|
}
|
||||||
@@ -165,7 +106,7 @@ namespace Vista
|
|||||||
string devolucion = "";
|
string devolucion = "";
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(numid.Text)) devolucion += "El ID no puede ser nulo o vacío\n";
|
if (string.IsNullOrEmpty(numid.Text)) devolucion += "El ID no puede ser nulo o vacío\n";
|
||||||
if (clienteSeleccionado == null) devolucion += "Debe seleccionar un cliente\n";
|
if (cmbCliente.SelectedIndex == -1) devolucion += "Debe seleccionar un cliente\n";
|
||||||
|
|
||||||
if (devolucion == "")
|
if (devolucion == "")
|
||||||
{
|
{
|
||||||
@@ -178,153 +119,120 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void btnAceptar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Validar los datos antes de continuar
|
// Validar los datos antes de continuar
|
||||||
if (ValidarDatos())
|
if (ValidarDatos())
|
||||||
{
|
{
|
||||||
try
|
factura.Total = Convert.ToDouble(numtotal.Value);
|
||||||
|
factura.Fecha = datepick.Value;
|
||||||
|
factura.Id = Convert.ToInt32(numid.Value);
|
||||||
|
factura.Cliente = ControladoraClientes.Instance.Listar().First(x => x.NombreCompleto == cmbCliente.SelectedValue.ToString());
|
||||||
|
|
||||||
|
string mensaje = ControladoraFacturas.Instance.Añadir(factura);
|
||||||
|
MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnAddDetalle_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// Validar los datos antes de crear el detalle
|
||||||
|
if (ValidarDatosdetalle()) return;
|
||||||
|
if (dgvProductos.SelectedRows.Count > 0)
|
||||||
|
{
|
||||||
|
foreach (DataGridViewRow selectedRow in dgvProductos.SelectedRows)
|
||||||
{
|
{
|
||||||
// Verificar si la ID de la factura ya está en uso
|
Producto producto = (Producto)selectedRow.DataBoundItem;
|
||||||
if (RepositorioFactura.Instance.ExistePorId((int)numid.Value) && factura == null)
|
var checkcolicion = factura.MostrarDetalles().Count(x => x.Producto.Id == producto.Id);
|
||||||
|
if (checkcolicion != 0)
|
||||||
{
|
{
|
||||||
MessageBox.Show("La ID de la factura ya está en uso. Por favor, elija una ID diferente.", "ID en Uso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
MessageBox.Show("El Producto ya fue cargado");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (factura == null)
|
factura.AñadirDetalle(new DetalleFactura
|
||||||
{
|
{
|
||||||
// Crear una nueva factura con los datos proporcionados
|
Id = int.Parse(detalleid++.ToString()),
|
||||||
factura = new Factura
|
Cantidad = (int)numCantidad.Value,
|
||||||
{
|
IdFactura = factura.Id,
|
||||||
Id = (int)numid.Value,
|
Producto = ControladoraProductos.Instance.Listar().First(x => x.Id == producto.Id),
|
||||||
Total = (double)numtotal.Value,
|
Subtotal = producto.Precio * Convert.ToInt32(numCantidad.Value),
|
||||||
Fecha = datepick.Value,
|
});
|
||||||
Cliente = (Cliente)cmbCliente.SelectedItem
|
ActualizarGrillaDetalles();
|
||||||
};
|
|
||||||
// Agregar la factura a la colección
|
|
||||||
ControladoraFacturas.Instance.Añadir(factura);
|
|
||||||
|
|
||||||
// Guardar los lotes asociados a la factura
|
|
||||||
foreach (var lote in carrito)
|
|
||||||
{
|
|
||||||
lote.Id = factura.Id; // Usar la ID de la factura
|
|
||||||
lote.Fecha = factura.Fecha; // Usar la fecha de la factura
|
|
||||||
ControladoraLotes.Instance.Añadir(lote);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Actualizar los datos de la factura existente
|
|
||||||
factura.Id = (int)numid.Value;
|
|
||||||
factura.Total = (double)numtotal.Value;
|
|
||||||
factura.Fecha = datepick.Value;
|
|
||||||
factura.Cliente = (Cliente)cmbCliente.SelectedItem;
|
|
||||||
// Modificar la factura en la colección
|
|
||||||
ControladoraFacturas.Instance.Modificar(factura);
|
|
||||||
|
|
||||||
// Actualizar los lotes asociados a la factura
|
|
||||||
ControladoraLotes.Instance.EliminarPorFacturaId(factura.Id); // Eliminar lotes antiguos
|
|
||||||
foreach (var lote in carrito)
|
|
||||||
{
|
|
||||||
lote.Id = factura.Id; // Usar la ID de la factura
|
|
||||||
lote.Fecha = factura.Fecha; // Usar la fecha de la factura
|
|
||||||
ControladoraLotes.Instance.Añadir(lote);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
MessageBox.Show("Operación realizada con éxito", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
||||||
Close();
|
|
||||||
}
|
|
||||||
catch (InvalidOperationException ex)
|
|
||||||
{
|
|
||||||
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
// Captura cualquier otra excepción que pueda ocurrir
|
|
||||||
MessageBox.Show("Ocurrió un error inesperado: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private void ActualizarGrillaDetalles()
|
||||||
|
|
||||||
private void button2_Click(object sender, EventArgs e)
|
|
||||||
{
|
{
|
||||||
this.Close();
|
var detalles = factura.MostrarDetalles();
|
||||||
}
|
dgvDetalles.DataSource = null;
|
||||||
|
if (detalles.Any())
|
||||||
|
|
||||||
|
|
||||||
private void button3_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Validar los datos antes de crear el lote
|
|
||||||
if (ValidarDatos() && ValidarDatosLote())
|
|
||||||
{
|
{
|
||||||
// Verifica si hay una fila seleccionada en el DataGridView
|
var loteDatos = detalles.Select(detalle => new
|
||||||
if (dataGridView1.CurrentRow != null)
|
|
||||||
{
|
{
|
||||||
// Deshabilitar los controles para ID, fecha, y cliente
|
Id = detalle.Id,
|
||||||
numid.Enabled = false;
|
Producto = detalle.Producto.Nombre,
|
||||||
datepick.Enabled = false;
|
CantidadDeProductos = detalle.Cantidad,
|
||||||
cmbCliente.Enabled = false;
|
Subtotal = detalle.Subtotal,
|
||||||
|
PrecioUnitario = detalle.Producto.Precio,
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
// Crear un nuevo lote con los datos proporcionados
|
dgvDetalles.DataSource = loteDatos;
|
||||||
var lote = new Lote
|
numtotal.Value = (Decimal)loteDatos.Sum(x => x.Subtotal);
|
||||||
{
|
|
||||||
Id = (int)numid.Value, // Usar la misma ID que la de la factura
|
|
||||||
Fecha = datepick.Value, // Usar la misma fecha que la de la factura
|
|
||||||
Producto = (Producto)dataGridView1.CurrentRow.DataBoundItem,
|
|
||||||
CantidadDeProductos = (long)numericUpDown1.Value, // Usar el valor de unidades del NumericUpDown
|
|
||||||
Habilitado = true // Asignar un valor por defecto o según tus necesidades
|
|
||||||
};
|
|
||||||
|
|
||||||
// Añadir el lote al carrito
|
|
||||||
carrito.Add(lote);
|
|
||||||
|
|
||||||
// Actualizar el total de la factura
|
|
||||||
ActualizarTotal();
|
|
||||||
|
|
||||||
// Actualizar el DataGridView para reflejar los cambios
|
|
||||||
dataGridView2.DataSource = null;
|
|
||||||
dataGridView2.DataSource = carrito;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Mostrar un mensaje si no se ha seleccionado ninguna fila
|
|
||||||
MessageBox.Show("Por favor, seleccione un producto en el carrito antes de añadir.", "Selección Requerida", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// metodo para validar los datos del detalle
|
||||||
// Función actualizada para validar los datos del lote
|
private bool ValidarDatosdetalle()
|
||||||
private bool ValidarDatosLote()
|
|
||||||
{
|
{
|
||||||
string devolucion = "";
|
string devolucion = "";
|
||||||
|
|
||||||
// Validar la selección del producto
|
// Validar la selección del producto
|
||||||
if (dataGridView1.CurrentRow == null)
|
if (dgvProductos.CurrentRow == null)
|
||||||
devolucion += "Debe seleccionar un producto para añadir al lote\n";
|
devolucion += "Debe seleccionar un producto para añadir al lote\n";
|
||||||
|
|
||||||
// Validar la cantidad de productos
|
// Validar la cantidad de productos
|
||||||
if (numericUpDown1.Value <= 0)
|
if (numCantidad.Value <= 0)
|
||||||
devolucion += "La cantidad de productos debe ser mayor que cero\n";
|
devolucion += "La cantidad de productos debe ser mayor que cero\n";
|
||||||
|
|
||||||
if (devolucion == "")
|
if (devolucion == "")
|
||||||
{
|
{
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MessageBox.Show(devolucion, "Errores de Validación", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
MessageBox.Show(devolucion, "Errores de Validación", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void datepick_ValueChanged(object sender, EventArgs e)
|
private void btnCerrar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnEliminar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (dgvDetalles.SelectedRows.Count > 0)
|
||||||
|
{
|
||||||
|
foreach (DataGridViewRow selectedRow in dgvDetalles.SelectedRows)
|
||||||
|
{
|
||||||
|
DetalleFactura det = new DetalleFactura
|
||||||
|
{
|
||||||
|
Id = Convert.ToInt32(selectedRow.Cells["Id"].Value),
|
||||||
|
};
|
||||||
|
var detalleAborrar = factura.MostrarDetalles().First(x => x.Id == det.Id);
|
||||||
|
factura.EliminarDetalle(detalleAborrar);
|
||||||
|
ActualizarGrillaDetalles();
|
||||||
|
detalleid--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("Por favor, selecciona una fila para eliminar Proveedor del producto.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
94
Vista/FrmFacturas.Designer.cs
generated
94
Vista/FrmFacturas.Designer.cs
generated
@@ -29,18 +29,22 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
groupBox1 = new GroupBox();
|
groupBox1 = new GroupBox();
|
||||||
dataGridView2 = new DataGridView();
|
label2 = new Label();
|
||||||
dataGridView1 = new DataGridView();
|
label1 = new Label();
|
||||||
|
dgvDetalles = new DataGridView();
|
||||||
|
dgvFacturas = new DataGridView();
|
||||||
BtnAdd = new Button();
|
BtnAdd = new Button();
|
||||||
groupBox1.SuspendLayout();
|
groupBox1.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView2).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dgvDetalles).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dgvFacturas).BeginInit();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// groupBox1
|
// groupBox1
|
||||||
//
|
//
|
||||||
groupBox1.Controls.Add(dataGridView2);
|
groupBox1.Controls.Add(label2);
|
||||||
groupBox1.Controls.Add(dataGridView1);
|
groupBox1.Controls.Add(label1);
|
||||||
|
groupBox1.Controls.Add(dgvDetalles);
|
||||||
|
groupBox1.Controls.Add(dgvFacturas);
|
||||||
groupBox1.Controls.Add(BtnAdd);
|
groupBox1.Controls.Add(BtnAdd);
|
||||||
groupBox1.Location = new Point(12, 12);
|
groupBox1.Location = new Point(12, 12);
|
||||||
groupBox1.Name = "groupBox1";
|
groupBox1.Name = "groupBox1";
|
||||||
@@ -48,34 +52,57 @@
|
|||||||
groupBox1.TabIndex = 5;
|
groupBox1.TabIndex = 5;
|
||||||
groupBox1.TabStop = false;
|
groupBox1.TabStop = false;
|
||||||
//
|
//
|
||||||
// dataGridView2
|
// label2
|
||||||
//
|
//
|
||||||
dataGridView2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
label2.AutoSize = true;
|
||||||
dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
label2.Location = new Point(6, 19);
|
||||||
dataGridView2.Location = new Point(623, 0);
|
label2.Name = "label2";
|
||||||
dataGridView2.Name = "dataGridView2";
|
label2.Size = new Size(46, 15);
|
||||||
dataGridView2.RowTemplate.Height = 25;
|
label2.TabIndex = 6;
|
||||||
dataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
label2.Text = "Factura";
|
||||||
dataGridView2.Size = new Size(384, 426);
|
|
||||||
dataGridView2.TabIndex = 4;
|
|
||||||
//
|
//
|
||||||
// dataGridView1
|
// label1
|
||||||
//
|
//
|
||||||
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
label1.AutoSize = true;
|
||||||
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
label1.Location = new Point(520, 19);
|
||||||
dataGridView1.Location = new Point(6, 16);
|
label1.Name = "label1";
|
||||||
dataGridView1.Name = "dataGridView1";
|
label1.Size = new Size(48, 15);
|
||||||
dataGridView1.RowTemplate.Height = 25;
|
label1.TabIndex = 5;
|
||||||
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
label1.Text = "Detalles";
|
||||||
dataGridView1.Size = new Size(508, 241);
|
//
|
||||||
dataGridView1.TabIndex = 3;
|
// dgvDetalles
|
||||||
dataGridView1.CellBorderStyleChanged += dataGridView1_CellBorderStyleChanged;
|
//
|
||||||
dataGridView1.CellClick += dataGridView1_CellClick;
|
dgvDetalles.AllowUserToAddRows = false;
|
||||||
dataGridView1.CellContentClick += dataGridView1_CellContentClick;
|
dgvDetalles.AllowUserToDeleteRows = false;
|
||||||
|
dgvDetalles.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
|
dgvDetalles.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dgvDetalles.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||||
|
dgvDetalles.ImeMode = ImeMode.On;
|
||||||
|
dgvDetalles.Location = new Point(520, 40);
|
||||||
|
dgvDetalles.Name = "dgvDetalles";
|
||||||
|
dgvDetalles.RowTemplate.Height = 25;
|
||||||
|
dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dgvDetalles.Size = new Size(384, 241);
|
||||||
|
dgvDetalles.TabIndex = 4;
|
||||||
|
//
|
||||||
|
// dgvFacturas
|
||||||
|
//
|
||||||
|
dgvFacturas.AllowUserToAddRows = false;
|
||||||
|
dgvFacturas.AllowUserToDeleteRows = false;
|
||||||
|
dgvFacturas.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
|
dgvFacturas.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dgvFacturas.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||||
|
dgvFacturas.Location = new Point(6, 40);
|
||||||
|
dgvFacturas.Name = "dgvFacturas";
|
||||||
|
dgvFacturas.RowTemplate.Height = 25;
|
||||||
|
dgvFacturas.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dgvFacturas.Size = new Size(508, 241);
|
||||||
|
dgvFacturas.TabIndex = 3;
|
||||||
|
dgvFacturas.CellClick += dgvFacturas_CellClick;
|
||||||
//
|
//
|
||||||
// BtnAdd
|
// BtnAdd
|
||||||
//
|
//
|
||||||
BtnAdd.Location = new Point(6, 299);
|
BtnAdd.Location = new Point(6, 287);
|
||||||
BtnAdd.Name = "BtnAdd";
|
BtnAdd.Name = "BtnAdd";
|
||||||
BtnAdd.Size = new Size(75, 23);
|
BtnAdd.Size = new Size(75, 23);
|
||||||
BtnAdd.TabIndex = 0;
|
BtnAdd.TabIndex = 0;
|
||||||
@@ -93,16 +120,19 @@
|
|||||||
Text = "Ventas";
|
Text = "Ventas";
|
||||||
WindowState = FormWindowState.Maximized;
|
WindowState = FormWindowState.Maximized;
|
||||||
groupBox1.ResumeLayout(false);
|
groupBox1.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView2).EndInit();
|
groupBox1.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
|
((System.ComponentModel.ISupportInitialize)dgvDetalles).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvFacturas).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private GroupBox groupBox1;
|
private GroupBox groupBox1;
|
||||||
private DataGridView dataGridView1;
|
private DataGridView dgvFacturas;
|
||||||
private Button BtnAdd;
|
private Button BtnAdd;
|
||||||
private DataGridView dataGridView2;
|
private DataGridView dgvDetalles;
|
||||||
|
private Label label2;
|
||||||
|
private Label label1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,14 +10,13 @@ namespace Vista
|
|||||||
public FrmFacturas()
|
public FrmFacturas()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
ConfigurarDataGridViewDetalle();
|
||||||
ActualizarGrilla();
|
ActualizarGrilla();
|
||||||
dataGridView1.CellClick += dataGridView1_CellClick;
|
|
||||||
ConfigurarDataGridView2();
|
|
||||||
}
|
}
|
||||||
private void ActualizarGrilla()
|
private void ActualizarGrilla()
|
||||||
{
|
{
|
||||||
dataGridView1.DataSource = null;
|
dgvFacturas.DataSource = null;
|
||||||
dataGridView1.DataSource = ControladoraFacturas.Instance.Listar();
|
dgvFacturas.DataSource = ControladoraFacturas.Instance.Listar();
|
||||||
}
|
}
|
||||||
private void BtnAdd_Click(object sender, EventArgs e)
|
private void BtnAdd_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -26,64 +25,60 @@ namespace Vista
|
|||||||
ActualizarGrilla();
|
ActualizarGrilla();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void dataGridView1_CellBorderStyleChanged(object sender, EventArgs e)
|
private void ConfigurarDataGridViewDetalle()
|
||||||
{
|
{
|
||||||
|
dgvDetalles.AutoGenerateColumns = false;
|
||||||
}
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
|
||||||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
private void ConfigurarDataGridView2()
|
|
||||||
{
|
|
||||||
dataGridView2.AutoGenerateColumns = false;
|
|
||||||
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
|
||||||
{
|
{
|
||||||
DataPropertyName = "Producto",
|
DataPropertyName = "Producto",
|
||||||
HeaderText = "Producto"
|
HeaderText = "Producto",
|
||||||
|
Name = "Producto"
|
||||||
});
|
});
|
||||||
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
{
|
{
|
||||||
DataPropertyName = "Cantidad",
|
DataPropertyName = "Cantidad",
|
||||||
HeaderText = "Cantidad"
|
HeaderText = "Cantidad",
|
||||||
|
Name = "Cantidad"
|
||||||
|
|
||||||
});
|
});
|
||||||
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
|
||||||
{
|
{
|
||||||
DataPropertyName = "PrecioUnitario",
|
DataPropertyName = "PrecioUnitario",
|
||||||
HeaderText = "PrecioUnitariod"
|
HeaderText = "PrecioUnitario",
|
||||||
|
Name = "PrecioUnitario"
|
||||||
});
|
});
|
||||||
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
dgvDetalles.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
{
|
{
|
||||||
DataPropertyName = "Subtotal",
|
DataPropertyName = "Subtotal",
|
||||||
HeaderText = "Subtotal"
|
HeaderText = "Subtotal",
|
||||||
|
Name = "Subtotal"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
private void ActualizarGrillaLotes(ReadOnlyCollection<Lote> lotes)
|
private void ActualizarGrillaDetalles(ReadOnlyCollection<DetalleFactura> detalles)
|
||||||
{
|
{
|
||||||
dataGridView2.DataSource = null;
|
dgvDetalles.DataSource = null;
|
||||||
if (lotes.Any())
|
if (detalles.Any())
|
||||||
{
|
{
|
||||||
var loteDatos = lotes.Select(lote => new
|
var loteDatos = detalles.Select(detalle => new
|
||||||
{
|
{
|
||||||
Producto = lote.NombreProducto,
|
Producto = detalle.Producto.Nombre,
|
||||||
Cantidad = lote.CantidadDeProductos,
|
Cantidad = detalle.Cantidad,
|
||||||
Subtotal = lote.Subtotal,
|
Subtotal = detalle.Subtotal,
|
||||||
PrecioUnitario = lote.PrecioUnitario,
|
PrecioUnitario = detalle.Producto.Precio,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
dataGridView2.DataSource = loteDatos;
|
dgvDetalles.DataSource = loteDatos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
private void dgvFacturas_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.RowIndex >= 0)
|
if (e.RowIndex >= 0)
|
||||||
{
|
{
|
||||||
var selectedFactura = (Factura)dataGridView1.Rows[e.RowIndex].DataBoundItem;
|
var selectedFactura = (Factura)dgvFacturas.Rows[e.RowIndex].DataBoundItem;
|
||||||
var lotes = ControladoraLotes.Instance.ListarPorFacturaId(selectedFactura.Id);
|
var detalles = ControladoraFacturas.Instance.ListarDetallesFactura(selectedFactura);
|
||||||
ActualizarGrillaLotes(lotes);
|
ActualizarGrillaDetalles(detalles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
105
Vista/FrmProducto.Designer.cs
generated
105
Vista/FrmProducto.Designer.cs
generated
@@ -33,11 +33,11 @@
|
|||||||
label3 = new Label();
|
label3 = new Label();
|
||||||
label4 = new Label();
|
label4 = new Label();
|
||||||
label5 = new Label();
|
label5 = new Label();
|
||||||
numericUpDown1 = new NumericUpDown();
|
numId = new NumericUpDown();
|
||||||
textBox1 = new TextBox();
|
txtNombre = new TextBox();
|
||||||
numericUpDown2 = new NumericUpDown();
|
numPrecio = new NumericUpDown();
|
||||||
checkBox1 = new CheckBox();
|
checkHabilitado = new CheckBox();
|
||||||
comboBox1 = new ComboBox();
|
cmbCategoria = new ComboBox();
|
||||||
btnacept = new Button();
|
btnacept = new Button();
|
||||||
btncancel = new Button();
|
btncancel = new Button();
|
||||||
label6 = new Label();
|
label6 = new Label();
|
||||||
@@ -46,8 +46,8 @@
|
|||||||
dgvProveedor = new DataGridView();
|
dgvProveedor = new DataGridView();
|
||||||
btnaddProveedor = new Button();
|
btnaddProveedor = new Button();
|
||||||
btnrmProveedor = new Button();
|
btnrmProveedor = new Button();
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
|
((System.ComponentModel.ISupportInitialize)numId).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown2).BeginInit();
|
((System.ComponentModel.ISupportInitialize)numPrecio).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dgvProveedorAñadido).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dgvProveedorAñadido).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dgvProveedor).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dgvProveedor).BeginInit();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
@@ -97,47 +97,46 @@
|
|||||||
label5.TabIndex = 4;
|
label5.TabIndex = 4;
|
||||||
label5.Text = "Categoria";
|
label5.Text = "Categoria";
|
||||||
//
|
//
|
||||||
// numericUpDown1
|
// numId
|
||||||
//
|
//
|
||||||
numericUpDown1.Location = new Point(70, 12);
|
numId.Location = new Point(70, 12);
|
||||||
numericUpDown1.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
|
numId.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
|
||||||
numericUpDown1.Name = "numericUpDown1";
|
numId.Name = "numId";
|
||||||
numericUpDown1.Size = new Size(120, 23);
|
numId.Size = new Size(120, 23);
|
||||||
numericUpDown1.TabIndex = 5;
|
numId.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// textBox1
|
// txtNombre
|
||||||
//
|
//
|
||||||
textBox1.Location = new Point(71, 40);
|
txtNombre.Location = new Point(71, 40);
|
||||||
textBox1.Name = "textBox1";
|
txtNombre.Name = "txtNombre";
|
||||||
textBox1.Size = new Size(120, 23);
|
txtNombre.Size = new Size(120, 23);
|
||||||
textBox1.TabIndex = 6;
|
txtNombre.TabIndex = 6;
|
||||||
//
|
//
|
||||||
// numericUpDown2
|
// numPrecio
|
||||||
//
|
//
|
||||||
numericUpDown2.Location = new Point(71, 72);
|
numPrecio.Location = new Point(71, 72);
|
||||||
numericUpDown2.Maximum = new decimal(new int[] { 100000000, 0, 0, 0 });
|
numPrecio.Maximum = new decimal(new int[] { 100000000, 0, 0, 0 });
|
||||||
numericUpDown2.Name = "numericUpDown2";
|
numPrecio.Name = "numPrecio";
|
||||||
numericUpDown2.Size = new Size(120, 23);
|
numPrecio.Size = new Size(120, 23);
|
||||||
numericUpDown2.TabIndex = 7;
|
numPrecio.TabIndex = 7;
|
||||||
//
|
//
|
||||||
// checkBox1
|
// checkHabilitado
|
||||||
//
|
//
|
||||||
checkBox1.AutoSize = true;
|
checkHabilitado.AutoSize = true;
|
||||||
checkBox1.Location = new Point(71, 112);
|
checkHabilitado.Location = new Point(71, 112);
|
||||||
checkBox1.Name = "checkBox1";
|
checkHabilitado.Name = "checkHabilitado";
|
||||||
checkBox1.Size = new Size(15, 14);
|
checkHabilitado.Size = new Size(15, 14);
|
||||||
checkBox1.TabIndex = 8;
|
checkHabilitado.TabIndex = 8;
|
||||||
checkBox1.UseVisualStyleBackColor = true;
|
checkHabilitado.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// comboBox1
|
// cmbCategoria
|
||||||
//
|
//
|
||||||
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
|
cmbCategoria.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||||
comboBox1.FormattingEnabled = true;
|
cmbCategoria.FormattingEnabled = true;
|
||||||
comboBox1.Location = new Point(70, 134);
|
cmbCategoria.Location = new Point(70, 134);
|
||||||
comboBox1.Name = "comboBox1";
|
cmbCategoria.Name = "cmbCategoria";
|
||||||
comboBox1.Size = new Size(121, 23);
|
cmbCategoria.Size = new Size(121, 23);
|
||||||
comboBox1.TabIndex = 9;
|
cmbCategoria.TabIndex = 9;
|
||||||
comboBox1.SelectedIndexChanged += comboBox1_SelectedIndexChanged;
|
|
||||||
//
|
//
|
||||||
// btnacept
|
// btnacept
|
||||||
//
|
//
|
||||||
@@ -147,7 +146,7 @@
|
|||||||
btnacept.TabIndex = 10;
|
btnacept.TabIndex = 10;
|
||||||
btnacept.Text = "Aceptar";
|
btnacept.Text = "Aceptar";
|
||||||
btnacept.UseVisualStyleBackColor = true;
|
btnacept.UseVisualStyleBackColor = true;
|
||||||
btnacept.Click += button1_Click;
|
btnacept.Click += btnacept_Click;
|
||||||
//
|
//
|
||||||
// btncancel
|
// btncancel
|
||||||
//
|
//
|
||||||
@@ -157,7 +156,7 @@
|
|||||||
btncancel.TabIndex = 11;
|
btncancel.TabIndex = 11;
|
||||||
btncancel.Text = "Cancelar";
|
btncancel.Text = "Cancelar";
|
||||||
btncancel.UseVisualStyleBackColor = true;
|
btncancel.UseVisualStyleBackColor = true;
|
||||||
btncancel.Click += button2_Click;
|
btncancel.Click += btnCerrar;
|
||||||
//
|
//
|
||||||
// label6
|
// label6
|
||||||
//
|
//
|
||||||
@@ -235,11 +234,11 @@
|
|||||||
Controls.Add(label6);
|
Controls.Add(label6);
|
||||||
Controls.Add(btncancel);
|
Controls.Add(btncancel);
|
||||||
Controls.Add(btnacept);
|
Controls.Add(btnacept);
|
||||||
Controls.Add(comboBox1);
|
Controls.Add(cmbCategoria);
|
||||||
Controls.Add(checkBox1);
|
Controls.Add(checkHabilitado);
|
||||||
Controls.Add(numericUpDown2);
|
Controls.Add(numPrecio);
|
||||||
Controls.Add(textBox1);
|
Controls.Add(txtNombre);
|
||||||
Controls.Add(numericUpDown1);
|
Controls.Add(numId);
|
||||||
Controls.Add(label5);
|
Controls.Add(label5);
|
||||||
Controls.Add(label4);
|
Controls.Add(label4);
|
||||||
Controls.Add(label3);
|
Controls.Add(label3);
|
||||||
@@ -247,8 +246,8 @@
|
|||||||
Controls.Add(label1);
|
Controls.Add(label1);
|
||||||
Name = "FrmProducto";
|
Name = "FrmProducto";
|
||||||
Text = "Producto";
|
Text = "Producto";
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
|
((System.ComponentModel.ISupportInitialize)numId).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown2).EndInit();
|
((System.ComponentModel.ISupportInitialize)numPrecio).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dgvProveedorAñadido).EndInit();
|
((System.ComponentModel.ISupportInitialize)dgvProveedorAñadido).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dgvProveedor).EndInit();
|
((System.ComponentModel.ISupportInitialize)dgvProveedor).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
@@ -262,11 +261,11 @@
|
|||||||
private Label label3;
|
private Label label3;
|
||||||
private Label label4;
|
private Label label4;
|
||||||
private Label label5;
|
private Label label5;
|
||||||
private NumericUpDown numericUpDown1;
|
private NumericUpDown numId;
|
||||||
private TextBox textBox1;
|
private TextBox txtNombre;
|
||||||
private NumericUpDown numericUpDown2;
|
private NumericUpDown numPrecio;
|
||||||
private CheckBox checkBox1;
|
private CheckBox checkHabilitado;
|
||||||
private ComboBox comboBox1;
|
private ComboBox cmbCategoria;
|
||||||
private Button btnacept;
|
private Button btnacept;
|
||||||
private Button btncancel;
|
private Button btncancel;
|
||||||
private Label label6;
|
private Label label6;
|
||||||
|
|||||||
@@ -16,43 +16,44 @@ namespace Vista
|
|||||||
public partial class FrmProducto : Form
|
public partial class FrmProducto : Form
|
||||||
{
|
{
|
||||||
private Producto nuevoproducto = new Producto();
|
private Producto nuevoproducto = new Producto();
|
||||||
private Producto _producto;
|
private bool mod = false;
|
||||||
private bool _esModificacion;
|
public FrmProducto(Producto? producto = null)
|
||||||
|
|
||||||
public FrmProducto()
|
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
CargarCategorias();
|
CargarCategorias();
|
||||||
CargarTabla();
|
CargarTabla();
|
||||||
|
if (producto != null)
|
||||||
|
{
|
||||||
|
nuevoproducto = producto;
|
||||||
|
mod = true;
|
||||||
|
InicializarFormulario();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FrmProducto(Producto producto = null, bool esModificacion = false)
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
_producto = producto ?? new Producto();
|
|
||||||
_esModificacion = esModificacion;
|
|
||||||
CargarCategorias();
|
|
||||||
CargarTabla();
|
|
||||||
InicializarFormulario();
|
|
||||||
}
|
|
||||||
private void InicializarFormulario()
|
private void InicializarFormulario()
|
||||||
{
|
{
|
||||||
if (_esModificacion && _producto != null)
|
numId.Value = nuevoproducto.Id;
|
||||||
{
|
numId.Enabled = false;
|
||||||
numericUpDown1.Value = _producto.Id;
|
txtNombre.Text = nuevoproducto.Nombre;
|
||||||
numericUpDown1.Enabled = false;
|
numPrecio.Value = (decimal)nuevoproducto.Precio;
|
||||||
textBox1.Text = _producto.Nombre;
|
checkHabilitado.Checked = nuevoproducto.Habilitado;
|
||||||
numericUpDown2.Value = (decimal)_producto.Precio;
|
cmbCategoria.SelectedValue = nuevoproducto.Categoria.Id;
|
||||||
checkBox1.Checked = _producto.Habilitado;
|
dgvProveedorAñadido.DataSource = nuevoproducto.ListarProveedores();
|
||||||
comboBox1.SelectedValue = _producto.Categoria.Id;
|
|
||||||
dgvProveedorAñadido.DataSource = _producto.ListarProveedores();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CargarTabla()
|
private void CargarTabla()
|
||||||
{
|
{
|
||||||
dgvProveedor.DataSource = null;
|
dgvProveedor.DataSource = null;
|
||||||
dgvProveedor.DataSource = ControladoraProveedores.Instance.Listar();
|
dgvProveedor.DataSource = ControladoraProveedores.Instance.Listar();
|
||||||
|
if (mod)
|
||||||
|
{
|
||||||
|
foreach (Proveedor prov in ControladoraProductos.Instance.ListarProveedores(nuevoproducto))
|
||||||
|
{
|
||||||
|
nuevoproducto.AñadirProveedor(prov);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CargarCategorias()
|
private void CargarCategorias()
|
||||||
@@ -61,58 +62,37 @@ namespace Vista
|
|||||||
var categorias = ControladoraCategorias.Instance.Listar();
|
var categorias = ControladoraCategorias.Instance.Listar();
|
||||||
|
|
||||||
// Configurar el ComboBox para categorías
|
// Configurar el ComboBox para categorías
|
||||||
comboBox1.DisplayMember = "Descripcion"; // Mostrar la propiedad Descripcion
|
cmbCategoria.DisplayMember = "Descripcion"; // Mostrar la propiedad Descripcion
|
||||||
comboBox1.ValueMember = "Id"; // Usar la propiedad Id como valor
|
cmbCategoria.ValueMember = "Id"; // Usar la propiedad Id como valor
|
||||||
|
|
||||||
// Asignar la lista de categorías al ComboBox
|
// Asignar la lista de categorías al ComboBox
|
||||||
comboBox1.DataSource = categorias;
|
cmbCategoria.DataSource = categorias;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CargarDatosProducto()
|
|
||||||
{
|
|
||||||
if (_producto != null)
|
|
||||||
{
|
|
||||||
numericUpDown1.Value = _producto.Id;
|
|
||||||
textBox1.Text = _producto.Nombre;
|
|
||||||
numericUpDown2.Value = Convert.ToDecimal(_producto.Precio);
|
|
||||||
checkBox1.Checked = _producto.Habilitado;
|
|
||||||
comboBox1.SelectedItem = _producto.Categoria;
|
|
||||||
|
|
||||||
if (_esModificacion)
|
|
||||||
{
|
|
||||||
numericUpDown1.Enabled = false; // Bloquear el ID
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool ValidarDatos()
|
private bool ValidarDatos()
|
||||||
{
|
{
|
||||||
string devolucion = "";
|
string devolucion = "";
|
||||||
|
|
||||||
// Validar Nombre
|
// Validar Nombre
|
||||||
if (string.IsNullOrEmpty(textBox1.Text))
|
if (string.IsNullOrEmpty(txtNombre.Text)) { devolucion += "El nombre del producto no puede estar vacío.\n"; }
|
||||||
{
|
if (txtNombre.Text.Length > 100) { devolucion += "El nombre del producto no puede superar los 100 caracteres.\n"; }
|
||||||
devolucion += "El nombre del producto no puede estar vacío.\n";
|
if (numId.Value <= 0) { devolucion += "NO es un cuit válido"; };
|
||||||
}
|
|
||||||
else if (textBox1.Text.Length > 100) // Limite de caracteres
|
|
||||||
{
|
|
||||||
devolucion += "El nombre del producto no puede superar los 100 caracteres.\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validar Precio
|
// Validar Precio
|
||||||
if (numericUpDown2.Value <= 0)
|
if (numPrecio.Value <= 0)
|
||||||
{
|
{
|
||||||
devolucion += "El precio debe ser mayor a cero.\n";
|
devolucion += "El precio debe ser mayor a cero.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validar ID (Si es necesario)
|
// Validar ID (Si es necesario)
|
||||||
if (!_esModificacion && ControladoraProductos.Instance.Listar().Any(p => p.Id == (int)numericUpDown1.Value))
|
if (!mod && ControladoraProductos.Instance.Listar().Any(p => p.Id == (int)numId.Value))
|
||||||
{
|
{
|
||||||
devolucion += "Ya existe un producto con el mismo ID.\n";
|
devolucion += "Ya existe un producto con el mismo ID.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validar Categoría Seleccionada
|
// Validar Categoría Seleccionada
|
||||||
if (comboBox1.SelectedItem == null)
|
if (cmbCategoria.SelectedItem == null)
|
||||||
{
|
{
|
||||||
devolucion += "Debe seleccionar una categoría.\n";
|
devolucion += "Debe seleccionar una categoría.\n";
|
||||||
}
|
}
|
||||||
@@ -128,24 +108,24 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void btnacept_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (ValidarDatos())
|
if (ValidarDatos())
|
||||||
{
|
{
|
||||||
_producto.Nombre = textBox1.Text;
|
nuevoproducto.Nombre = txtNombre.Text;
|
||||||
_producto.Precio = (double)numericUpDown2.Value;
|
nuevoproducto.Precio = (double)numPrecio.Value;
|
||||||
_producto.Habilitado = checkBox1.Checked;
|
nuevoproducto.Habilitado = checkHabilitado.Checked;
|
||||||
_producto.Categoria = (Categoria)comboBox1.SelectedItem;
|
nuevoproducto.Categoria = (Categoria)cmbCategoria.SelectedItem;
|
||||||
|
|
||||||
string mensaje;
|
string mensaje;
|
||||||
if (_esModificacion)
|
if (mod)
|
||||||
{
|
{
|
||||||
mensaje = ControladoraProductos.Instance.Modificar(_producto);
|
mensaje = ControladoraProductos.Instance.Modificar(nuevoproducto);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_producto.Id = (int)numericUpDown1.Value;
|
nuevoproducto.Id = (int)numId.Value;
|
||||||
mensaje = ControladoraProductos.Instance.Añadir(_producto);
|
mensaje = ControladoraProductos.Instance.Añadir(nuevoproducto);
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
@@ -153,7 +133,7 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button2_Click(object sender, EventArgs e)
|
private void btnCerrar(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
@@ -172,9 +152,15 @@ namespace Vista
|
|||||||
foreach (DataGridViewRow selectedRow in dgvProveedor.SelectedRows)
|
foreach (DataGridViewRow selectedRow in dgvProveedor.SelectedRows)
|
||||||
{
|
{
|
||||||
Proveedor proveedor = (Proveedor)selectedRow.DataBoundItem;
|
Proveedor proveedor = (Proveedor)selectedRow.DataBoundItem;
|
||||||
_producto.AñadirProveedor(proveedor);
|
var checkcolicion = nuevoproducto.ListarProveedores().Contains(proveedor);
|
||||||
|
if (checkcolicion)
|
||||||
|
{
|
||||||
|
MessageBox.Show("El proveedor ya fue cargado");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
nuevoproducto.AñadirProveedor(proveedor);
|
||||||
dgvProveedorAñadido.DataSource = null;
|
dgvProveedorAñadido.DataSource = null;
|
||||||
dgvProveedorAñadido.DataSource = _producto.ListarProveedores();
|
dgvProveedorAñadido.DataSource = nuevoproducto.ListarProveedores();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -197,9 +183,9 @@ namespace Vista
|
|||||||
foreach (DataGridViewRow selectedRow in dgvProveedorAñadido.SelectedRows)
|
foreach (DataGridViewRow selectedRow in dgvProveedorAñadido.SelectedRows)
|
||||||
{
|
{
|
||||||
Proveedor proveedor = (Proveedor)selectedRow.DataBoundItem;
|
Proveedor proveedor = (Proveedor)selectedRow.DataBoundItem;
|
||||||
dgvProveedorAñadido.Rows.Remove(selectedRow);
|
nuevoproducto.EliminarProveedor(proveedor);
|
||||||
Proveedor proveedoreliminar = _producto.ListarProveedores().FirstOrDefault(x => x.Cuit == proveedor.Cuit);
|
dgvProveedorAñadido.DataSource = null;
|
||||||
_producto.EliminarProveedor(proveedoreliminar);
|
dgvProveedorAñadido.DataSource = nuevoproducto.ListarProveedores();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -212,5 +198,6 @@ namespace Vista
|
|||||||
MessageBox.Show($"Error al eliminar proveedor: {ex.Message}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
MessageBox.Show($"Error al eliminar proveedor: {ex.Message}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
45
Vista/FrmProductoMod.Designer.cs
generated
45
Vista/FrmProductoMod.Designer.cs
generated
@@ -1,45 +0,0 @@
|
|||||||
namespace Vista
|
|
||||||
{
|
|
||||||
partial class FrmProductoMod
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Required designer variable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
SuspendLayout();
|
|
||||||
//
|
|
||||||
// FrmProductoMod
|
|
||||||
//
|
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
|
||||||
ClientSize = new Size(654, 299);
|
|
||||||
Name = "FrmProductoMod";
|
|
||||||
Text = "Form1";
|
|
||||||
ResumeLayout(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Vista
|
|
||||||
{
|
|
||||||
public partial class FrmProductoMod : Form
|
|
||||||
{
|
|
||||||
public FrmProductoMod()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
</root>
|
|
||||||
22
Vista/FrmProductos.Designer.cs
generated
22
Vista/FrmProductos.Designer.cs
generated
@@ -29,7 +29,7 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
groupBox1 = new GroupBox();
|
groupBox1 = new GroupBox();
|
||||||
button2 = new Button();
|
btnModificar = new Button();
|
||||||
label3 = new Label();
|
label3 = new Label();
|
||||||
dgvProveedores = new DataGridView();
|
dgvProveedores = new DataGridView();
|
||||||
label2 = new Label();
|
label2 = new Label();
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
//
|
//
|
||||||
// groupBox1
|
// groupBox1
|
||||||
//
|
//
|
||||||
groupBox1.Controls.Add(button2);
|
groupBox1.Controls.Add(btnModificar);
|
||||||
groupBox1.Controls.Add(label3);
|
groupBox1.Controls.Add(label3);
|
||||||
groupBox1.Controls.Add(dgvProveedores);
|
groupBox1.Controls.Add(dgvProveedores);
|
||||||
groupBox1.Controls.Add(label2);
|
groupBox1.Controls.Add(label2);
|
||||||
@@ -60,15 +60,15 @@
|
|||||||
groupBox1.TabIndex = 5;
|
groupBox1.TabIndex = 5;
|
||||||
groupBox1.TabStop = false;
|
groupBox1.TabStop = false;
|
||||||
//
|
//
|
||||||
// button2
|
// btnModificar
|
||||||
//
|
//
|
||||||
button2.Location = new Point(87, 263);
|
btnModificar.Location = new Point(87, 263);
|
||||||
button2.Name = "button2";
|
btnModificar.Name = "btnModificar";
|
||||||
button2.Size = new Size(75, 23);
|
btnModificar.Size = new Size(75, 23);
|
||||||
button2.TabIndex = 11;
|
btnModificar.TabIndex = 11;
|
||||||
button2.Text = "Modificar";
|
btnModificar.Text = "Modificar";
|
||||||
button2.UseVisualStyleBackColor = true;
|
btnModificar.UseVisualStyleBackColor = true;
|
||||||
button2.Click += button2_Click;
|
btnModificar.Click += btnModificar_Click;
|
||||||
//
|
//
|
||||||
// label3
|
// label3
|
||||||
//
|
//
|
||||||
@@ -195,6 +195,6 @@
|
|||||||
private Label label1;
|
private Label label1;
|
||||||
private DataGridView dgvProveedores;
|
private DataGridView dgvProveedores;
|
||||||
private Label label3;
|
private Label label3;
|
||||||
private Button button2;
|
private Button btnModificar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ namespace Vista
|
|||||||
var colId = new DataGridViewTextBoxColumn
|
var colId = new DataGridViewTextBoxColumn
|
||||||
{
|
{
|
||||||
DataPropertyName = "Id",
|
DataPropertyName = "Id",
|
||||||
HeaderText = "ID",
|
HeaderText = "Id",
|
||||||
Name = "Id"
|
Name = "Id"
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -82,15 +82,6 @@ namespace Vista
|
|||||||
var categorias = ControladoraCategorias.Instance.Listar();
|
var categorias = ControladoraCategorias.Instance.Listar();
|
||||||
dgvCategorias.DataSource = categorias;
|
dgvCategorias.DataSource = categorias;
|
||||||
|
|
||||||
if (dgvProductos.SelectedRows.Count > 0)
|
|
||||||
{
|
|
||||||
Producto producto = new Producto
|
|
||||||
{
|
|
||||||
Id = int.Parse(dgvProductos.SelectedRows[0].Cells["Id"].Value.ToString()),
|
|
||||||
};
|
|
||||||
dgvProveedores.DataSource = ControladoraProductos.Instance.ListarProveedores(producto);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Obtener la lista de productos y proyectar los datos
|
// Obtener la lista de productos y proyectar los datos
|
||||||
var productos = ControladoraProductos.Instance.Listar()
|
var productos = ControladoraProductos.Instance.Listar()
|
||||||
.Select(p => new
|
.Select(p => new
|
||||||
@@ -166,18 +157,10 @@ namespace Vista
|
|||||||
private void dgvProductos_CellClick(object sender, DataGridViewCellEventArgs e)
|
private void dgvProductos_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||||
{
|
{
|
||||||
if (dgvProductos.SelectedRows.Count == 0) return;
|
if (dgvProductos.SelectedRows.Count == 0) return;
|
||||||
|
ActualizarGrillaProveedores();
|
||||||
if (dgvProductos.SelectedRows.Count > 0)
|
|
||||||
{
|
|
||||||
Producto producto = new Producto
|
|
||||||
{
|
|
||||||
Id = Convert.ToInt32(dgvProductos.SelectedRows[0].Cells["Id"].Value.ToString()),
|
|
||||||
};
|
|
||||||
dgvProveedores.DataSource = ControladoraProductos.Instance.ListarProveedores(producto);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button2_Click(object sender, EventArgs e)
|
private void btnModificar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (dgvProductos.SelectedRows.Count < 1)
|
if (dgvProductos.SelectedRows.Count < 1)
|
||||||
{
|
{
|
||||||
@@ -185,18 +168,34 @@ namespace Vista
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Producto producto = new Producto()
|
Producto producto = new Producto
|
||||||
{
|
{
|
||||||
Id = Convert.ToInt32(dgvProductos.SelectedRows[0].Cells["Id"].Value),
|
Id = Convert.ToInt32(dgvProductos.SelectedRows[0].Cells["Id"].Value),
|
||||||
Nombre = dgvProductos.SelectedRows[0].Cells["Nombre"].Value.ToString(),
|
Nombre = dgvProductos.SelectedRows[0].Cells["Nombre"].Value as String,
|
||||||
Precio = Convert.ToInt32(dgvProductos.SelectedRows[0].Cells["Precio"].Value),
|
Precio = Convert.ToDouble(dgvProductos.SelectedRows[0].Cells["Precio"].Value),
|
||||||
Habilitado = Convert.ToBoolean(dgvProductos.SelectedRows[0].Cells["Habilitado"].Value),
|
Habilitado = Convert.ToBoolean(dgvProductos.SelectedRows[0].Cells["Habilitado"].Value),
|
||||||
Categoria = ControladoraCategorias.Instance.Listar().FirstOrDefault(c => c.Descripcion == dgvProductos.SelectedRows[0].Cells["Categoria"].Value.ToString())
|
Categoria = ControladoraCategorias.Instance.Listar().FirstOrDefault(c => c.Descripcion == dgvProductos.SelectedRows[0].Cells["Categoria"].Value.ToString())
|
||||||
};
|
};
|
||||||
|
foreach (Proveedor prov in ControladoraProductos.Instance.ListarProveedores(producto))
|
||||||
|
{
|
||||||
|
producto.AñadirProveedor(prov);
|
||||||
|
}
|
||||||
|
|
||||||
var formModificar = new FrmProducto(producto, true);
|
var formModificar = new FrmProducto(producto);
|
||||||
formModificar.ShowDialog();
|
formModificar.ShowDialog();
|
||||||
ActualizarGrilla();
|
ActualizarGrilla();
|
||||||
|
ActualizarGrillaProveedores();
|
||||||
|
}
|
||||||
|
private void ActualizarGrillaProveedores()
|
||||||
|
{
|
||||||
|
if (dgvProductos.SelectedRows.Count > 0)
|
||||||
|
{
|
||||||
|
Producto producto = new Producto
|
||||||
|
{
|
||||||
|
Id = Convert.ToInt32(dgvProductos.SelectedRows[0].Cells["Id"].Value),
|
||||||
|
};
|
||||||
|
dgvProveedores.DataSource = ControladoraProductos.Instance.ListarProveedores(producto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ namespace Vista
|
|||||||
if (string.IsNullOrEmpty(txtSocial.Text)) devolucion += "La razon social no puede ser nulo o vacio\n";
|
if (string.IsNullOrEmpty(txtSocial.Text)) devolucion += "La razon social no puede ser nulo o vacio\n";
|
||||||
if (txtSocial.Text.Length > 50) devolucion += "La razon social no puede superar los 50 chars\n";
|
if (txtSocial.Text.Length > 50) devolucion += "La razon social no puede superar los 50 chars\n";
|
||||||
if (string.IsNullOrEmpty(txtNombre.Text)) devolucion += "El Nombre no puede ser nulo o vacio\n";
|
if (string.IsNullOrEmpty(txtNombre.Text)) devolucion += "El Nombre no puede ser nulo o vacio\n";
|
||||||
|
if (numCuit.Value <= 0) { devolucion += "NO es un cuit válido"; };
|
||||||
|
|
||||||
if (devolucion == "")
|
if (devolucion == "")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,9 +8,6 @@
|
|||||||
<Compile Update="AddProducto.cs">
|
<Compile Update="AddProducto.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmProductoMod.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="FrmModProducto.cs">
|
<Compile Update="FrmModProducto.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
@@ -14,4 +14,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 = Vista
|
build_property.RootNamespace = Vista
|
||||||
build_property.ProjectDir = C:\Users\fedpo\Downloads\Final actual(2)\Final actual\Vista\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\Vista\
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -29,11 +29,11 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -67,14 +67,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -123,14 +123,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"projectName": "Informes",
|
"projectName": "Informes",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -148,8 +148,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -183,14 +183,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Modelo\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -208,8 +208,8 @@
|
|||||||
"net6.0": {
|
"net6.0": {
|
||||||
"targetAlias": "net6.0",
|
"targetAlias": "net6.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -243,14 +243,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj",
|
||||||
"projectName": "Vista",
|
"projectName": "Vista",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -268,14 +268,14 @@
|
|||||||
"net6.0-windows7.0": {
|
"net6.0-windows7.0": {
|
||||||
"targetAlias": "net6.0-windows",
|
"targetAlias": "net6.0-windows",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,11 +89,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj",
|
||||||
"projectName": "Vista",
|
"projectName": "Vista",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
@@ -111,14 +111,14 @@
|
|||||||
"net6.0-windows7.0": {
|
"net6.0-windows7.0": {
|
||||||
"targetAlias": "net6.0-windows",
|
"targetAlias": "net6.0-windows",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Controladora\\Controladora.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Controladora\\Controladora.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Informes\\Informes.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\Informes\\Informes.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "9xoX6uTcIEHTfvrkxbiNwJryG4RwhPq70t4kNMVhRSGHltn2QOmFl8cQl5qjiBimTD2Zuo2MWeKOifxctKIbdg==",
|
"dgSpecHash": "u13WwQGaPCePxL1JyQkpyhXuHxLQ97k9ktwi/o+F5Yk11GsR1/fPqs1rMKxJn/R3EX1AhoyxsvvOwv1MhGTPhQ==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final actual(2)\\Final actual\\Vista\\Vista.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\Vista\\Vista.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user