HAY UN AVANCE

This commit is contained in:
fedpo
2024-08-27 04:36:00 +01:00
parent 670190c44b
commit 2428f615a6
76 changed files with 5786 additions and 496 deletions

View File

@@ -1,6 +1,6 @@
namespace Vista
{
partial class AddCategoria
partial class FrmCategoria
{
/// <summary>
/// Required designer variable.
@@ -90,7 +90,7 @@
btnAceptar.UseVisualStyleBackColor = true;
btnAceptar.Click += button1_Click;
//
// AddCategoria
// FrmCategoria
//
AcceptButton = btnAceptar;
AutoScaleDimensions = new SizeF(7F, 15F);
@@ -103,7 +103,7 @@
Controls.Add(label2);
Controls.Add(label1);
Controls.Add(btnCancelar);
Name = "AddCategoria";
Name = "FrmCategoria";
Text = "Añadir Categoria";
((System.ComponentModel.ISupportInitialize)numid).EndInit();
ResumeLayout(false);

View File

@@ -12,10 +12,10 @@ using System.Windows.Forms;
namespace Vista
{
public partial class AddCategoria : Form
public partial class FrmCategoria : Form
{
private Categoria? categoria;
public AddCategoria()
public FrmCategoria()
{
InitializeComponent();
CargarDatos();
@@ -28,7 +28,12 @@ namespace Vista
}
private void CargarDatos()
{
numid.Value = ControladoraCategorias.Instance.Listar().Max(x => x.Id + 1);
var list = ControladoraCategorias.Instance.Listar();
var num = (list.Count == 0) ?
1:
list.Max(x => x.Id + 1);
numid.Value = num;
numid.Enabled = false;
}
@@ -41,12 +46,6 @@ namespace Vista
else if (textBox1.Text.Length > 100) // Ajusta el límite según sea necesario
devolucion += "La descripción no puede superar los 100 caracteres\n";
// Validar unicidad del ID solo si es una nueva categoría
if (categoria == null && ControladoraCategorias.Instance.Listar().Any(c => c.Id == (int)numid.Value))
{
devolucion += "Ya existe una categoría con el mismo ID\n";
}
if (devolucion == "")
{
return true;
@@ -69,7 +68,6 @@ namespace Vista
{
categoria = new Categoria
{
Id = (int)numid.Value,
Descripcion = textBox1.Text
};

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
@@ -18,7 +18,7 @@
<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="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>
@@ -48,7 +48,7 @@
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

78
Vista/FrmCategorias.Designer.cs generated Normal file
View File

@@ -0,0 +1,78 @@
namespace Vista
{
partial class FrmCategorias
{
/// <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()
{
dgvCategorias = new DataGridView();
btnAñadir = new Button();
((System.ComponentModel.ISupportInitialize)dgvCategorias).BeginInit();
SuspendLayout();
//
// dgvCategorias
//
dgvCategorias.AllowUserToAddRows = false;
dgvCategorias.AllowUserToDeleteRows = false;
dgvCategorias.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvCategorias.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvCategorias.Location = new Point(12, 12);
dgvCategorias.MultiSelect = false;
dgvCategorias.Name = "dgvCategorias";
dgvCategorias.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategorias.Size = new Size(498, 289);
dgvCategorias.TabIndex = 0;
//
// btnAñadir
//
btnAñadir.Location = new Point(516, 12);
btnAñadir.Name = "btnAñadir";
btnAñadir.Size = new Size(75, 23);
btnAñadir.TabIndex = 1;
btnAñadir.Text = "Añadir";
btnAñadir.UseVisualStyleBackColor = true;
btnAñadir.Click += btnAñadir_Click;
//
// FrmCategorias
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(btnAñadir);
Controls.Add(dgvCategorias);
Name = "FrmCategorias";
Text = "FrmCategorias";
WindowState = FormWindowState.Maximized;
((System.ComponentModel.ISupportInitialize)dgvCategorias).EndInit();
ResumeLayout(false);
}
#endregion
private DataGridView dgvCategorias;
private Button btnAñadir;
}
}

34
Vista/FrmCategorias.cs Normal file
View File

@@ -0,0 +1,34 @@
using Controladora;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Vista
{
public partial class FrmCategorias : Form
{
public FrmCategorias()
{
InitializeComponent();
RecargarTabla();
}
private void RecargarTabla()
{
dgvCategorias.DataSource = ControladoraCategorias.Instance.Listar();
}
private void btnAñadir_Click(object sender, EventArgs e)
{
new FrmCategoria().ShowDialog();
RecargarTabla();
}
}
}

120
Vista/FrmCategorias.resx Normal file
View 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>

View File

@@ -73,7 +73,6 @@ namespace Vista
IdOrdenDeCompra = Convert.ToInt32(numId.Value),
MontoCU = detalle.MontoCUPropuesto,
Producto = detalle.Producto,
presupuesto = pres,
});
}

View File

@@ -37,7 +37,6 @@
txtNombre = new TextBox();
numPrecio = new NumericUpDown();
checkHabilitado = new CheckBox();
cmbCategoria = new ComboBox();
btnacept = new Button();
btncancel = new Button();
label6 = new Label();
@@ -52,13 +51,20 @@
label10 = new Label();
numericUpDown1 = new NumericUpDown();
numericUpDown2 = new NumericUpDown();
comboBox1 = new ComboBox();
cmbEnvase = new ComboBox();
dgvCategoria = new DataGridView();
label11 = new Label();
dgvCategoriaAñadida = new DataGridView();
btnaddCategoria = new Button();
btnrmCategoria = new Button();
((System.ComponentModel.ISupportInitialize)numId).BeginInit();
((System.ComponentModel.ISupportInitialize)numPrecio).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvProveedorAñadido).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvProveedor).BeginInit();
((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
((System.ComponentModel.ISupportInitialize)numericUpDown2).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvCategoria).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvCategoriaAñadida).BeginInit();
SuspendLayout();
//
// label1
@@ -100,7 +106,7 @@
// label5
//
label5.AutoSize = true;
label5.Location = new Point(7, 142);
label5.Location = new Point(373, 9);
label5.Name = "label5";
label5.Size = new Size(58, 15);
label5.TabIndex = 4;
@@ -140,18 +146,9 @@
checkHabilitado.TabIndex = 8;
checkHabilitado.UseVisualStyleBackColor = true;
//
// cmbCategoria
//
cmbCategoria.DropDownStyle = ComboBoxStyle.DropDownList;
cmbCategoria.FormattingEnabled = true;
cmbCategoria.Location = new Point(70, 134);
cmbCategoria.Name = "cmbCategoria";
cmbCategoria.Size = new Size(121, 23);
cmbCategoria.TabIndex = 9;
//
// btnacept
//
btnacept.Location = new Point(14, 336);
btnacept.Location = new Point(13, 311);
btnacept.Name = "btnacept";
btnacept.Size = new Size(72, 21);
btnacept.TabIndex = 10;
@@ -161,7 +158,7 @@
//
// btncancel
//
btncancel.Location = new Point(106, 336);
btncancel.Location = new Point(105, 311);
btncancel.Name = "btncancel";
btncancel.Size = new Size(68, 21);
btncancel.TabIndex = 11;
@@ -172,7 +169,7 @@
// label6
//
label6.AutoSize = true;
label6.Location = new Point(230, 12);
label6.Location = new Point(652, 216);
label6.Name = "label6";
label6.Size = new Size(123, 15);
label6.TabIndex = 12;
@@ -181,7 +178,7 @@
// label7
//
label7.AutoSize = true;
label7.Location = new Point(494, 9);
label7.Location = new Point(652, 9);
label7.Name = "label7";
label7.Size = new Size(72, 15);
label7.TabIndex = 13;
@@ -193,9 +190,8 @@
dgvProveedorAñadido.AllowUserToDeleteRows = false;
dgvProveedorAñadido.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProveedorAñadido.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvProveedorAñadido.Location = new Point(230, 30);
dgvProveedorAñadido.Location = new Point(652, 234);
dgvProveedorAñadido.Name = "dgvProveedorAñadido";
dgvProveedorAñadido.RowTemplate.Height = 25;
dgvProveedorAñadido.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProveedorAñadido.Size = new Size(240, 150);
dgvProveedorAñadido.TabIndex = 14;
@@ -204,7 +200,7 @@
//
dgvProveedor.AllowUserToAddRows = false;
dgvProveedor.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProveedor.Location = new Point(494, 30);
dgvProveedor.Location = new Point(652, 30);
dgvProveedor.Name = "dgvProveedor";
dgvProveedor.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProveedor.Size = new Size(240, 150);
@@ -212,7 +208,7 @@
//
// btnaddProveedor
//
btnaddProveedor.Location = new Point(740, 30);
btnaddProveedor.Location = new Point(652, 186);
btnaddProveedor.Name = "btnaddProveedor";
btnaddProveedor.Size = new Size(72, 21);
btnaddProveedor.TabIndex = 16;
@@ -222,7 +218,7 @@
//
// btnrmProveedor
//
btnrmProveedor.Location = new Point(740, 57);
btnrmProveedor.Location = new Point(820, 186);
btnrmProveedor.Name = "btnrmProveedor";
btnrmProveedor.Size = new Size(72, 21);
btnrmProveedor.TabIndex = 17;
@@ -233,7 +229,7 @@
// checkBox1
//
checkBox1.AutoSize = true;
checkBox1.Location = new Point(7, 187);
checkBox1.Location = new Point(6, 183);
checkBox1.Name = "checkBox1";
checkBox1.Size = new Size(79, 19);
checkBox1.TabIndex = 18;
@@ -244,7 +240,7 @@
// label8
//
label8.AutoSize = true;
label8.Location = new Point(25, 230);
label8.Location = new Point(24, 205);
label8.Name = "label8";
label8.Size = new Size(185, 15);
label8.TabIndex = 20;
@@ -253,7 +249,7 @@
// label9
//
label9.AutoSize = true;
label9.Location = new Point(141, 289);
label9.Location = new Point(140, 264);
label9.Name = "label9";
label9.Size = new Size(69, 15);
label9.TabIndex = 21;
@@ -262,7 +258,7 @@
// label10
//
label10.AutoSize = true;
label10.Location = new Point(68, 259);
label10.Location = new Point(67, 234);
label10.Name = "label10";
label10.Size = new Size(142, 15);
label10.TabIndex = 22;
@@ -271,7 +267,7 @@
// numericUpDown1
//
numericUpDown1.Enabled = false;
numericUpDown1.Location = new Point(230, 222);
numericUpDown1.Location = new Point(229, 197);
numericUpDown1.Name = "numericUpDown1";
numericUpDown1.Size = new Size(120, 23);
numericUpDown1.TabIndex = 23;
@@ -280,20 +276,71 @@
// numericUpDown2
//
numericUpDown2.Enabled = false;
numericUpDown2.Location = new Point(229, 252);
numericUpDown2.Location = new Point(228, 227);
numericUpDown2.Name = "numericUpDown2";
numericUpDown2.Size = new Size(120, 23);
numericUpDown2.TabIndex = 24;
numericUpDown2.ValueChanged += numericUpDown2_ValueChanged;
//
// comboBox1
// cmbEnvase
//
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox1.FormattingEnabled = true;
comboBox1.Location = new Point(228, 281);
comboBox1.Name = "comboBox1";
comboBox1.Size = new Size(121, 23);
comboBox1.TabIndex = 25;
cmbEnvase.DropDownStyle = ComboBoxStyle.DropDownList;
cmbEnvase.FormattingEnabled = true;
cmbEnvase.Location = new Point(227, 256);
cmbEnvase.Name = "cmbEnvase";
cmbEnvase.Size = new Size(121, 23);
cmbEnvase.TabIndex = 25;
//
// dgvCategoria
//
dgvCategoria.AllowUserToAddRows = false;
dgvCategoria.AllowUserToDeleteRows = false;
dgvCategoria.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvCategoria.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvCategoria.Location = new Point(373, 30);
dgvCategoria.Name = "dgvCategoria";
dgvCategoria.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategoria.Size = new Size(240, 150);
dgvCategoria.TabIndex = 26;
//
// label11
//
label11.AutoSize = true;
label11.Location = new Point(373, 216);
label11.Name = "label11";
label11.Size = new Size(108, 15);
label11.TabIndex = 27;
label11.Text = "Categoria Añadida ";
//
// dgvCategoriaAñadida
//
dgvCategoriaAñadida.AllowUserToAddRows = false;
dgvCategoriaAñadida.AllowUserToDeleteRows = false;
dgvCategoriaAñadida.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvCategoriaAñadida.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvCategoriaAñadida.Location = new Point(373, 234);
dgvCategoriaAñadida.Name = "dgvCategoriaAñadida";
dgvCategoriaAñadida.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategoriaAñadida.Size = new Size(240, 150);
dgvCategoriaAñadida.TabIndex = 28;
//
// btnaddCategoria
//
btnaddCategoria.Location = new Point(373, 186);
btnaddCategoria.Name = "btnaddCategoria";
btnaddCategoria.Size = new Size(72, 21);
btnaddCategoria.TabIndex = 29;
btnaddCategoria.Text = "Añadir";
btnaddCategoria.UseVisualStyleBackColor = true;
//
// btnrmCategoria
//
btnrmCategoria.Location = new Point(541, 186);
btnrmCategoria.Name = "btnrmCategoria";
btnrmCategoria.Size = new Size(72, 21);
btnrmCategoria.TabIndex = 30;
btnrmCategoria.Text = "Eliminar";
btnrmCategoria.UseVisualStyleBackColor = true;
//
// FrmProducto
//
@@ -301,8 +348,13 @@
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
CancelButton = btncancel;
ClientSize = new Size(877, 369);
Controls.Add(comboBox1);
ClientSize = new Size(1219, 517);
Controls.Add(btnrmCategoria);
Controls.Add(btnaddCategoria);
Controls.Add(dgvCategoriaAñadida);
Controls.Add(label11);
Controls.Add(dgvCategoria);
Controls.Add(cmbEnvase);
Controls.Add(numericUpDown2);
Controls.Add(numericUpDown1);
Controls.Add(label10);
@@ -317,7 +369,6 @@
Controls.Add(label6);
Controls.Add(btncancel);
Controls.Add(btnacept);
Controls.Add(cmbCategoria);
Controls.Add(checkHabilitado);
Controls.Add(numPrecio);
Controls.Add(txtNombre);
@@ -335,6 +386,8 @@
((System.ComponentModel.ISupportInitialize)dgvProveedor).EndInit();
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
((System.ComponentModel.ISupportInitialize)numericUpDown2).EndInit();
((System.ComponentModel.ISupportInitialize)dgvCategoria).EndInit();
((System.ComponentModel.ISupportInitialize)dgvCategoriaAñadida).EndInit();
ResumeLayout(false);
PerformLayout();
}
@@ -350,7 +403,6 @@
private TextBox txtNombre;
private NumericUpDown numPrecio;
private CheckBox checkHabilitado;
private ComboBox cmbCategoria;
private Button btnacept;
private Button btncancel;
private Label label6;
@@ -365,6 +417,11 @@
private Label label10;
private NumericUpDown numericUpDown1;
private NumericUpDown numericUpDown2;
private ComboBox comboBox1;
private ComboBox cmbEnvase;
private DataGridView dgvCategoria;
private Label label11;
private DataGridView dgvCategoriaAñadida;
private Button btnaddCategoria;
private Button btnrmCategoria;
}
}

