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

@@ -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;
}
}