This commit is contained in:
fedpo
2024-09-08 02:39:13 +01:00
parent c15ae743ab
commit 393caac989
65 changed files with 1138 additions and 282 deletions

View File

@@ -45,12 +45,12 @@
dgvProveedor = new DataGridView();
btnaddProveedor = new Button();
btnrmProveedor = new Button();
checkBox1 = new CheckBox();
checkpercedero = new CheckBox();
label8 = new Label();
label9 = new Label();
label10 = new Label();
numericUpDown1 = new NumericUpDown();
numericUpDown2 = new NumericUpDown();
numConsumoPreferente = new NumericUpDown();
numvencimiento = new NumericUpDown();
cmbEnvase = new ComboBox();
dgvCategoria = new DataGridView();
label11 = new Label();
@@ -61,8 +61,8 @@
((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)numConsumoPreferente).BeginInit();
((System.ComponentModel.ISupportInitialize)numvencimiento).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvCategoria).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvCategoriaAñadida).BeginInit();
SuspendLayout();
@@ -148,9 +148,9 @@
//
// btnacept
//
btnacept.Location = new Point(13, 311);
btnacept.Location = new Point(14, 475);
btnacept.Name = "btnacept";
btnacept.Size = new Size(72, 21);
btnacept.Size = new Size(72, 30);
btnacept.TabIndex = 10;
btnacept.Text = "Aceptar";
btnacept.UseVisualStyleBackColor = true;
@@ -158,9 +158,9 @@
//
// btncancel
//
btncancel.Location = new Point(105, 311);
btncancel.Location = new Point(92, 475);
btncancel.Name = "btncancel";
btncancel.Size = new Size(68, 21);
btncancel.Size = new Size(69, 30);
btncancel.TabIndex = 11;
btncancel.Text = "Cancelar";
btncancel.UseVisualStyleBackColor = true;
@@ -169,7 +169,7 @@
// label6
//
label6.AutoSize = true;
label6.Location = new Point(652, 216);
label6.Location = new Point(679, 275);
label6.Name = "label6";
label6.Size = new Size(123, 15);
label6.TabIndex = 12;
@@ -178,7 +178,7 @@
// label7
//
label7.AutoSize = true;
label7.Location = new Point(652, 9);
label7.Location = new Point(679, 9);
label7.Name = "label7";
label7.Size = new Size(72, 15);
label7.TabIndex = 13;
@@ -190,25 +190,25 @@
dgvProveedorAñadido.AllowUserToDeleteRows = false;
dgvProveedorAñadido.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProveedorAñadido.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvProveedorAñadido.Location = new Point(652, 234);
dgvProveedorAñadido.Location = new Point(679, 293);
dgvProveedorAñadido.Name = "dgvProveedorAñadido";
dgvProveedorAñadido.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProveedorAñadido.Size = new Size(240, 150);
dgvProveedorAñadido.Size = new Size(510, 212);
dgvProveedorAñadido.TabIndex = 14;
//
// dgvProveedor
//
dgvProveedor.AllowUserToAddRows = false;
dgvProveedor.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProveedor.Location = new Point(652, 30);
dgvProveedor.Location = new Point(679, 30);
dgvProveedor.Name = "dgvProveedor";
dgvProveedor.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProveedor.Size = new Size(240, 150);
dgvProveedor.Size = new Size(510, 215);
dgvProveedor.TabIndex = 15;
//
// btnaddProveedor
//
btnaddProveedor.Location = new Point(652, 186);
btnaddProveedor.Location = new Point(679, 251);
btnaddProveedor.Name = "btnaddProveedor";
btnaddProveedor.Size = new Size(72, 21);
btnaddProveedor.TabIndex = 16;
@@ -218,7 +218,7 @@
//
// btnrmProveedor
//
btnrmProveedor.Location = new Point(820, 186);
btnrmProveedor.Location = new Point(757, 251);
btnrmProveedor.Name = "btnrmProveedor";
btnrmProveedor.Size = new Size(72, 21);
btnrmProveedor.TabIndex = 17;
@@ -226,21 +226,21 @@
btnrmProveedor.UseVisualStyleBackColor = true;
btnrmProveedor.Click += btnrmProveedor_Click;
//
// checkBox1
// checkpercedero
//
checkBox1.AutoSize = true;
checkBox1.Location = new Point(6, 183);
checkBox1.Name = "checkBox1";
checkBox1.Size = new Size(79, 19);
checkBox1.TabIndex = 18;
checkBox1.Text = "Percedero";
checkBox1.UseVisualStyleBackColor = true;
checkBox1.CheckedChanged += checkBox1_CheckedChanged;
checkpercedero.AutoSize = true;
checkpercedero.Location = new Point(14, 196);
checkpercedero.Name = "checkpercedero";
checkpercedero.Size = new Size(79, 19);
checkpercedero.TabIndex = 18;
checkpercedero.Text = "Percedero";
checkpercedero.UseVisualStyleBackColor = true;
checkpercedero.CheckedChanged += checkpercedero_CheckedChanged;
//
// label8
//
label8.AutoSize = true;
label8.Location = new Point(24, 205);
label8.Location = new Point(12, 218);
label8.Name = "label8";
label8.Size = new Size(185, 15);
label8.TabIndex = 20;
@@ -249,7 +249,7 @@
// label9
//
label9.AutoSize = true;
label9.Location = new Point(140, 264);
label9.Location = new Point(128, 277);
label9.Name = "label9";
label9.Size = new Size(69, 15);
label9.TabIndex = 21;
@@ -258,35 +258,33 @@
// label10
//
label10.AutoSize = true;
label10.Location = new Point(67, 234);
label10.Location = new Point(55, 247);
label10.Name = "label10";
label10.Size = new Size(142, 15);
label10.TabIndex = 22;
label10.Text = "Meses Hasta Vencimiento";
//
// numericUpDown1
// numConsumoPreferente
//
numericUpDown1.Enabled = false;
numericUpDown1.Location = new Point(229, 197);
numericUpDown1.Name = "numericUpDown1";
numericUpDown1.Size = new Size(120, 23);
numericUpDown1.TabIndex = 23;
numericUpDown1.ValueChanged += numericUpDown1_ValueChanged;
numConsumoPreferente.Enabled = false;
numConsumoPreferente.Location = new Point(217, 210);
numConsumoPreferente.Name = "numConsumoPreferente";
numConsumoPreferente.Size = new Size(120, 23);
numConsumoPreferente.TabIndex = 23;
//
// numericUpDown2
// numvencimiento
//
numericUpDown2.Enabled = false;
numericUpDown2.Location = new Point(228, 227);
numericUpDown2.Name = "numericUpDown2";
numericUpDown2.Size = new Size(120, 23);
numericUpDown2.TabIndex = 24;
numericUpDown2.ValueChanged += numericUpDown2_ValueChanged;
numvencimiento.Enabled = false;
numvencimiento.Location = new Point(216, 240);
numvencimiento.Name = "numvencimiento";
numvencimiento.Size = new Size(120, 23);
numvencimiento.TabIndex = 24;
//
// cmbEnvase
//
cmbEnvase.DropDownStyle = ComboBoxStyle.DropDownList;
cmbEnvase.FormattingEnabled = true;
cmbEnvase.Location = new Point(227, 256);
cmbEnvase.Location = new Point(215, 269);
cmbEnvase.Name = "cmbEnvase";
cmbEnvase.Size = new Size(121, 23);
cmbEnvase.TabIndex = 25;
@@ -300,13 +298,13 @@
dgvCategoria.Location = new Point(373, 30);
dgvCategoria.Name = "dgvCategoria";
dgvCategoria.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategoria.Size = new Size(240, 150);
dgvCategoria.Size = new Size(300, 215);
dgvCategoria.TabIndex = 26;
//
// label11
//
label11.AutoSize = true;
label11.Location = new Point(373, 216);
label11.Location = new Point(373, 275);
label11.Name = "label11";
label11.Size = new Size(108, 15);
label11.TabIndex = 27;
@@ -318,29 +316,31 @@
dgvCategoriaAñadida.AllowUserToDeleteRows = false;
dgvCategoriaAñadida.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvCategoriaAñadida.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvCategoriaAñadida.Location = new Point(373, 234);
dgvCategoriaAñadida.Location = new Point(373, 293);
dgvCategoriaAñadida.Name = "dgvCategoriaAñadida";
dgvCategoriaAñadida.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategoriaAñadida.Size = new Size(240, 150);
dgvCategoriaAñadida.Size = new Size(300, 212);
dgvCategoriaAñadida.TabIndex = 28;
//
// btnaddCategoria
//
btnaddCategoria.Location = new Point(373, 186);
btnaddCategoria.Location = new Point(373, 251);
btnaddCategoria.Name = "btnaddCategoria";
btnaddCategoria.Size = new Size(72, 21);
btnaddCategoria.TabIndex = 29;
btnaddCategoria.Text = "Añadir";
btnaddCategoria.UseVisualStyleBackColor = true;
btnaddCategoria.Click += btnaddCategoria_Click;
//
// btnrmCategoria
//
btnrmCategoria.Location = new Point(541, 186);
btnrmCategoria.Location = new Point(451, 251);
btnrmCategoria.Name = "btnrmCategoria";
btnrmCategoria.Size = new Size(72, 21);
btnrmCategoria.TabIndex = 30;
btnrmCategoria.Text = "Eliminar";
btnrmCategoria.UseVisualStyleBackColor = true;
btnrmCategoria.Click += btnrmCategoria_Click;
//
// FrmProducto
//
@@ -348,19 +348,19 @@
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
CancelButton = btncancel;
ClientSize = new Size(1219, 517);
ClientSize = new Size(1239, 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(numvencimiento);
Controls.Add(numConsumoPreferente);
Controls.Add(label10);
Controls.Add(label9);
Controls.Add(label8);
Controls.Add(checkBox1);
Controls.Add(checkpercedero);
Controls.Add(btnrmProveedor);
Controls.Add(btnaddProveedor);
Controls.Add(dgvProveedor);
@@ -384,8 +384,8 @@
((System.ComponentModel.ISupportInitialize)numPrecio).EndInit();
((System.ComponentModel.ISupportInitialize)dgvProveedorAñadido).EndInit();
((System.ComponentModel.ISupportInitialize)dgvProveedor).EndInit();
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
((System.ComponentModel.ISupportInitialize)numericUpDown2).EndInit();
((System.ComponentModel.ISupportInitialize)numConsumoPreferente).EndInit();
((System.ComponentModel.ISupportInitialize)numvencimiento).EndInit();
((System.ComponentModel.ISupportInitialize)dgvCategoria).EndInit();
((System.ComponentModel.ISupportInitialize)dgvCategoriaAñadida).EndInit();
ResumeLayout(false);
@@ -411,12 +411,12 @@
private DataGridView dgvProveedor;
private Button btnaddProveedor;
private Button btnrmProveedor;
private CheckBox checkBox1;
private CheckBox checkpercedero;
private Label label8;
private Label label9;
private Label label10;
private NumericUpDown numericUpDown1;
private NumericUpDown numericUpDown2;
private NumericUpDown numConsumoPreferente;
private NumericUpDown numvencimiento;
private ComboBox cmbEnvase;
private DataGridView dgvCategoria;
private Label label11;