View File

@@ -33,7 +33,7 @@ namespace Vista
}
private void cargarcombo()
{
comboBox1.DataSource = Enum.GetValues(typeof(EnvaseTipo));
cmbEnvase.DataSource = Enum.GetValues(typeof(EnvaseTipo));
}
private void InicializarFormulario()
{
@@ -42,8 +42,7 @@ namespace Vista
txtNombre.Text = nuevoproducto.Nombre;
numPrecio.Value = (decimal)nuevoproducto.Precio;
checkHabilitado.Checked = nuevoproducto.Habilitado;
cmbCategoria.SelectedValue = nuevoproducto.Categoria.Id;
dgvProveedorAñadido.DataSource = nuevoproducto.ListarProveedores();
dgvProveedorAñadido.DataSource = nuevoproducto.proveedores.AsReadOnly();
}
@@ -62,16 +61,7 @@ namespace Vista
private void CargarCategorias()
{
// Obtener la lista de categorías desde la controladora
var categorias = ControladoraCategorias.Instance.Listar();
// Configurar el ComboBox para categorías
cmbCategoria.DisplayMember = "Descripcion"; // Mostrar la propiedad Descripcion
cmbCategoria.ValueMember = "Id"; // Usar la propiedad Id como valor
// Asignar la lista de categorías al ComboBox
cmbCategoria.DataSource = categorias;
var listprod = ControladoraProductos.Instance.Listar();
numId.Value = (listprod.Count > 0) ?
listprod.Max(x => x.Id + 1) :
@@ -100,14 +90,11 @@ namespace Vista
devolucion += "Ya existe un producto con el mismo ID.\n";
}
// Validar Categoría Seleccionada
if (cmbCategoria.SelectedItem == null)
{
devolucion += "Debe seleccionar una categoría.\n";
}
// Validar Categoría Seleccionada (wip)
//devolucion += "Debe seleccionar una categoría.\n";
// Validar Tipo de Producto
if (!checkBox1.Checked && comboBox1.SelectedItem == null)
if (!checkBox1.Checked && cmbEnvase.SelectedItem == null)
{
devolucion += "Debe seleccionar un tipo de envase para el producto no perecedero.\n";
}
@@ -144,19 +131,18 @@ namespace Vista
Nombre = txtNombre.Text,
Precio = (double)numPrecio.Value,
Habilitado = checkHabilitado.Checked,
Categoria = (Categoria)cmbCategoria.SelectedItem,
MesesHastaConsumoPreferente = (int)numericUpDown1.Value,
MesesHastaVencimiento = (int)numericUpDown2.Value,
};
foreach (var proveedor in nuevoproducto.ListarProveedores())
foreach (var proveedor in nuevoproducto.proveedores.AsReadOnly())
{
productoPerecedero.AñadirProveedor(proveedor);
}
string mensaje = mod
? ControladoraProductos.Instance.Modificar(productoPerecedero)
: ControladoraProductos.Instance.Añadir(productoPerecedero);
? ControladoraProductoPercedero.Instance.Modificar(productoPerecedero)
: ControladoraProductoPercedero.Instance.Añadir(productoPerecedero);
MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
@@ -168,17 +154,16 @@ namespace Vista
Nombre = txtNombre.Text,
Precio = (double)numPrecio.Value,
Habilitado = checkHabilitado.Checked,
Categoria = (Categoria)cmbCategoria.SelectedItem,
TipoDeEnvase = (EnvaseTipo)comboBox1.SelectedItem,
TipoDeEnvase = (EnvaseTipo)cmbEnvase.SelectedItem,
};
foreach (var proveedor in nuevoproducto.ListarProveedores())
foreach (var proveedor in nuevoproducto.proveedores.AsReadOnly())
{
productoNoPerecedero.AñadirProveedor(proveedor);
}
string mensaje = mod
? ControladoraProductos.Instance.Modificar(productoNoPerecedero)
: ControladoraProductos.Instance.Añadir(productoNoPerecedero);
? ControladoraProductoNoPercedero.Instance.Modificar(productoNoPerecedero)
: ControladoraProductoNoPercedero.Instance.Añadir(productoNoPerecedero);
MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
@@ -204,7 +189,7 @@ namespace Vista
foreach (DataGridViewRow selectedRow in dgvProveedor.SelectedRows)
{
Proveedor proveedor = (Proveedor)selectedRow.DataBoundItem;
var checkcolicion = nuevoproducto.ListarProveedores().Contains(proveedor);
var checkcolicion = nuevoproducto.proveedores.Contains(proveedor);
if (checkcolicion)
{
MessageBox.Show("El proveedor ya fue cargado");
@@ -212,7 +197,7 @@ namespace Vista
}
nuevoproducto.AñadirProveedor(proveedor);
dgvProveedorAñadido.DataSource = null;
dgvProveedorAñadido.DataSource = nuevoproducto.ListarProveedores();
dgvProveedorAñadido.DataSource = nuevoproducto.proveedores.AsReadOnly();
}
}
else
@@ -233,7 +218,7 @@ namespace Vista
Proveedor proveedor = (Proveedor)selectedRow.DataBoundItem;
nuevoproducto.EliminarProveedor(proveedor);
dgvProveedorAñadido.DataSource = null;
dgvProveedorAñadido.DataSource = nuevoproducto.ListarProveedores();
dgvProveedorAñadido.DataSource = nuevoproducto.proveedores.AsReadOnly();
}
}
else
@@ -253,7 +238,7 @@ namespace Vista
numericUpDown1.Enabled = esPerecedero;
numericUpDown2.Enabled = esPerecedero;
comboBox1.Enabled = !esPerecedero;
cmbEnvase.Enabled = !esPerecedero;
}
private void numericUpDown2_ValueChanged(object sender, EventArgs e)

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
@@ -48,7 +48,7 @@
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

