Update: Re Organicé todos los form

This commit is contained in:
fedpo
2024-09-30 18:04:35 +01:00
parent 1ef74f18c4
commit 37ff7022cf
16 changed files with 117 additions and 162 deletions

View File

@@ -37,7 +37,6 @@
datepick = new DateTimePicker();
label3 = new Label();
label4 = new Label();
cmbCliente = new ComboBox();
dgvProductos = new DataGridView();
dgvDetalles = new DataGridView();
numCantidad = new NumericUpDown();
@@ -46,16 +45,18 @@
label5 = new Label();
label6 = new Label();
btnEliminar = new Button();
dgvClientes = new DataGridView();
((System.ComponentModel.ISupportInitialize)numid).BeginInit();
((System.ComponentModel.ISupportInitialize)numtotal).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvProductos).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvDetalles).BeginInit();
((System.ComponentModel.ISupportInitialize)numCantidad).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvClientes).BeginInit();
SuspendLayout();
//
// btnAceptar
//
btnAceptar.Location = new Point(12, 395);
btnAceptar.Location = new Point(10, 380);
btnAceptar.Name = "btnAceptar";
btnAceptar.Size = new Size(82, 26);
btnAceptar.TabIndex = 0;
@@ -65,7 +66,7 @@
//
// btnCancelar
//
btnCancelar.Location = new Point(873, 395);
btnCancelar.Location = new Point(1174, 380);
btnCancelar.Name = "btnCancelar";
btnCancelar.Size = new Size(80, 26);
btnCancelar.TabIndex = 1;
@@ -75,7 +76,7 @@
//
// numid
//
numid.Location = new Point(60, 14);
numid.Location = new Point(37, 351);
numid.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
numid.Name = "numid";
numid.Size = new Size(120, 23);
@@ -84,7 +85,7 @@
// label1
//
label1.AutoSize = true;
label1.Location = new Point(32, 22);
label1.Location = new Point(10, 353);
label1.Name = "label1";
label1.Size = new Size(18, 15);
label1.TabIndex = 3;
@@ -93,7 +94,7 @@
// numtotal
//
numtotal.Enabled = false;
numtotal.Location = new Point(60, 45);
numtotal.Location = new Point(202, 351);
numtotal.Maximum = new decimal(new int[] { 1215752191, 23, 0, 0 });
numtotal.Name = "numtotal";
numtotal.ReadOnly = true;
@@ -103,7 +104,7 @@
// label2
//
label2.AutoSize = true;
label2.Location = new Point(22, 53);
label2.Location = new Point(164, 355);
label2.Name = "label2";
label2.Size = new Size(32, 15);
label2.TabIndex = 5;
@@ -111,7 +112,7 @@
//
// datepick
//
datepick.Location = new Point(60, 76);
datepick.Location = new Point(378, 353);
datepick.Name = "datepick";
datepick.Size = new Size(120, 23);
datepick.TabIndex = 6;
@@ -119,7 +120,7 @@
// label3
//
label3.AutoSize = true;
label3.Location = new Point(12, 82);
label3.Location = new Point(334, 357);
label3.Name = "label3";
label3.Size = new Size(38, 15);
label3.TabIndex = 7;
@@ -128,21 +129,12 @@
// label4
//
label4.AutoSize = true;
label4.Location = new Point(12, 112);
label4.Location = new Point(10, 6);
label4.Name = "label4";
label4.Size = new Size(44, 15);
label4.TabIndex = 8;
label4.Text = "Cliente";
//
// cmbCliente
//
cmbCliente.DropDownStyle = ComboBoxStyle.DropDownList;
cmbCliente.FormattingEnabled = true;
cmbCliente.Location = new Point(62, 109);
cmbCliente.Name = "cmbCliente";
cmbCliente.Size = new Size(121, 23);
cmbCliente.TabIndex = 10;
//
// dgvProductos
//
dgvProductos.AllowUserToAddRows = false;
@@ -150,11 +142,10 @@
dgvProductos.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvProductos.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProductos.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvProductos.Location = new Point(237, 30);
dgvProductos.Location = new Point(428, 27);
dgvProductos.Name = "dgvProductos";
dgvProductos.RowTemplate.Height = 25;
dgvProductos.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProductos.Size = new Size(350, 318);
dgvProductos.Size = new Size(413, 318);
dgvProductos.TabIndex = 11;
//
// dgvDetalles
@@ -164,16 +155,15 @@
dgvDetalles.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvDetalles.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvDetalles.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvDetalles.Location = new Point(593, 30);
dgvDetalles.Location = new Point(847, 27);
dgvDetalles.Name = "dgvDetalles";
dgvDetalles.RowTemplate.Height = 25;
dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvDetalles.Size = new Size(360, 318);
dgvDetalles.Size = new Size(407, 318);
dgvDetalles.TabIndex = 12;
//
// numCantidad
//
numCantidad.Location = new Point(309, 354);
numCantidad.Location = new Point(586, 355);
numCantidad.Name = "numCantidad";
numCantidad.Size = new Size(120, 23);
numCantidad.TabIndex = 13;
@@ -181,7 +171,7 @@
// Unidades
//
Unidades.AutoSize = true;
Unidades.Location = new Point(235, 362);
Unidades.Location = new Point(512, 363);
Unidades.Name = "Unidades";
Unidades.Size = new Size(56, 15);
Unidades.TabIndex = 14;
@@ -189,7 +179,7 @@
//
// btnAddDetalle
//
btnAddDetalle.Location = new Point(235, 385);
btnAddDetalle.Location = new Point(716, 351);
btnAddDetalle.Name = "btnAddDetalle";
btnAddDetalle.Size = new Size(80, 31);
btnAddDetalle.TabIndex = 15;
@@ -200,7 +190,7 @@
// label5
//
label5.AutoSize = true;
label5.Location = new Point(593, 9);
label5.Location = new Point(847, 6);
label5.Name = "label5";
label5.Size = new Size(48, 15);
label5.TabIndex = 16;
@@ -209,7 +199,7 @@
// label6
//
label6.AutoSize = true;
label6.Location = new Point(237, 5);
label6.Location = new Point(428, 9);
label6.Name = "label6";
label6.Size = new Size(61, 15);
label6.TabIndex = 17;
@@ -217,7 +207,7 @@
//
// btnEliminar
//
btnEliminar.Location = new Point(321, 385);
btnEliminar.Location = new Point(802, 351);
btnEliminar.Name = "btnEliminar";
btnEliminar.Size = new Size(80, 31);
btnEliminar.TabIndex = 18;
@@ -225,11 +215,25 @@
btnEliminar.UseVisualStyleBackColor = true;
btnEliminar.Click += btnEliminar_Click;
//
// dgvClientes
//
dgvClientes.AllowUserToAddRows = false;
dgvClientes.AllowUserToDeleteRows = false;
dgvClientes.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvClientes.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvClientes.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvClientes.Location = new Point(10, 27);
dgvClientes.Name = "dgvClientes";
dgvClientes.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvClientes.Size = new Size(412, 318);
dgvClientes.TabIndex = 19;
//
// FrmFactura
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(965, 428);
ClientSize = new Size(1266, 413);
Controls.Add(dgvClientes);
Controls.Add(btnEliminar);
Controls.Add(label6);
Controls.Add(label5);
@@ -238,7 +242,6 @@
Controls.Add(numCantidad);
Controls.Add(dgvDetalles);
Controls.Add(dgvProductos);
Controls.Add(cmbCliente);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(datepick);
@@ -255,6 +258,7 @@
((System.ComponentModel.ISupportInitialize)dgvProductos).EndInit();
((System.ComponentModel.ISupportInitialize)dgvDetalles).EndInit();
((System.ComponentModel.ISupportInitialize)numCantidad).EndInit();
((System.ComponentModel.ISupportInitialize)dgvClientes).EndInit();
ResumeLayout(false);
PerformLayout();
}
@@ -270,7 +274,6 @@
private DateTimePicker datepick;
private Label label3;
private Label label4;
private ComboBox cmbCliente;
private DataGridView dgvProductos;
private DataGridView dgvDetalles;
private NumericUpDown numCantidad;
@@ -279,5 +282,6 @@
private Label label5;
private Label label6;
private Button btnEliminar;
private DataGridView dgvClientes;
}
}