Compare commits
6 Commits
208ebd6148
...
informes
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a60ab0dcf | |||
|
|
be585cff1d | ||
| 5479db7c97 | |||
| 9ca365f6ac | |||
| 5b78d74e54 | |||
| 6092f6f08b |
119
Controladora/ControladoraLotes.cs
Normal file
119
Controladora/ControladoraLotes.cs
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
using Entidades;
|
||||||
|
using Modelo;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Controladora
|
||||||
|
{
|
||||||
|
public class ControladoraLotes : Singleton<ControladoraLotes>
|
||||||
|
{
|
||||||
|
public string Añadir(Lote t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Lote es nulo, falló la carga";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioLote.Instance.Add(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Lote con el ID {t.Id} se cargó correctamente" :
|
||||||
|
$"Falló la carga del Lote con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Modificar(Lote t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Lote es nulo, falló la modificación";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioLote.Instance.Mod(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Lote con el ID {t.Id} se modificó correctamente" :
|
||||||
|
$"Falló la modificación del Lote con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Eliminar(Lote t)
|
||||||
|
{
|
||||||
|
if (t == null) return "El Lote es nulo, falló la eliminación";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool resultado = RepositorioLote.Instance.Del(t);
|
||||||
|
return resultado ?
|
||||||
|
$"El Lote con el ID {t.Id} se eliminó correctamente" :
|
||||||
|
$"Falló la eliminación del Lote con el ID {t.Id}";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
return $"Ocurrió un error inesperado: {ex.Message}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string EliminarPorFacturaId(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
|
||||||
|
{
|
||||||
|
var lotes = RepositorioLote.Instance.Listar();
|
||||||
|
var lotesPorFactura = lotes.Where(lote => lote.Id == facturaId).ToList();
|
||||||
|
return new ReadOnlyCollection<Lote>(lotesPorFactura);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
throw new InvalidOperationException($"Ocurrió un error inesperado: {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReadOnlyCollection<Lote> Listar()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return RepositorioLote.Instance.Listar();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Captura cualquier excepción no prevista
|
||||||
|
throw new InvalidOperationException($"Ocurrió un error inesperado: {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -67,14 +67,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\Final\Controladora\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Controladora\
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
57f080c451434127a4f00cc492b37e2bfd251cea
|
<<<<<<< HEAD
|
||||||
|
07cbdde4e47ec2d3a6db548797ff84a15aa08946633217fe5ed64773b3cc8491
|
||||||
|
=======
|
||||||
|
a7a9c23e29aac78d8fc99e5e2578c73ffe3d4cba
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
|
|||||||
@@ -98,3 +98,40 @@ C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.
|
|||||||
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.pdb
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
C:\Users\fedpo\Downloads\Final\Final\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\Controla.1EE7A4DA.Up2Date
|
||||||
|
C:\Users\Nacho\Desktop\final actual\Controladora\obj\Debug\net6.0\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\ref\Controladora.dll
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Controladora.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Modelo.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Modelo.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\refint\Controladora.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\Controladora.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Controladora\obj\Debug\net6.0\ref\Controladora.dll
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
|
|||||||
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\\Final\\Controladora\\Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "7p6sil6BdpeseYcwxc5SCaMq8T52JX3Gb+/veDRUiSWMCYx7lYCBfkail6lsPgISGkw+p3jfoipb6TSmLcP1ZA==",
|
"dgSpecHash": "AVYTA+Cdyhg6wCEQPUiY9Zgnvl4qcFZo9nD09bdg1F+72oerfmmuZj274FC2KL/pXGSF1iqxwV37ZtH0RMkuXw==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -8,5 +8,21 @@ 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; }
|
||||||
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
|
public double PrecioUnitario
|
||||||
|
{
|
||||||
|
get { return Producto?.Precio ?? 0; }
|
||||||
|
}
|
||||||
|
public double Subtotal
|
||||||
|
{
|
||||||
|
get { return PrecioUnitario * CantidadDeProductos; }
|
||||||
|
}
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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\Final\Entidades\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Entidades\
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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": "iQ0EifyjZh9oi0Mdt+E3sLhf14CzOUsLKHxZb9iRQ9RyPF+gexIoaaQb71/6xZGzSye9KUJ3V77rlL+eNkHOdw==",
|
"dgSpecHash": "xYCKCMKm+oXscuoQamJhNB9nRxekBQBuz6IDgUB/8WpDnH3Ts7NVTClR8NJpQF10id2fDRpsOygcKaFzlcHs+w==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -14,10 +14,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modelo", "Modelo\Modelo.csp
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vista", "Vista\Vista.csproj", "{8C9E8090-5D8F-42AE-9813-C68D384C6863}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vista", "Vista\Vista.csproj", "{8C9E8090-5D8F-42AE-9813-C68D384C6863}"
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{6C83A4AB-C70D-4D4E-A879-5E960C4A103A} = {6C83A4AB-C70D-4D4E-A879-5E960C4A103A}
|
||||||
{7168B549-F229-4D49-8C53-AF1CEB9BBB6B} = {7168B549-F229-4D49-8C53-AF1CEB9BBB6B}
|
{7168B549-F229-4D49-8C53-AF1CEB9BBB6B} = {7168B549-F229-4D49-8C53-AF1CEB9BBB6B}
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Informes", "Informes\Informes.csproj", "{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Informes", "Informes\Informes.csproj", "{6C83A4AB-C70D-4D4E-A879-5E960C4A103A}"
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
{78A331E5-86D4-427E-AA45-5879F9E5E98B} = {78A331E5-86D4-427E-AA45-5879F9E5E98B}
|
{78A331E5-86D4-427E-AA45-5879F9E5E98B} = {78A331E5-86D4-427E-AA45-5879F9E5E98B}
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
|
|||||||
BIN
Informes/bin/Debug/net6.0/Entidades.dll
Normal file
BIN
Informes/bin/Debug/net6.0/Entidades.dll
Normal file
Binary file not shown.
BIN
Informes/bin/Debug/net6.0/Entidades.pdb
Normal file
BIN
Informes/bin/Debug/net6.0/Entidades.pdb
Normal file
Binary file not shown.
36
Informes/bin/Debug/net6.0/Informes.deps.json
Normal file
36
Informes/bin/Debug/net6.0/Informes.deps.json
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v6.0": {
|
||||||
|
"Informes/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Entidades": "1.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"Informes.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Entidades/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"Entidades.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"Informes/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Entidades/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Informes/bin/Debug/net6.0/Informes.dll
Normal file
BIN
Informes/bin/Debug/net6.0/Informes.dll
Normal file
Binary file not shown.
BIN
Informes/bin/Debug/net6.0/Informes.pdb
Normal file
BIN
Informes/bin/Debug/net6.0/Informes.pdb
Normal file
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\Final\Informes\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Informes\
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
59ca0345c28b4ca3e61ae3f6ff36103ebf42ff8f
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Informes.deps.json
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Informes.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Entidades.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\bin\Debug\net6.0\Entidades.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.AssemblyInfo.cs
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.csproj.CopyComplete
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\refint\Informes.dll
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\Informes.pdb
|
||||||
|
C:\Users\fedpo\Downloads\final actual\final actual\Informes\obj\Debug\net6.0\ref\Informes.dll
|
||||||
BIN
Informes/obj/Debug/net6.0/Informes.dll
Normal file
BIN
Informes/obj/Debug/net6.0/Informes.dll
Normal file
Binary file not shown.
BIN
Informes/obj/Debug/net6.0/Informes.pdb
Normal file
BIN
Informes/obj/Debug/net6.0/Informes.pdb
Normal file
Binary file not shown.
BIN
Informes/obj/Debug/net6.0/ref/Informes.dll
Normal file
BIN
Informes/obj/Debug/net6.0/ref/Informes.dll
Normal file
Binary file not shown.
BIN
Informes/obj/Debug/net6.0/refint/Informes.dll
Normal file
BIN
Informes/obj/Debug/net6.0/refint/Informes.dll
Normal file
Binary file not shown.
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\Informes.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Informes\\Informes.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\Informes.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj",
|
||||||
"projectName": "Informes",
|
"projectName": "Informes",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\Informes.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Informes\\Informes.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj",
|
||||||
"projectName": "Informes",
|
"projectName": "Informes",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\Informes.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "0ffqkIvM7yuJgCFn+/y+/ChgFN4B08rK4q2o0qfR2mjDbPa/G9BYCj14N+kvE/m1MgKnQvlnSGf4GAaYLGJr8w==",
|
"dgSpecHash": "INVcMeeXX3RoJw93Ye8x1Z2zKXKisJfXRKwLszX9TOBmcSCPTpBbhbgBcrnpGdxF2t/KPFVRZ2CzsnGvpyudOQ==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Informes\\Informes.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\Final\Modelo\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Modelo\
|
||||||
|
|||||||
Binary file not shown.
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "pw7jedCv+5Z7cgVNhso+oycHNF67O1XyYT4HUnm6ukG4VUtgCv2G8NovbqYT02ZK0eONOKuhRbtsHdtFWeVAnw==",
|
"dgSpecHash": "fmo2HUMoIdls9H8hGKaMGhIa7cJfQvw6whWqbWRluFrLP21caNqa5sNL0+c6k3hgxAvgJ8kJuQlkGFoq8UfLog==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
82
Vista/FrmFactura.Designer.cs
generated
82
Vista/FrmFactura.Designer.cs
generated
@@ -38,15 +38,23 @@
|
|||||||
label3 = new Label();
|
label3 = new Label();
|
||||||
label4 = new Label();
|
label4 = new Label();
|
||||||
cmbCliente = new ComboBox();
|
cmbCliente = new ComboBox();
|
||||||
|
dataGridView1 = new DataGridView();
|
||||||
|
dataGridView2 = new DataGridView();
|
||||||
|
numericUpDown1 = new NumericUpDown();
|
||||||
|
Unidades = new Label();
|
||||||
|
button3 = 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)dataGridView2).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// button1
|
// button1
|
||||||
//
|
//
|
||||||
button1.Location = new Point(12, 172);
|
button1.Location = new Point(12, 367);
|
||||||
button1.Name = "button1";
|
button1.Name = "button1";
|
||||||
button1.Size = new Size(75, 23);
|
button1.Size = new Size(113, 46);
|
||||||
button1.TabIndex = 0;
|
button1.TabIndex = 0;
|
||||||
button1.Text = "Aceptar";
|
button1.Text = "Aceptar";
|
||||||
button1.UseVisualStyleBackColor = true;
|
button1.UseVisualStyleBackColor = true;
|
||||||
@@ -54,9 +62,9 @@
|
|||||||
//
|
//
|
||||||
// button2
|
// button2
|
||||||
//
|
//
|
||||||
button2.Location = new Point(142, 172);
|
button2.Location = new Point(172, 367);
|
||||||
button2.Name = "button2";
|
button2.Name = "button2";
|
||||||
button2.Size = new Size(75, 23);
|
button2.Size = new Size(115, 46);
|
||||||
button2.TabIndex = 1;
|
button2.TabIndex = 1;
|
||||||
button2.Text = "Cancelar";
|
button2.Text = "Cancelar";
|
||||||
button2.UseVisualStyleBackColor = true;
|
button2.UseVisualStyleBackColor = true;
|
||||||
@@ -81,9 +89,11 @@
|
|||||||
//
|
//
|
||||||
// numtotal
|
// numtotal
|
||||||
//
|
//
|
||||||
|
numtotal.Enabled = false;
|
||||||
numtotal.Location = new Point(97, 57);
|
numtotal.Location = new Point(97, 57);
|
||||||
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.Size = new Size(120, 23);
|
numtotal.Size = new Size(120, 23);
|
||||||
numtotal.TabIndex = 4;
|
numtotal.TabIndex = 4;
|
||||||
//
|
//
|
||||||
@@ -102,6 +112,7 @@
|
|||||||
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
|
||||||
//
|
//
|
||||||
@@ -130,11 +141,64 @@
|
|||||||
cmbCliente.Size = new Size(121, 23);
|
cmbCliente.Size = new Size(121, 23);
|
||||||
cmbCliente.TabIndex = 10;
|
cmbCliente.TabIndex = 10;
|
||||||
//
|
//
|
||||||
|
// dataGridView1
|
||||||
|
//
|
||||||
|
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
|
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dataGridView1.Location = new Point(290, 12);
|
||||||
|
dataGridView1.Name = "dataGridView1";
|
||||||
|
dataGridView1.RowTemplate.Height = 25;
|
||||||
|
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dataGridView1.Size = new Size(324, 318);
|
||||||
|
dataGridView1.TabIndex = 11;
|
||||||
|
//
|
||||||
|
// dataGridView2
|
||||||
|
//
|
||||||
|
dataGridView2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
|
dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dataGridView2.Location = new Point(674, 12);
|
||||||
|
dataGridView2.Name = "dataGridView2";
|
||||||
|
dataGridView2.RowTemplate.Height = 25;
|
||||||
|
dataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dataGridView2.Size = new Size(290, 336);
|
||||||
|
dataGridView2.TabIndex = 12;
|
||||||
|
//
|
||||||
|
// numericUpDown1
|
||||||
|
//
|
||||||
|
numericUpDown1.Location = new Point(494, 359);
|
||||||
|
numericUpDown1.Name = "numericUpDown1";
|
||||||
|
numericUpDown1.Size = new Size(120, 23);
|
||||||
|
numericUpDown1.TabIndex = 13;
|
||||||
|
//
|
||||||
|
// Unidades
|
||||||
|
//
|
||||||
|
Unidades.AutoSize = true;
|
||||||
|
Unidades.Location = new Point(420, 367);
|
||||||
|
Unidades.Name = "Unidades";
|
||||||
|
Unidades.Size = new Size(56, 15);
|
||||||
|
Unidades.TabIndex = 14;
|
||||||
|
Unidades.Text = "Unidades";
|
||||||
|
//
|
||||||
|
// button3
|
||||||
|
//
|
||||||
|
button3.Location = new Point(420, 390);
|
||||||
|
button3.Name = "button3";
|
||||||
|
button3.Size = new Size(194, 36);
|
||||||
|
button3.TabIndex = 15;
|
||||||
|
button3.Text = "Añadir";
|
||||||
|
button3.UseVisualStyleBackColor = true;
|
||||||
|
button3.Click += button3_Click;
|
||||||
|
//
|
||||||
// FrmFactura
|
// FrmFactura
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(652, 205);
|
ClientSize = new Size(976, 450);
|
||||||
|
Controls.Add(button3);
|
||||||
|
Controls.Add(Unidades);
|
||||||
|
Controls.Add(numericUpDown1);
|
||||||
|
Controls.Add(dataGridView2);
|
||||||
|
Controls.Add(dataGridView1);
|
||||||
Controls.Add(cmbCliente);
|
Controls.Add(cmbCliente);
|
||||||
Controls.Add(label4);
|
Controls.Add(label4);
|
||||||
Controls.Add(label3);
|
Controls.Add(label3);
|
||||||
@@ -149,6 +213,9 @@
|
|||||||
Text = "Form1";
|
Text = "Form1";
|
||||||
((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)dataGridView2).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
@@ -165,5 +232,10 @@
|
|||||||
private Label label3;
|
private Label label3;
|
||||||
private Label label4;
|
private Label label4;
|
||||||
private ComboBox cmbCliente;
|
private ComboBox cmbCliente;
|
||||||
|
private DataGridView dataGridView1;
|
||||||
|
private DataGridView dataGridView2;
|
||||||
|
private NumericUpDown numericUpDown1;
|
||||||
|
private Label Unidades;
|
||||||
|
private Button button3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,16 +18,28 @@ namespace Vista
|
|||||||
{
|
{
|
||||||
private Factura factura;
|
private Factura factura;
|
||||||
private Cliente clienteSeleccionado;
|
private Cliente clienteSeleccionado;
|
||||||
|
private List<Lote> carrito; // Lista para almacenar los lotes en el carrito
|
||||||
|
|
||||||
public FrmFactura(Factura? factura = null)
|
public FrmFactura(Factura? factura = null)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
ConfigurarDataGridView();
|
||||||
|
ConfigurarDataGridViewCarrito(); // Nueva configuración del DataGridView para el carrito
|
||||||
|
ActualizarGrilla();
|
||||||
CargarClientes();
|
CargarClientes();
|
||||||
|
carrito = new List<Lote>(); // Inicializar la lista del carrito
|
||||||
|
|
||||||
cmbCliente.SelectedIndexChanged += comboBox1_SelectedIndexChanged;
|
cmbCliente.SelectedIndexChanged += comboBox1_SelectedIndexChanged;
|
||||||
|
|
||||||
// Para el primer control NumericUpDown
|
// Para el primer control NumericUpDown
|
||||||
numid.Maximum = int.MaxValue; // Esto permitirá IDs muy grandes
|
numid.Maximum = int.MaxValue; // Esto permitirá IDs muy grandes
|
||||||
|
|
||||||
// Para el segundo control NumericUpDown
|
// Para el segundo control NumericUpDown
|
||||||
numtotal.Maximum = decimal.MaxValue; // Esto permitirá totales muy grandes
|
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;
|
||||||
@@ -44,17 +56,68 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ConfigurarDataGridView()
|
||||||
|
{
|
||||||
|
dataGridView1.AutoGenerateColumns = false;
|
||||||
|
|
||||||
|
// Definir las columnas manualmente
|
||||||
|
dataGridView1.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "Id",
|
||||||
|
HeaderText = "ID",
|
||||||
|
Name = "Id"
|
||||||
|
});
|
||||||
|
dataGridView1.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "Nombre",
|
||||||
|
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",
|
||||||
|
Name = "Producto"
|
||||||
|
});
|
||||||
|
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "CantidadDeProductos",
|
||||||
|
HeaderText = "Cantidad",
|
||||||
|
Name = "CantidadDeProductos"
|
||||||
|
});
|
||||||
|
|
||||||
|
// Asignar la lista de lotes al DataGridView
|
||||||
|
dataGridView2.DataSource = carrito;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void ActualizarGrilla()
|
||||||
|
{
|
||||||
|
dataGridView1.DataSource = null;
|
||||||
|
dataGridView1.DataSource = ControladoraProductos.Instance.Listar();
|
||||||
|
}
|
||||||
|
|
||||||
private void CargarClientes()
|
private void CargarClientes()
|
||||||
{
|
{
|
||||||
// Obtener la lista de clientes desde el repositorio
|
// Obtener la lista de clientes desde el repositorio
|
||||||
ReadOnlyCollection<Cliente> clientes = RepositorioClientes.Instance.Listar();
|
ReadOnlyCollection<Cliente> clientes = RepositorioClientes.Instance.Listar();
|
||||||
|
|
||||||
|
|
||||||
// Asignar la lista de clientes como origen de datos para el ComboBox
|
// Asignar la lista de clientes como origen de datos para el ComboBox
|
||||||
cmbCliente.DataSource = clientes;
|
cmbCliente.DataSource = clientes;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Establecer la propiedad para mostrar el nombre del cliente en el ComboBox
|
// Establecer la propiedad para mostrar el nombre del cliente en el ComboBox
|
||||||
cmbCliente.DisplayMember = "NombreCompleto";
|
cmbCliente.DisplayMember = "NombreCompleto";
|
||||||
}
|
}
|
||||||
@@ -64,8 +127,6 @@ namespace Vista
|
|||||||
clienteSeleccionado = (Cliente)cmbCliente.SelectedItem;
|
clienteSeleccionado = (Cliente)cmbCliente.SelectedItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void CargarDatos()
|
private void CargarDatos()
|
||||||
{
|
{
|
||||||
numid.Value = factura.Id;
|
numid.Value = factura.Id;
|
||||||
@@ -77,16 +138,33 @@ namespace Vista
|
|||||||
{
|
{
|
||||||
cmbCliente.SelectedItem = factura.Cliente;
|
cmbCliente.SelectedItem = factura.Cliente;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recuperar los lotes asociados a la factura y actualizar el DataGridView
|
||||||
|
carrito = ControladoraLotes.Instance.ListarPorFacturaId(factura.Id).ToList() ?? new List<Lote>();
|
||||||
|
|
||||||
|
dataGridView2.DataSource = null;
|
||||||
|
dataGridView2.DataSource = carrito;
|
||||||
|
|
||||||
|
// Actualizar el total
|
||||||
|
ActualizarTotal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ActualizarTotal()
|
||||||
|
{
|
||||||
|
// Recalcular el total de la factura
|
||||||
|
decimal total = 0;
|
||||||
|
foreach (var lote in carrito)
|
||||||
|
{
|
||||||
|
total += (decimal)(lote.Producto.Precio * lote.CantidadDeProductos);
|
||||||
|
}
|
||||||
|
numtotal.Value = total;
|
||||||
|
}
|
||||||
|
|
||||||
private bool ValidarDatos()
|
private bool ValidarDatos()
|
||||||
{
|
{
|
||||||
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 (numtotal.Value <= 0) devolucion += "El total debe ser mayor que cero\n";
|
|
||||||
|
|
||||||
if (clienteSeleccionado == null) devolucion += "Debe seleccionar un cliente\n";
|
if (clienteSeleccionado == null) devolucion += "Debe seleccionar un cliente\n";
|
||||||
|
|
||||||
if (devolucion == "")
|
if (devolucion == "")
|
||||||
@@ -100,14 +178,20 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void button1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
// Validar los datos antes de continuar
|
||||||
if (ValidarDatos())
|
if (ValidarDatos())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// Verificar si la ID de la factura ya está en uso
|
||||||
|
if (RepositorioFactura.Instance.ExistePorId((int)numid.Value) && factura == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("La ID de la factura ya está en uso. Por favor, elija una ID diferente.", "ID en Uso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (factura == null)
|
if (factura == null)
|
||||||
{
|
{
|
||||||
// Crear una nueva factura con los datos proporcionados
|
// Crear una nueva factura con los datos proporcionados
|
||||||
@@ -116,10 +200,18 @@ namespace Vista
|
|||||||
Id = (int)numid.Value,
|
Id = (int)numid.Value,
|
||||||
Total = (double)numtotal.Value,
|
Total = (double)numtotal.Value,
|
||||||
Fecha = datepick.Value,
|
Fecha = datepick.Value,
|
||||||
Cliente = (Cliente)cmbCliente.SelectedItem,
|
Cliente = (Cliente)cmbCliente.SelectedItem
|
||||||
};
|
};
|
||||||
// Agregar la factura a la colección
|
// Agregar la factura a la colección
|
||||||
ControladoraFacturas.Instance.Añadir(factura);
|
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
|
else
|
||||||
{
|
{
|
||||||
@@ -130,6 +222,15 @@ namespace Vista
|
|||||||
factura.Cliente = (Cliente)cmbCliente.SelectedItem;
|
factura.Cliente = (Cliente)cmbCliente.SelectedItem;
|
||||||
// Modificar la factura en la colección
|
// Modificar la factura en la colección
|
||||||
ControladoraFacturas.Instance.Modificar(factura);
|
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);
|
MessageBox.Show("Operación realizada con éxito", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
Close();
|
Close();
|
||||||
@@ -153,5 +254,77 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
if (dataGridView1.CurrentRow != null)
|
||||||
|
{
|
||||||
|
// Deshabilitar los controles para ID, fecha, y cliente
|
||||||
|
numid.Enabled = false;
|
||||||
|
datepick.Enabled = false;
|
||||||
|
cmbCliente.Enabled = false;
|
||||||
|
|
||||||
|
// Crear un nuevo lote con los datos proporcionados
|
||||||
|
var lote = new Lote
|
||||||
|
{
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Función actualizada para validar los datos del lote
|
||||||
|
private bool ValidarDatosLote()
|
||||||
|
{
|
||||||
|
string devolucion = "";
|
||||||
|
|
||||||
|
// Validar la selección del producto
|
||||||
|
if (dataGridView1.CurrentRow == null)
|
||||||
|
devolucion += "Debe seleccionar un producto para añadir al lote\n";
|
||||||
|
|
||||||
|
// Validar la cantidad de productos
|
||||||
|
if (numericUpDown1.Value <= 0)
|
||||||
|
devolucion += "La cantidad de productos debe ser mayor que cero\n";
|
||||||
|
|
||||||
|
if (devolucion == "")
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show(devolucion, "Errores de Validación", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void datepick_ValueChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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>
|
||||||
|
|||||||
27
Vista/FrmFacturas.Designer.cs
generated
27
Vista/FrmFacturas.Designer.cs
generated
@@ -29,32 +29,49 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
groupBox1 = new GroupBox();
|
groupBox1 = new GroupBox();
|
||||||
|
dataGridView2 = new DataGridView();
|
||||||
dataGridView1 = new DataGridView();
|
dataGridView1 = new DataGridView();
|
||||||
BtnAdd = new Button();
|
BtnAdd = new Button();
|
||||||
groupBox1.SuspendLayout();
|
groupBox1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dataGridView2).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// groupBox1
|
// groupBox1
|
||||||
//
|
//
|
||||||
|
groupBox1.Controls.Add(dataGridView2);
|
||||||
groupBox1.Controls.Add(dataGridView1);
|
groupBox1.Controls.Add(dataGridView1);
|
||||||
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";
|
||||||
groupBox1.Size = new Size(776, 351);
|
groupBox1.Size = new Size(1041, 426);
|
||||||
groupBox1.TabIndex = 5;
|
groupBox1.TabIndex = 5;
|
||||||
groupBox1.TabStop = false;
|
groupBox1.TabStop = false;
|
||||||
//
|
//
|
||||||
|
// dataGridView2
|
||||||
|
//
|
||||||
|
dataGridView2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
|
dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dataGridView2.Location = new Point(623, 0);
|
||||||
|
dataGridView2.Name = "dataGridView2";
|
||||||
|
dataGridView2.RowTemplate.Height = 25;
|
||||||
|
dataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dataGridView2.Size = new Size(384, 426);
|
||||||
|
dataGridView2.TabIndex = 4;
|
||||||
|
//
|
||||||
// dataGridView1
|
// dataGridView1
|
||||||
//
|
//
|
||||||
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
dataGridView1.Location = new Point(6, 22);
|
dataGridView1.Location = new Point(6, 16);
|
||||||
dataGridView1.Name = "dataGridView1";
|
dataGridView1.Name = "dataGridView1";
|
||||||
dataGridView1.RowTemplate.Height = 25;
|
dataGridView1.RowTemplate.Height = 25;
|
||||||
dataGridView1.Size = new Size(594, 235);
|
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dataGridView1.Size = new Size(508, 241);
|
||||||
dataGridView1.TabIndex = 3;
|
dataGridView1.TabIndex = 3;
|
||||||
dataGridView1.CellBorderStyleChanged += dataGridView1_CellBorderStyleChanged;
|
dataGridView1.CellBorderStyleChanged += dataGridView1_CellBorderStyleChanged;
|
||||||
|
dataGridView1.CellClick += dataGridView1_CellClick;
|
||||||
|
dataGridView1.CellContentClick += dataGridView1_CellContentClick;
|
||||||
//
|
//
|
||||||
// BtnAdd
|
// BtnAdd
|
||||||
//
|
//
|
||||||
@@ -70,12 +87,13 @@
|
|||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(800, 450);
|
ClientSize = new Size(1068, 450);
|
||||||
Controls.Add(groupBox1);
|
Controls.Add(groupBox1);
|
||||||
Name = "FrmFacturas";
|
Name = "FrmFacturas";
|
||||||
Text = "Ventas";
|
Text = "Ventas";
|
||||||
WindowState = FormWindowState.Maximized;
|
WindowState = FormWindowState.Maximized;
|
||||||
groupBox1.ResumeLayout(false);
|
groupBox1.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)dataGridView2).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
@@ -85,5 +103,6 @@
|
|||||||
private GroupBox groupBox1;
|
private GroupBox groupBox1;
|
||||||
private DataGridView dataGridView1;
|
private DataGridView dataGridView1;
|
||||||
private Button BtnAdd;
|
private Button BtnAdd;
|
||||||
|
private DataGridView dataGridView2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
using Controladora;
|
using Controladora;
|
||||||
|
using Entidades;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
namespace Vista
|
namespace Vista
|
||||||
{
|
{
|
||||||
@@ -9,6 +11,8 @@ namespace Vista
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
ActualizarGrilla();
|
ActualizarGrilla();
|
||||||
|
dataGridView1.CellClick += dataGridView1_CellClick;
|
||||||
|
ConfigurarDataGridView2();
|
||||||
}
|
}
|
||||||
private void ActualizarGrilla()
|
private void ActualizarGrilla()
|
||||||
{
|
{
|
||||||
@@ -26,5 +30,60 @@ namespace Vista
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
private void ConfigurarDataGridView2()
|
||||||
|
{
|
||||||
|
dataGridView2.AutoGenerateColumns = false;
|
||||||
|
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "Producto",
|
||||||
|
HeaderText = "Producto"
|
||||||
|
});
|
||||||
|
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "Cantidad",
|
||||||
|
HeaderText = "Cantidad"
|
||||||
|
});
|
||||||
|
|
||||||
|
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "PrecioUnitario",
|
||||||
|
HeaderText = "PrecioUnitariod"
|
||||||
|
});
|
||||||
|
dataGridView2.Columns.Add(new DataGridViewTextBoxColumn
|
||||||
|
{
|
||||||
|
DataPropertyName = "Subtotal",
|
||||||
|
HeaderText = "Subtotal"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
private void ActualizarGrillaLotes(ReadOnlyCollection<Lote> lotes)
|
||||||
|
{
|
||||||
|
dataGridView2.DataSource = null;
|
||||||
|
if (lotes.Any())
|
||||||
|
{
|
||||||
|
var loteDatos = lotes.Select(lote => new
|
||||||
|
{
|
||||||
|
Producto = lote.NombreProducto,
|
||||||
|
Cantidad = lote.CantidadDeProductos,
|
||||||
|
Subtotal = lote.Subtotal,
|
||||||
|
PrecioUnitario = lote.PrecioUnitario,
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
dataGridView2.DataSource = loteDatos;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.RowIndex >= 0)
|
||||||
|
{
|
||||||
|
var selectedFactura = (Factura)dataGridView1.Rows[e.RowIndex].DataBoundItem;
|
||||||
|
var lotes = ControladoraLotes.Instance.ListarPorFacturaId(selectedFactura.Id);
|
||||||
|
ActualizarGrillaLotes(lotes);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
172
Vista/FrmInforme.Designer.cs
generated
Normal file
172
Vista/FrmInforme.Designer.cs
generated
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
namespace Vista
|
||||||
|
{
|
||||||
|
partial class FrmInforme
|
||||||
|
{
|
||||||
|
/// <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()
|
||||||
|
{
|
||||||
|
label1 = new Label();
|
||||||
|
label2 = new Label();
|
||||||
|
label3 = new Label();
|
||||||
|
dgvEmailTarget = new DataGridView();
|
||||||
|
txtEmailAddr = new TextBox();
|
||||||
|
txtEmailPass = new TextBox();
|
||||||
|
txtEmailTargetAdd = new TextBox();
|
||||||
|
btnAñadir = new Button();
|
||||||
|
btnGuardar = new Button();
|
||||||
|
btnEliminar = new Button();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvEmailTarget).BeginInit();
|
||||||
|
SuspendLayout();
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
label1.AutoSize = true;
|
||||||
|
label1.Location = new Point(12, 22);
|
||||||
|
label1.Name = "label1";
|
||||||
|
label1.Size = new Size(65, 15);
|
||||||
|
label1.TabIndex = 0;
|
||||||
|
label1.Text = "Email Addr";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
label2.AutoSize = true;
|
||||||
|
label2.Location = new Point(12, 48);
|
||||||
|
label2.Name = "label2";
|
||||||
|
label2.Size = new Size(62, 15);
|
||||||
|
label2.TabIndex = 1;
|
||||||
|
label2.Text = "Email Pass";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
label3.AutoSize = true;
|
||||||
|
label3.Location = new Point(12, 76);
|
||||||
|
label3.Name = "label3";
|
||||||
|
label3.Size = new Size(71, 15);
|
||||||
|
label3.TabIndex = 2;
|
||||||
|
label3.Text = "Email Target";
|
||||||
|
//
|
||||||
|
// dgvEmailTarget
|
||||||
|
//
|
||||||
|
dgvEmailTarget.AllowUserToAddRows = false;
|
||||||
|
dgvEmailTarget.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dgvEmailTarget.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||||
|
dgvEmailTarget.EnableHeadersVisualStyles = false;
|
||||||
|
dgvEmailTarget.Location = new Point(89, 76);
|
||||||
|
dgvEmailTarget.Name = "dgvEmailTarget";
|
||||||
|
dgvEmailTarget.RowTemplate.Height = 25;
|
||||||
|
dgvEmailTarget.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dgvEmailTarget.Size = new Size(240, 150);
|
||||||
|
dgvEmailTarget.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// txtEmailAddr
|
||||||
|
//
|
||||||
|
txtEmailAddr.Location = new Point(89, 18);
|
||||||
|
txtEmailAddr.Name = "txtEmailAddr";
|
||||||
|
txtEmailAddr.Size = new Size(202, 23);
|
||||||
|
txtEmailAddr.TabIndex = 4;
|
||||||
|
//
|
||||||
|
// txtEmailPass
|
||||||
|
//
|
||||||
|
txtEmailPass.Location = new Point(89, 47);
|
||||||
|
txtEmailPass.Name = "txtEmailPass";
|
||||||
|
txtEmailPass.PasswordChar = '*';
|
||||||
|
txtEmailPass.Size = new Size(202, 23);
|
||||||
|
txtEmailPass.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// txtEmailTargetAdd
|
||||||
|
//
|
||||||
|
txtEmailTargetAdd.Location = new Point(335, 76);
|
||||||
|
txtEmailTargetAdd.Name = "txtEmailTargetAdd";
|
||||||
|
txtEmailTargetAdd.Size = new Size(197, 23);
|
||||||
|
txtEmailTargetAdd.TabIndex = 6;
|
||||||
|
//
|
||||||
|
// btnAñadir
|
||||||
|
//
|
||||||
|
btnAñadir.Location = new Point(335, 105);
|
||||||
|
btnAñadir.Name = "btnAñadir";
|
||||||
|
btnAñadir.Size = new Size(75, 23);
|
||||||
|
btnAñadir.TabIndex = 7;
|
||||||
|
btnAñadir.Text = "Añadir";
|
||||||
|
btnAñadir.UseVisualStyleBackColor = true;
|
||||||
|
btnAñadir.Click += btnAñadir_Click;
|
||||||
|
//
|
||||||
|
// btnGuardar
|
||||||
|
//
|
||||||
|
btnGuardar.Location = new Point(89, 232);
|
||||||
|
btnGuardar.Name = "btnGuardar";
|
||||||
|
btnGuardar.Size = new Size(75, 23);
|
||||||
|
btnGuardar.TabIndex = 8;
|
||||||
|
btnGuardar.Text = "Guardar";
|
||||||
|
btnGuardar.UseVisualStyleBackColor = true;
|
||||||
|
btnGuardar.Click += btnGuardar_Click;
|
||||||
|
//
|
||||||
|
// btnEliminar
|
||||||
|
//
|
||||||
|
btnEliminar.Location = new Point(335, 134);
|
||||||
|
btnEliminar.Name = "btnEliminar";
|
||||||
|
btnEliminar.Size = new Size(75, 23);
|
||||||
|
btnEliminar.TabIndex = 9;
|
||||||
|
btnEliminar.Text = "Eliminar";
|
||||||
|
btnEliminar.UseVisualStyleBackColor = true;
|
||||||
|
btnEliminar.Click += btnEliminar_Click;
|
||||||
|
//
|
||||||
|
// FrmInforme
|
||||||
|
//
|
||||||
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
|
ClientSize = new Size(800, 450);
|
||||||
|
Controls.Add(btnEliminar);
|
||||||
|
Controls.Add(btnGuardar);
|
||||||
|
Controls.Add(btnAñadir);
|
||||||
|
Controls.Add(txtEmailTargetAdd);
|
||||||
|
Controls.Add(txtEmailPass);
|
||||||
|
Controls.Add(txtEmailAddr);
|
||||||
|
Controls.Add(dgvEmailTarget);
|
||||||
|
Controls.Add(label3);
|
||||||
|
Controls.Add(label2);
|
||||||
|
Controls.Add(label1);
|
||||||
|
Name = "FrmInforme";
|
||||||
|
Text = "Informes";
|
||||||
|
WindowState = FormWindowState.Maximized;
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvEmailTarget).EndInit();
|
||||||
|
ResumeLayout(false);
|
||||||
|
PerformLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private Label label1;
|
||||||
|
private Label label2;
|
||||||
|
private Label label3;
|
||||||
|
private DataGridView dgvEmailTarget;
|
||||||
|
private TextBox txtEmailAddr;
|
||||||
|
private TextBox txtEmailPass;
|
||||||
|
private TextBox txtEmailTargetAdd;
|
||||||
|
private Button btnAñadir;
|
||||||
|
private Button btnGuardar;
|
||||||
|
private Button btnEliminar;
|
||||||
|
}
|
||||||
|
}
|
||||||
103
Vista/FrmInforme.cs
Normal file
103
Vista/FrmInforme.cs
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
using Informes;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Vista
|
||||||
|
{
|
||||||
|
public partial class FrmInforme : Form
|
||||||
|
{
|
||||||
|
const string configpath = "settings.json";
|
||||||
|
public FrmInforme()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
if (!File.Exists(configpath))
|
||||||
|
{
|
||||||
|
string json = JsonSerializer.Serialize(new ConfigEmail { EmailAddr = "", EmailPass = "", EmailTarget = new List<String>() }, new JsonSerializerOptions { WriteIndented = true });
|
||||||
|
File.WriteAllText(configpath, json);
|
||||||
|
}
|
||||||
|
|
||||||
|
string jsonString = File.ReadAllText(configpath);
|
||||||
|
ConfigEmail config = JsonSerializer.Deserialize<ConfigEmail>(jsonString);
|
||||||
|
CargaDatos(config);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CargaDatos(ConfigEmail ce)
|
||||||
|
{
|
||||||
|
txtEmailAddr.Text = ce.EmailAddr;
|
||||||
|
txtEmailPass.Text = ce.EmailPass;
|
||||||
|
|
||||||
|
dgvEmailTarget.DataSource = null;
|
||||||
|
dgvEmailTarget.Columns.Add("EmailTarget", "EmailTarget");
|
||||||
|
|
||||||
|
// Agregar los datos al DataGridView
|
||||||
|
foreach (var str in ce.EmailTarget)
|
||||||
|
{
|
||||||
|
dgvEmailTarget.Rows.Add(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void btnGuardar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<string> emailTarget = new List<string>();
|
||||||
|
|
||||||
|
foreach (DataGridViewRow row in dgvEmailTarget.Rows)
|
||||||
|
{
|
||||||
|
if (row.Cells["EmailTarget"].Value != null)
|
||||||
|
{
|
||||||
|
emailTarget.Add(row.Cells["EmailTarget"].Value.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfigEmail config = new ConfigEmail
|
||||||
|
{
|
||||||
|
EmailAddr = txtEmailAddr.Text,
|
||||||
|
EmailPass = txtEmailPass.Text,
|
||||||
|
EmailTarget = emailTarget
|
||||||
|
};
|
||||||
|
|
||||||
|
string json = JsonSerializer.Serialize(config, new JsonSerializerOptions { WriteIndented = true });
|
||||||
|
File.WriteAllText(configpath, json);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnAñadir_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<string> emailTarget = new List<string>();
|
||||||
|
emailTarget.Add(txtEmailTargetAdd.Text);
|
||||||
|
foreach (DataGridViewRow row in dgvEmailTarget.Rows)
|
||||||
|
{
|
||||||
|
if (row.Cells["EmailTarget"].Value != null)
|
||||||
|
{
|
||||||
|
emailTarget.Add(row.Cells["EmailTarget"].Value.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Agregar los datos al DataGridView
|
||||||
|
dgvEmailTarget.Rows.Add(txtEmailTargetAdd.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnEliminar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (dgvEmailTarget.SelectedRows.Count > 0)
|
||||||
|
{
|
||||||
|
// Elimina la fila seleccionada
|
||||||
|
dgvEmailTarget.Rows.RemoveAt(dgvEmailTarget.SelectedRows[0].Index);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("Por favor, selecciona una fila para eliminar EmailTarget.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception) { throw; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
Vista/FrmInforme.resx
Normal file
120
Vista/FrmInforme.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?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>
|
||||||
21
Vista/PantallaPrincipal.Designer.cs
generated
21
Vista/PantallaPrincipal.Designer.cs
generated
@@ -37,12 +37,14 @@
|
|||||||
remitosToolStripMenuItem = new ToolStripMenuItem();
|
remitosToolStripMenuItem = new ToolStripMenuItem();
|
||||||
ordenDeCompraToolStripMenuItem = new ToolStripMenuItem();
|
ordenDeCompraToolStripMenuItem = new ToolStripMenuItem();
|
||||||
pedidosPresupuestoToolStripMenuItem = new ToolStripMenuItem();
|
pedidosPresupuestoToolStripMenuItem = new ToolStripMenuItem();
|
||||||
|
configToolStripMenuItem = new ToolStripMenuItem();
|
||||||
|
informesToolStripMenuItem = new ToolStripMenuItem();
|
||||||
menuStrip1.SuspendLayout();
|
menuStrip1.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// menuStrip1
|
// menuStrip1
|
||||||
//
|
//
|
||||||
menuStrip1.Items.AddRange(new ToolStripItem[] { gestionarToolStripMenuItem });
|
menuStrip1.Items.AddRange(new ToolStripItem[] { gestionarToolStripMenuItem, configToolStripMenuItem });
|
||||||
menuStrip1.Location = new Point(0, 0);
|
menuStrip1.Location = new Point(0, 0);
|
||||||
menuStrip1.Name = "menuStrip1";
|
menuStrip1.Name = "menuStrip1";
|
||||||
menuStrip1.Size = new Size(800, 24);
|
menuStrip1.Size = new Size(800, 24);
|
||||||
@@ -55,6 +57,7 @@
|
|||||||
gestionarToolStripMenuItem.Name = "gestionarToolStripMenuItem";
|
gestionarToolStripMenuItem.Name = "gestionarToolStripMenuItem";
|
||||||
gestionarToolStripMenuItem.Size = new Size(69, 20);
|
gestionarToolStripMenuItem.Size = new Size(69, 20);
|
||||||
gestionarToolStripMenuItem.Text = "Gestionar";
|
gestionarToolStripMenuItem.Text = "Gestionar";
|
||||||
|
gestionarToolStripMenuItem.Click += gestionarToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// clientesToolStripMenuItem
|
// clientesToolStripMenuItem
|
||||||
//
|
//
|
||||||
@@ -105,6 +108,20 @@
|
|||||||
pedidosPresupuestoToolStripMenuItem.Text = "PedidosPresupuesto";
|
pedidosPresupuestoToolStripMenuItem.Text = "PedidosPresupuesto";
|
||||||
pedidosPresupuestoToolStripMenuItem.Click += pedidosPresupuestoToolStripMenuItem_Click;
|
pedidosPresupuestoToolStripMenuItem.Click += pedidosPresupuestoToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
|
// configToolStripMenuItem
|
||||||
|
//
|
||||||
|
configToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { informesToolStripMenuItem });
|
||||||
|
configToolStripMenuItem.Name = "configToolStripMenuItem";
|
||||||
|
configToolStripMenuItem.Size = new Size(55, 20);
|
||||||
|
configToolStripMenuItem.Text = "Config";
|
||||||
|
//
|
||||||
|
// informesToolStripMenuItem
|
||||||
|
//
|
||||||
|
informesToolStripMenuItem.Name = "informesToolStripMenuItem";
|
||||||
|
informesToolStripMenuItem.Size = new Size(180, 22);
|
||||||
|
informesToolStripMenuItem.Text = "Informes";
|
||||||
|
informesToolStripMenuItem.Click += informesToolStripMenuItem_Click;
|
||||||
|
//
|
||||||
// PantallaPrincipal
|
// PantallaPrincipal
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
@@ -133,5 +150,7 @@
|
|||||||
private ToolStripMenuItem ordenDeCompraToolStripMenuItem;
|
private ToolStripMenuItem ordenDeCompraToolStripMenuItem;
|
||||||
private ToolStripMenuItem pedidosPresupuestoToolStripMenuItem;
|
private ToolStripMenuItem pedidosPresupuestoToolStripMenuItem;
|
||||||
private ToolStripMenuItem clientesToolStripMenuItem;
|
private ToolStripMenuItem clientesToolStripMenuItem;
|
||||||
|
private ToolStripMenuItem configToolStripMenuItem;
|
||||||
|
private ToolStripMenuItem informesToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,5 +85,21 @@ namespace Vista
|
|||||||
Frm.MdiParent = this;
|
Frm.MdiParent = this;
|
||||||
Frm.Show();
|
Frm.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void gestionarToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void informesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (ActiveMdiChild != null)
|
||||||
|
{
|
||||||
|
ActiveMdiChild.Close();
|
||||||
|
}
|
||||||
|
var Frm = new FrmInforme();
|
||||||
|
Frm.MdiParent = this;
|
||||||
|
Frm.Show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,14 @@ namespace Vista
|
|||||||
Descripcion = "Perfumeria"
|
Descripcion = "Perfumeria"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ControladoraProductos.Instance.A<EFBFBD>adir(new Producto
|
||||||
|
{
|
||||||
|
Id = 1,
|
||||||
|
Categoria = ControladoraCategorias.Instance.Listar()[0],
|
||||||
|
Habilitado = true,
|
||||||
|
Nombre = "Pantalones Vaqueros",
|
||||||
|
Precio = 2000.2
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
56
Vista/Vista - Backup.csproj.user
Normal file
56
Vista/Vista - Backup.csproj.user
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="AddCategoria.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="AddProducto.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<Compile Update="FrmFacturas.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
||||||
|
<Compile Update="FrmInforme.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmPresupuesto.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmCliente.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmFactura.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmPedidosDePresupuestos.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmOrdenDeCompra.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmProducto.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmProveedor.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmRemitos.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmProductos.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmProveedores.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmClientes.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="PantallaPrincipal.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Controladora\Controladora.csproj" />
|
<ProjectReference Include="..\Controladora\Controladora.csproj" />
|
||||||
<ProjectReference Include="..\Entidades\Entidades.csproj" />
|
<ProjectReference Include="..\Entidades\Entidades.csproj" />
|
||||||
|
<ProjectReference Include="..\Informes\Informes.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="AddCategoria.cs">
|
<Compile Update="AddCategoria.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
@@ -7,40 +8,43 @@
|
|||||||
<Compile Update="AddProducto.cs">
|
<Compile Update="AddProducto.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmPresupuesto.cs">
|
<Compile Update="FrmCliente.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmCliente.cs">
|
<Compile Update="FrmClientes.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmFactura.cs">
|
<Compile Update="FrmFactura.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmPedidosDePresupuestos.cs">
|
<Compile Update="FrmFacturas.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmInforme.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmOrdenDeCompra.cs">
|
<Compile Update="FrmOrdenDeCompra.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Update="FrmPedidosDePresupuestos.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="FrmPresupuesto.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Update="FrmProducto.cs">
|
<Compile Update="FrmProducto.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmProveedor.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="FrmRemitos.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="FrmProductos.cs">
|
<Compile Update="FrmProductos.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Update="FrmProveedor.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Update="FrmProveedores.cs">
|
<Compile Update="FrmProveedores.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmFacturas.cs">
|
<Compile Update="FrmRemitos.cs">
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Update="FrmClientes.cs">
|
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="PantallaPrincipal.cs">
|
<Compile Update="PantallaPrincipal.cs">
|
||||||
|
|||||||
@@ -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\Final\Vista\
|
build_property.ProjectDir = C:\Users\fedpo\Downloads\final actual\final actual\Vista\
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj": {}
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"projectName": "Controladora",
|
"projectName": "Controladora",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -67,14 +67,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"projectName": "Entidades",
|
"projectName": "Entidades",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Modelo\\Modelo.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj",
|
||||||
"projectName": "Modelo",
|
"projectName": "Informes",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\Modelo.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Modelo\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -183,14 +183,74 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"projectName": "Vista",
|
"projectName": "Modelo",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\Modelo.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Modelo\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\fedpo\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"net6.0"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {},
|
||||||
|
"https://fedesrv.ddns.net/git/api/packages/fede/nuget/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"projectReferences": {
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"net6.0": {
|
||||||
|
"targetAlias": "net6.0",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48",
|
||||||
|
"net481"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj",
|
||||||
|
"projectName": "Vista",
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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",
|
||||||
@@ -208,11 +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\\Final\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,19 @@
|
|||||||
"bin/placeholder/Entidades.dll": {}
|
"bin/placeholder/Entidades.dll": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"Informes/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"framework": ".NETCoreApp,Version=v6.0",
|
||||||
|
"dependencies": {
|
||||||
|
"Entidades": "1.0.0"
|
||||||
|
},
|
||||||
|
"compile": {
|
||||||
|
"bin/placeholder/Informes.dll": {}
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"bin/placeholder/Informes.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Modelo/1.0.0": {
|
"Modelo/1.0.0": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"framework": ".NETCoreApp,Version=v6.0",
|
"framework": ".NETCoreApp,Version=v6.0",
|
||||||
@@ -52,6 +65,11 @@
|
|||||||
"path": "../Entidades/Entidades.csproj",
|
"path": "../Entidades/Entidades.csproj",
|
||||||
"msbuildProject": "../Entidades/Entidades.csproj"
|
"msbuildProject": "../Entidades/Entidades.csproj"
|
||||||
},
|
},
|
||||||
|
"Informes/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"path": "../Informes/Informes.csproj",
|
||||||
|
"msbuildProject": "../Informes/Informes.csproj"
|
||||||
|
},
|
||||||
"Modelo/1.0.0": {
|
"Modelo/1.0.0": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"path": "../Modelo/Modelo.csproj",
|
"path": "../Modelo/Modelo.csproj",
|
||||||
@@ -61,7 +79,8 @@
|
|||||||
"projectFileDependencyGroups": {
|
"projectFileDependencyGroups": {
|
||||||
"net6.0-windows7.0": [
|
"net6.0-windows7.0": [
|
||||||
"Controladora >= 1.0.0",
|
"Controladora >= 1.0.0",
|
||||||
"Entidades >= 1.0.0"
|
"Entidades >= 1.0.0",
|
||||||
|
"Informes >= 1.0.0"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
@@ -70,11 +89,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj",
|
"projectUniqueName": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj",
|
||||||
"projectName": "Vista",
|
"projectName": "Vista",
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj",
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj",
|
||||||
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\fedpo\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\obj\\",
|
"outputPath": "C:\\Users\\fedpo\\Downloads\\final actual\\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",
|
||||||
@@ -92,11 +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\\Final\\Controladora\\Controladora.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Controladora\\Controladora.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Controladora\\Controladora.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj": {
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj": {
|
||||||
"projectPath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Entidades\\Entidades.csproj"
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Entidades\\Entidades.csproj"
|
||||||
|
},
|
||||||
|
"C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj": {
|
||||||
|
"projectPath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Informes\\Informes.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "aNFbNdDa22Mg1jfOxDzb7N16RdBndEphnWuh1X0WK6h4YNDptQDhQUjqbwCKBPcpGb6LmtlDSztOIxoXuc2UXQ==",
|
"dgSpecHash": "HaKkXKrDu+gimYBODDKQ5E1ZL1m4YoG9CrkcmpZyBjOtEmifQPEVkmmKOyOtFgPNaLHFACDybW6TDfmls/Ua8g==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\Final\\Final\\Vista\\Vista.csproj",
|
"projectFilePath": "C:\\Users\\fedpo\\Downloads\\final actual\\final actual\\Vista\\Vista.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user