View File

@@ -29,6 +29,8 @@
private void InitializeComponent()
{
groupBox1 = new GroupBox();
numStock = new NumericUpDown();
label6 = new Label();
btnModificar = new Button();
label3 = new Label();
dgvProveedores = new DataGridView();
@@ -36,22 +38,25 @@
dgvProductos = new DataGridView();
BtnAdd = new Button();
BtnEliminar = new Button();
btnCrearCategoria = new Button();
dgvCategorias = new DataGridView();
label1 = new Label();
dgvPercedero = new DataGridView();
dgvNoPercedero = new DataGridView();
label4 = new Label();
label5 = new Label();
label6 = new Label();
numStock = new NumericUpDown();
numConsumoPreferente = new NumericUpDown();
numHastaVencimiento = new NumericUpDown();
label8 = new Label();
label7 = new Label();
label9 = new Label();
cmbTipoEnvase = new ComboBox();
groupBox2 = new GroupBox();
groupBox3 = new GroupBox();
groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)numStock).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvProveedores).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvProductos).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvCategorias).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvPercedero).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvNoPercedero).BeginInit();
((System.ComponentModel.ISupportInitialize)numStock).BeginInit();
((System.ComponentModel.ISupportInitialize)numConsumoPreferente).BeginInit();
((System.ComponentModel.ISupportInitialize)numHastaVencimiento).BeginInit();
groupBox2.SuspendLayout();
groupBox3.SuspendLayout();
SuspendLayout();
//
// groupBox1
@@ -71,6 +76,23 @@
groupBox1.TabIndex = 5;
groupBox1.TabStop = false;
//
// numStock
//
numStock.Enabled = false;
numStock.Location = new Point(317, 269);
numStock.Name = "numStock";
numStock.Size = new Size(120, 23);
numStock.TabIndex = 13;
//
// label6
//
label6.AutoSize = true;
label6.Location = new Point(275, 271);
label6.Name = "label6";
label6.Size = new Size(36, 15);
label6.TabIndex = 12;
label6.Text = "Stock";
//
// btnModificar
//
btnModificar.Location = new Point(87, 263);
@@ -95,7 +117,6 @@
dgvProveedores.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProveedores.Location = new Point(613, 22);
dgvProveedores.Name = "dgvProveedores";
dgvProveedores.RowTemplate.Height = 25;
dgvProveedores.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProveedores.Size = new Size(577, 235);
dgvProveedores.TabIndex = 9;
@@ -116,7 +137,6 @@
dgvProductos.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvProductos.Location = new Point(6, 22);
dgvProductos.Name = "dgvProductos";
dgvProductos.RowTemplate.Height = 25;
dgvProductos.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProductos.Size = new Size(591, 235);
dgvProductos.TabIndex = 3;
@@ -142,111 +162,109 @@
BtnEliminar.UseVisualStyleBackColor = true;
BtnEliminar.Click += BtnEliminar_Click;
//
// btnCrearCategoria
//
btnCrearCategoria.Location = new Point(958, 582);
btnCrearCategoria.Name = "btnCrearCategoria";
btnCrearCategoria.Size = new Size(128, 23);
btnCrearCategoria.TabIndex = 4;
btnCrearCategoria.Text = "Crear Categoria";
btnCrearCategoria.UseVisualStyleBackColor = true;
btnCrearCategoria.Click += btnCrearCategoria_Click;
//
// dgvCategorias
//
dgvCategorias.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvCategorias.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvCategorias.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvCategorias.Location = new Point(958, 341);
dgvCategorias.Location = new Point(778, 343);
dgvCategorias.Name = "dgvCategorias";
dgvCategorias.RowTemplate.Height = 25;
dgvCategorias.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategorias.Size = new Size(250, 235);
dgvCategorias.Size = new Size(250, 182);
dgvCategorias.TabIndex = 6;
//
// label1
//
label1.AutoSize = true;
label1.Location = new Point(961, 323);
label1.Location = new Point(781, 325);
label1.Name = "label1";
label1.Size = new Size(63, 15);
label1.TabIndex = 7;
label1.Text = "Categorias";
//
// dgvPercedero
// numConsumoPreferente
//
dgvPercedero.AllowUserToAddRows = false;
dgvPercedero.AllowUserToDeleteRows = false;
dgvPercedero.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvPercedero.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvPercedero.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvPercedero.Location = new Point(18, 341);
dgvPercedero.Name = "dgvPercedero";
dgvPercedero.RowTemplate.Height = 25;
dgvPercedero.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvPercedero.Size = new Size(439, 245);
dgvPercedero.TabIndex = 8;
numConsumoPreferente.Enabled = false;
numConsumoPreferente.Location = new Point(164, 33);
numConsumoPreferente.Name = "numConsumoPreferente";
numConsumoPreferente.Size = new Size(120, 23);
numConsumoPreferente.TabIndex = 15;
//
// dgvNoPercedero
// numHastaVencimiento
//
dgvNoPercedero.AllowUserToAddRows = false;
dgvNoPercedero.AllowUserToDeleteRows = false;
dgvNoPercedero.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvNoPercedero.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvNoPercedero.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvNoPercedero.Location = new Point(485, 341);
dgvNoPercedero.Name = "dgvNoPercedero";
dgvNoPercedero.RowTemplate.Height = 25;
dgvNoPercedero.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvNoPercedero.Size = new Size(420, 245);
dgvNoPercedero.TabIndex = 9;
numHastaVencimiento.Enabled = false;
numHastaVencimiento.Location = new Point(164, 68);
numHastaVencimiento.Name = "numHastaVencimiento";
numHastaVencimiento.Size = new Size(120, 23);
numHastaVencimiento.TabIndex = 17;
//
// label4
// label8
//
label4.AutoSize = true;
label4.Location = new Point(485, 323);
label4.Name = "label4";
label4.Size = new Size(143, 15);
label4.TabIndex = 12;
label4.Text = "Productos NO Percederos";
label8.AutoSize = true;
label8.Location = new Point(16, 70);
label8.Name = "label8";
label8.Size = new Size(142, 15);
label8.TabIndex = 16;
label8.Text = "Meses Hasta Vencimiento";
//
// label5
// label7
//
label5.AutoSize = true;
label5.Location = new Point(18, 323);
label5.Name = "label5";
label5.Size = new Size(125, 15);
label5.TabIndex = 13;
label5.Text = "Productos Percederos";
label7.AutoSize = true;
label7.Location = new Point(6, 35);
label7.Name = "label7";
label7.Size = new Size(152, 15);
label7.TabIndex = 14;
label7.Text = "Meses Consumo Preferente";
//
// label6
// label9
//
label6.AutoSize = true;
label6.Location = new Point(275, 271);
label6.Name = "label6";
label6.Size = new Size(36, 15);
label6.TabIndex = 12;
label6.Text = "Stock";
label9.AutoSize = true;
label9.Location = new Point(6, 35);
label9.Name = "label9";
label9.Size = new Size(69, 15);
label9.TabIndex = 18;
label9.Text = "Tipo Envase";
//
// numStock
// cmbTipoEnvase
//
numStock.Enabled = false;
numStock.Location = new Point(317, 269);
numStock.Name = "numStock";
numStock.Size = new Size(120, 23);
numStock.TabIndex = 13;
cmbTipoEnvase.FormattingEnabled = true;
cmbTipoEnvase.Location = new Point(81, 32);
cmbTipoEnvase.Name = "cmbTipoEnvase";
cmbTipoEnvase.Size = new Size(121, 23);
cmbTipoEnvase.TabIndex = 19;
//
// groupBox2
//
groupBox2.Controls.Add(label7);
groupBox2.Controls.Add(numConsumoPreferente);
groupBox2.Controls.Add(numHastaVencimiento);
groupBox2.Controls.Add(label8);
groupBox2.Location = new Point(12, 323);
groupBox2.Name = "groupBox2";
groupBox2.Size = new Size(396, 202);
groupBox2.TabIndex = 20;
groupBox2.TabStop = false;
groupBox2.Text = "Productos Percederos";
//
// groupBox3
//
groupBox3.Controls.Add(label9);
groupBox3.Controls.Add(cmbTipoEnvase);
groupBox3.Location = new Point(414, 323);
groupBox3.Name = "groupBox3";
groupBox3.Size = new Size(348, 202);
groupBox3.TabIndex = 21;
groupBox3.TabStop = false;
groupBox3.Text = "Productos No Percederos";
//
// FrmProductos
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1237, 589);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(dgvNoPercedero);
Controls.Add(dgvPercedero);
ClientSize = new Size(1237, 616);
Controls.Add(groupBox3);
Controls.Add(groupBox2);
Controls.Add(label1);
Controls.Add(btnCrearCategoria);
Controls.Add(dgvCategorias);
Controls.Add(groupBox1);
Name = "FrmProductos";
@@ -254,12 +272,16 @@
WindowState = FormWindowState.Maximized;
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)numStock).EndInit();
((System.ComponentModel.ISupportInitialize)dgvProveedores).EndInit();
((System.ComponentModel.ISupportInitialize)dgvProductos).EndInit();
((System.ComponentModel.ISupportInitialize)dgvCategorias).EndInit();
((System.ComponentModel.ISupportInitialize)dgvPercedero).EndInit();
((System.ComponentModel.ISupportInitialize)dgvNoPercedero).EndInit();
((System.ComponentModel.ISupportInitialize)numStock).EndInit();
((System.ComponentModel.ISupportInitialize)numConsumoPreferente).EndInit();
((System.ComponentModel.ISupportInitialize)numHastaVencimiento).EndInit();
groupBox2.ResumeLayout(false);
groupBox2.PerformLayout();
groupBox3.ResumeLayout(false);
groupBox3.PerformLayout();
ResumeLayout(false);
PerformLayout();
}
@@ -270,7 +292,6 @@
private DataGridView dgvProductos;
private Button BtnAdd;
private Button BtnEliminar;
private Button btnCrearCategoria;
private DataGridView dgvCategorias;
private Label label2;
private Label label1;
@@ -279,9 +300,16 @@
private Button btnModificar;
private DataGridView dgvPercedero;
private DataGridView dgvNoPercedero;
private Label label4;
private Label label5;
private NumericUpDown numStock;
private Label label6;
private NumericUpDown numConsumoPreferente;
private NumericUpDown numHastaVencimiento;
private Label label8;
private Label label7;
private Label label9;
private ComboBox cmbTipoEnvase;
private GroupBox groupBox2;
private GroupBox groupBox3;
}
}

View File

@@ -23,79 +23,9 @@ namespace Vista
{
InitializeComponent();
ConfigurarDataGridView();
ConfigurarDataGridViewPerecedero();
ConfigurarDataGridViewNoPerecedero();
ActualizarGrilla();
}
private void ConfigurarDataGridViewNoPerecedero()
{
dgvNoPercedero.AutoGenerateColumns = false;
// Crear una columna para el nombre
var colNombre = new DataGridViewTextBoxColumn
{
DataPropertyName = "Nombre",
HeaderText = "Nombre",
Name = "Nombre",
Width = 150
};
// Crear una columna para el tipo de envase
var colTipoDeEnvase = new DataGridViewTextBoxColumn
{
DataPropertyName = "TipoDeEnvase",
HeaderText = "Tipo de Envase",
Name = "TipoDeEnvase",
Width = 200
};
// Limpiar columnas existentes
dgvNoPercedero.Columns.Clear();
// Agregar las columnas al DataGridView
dgvNoPercedero.Columns.Add(colNombre);
dgvNoPercedero.Columns.Add(colTipoDeEnvase);
}
private void ConfigurarDataGridViewPerecedero()
{
dgvPercedero.AutoGenerateColumns = false;
// Crear una columna para el nombre
var colNombre = new DataGridViewTextBoxColumn
{
DataPropertyName = "Nombre",
HeaderText = "Nombre",
Name = "Nombre",
};
// Crear una columna para los meses hasta consumo preferente
var colMesesHastaConsumoPreferente = new DataGridViewTextBoxColumn
{
DataPropertyName = "MesesHastaConsumoPreferente",
HeaderText = "Meses Hasta Consumo Preferente",
Name = "MesesHastaConsumoPreferente",
};
// Crear una columna para los meses hasta vencimiento
var colMesesHastaVencimiento = new DataGridViewTextBoxColumn
{
DataPropertyName = "MesesHastaVencimiento",
HeaderText = "Meses Hasta Vencimiento",
Name = "MesesHastaVencimiento",
};
// Limpiar columnas existentes
dgvPercedero.Columns.Clear();
// Agregar las columnas al DataGridView
dgvPercedero.Columns.Add(colNombre);
dgvPercedero.Columns.Add(colMesesHastaConsumoPreferente);
dgvPercedero.Columns.Add(colMesesHastaVencimiento);
}
private void ConfigurarDataGridView()
{
dgvProductos.AutoGenerateColumns = false;
@@ -159,12 +89,6 @@ namespace Vista
// Obtén todos los productos de la controladora o la fuente de datos
var todosLosProductos = ControladoraProductos.Instance.Listar();
// Filtra los productos perecederos y no perecederos
var productosPerecederos = todosLosProductos.OfType<ProductoPercedero>().ToList();
var productosNoPerecederos = todosLosProductos.OfType<ProductoNoPercedero>().ToList();
dgvPercedero.DataSource = null; // Limpiar la fuente de datos
dgvNoPercedero.DataSource = null; // Limpiar la fuente de datos
dgvProductos.DataSource = null;
dgvCategorias.DataSource = null;
@@ -179,7 +103,6 @@ namespace Vista
p.Nombre,
p.Precio,
p.Habilitado,
CategoriaDescripcion = p.Categoria != null ? p.Categoria.Descripcion : string.Empty,
p.EsPerecedero
})
.ToList();
@@ -215,9 +138,9 @@ namespace Vista
if (producto != null)
{
string devolucion = (producto.EsPerecedero) ?
ControladoraProductos:
;
string devolucion = (producto.EsPerecedero) ?
ControladoraProductoPercedero.Instance.Eliminar(producto as ProductoPercedero) :
ControladoraProductoNoPercedero.Instance.Eliminar(producto as ProductoNoPercedero);
MessageBox.Show(devolucion);
}
else
@@ -235,10 +158,11 @@ namespace Vista
ActualizarGrilla();
}
public void ActualizarGrillaGeneralizaciones()
public void ActualizarGeneralizaciones()
{
dgvNoPercedero.DataSource = null;
dgvPercedero.DataSource = null;
numHastaVencimiento.Enabled = true;
numConsumoPreferente.Enabled = true;
cmbTipoEnvase.Enabled = true;
var selectedRow = dgvProductos.SelectedRows[0];
var Producto = new Entidades.Producto
@@ -251,14 +175,27 @@ namespace Vista
ProductoPercedero prod = (ProductoPercedero)ControladoraProductos.Instance.MostrarPorId(Producto);
if (prod == null) return;
dgvPercedero.DataSource = new List<ProductoPercedero> { prod };
numConsumoPreferente.Value = prod.MesesHastaConsumoPreferente;
numHastaVencimiento.Value = prod.MesesHastaVencimiento;
cmbTipoEnvase.SelectedIndex = -1;
cmbTipoEnvase.Enabled = false;
}
else
{
ProductoNoPercedero prod = (ProductoNoPercedero)ControladoraProductos.Instance.MostrarPorId(Producto);
if (prod == null) return;
dgvNoPercedero.DataSource = new List<ProductoNoPercedero> { prod };
cmbTipoEnvase.Items.Clear();
cmbTipoEnvase.Items.Add(prod.TipoDeEnvase.GetType().FullName);
cmbTipoEnvase.SelectedIndex = 0;
numHastaVencimiento.Value = 0;
numConsumoPreferente.Value = 0;
numConsumoPreferente.Enabled = false;
numHastaVencimiento.Enabled = false;
}
}
private void MostrarStock()
@@ -274,7 +211,7 @@ namespace Vista
{
if (dgvProductos.SelectedRows.Count == 0) return;
ActualizarGrillaProveedores();
ActualizarGrillaGeneralizaciones();
ActualizarGeneralizaciones();
MostrarStock();
}
@@ -292,7 +229,6 @@ namespace Vista
Nombre = dgvProductos.SelectedRows[0].Cells["Nombre"].Value as String,
Precio = Convert.ToDouble(dgvProductos.SelectedRows[0].Cells["Precio"].Value),
Habilitado = Convert.ToBoolean(dgvProductos.SelectedRows[0].Cells["Habilitado"].Value),
Categoria = ControladoraCategorias.Instance.Listar().FirstOrDefault(c => c.Descripcion == dgvProductos.SelectedRows[0].Cells["Categoria"].Value.ToString())
};
foreach (Proveedor prov in ControladoraProductos.Instance.ListarProveedores(producto))
{
@@ -316,12 +252,6 @@ namespace Vista
}
}
private void btnCrearCategoria_Click(object sender, EventArgs e)
{
var form = new AddCategoria();
form.ShowDialog();
ActualizarGrilla();
}
}
}

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
@@ -18,7 +18,7 @@
<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="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>
@@ -48,7 +48,7 @@
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

View File

@@ -39,6 +39,7 @@
pedidosPresupuestoToolStripMenuItem = new ToolStripMenuItem();
configToolStripMenuItem = new ToolStripMenuItem();
informesToolStripMenuItem = new ToolStripMenuItem();
categoriasToolStripMenuItem = new ToolStripMenuItem();
menuStrip1.SuspendLayout();
SuspendLayout();
//
@@ -53,7 +54,7 @@
//
// gestionarToolStripMenuItem
//
gestionarToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { clientesToolStripMenuItem, ventasToolStripMenuItem, proveedoresToolStripMenuItem, productosToolStripMenuItem, remitosToolStripMenuItem, ordenDeCompraToolStripMenuItem, pedidosPresupuestoToolStripMenuItem });
gestionarToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { clientesToolStripMenuItem, ventasToolStripMenuItem, proveedoresToolStripMenuItem, productosToolStripMenuItem, remitosToolStripMenuItem, ordenDeCompraToolStripMenuItem, pedidosPresupuestoToolStripMenuItem, categoriasToolStripMenuItem });
gestionarToolStripMenuItem.Name = "gestionarToolStripMenuItem";
gestionarToolStripMenuItem.Size = new Size(69, 20);
gestionarToolStripMenuItem.Text = "Gestionar";
@@ -62,49 +63,49 @@
// clientesToolStripMenuItem
//
clientesToolStripMenuItem.Name = "clientesToolStripMenuItem";
clientesToolStripMenuItem.Size = new Size(164, 22);
clientesToolStripMenuItem.Size = new Size(180, 22);
clientesToolStripMenuItem.Text = "Clientes";
clientesToolStripMenuItem.Click += clientesToolStripMenuItem_Click;
//
// ventasToolStripMenuItem
//
ventasToolStripMenuItem.Name = "ventasToolStripMenuItem";
ventasToolStripMenuItem.Size = new Size(164, 22);
ventasToolStripMenuItem.Size = new Size(180, 22);
ventasToolStripMenuItem.Text = "Ventas";
ventasToolStripMenuItem.Click += ventasToolStripMenuItem_Click;
//
// proveedoresToolStripMenuItem
//
proveedoresToolStripMenuItem.Name = "proveedoresToolStripMenuItem";
proveedoresToolStripMenuItem.Size = new Size(164, 22);
proveedoresToolStripMenuItem.Size = new Size(180, 22);
proveedoresToolStripMenuItem.Text = "Proveedores";
proveedoresToolStripMenuItem.Click += proveedoresToolStripMenuItem_Click;
//
// productosToolStripMenuItem
//
productosToolStripMenuItem.Name = "productosToolStripMenuItem";
productosToolStripMenuItem.Size = new Size(164, 22);
productosToolStripMenuItem.Size = new Size(180, 22);
productosToolStripMenuItem.Text = "Productos";
productosToolStripMenuItem.Click += productosToolStripMenuItem_Click;
//
// remitosToolStripMenuItem
//
remitosToolStripMenuItem.Name = "remitosToolStripMenuItem";
remitosToolStripMenuItem.Size = new Size(164, 22);
remitosToolStripMenuItem.Size = new Size(180, 22);
remitosToolStripMenuItem.Text = "Remitos";
remitosToolStripMenuItem.Click += remitosToolStripMenuItem_Click;
//
// ordenDeCompraToolStripMenuItem
//
ordenDeCompraToolStripMenuItem.Name = "ordenDeCompraToolStripMenuItem";
ordenDeCompraToolStripMenuItem.Size = new Size(164, 22);
ordenDeCompraToolStripMenuItem.Size = new Size(180, 22);
ordenDeCompraToolStripMenuItem.Text = "OrdenDeCompra";
ordenDeCompraToolStripMenuItem.Click += ordenDeCompraToolStripMenuItem_Click;
//
// pedidosPresupuestoToolStripMenuItem
//
pedidosPresupuestoToolStripMenuItem.Name = "pedidosPresupuestoToolStripMenuItem";
pedidosPresupuestoToolStripMenuItem.Size = new Size(164, 22);
pedidosPresupuestoToolStripMenuItem.Size = new Size(180, 22);
pedidosPresupuestoToolStripMenuItem.Text = "Presupuesto";
pedidosPresupuestoToolStripMenuItem.Click += pedidosPresupuestoToolStripMenuItem_Click;
//
@@ -122,6 +123,13 @@
informesToolStripMenuItem.Text = "Informes";
informesToolStripMenuItem.Click += informesToolStripMenuItem_Click;
//
// categoriasToolStripMenuItem
//
categoriasToolStripMenuItem.Name = "categoriasToolStripMenuItem";
categoriasToolStripMenuItem.Size = new Size(180, 22);
categoriasToolStripMenuItem.Text = "Categorias";
categoriasToolStripMenuItem.Click += categoriasToolStripMenuItem_Click;
//
// PantallaPrincipal
//
AutoScaleDimensions = new SizeF(7F, 15F);
@@ -152,5 +160,6 @@
private ToolStripMenuItem clientesToolStripMenuItem;
private ToolStripMenuItem configToolStripMenuItem;
private ToolStripMenuItem informesToolStripMenuItem;
private ToolStripMenuItem categoriasToolStripMenuItem;
}
}

View File

@@ -101,5 +101,16 @@ namespace Vista
Frm.MdiParent = this;
Frm.Show();
}
private void categoriasToolStripMenuItem_Click(object sender, EventArgs e)
{
if (ActiveMdiChild != null)
{
ActiveMdiChild.Close();
}
var Frm = new FrmCategorias();
Frm.MdiParent = this;
Frm.Show();
}
}
}

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
@@ -18,7 +18,7 @@
<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="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>
@@ -48,7 +48,7 @@
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

View File

@@ -13,91 +13,8 @@ namespace Vista
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
PrecargarDatos();
ApplicationConfiguration.Initialize();
Application.Run(new PantallaPrincipal());
}
private static void PrecargarDatos()
{
Proveedor proveedor = new Proveedor
{
Cuit = 157618923,
Direccion = "La Rioja 6412",
Nombre = "Outlet Riojano",
Habilitado = true,
RazonSocial = "Vende Ropa"
};
ControladoraProveedores.Instance.A<EFBFBD>adir(proveedor);
Proveedor proveedor2 = new Proveedor
{
Cuit = 357618653,
Direccion = "San Martin 2261",
Nombre = "Arrollito Deport",
Habilitado = true,
RazonSocial = "Vende Ropa Deportiva"
};
ControladoraProveedores.Instance.A<EFBFBD>adir(proveedor2);
ControladoraClientes.Instance.A<EFBFBD>adir(new Cliente{
Cuit = 23453659239,
Apellido = "Polidoro",
Nombre = "Federico",
Correo = "federico.nicolas.polidoro@gmail.com",
Direccion = "nose",
Habilitado = true
});
ControladoraClientes.Instance.A<EFBFBD>adir(new Cliente{
Cuit = 17385912736,
Apellido = "Diana",
Nombre = "Ignacio",
Correo = "Ignaciodiana@gmail.com",
Direccion = "nose",
Habilitado = true
});
ControladoraCategorias.Instance.A<EFBFBD>adir(new Entidades.Categoria{
Id = 1,
Descripcion = "Indumentaria"
});
ControladoraCategorias.Instance.A<EFBFBD>adir(new Entidades.Categoria
{
Id = 2,
Descripcion = "Perfumeria"
});
ProductoNoPercedero producto = new ProductoNoPercedero
{
Id = 1,
Categoria = ControladoraCategorias.Instance.Listar()[0],
Habilitado = true,
Nombre = "Pantalones Vaqueros",
Precio = 2000.2,
TipoDeEnvase = EnvaseTipo.NoTiene,
EsPerecedero = false
};
producto.A<EFBFBD>adirProveedor(proveedor);
ControladoraProductos.Instance.A<EFBFBD>adir(producto);
Presupuesto presupuesto = new Presupuesto
{
Id = 1,
Aceptado = true,
Habilitado = true,
Fecha = DateTime.Now,
Proveedor = proveedor,
};
presupuesto.A<EFBFBD>adirDetalle(new DetallePresupuesto
{
Id = 1,
Cantidad = 2,
IdPresupuesto = 1,
MontoCUPropuesto = 1000,
Producto = producto,
});
ControladoraPresupuestos.Instance.A<EFBFBD>adir(presupuesto);
}
}
}

View File

@@ -1,5 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Entidades\Entidades.csproj" />
<ProjectReference Include="..\Controladora\Controladora.csproj" />

View File

@@ -2,7 +2,10 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<Compile Update="AddCategoria.cs">
<Compile Update="FrmCategoria.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="FrmCategorias.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="FrmCliente.cs">

View File

@@ -333,6 +333,14 @@
"frameworks": {
"net8.0-windows7.0": {
"targetAlias": "net8.0-windows",
"dependencies": {
"Microsoft.EntityFrameworkCore.Design": {
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
"suppressParent": "All",
"target": "Package",
"version": "[8.0.8, )"
}
},
"imports": [
"net461",
"net462",

View File

@@ -14,8 +14,10 @@
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.8\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.8\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props')" />
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore.design\8.0.8\build\net8.0\Microsoft.EntityFrameworkCore.Design.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore.design\8.0.8\build\net8.0\Microsoft.EntityFrameworkCore.Design.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_Web_WebView2 Condition=" '$(PkgMicrosoft_Web_WebView2)' == '' ">C:\Users\fedpo\.nuget\packages\microsoft.web.webview2\1.0.864.35</PkgMicrosoft_Web_WebView2>
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\fedpo\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3</PkgMicrosoft_CodeAnalysis_Analyzers>
</PropertyGroup>
</Project>

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.text.json\8.0.4\buildTransitive\net6.0\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\8.0.4\buildTransitive\net6.0\System.Text.Json.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options\8.0.0\buildTransitive\net6.0\Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options\8.0.0\buildTransitive\net6.0\Microsoft.Extensions.Options.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.0\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.0\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets')" />
</ImportGroup>

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +1,25 @@
{
"version": 2,
"dgSpecHash": "nuHziLAVMU4=",
"dgSpecHash": "RZQdbCeghbw=",
"success": true,
"projectFilePath": "C:\\Users\\fedpo\\source\\repos\\Final_Das\\Vista\\Vista.csproj",
"expectedPackageFiles": [
"C:\\Users\\fedpo\\.nuget\\packages\\azure.core\\1.35.0\\azure.core.1.35.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\azure.identity\\1.10.3\\azure.identity.1.10.3.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\1.1.1\\microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\6.0.0\\microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.codeanalysis.analyzers\\3.3.3\\microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.codeanalysis.common\\4.5.0\\microsoft.codeanalysis.common.4.5.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.codeanalysis.csharp\\4.5.0\\microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.codeanalysis.csharp.workspaces\\4.5.0\\microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.codeanalysis.workspaces.common\\4.5.0\\microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.5\\microsoft.data.sqlclient.5.1.5.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.8\\microsoft.entityframeworkcore.8.0.8.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.8\\microsoft.entityframeworkcore.abstractions.8.0.8.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.8\\microsoft.entityframeworkcore.analyzers.8.0.8.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.design\\8.0.8\\microsoft.entityframeworkcore.design.8.0.8.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.8\\microsoft.entityframeworkcore.relational.8.0.8.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.8\\microsoft.entityframeworkcore.sqlserver.8.0.8.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512",
@@ -20,6 +27,7 @@
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\8.0.0\\microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\8.0.0\\microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.0\\microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencymodel\\8.0.1\\microsoft.extensions.dependencymodel.8.0.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.logging\\8.0.0\\microsoft.extensions.logging.8.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.0\\microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.options\\8.0.0\\microsoft.extensions.options.8.0.0.nupkg.sha512",
@@ -38,15 +46,26 @@
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.sqlserver.server\\1.0.0\\microsoft.sqlserver.server.1.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.web.webview2\\1.0.864.35\\microsoft.web.webview2.1.0.864.35.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\mono.texttemplating\\2.2.1\\mono.texttemplating.2.2.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.codedom\\4.4.0\\system.codedom.4.4.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.composition\\6.0.0\\system.composition.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.composition.attributedmodel\\6.0.0\\system.composition.attributedmodel.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.composition.convention\\6.0.0\\system.composition.convention.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.composition.hosting\\6.0.0\\system.composition.hosting.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.composition.runtime\\6.0.0\\system.composition.runtime.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.composition.typedparts\\6.0.0\\system.composition.typedparts.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.1\\system.configuration.configurationmanager.6.0.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.1\\system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.drawing.common\\6.0.0\\system.drawing.common.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.formats.asn1\\5.0.0\\system.formats.asn1.5.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.identitymodel.tokens.jwt\\6.35.0\\system.identitymodel.tokens.jwt.6.35.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.io.filesystem.accesscontrol\\5.0.0\\system.io.filesystem.accesscontrol.5.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.io.pipelines\\6.0.3\\system.io.pipelines.6.0.3.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.memory\\4.5.4\\system.memory.4.5.4.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.memory.data\\1.0.2\\system.memory.data.1.0.2.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.numerics.vectors\\4.5.0\\system.numerics.vectors.4.5.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.reflection.metadata\\6.0.1\\system.reflection.metadata.6.0.1.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.runtime.caching\\6.0.0\\system.runtime.caching.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
@@ -57,8 +76,9 @@
"C:\\Users\\fedpo\\.nuget\\packages\\system.security.principal.windows\\5.0.0\\system.security.principal.windows.5.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.text.json\\4.7.2\\system.text.json.4.7.2.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.text.encodings.web\\8.0.0\\system.text.encodings.web.8.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.text.json\\8.0.4\\system.text.json.8.0.4.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.threading.channels\\6.0.0\\system.threading.channels.6.0.0.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512",
"C:\\Users\\fedpo\\.nuget\\packages\\system.windows.extensions\\6.0.0\\system.windows.extensions.6.0.0.nupkg.sha512"
],