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

@@ -43,12 +43,12 @@
dgvCategorias.MultiSelect = false; dgvCategorias.MultiSelect = false;
dgvCategorias.Name = "dgvCategorias"; dgvCategorias.Name = "dgvCategorias";
dgvCategorias.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvCategorias.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategorias.Size = new Size(498, 289); dgvCategorias.Size = new Size(498, 470);
dgvCategorias.TabIndex = 0; dgvCategorias.TabIndex = 0;
// //
// btnAñadir // btnAñadir
// //
btnAñadir.Location = new Point(516, 12); btnAñadir.Location = new Point(12, 488);
btnAñadir.Name = "btnAñadir"; btnAñadir.Name = "btnAñadir";
btnAñadir.Size = new Size(75, 23); btnAñadir.Size = new Size(75, 23);
btnAñadir.TabIndex = 1; btnAñadir.TabIndex = 1;
@@ -60,7 +60,7 @@
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450); ClientSize = new Size(527, 523);
Controls.Add(btnAñadir); Controls.Add(btnAñadir);
Controls.Add(dgvCategorias); Controls.Add(dgvCategorias);
Name = "FrmCategorias"; Name = "FrmCategorias";

View File

@@ -39,7 +39,7 @@
// //
// BtnModificar // BtnModificar
// //
BtnModificar.Location = new Point(108, 302); BtnModificar.Location = new Point(87, 466);
BtnModificar.Name = "BtnModificar"; BtnModificar.Name = "BtnModificar";
BtnModificar.Size = new Size(75, 23); BtnModificar.Size = new Size(75, 23);
BtnModificar.TabIndex = 1; BtnModificar.TabIndex = 1;
@@ -49,7 +49,7 @@
// //
// BtnEliminar // BtnEliminar
// //
BtnEliminar.Location = new Point(215, 302); BtnEliminar.Location = new Point(168, 466);
BtnEliminar.Name = "BtnEliminar"; BtnEliminar.Name = "BtnEliminar";
BtnEliminar.Size = new Size(75, 23); BtnEliminar.Size = new Size(75, 23);
BtnEliminar.TabIndex = 2; BtnEliminar.TabIndex = 2;
@@ -65,13 +65,13 @@
groupBox1.Controls.Add(BtnModificar); groupBox1.Controls.Add(BtnModificar);
groupBox1.Location = new Point(12, 2); groupBox1.Location = new Point(12, 2);
groupBox1.Name = "groupBox1"; groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(1206, 341); groupBox1.Size = new Size(1206, 495);
groupBox1.TabIndex = 3; groupBox1.TabIndex = 3;
groupBox1.TabStop = false; groupBox1.TabStop = false;
// //
// BtnAceptar // BtnAceptar
// //
BtnAceptar.Location = new Point(6, 302); BtnAceptar.Location = new Point(6, 466);
BtnAceptar.Name = "BtnAceptar"; BtnAceptar.Name = "BtnAceptar";
BtnAceptar.Size = new Size(75, 23); BtnAceptar.Size = new Size(75, 23);
BtnAceptar.TabIndex = 4; BtnAceptar.TabIndex = 4;
@@ -90,7 +90,7 @@
dgvCliente.Name = "dgvCliente"; dgvCliente.Name = "dgvCliente";
dgvCliente.ReadOnly = true; dgvCliente.ReadOnly = true;
dgvCliente.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvCliente.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCliente.Size = new Size(1194, 235); dgvCliente.Size = new Size(1194, 438);
dgvCliente.TabIndex = 3; dgvCliente.TabIndex = 3;
// //
// FrmClientes // FrmClientes

View File

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

View File

@@ -22,9 +22,7 @@ namespace Vista
InitializeComponent(); InitializeComponent();
ActualizarGrilla(); ActualizarGrilla();
CargarDatos(); CargarDatos();
cmbCliente.DisplayMember = "Cliente";
cmbCliente.SelectedIndex = -1;
} }
private void ActualizarGrilla() private void ActualizarGrilla()
@@ -68,11 +66,7 @@ namespace Vista
private void CargarDatos() private void CargarDatos()
{ {
// Asignar la lista de clientes como origen de datos para el ComboBox
cmbCliente.DataSource = ControladoraFacturas.Instance.ListarClientes();
// Establecer la propiedad para mostrar el nombre del cliente en el ComboBox
cmbCliente.DisplayMember = "NombreCompleto";
var listdetalle = ControladoraFacturas.Instance.Listar(); var listdetalle = ControladoraFacturas.Instance.Listar();
numid.Value = (listdetalle.Count > 0) ? numid.Value = (listdetalle.Count > 0) ?
@@ -106,7 +100,7 @@ namespace Vista
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 (cmbCliente.SelectedIndex == -1) devolucion += "Debe seleccionar un cliente\n"; //if (cmbCliente.SelectedIndex == -1) devolucion += "Debe seleccionar un cliente\n";
if (devolucion == "") if (devolucion == "")
{ {
@@ -127,7 +121,7 @@ namespace Vista
factura.Total = Convert.ToDouble(numtotal.Value); factura.Total = Convert.ToDouble(numtotal.Value);
factura.Fecha = datepick.Value; factura.Fecha = datepick.Value;
factura.Id = Convert.ToInt32(numid.Value); factura.Id = Convert.ToInt32(numid.Value);
factura.Cliente = ControladoraFacturas.Instance.ListarClientes().First(x => x.NombreCompleto == cmbCliente.SelectedValue.ToString());
string mensaje = ControladoraFacturas.Instance.Añadir(factura); string mensaje = ControladoraFacturas.Instance.Añadir(factura);
MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show(mensaje, "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
@@ -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>
@@ -48,7 +48,7 @@
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter

View File

@@ -46,9 +46,9 @@
groupBox1.Controls.Add(dgvDetalles); groupBox1.Controls.Add(dgvDetalles);
groupBox1.Controls.Add(dgvFacturas); groupBox1.Controls.Add(dgvFacturas);
groupBox1.Controls.Add(BtnAdd); groupBox1.Controls.Add(BtnAdd);
groupBox1.Location = new Point(12, 12); groupBox1.Location = new Point(12, 0);
groupBox1.Name = "groupBox1"; groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(1223, 426); groupBox1.Size = new Size(1223, 479);
groupBox1.TabIndex = 5; groupBox1.TabIndex = 5;
groupBox1.TabStop = false; groupBox1.TabStop = false;
// //
@@ -81,7 +81,7 @@
dgvDetalles.Location = new Point(520, 40); dgvDetalles.Location = new Point(520, 40);
dgvDetalles.Name = "dgvDetalles"; dgvDetalles.Name = "dgvDetalles";
dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvDetalles.Size = new Size(697, 241); dgvDetalles.Size = new Size(697, 404);
dgvDetalles.TabIndex = 4; dgvDetalles.TabIndex = 4;
// //
// dgvFacturas // dgvFacturas
@@ -94,13 +94,13 @@
dgvFacturas.Location = new Point(6, 40); dgvFacturas.Location = new Point(6, 40);
dgvFacturas.Name = "dgvFacturas"; dgvFacturas.Name = "dgvFacturas";
dgvFacturas.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvFacturas.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvFacturas.Size = new Size(508, 241); dgvFacturas.Size = new Size(508, 404);
dgvFacturas.TabIndex = 3; dgvFacturas.TabIndex = 3;
dgvFacturas.CellClick += dgvFacturas_CellClick; dgvFacturas.CellClick += dgvFacturas_CellClick;
// //
// BtnAdd // BtnAdd
// //
BtnAdd.Location = new Point(6, 287); BtnAdd.Location = new Point(6, 450);
BtnAdd.Name = "BtnAdd"; BtnAdd.Name = "BtnAdd";
BtnAdd.Size = new Size(75, 23); BtnAdd.Size = new Size(75, 23);
BtnAdd.TabIndex = 0; BtnAdd.TabIndex = 0;
@@ -112,7 +112,7 @@
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1247, 465); ClientSize = new Size(1247, 481);
Controls.Add(groupBox1); Controls.Add(groupBox1);
Name = "FrmFacturas"; Name = "FrmFacturas";
Text = "Ventas"; Text = "Ventas";

View File

@@ -55,7 +55,7 @@
// label1 // label1
// //
label1.AutoSize = true; label1.AutoSize = true;
label1.Location = new Point(443, 7); label1.Location = new Point(474, -2);
label1.Name = "label1"; label1.Name = "label1";
label1.Size = new Size(77, 15); label1.Size = new Size(77, 15);
label1.TabIndex = 17; label1.TabIndex = 17;
@@ -67,12 +67,11 @@
dgvPresupuesto.AllowUserToDeleteRows = false; dgvPresupuesto.AllowUserToDeleteRows = false;
dgvPresupuesto.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvPresupuesto.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvPresupuesto.EditMode = DataGridViewEditMode.EditProgrammatically; dgvPresupuesto.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvPresupuesto.Location = new Point(443, 25); dgvPresupuesto.Location = new Point(478, 16);
dgvPresupuesto.MultiSelect = false; dgvPresupuesto.MultiSelect = false;
dgvPresupuesto.Name = "dgvPresupuesto"; dgvPresupuesto.Name = "dgvPresupuesto";
dgvPresupuesto.RowTemplate.Height = 25;
dgvPresupuesto.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvPresupuesto.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvPresupuesto.Size = new Size(347, 283); dgvPresupuesto.Size = new Size(346, 196);
dgvPresupuesto.TabIndex = 16; dgvPresupuesto.TabIndex = 16;
dgvPresupuesto.CellClick += dgvPresupuesto_CellClick; dgvPresupuesto.CellClick += dgvPresupuesto_CellClick;
// //
@@ -82,18 +81,17 @@
dgvDetalle.AllowUserToDeleteRows = false; dgvDetalle.AllowUserToDeleteRows = false;
dgvDetalle.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvDetalle.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvDetalle.EditMode = DataGridViewEditMode.EditProgrammatically; dgvDetalle.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvDetalle.Location = new Point(796, 25); dgvDetalle.Location = new Point(482, 283);
dgvDetalle.MultiSelect = false; dgvDetalle.MultiSelect = false;
dgvDetalle.Name = "dgvDetalle"; dgvDetalle.Name = "dgvDetalle";
dgvDetalle.RowTemplate.Height = 25;
dgvDetalle.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvDetalle.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvDetalle.Size = new Size(376, 283); dgvDetalle.Size = new Size(346, 190);
dgvDetalle.TabIndex = 19; dgvDetalle.TabIndex = 19;
// //
// label2 // label2
// //
label2.AutoSize = true; label2.AutoSize = true;
label2.Location = new Point(796, 7); label2.Location = new Point(478, 265);
label2.Name = "label2"; label2.Name = "label2";
label2.Size = new Size(43, 15); label2.Size = new Size(43, 15);
label2.TabIndex = 18; label2.TabIndex = 18;
@@ -101,7 +99,7 @@
// //
// numId // numId
// //
numId.Location = new Point(42, 25); numId.Location = new Point(43, 12);
numId.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 }); numId.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 });
numId.Name = "numId"; numId.Name = "numId";
numId.Size = new Size(120, 23); numId.Size = new Size(120, 23);
@@ -110,7 +108,7 @@
// ID // ID
// //
ID.AutoSize = true; ID.AutoSize = true;
ID.Location = new Point(18, 27); ID.Location = new Point(19, 14);
ID.Name = "ID"; ID.Name = "ID";
ID.Size = new Size(18, 15); ID.Size = new Size(18, 15);
ID.TabIndex = 20; ID.TabIndex = 20;
@@ -118,7 +116,7 @@
// //
// btnAddProducto // btnAddProducto
// //
btnAddProducto.Location = new Point(442, 314); btnAddProducto.Location = new Point(478, 218);
btnAddProducto.Name = "btnAddProducto"; btnAddProducto.Name = "btnAddProducto";
btnAddProducto.Size = new Size(144, 29); btnAddProducto.Size = new Size(144, 29);
btnAddProducto.TabIndex = 22; btnAddProducto.TabIndex = 22;
@@ -132,17 +130,16 @@
dgvOrdendeCompra.AllowUserToDeleteRows = false; dgvOrdendeCompra.AllowUserToDeleteRows = false;
dgvOrdendeCompra.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvOrdendeCompra.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvOrdendeCompra.EditMode = DataGridViewEditMode.EditProgrammatically; dgvOrdendeCompra.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvOrdendeCompra.Location = new Point(18, 69); dgvOrdendeCompra.Location = new Point(834, 16);
dgvOrdendeCompra.Name = "dgvOrdendeCompra"; dgvOrdendeCompra.Name = "dgvOrdendeCompra";
dgvOrdendeCompra.RowTemplate.Height = 25;
dgvOrdendeCompra.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvOrdendeCompra.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvOrdendeCompra.Size = new Size(387, 294); dgvOrdendeCompra.Size = new Size(471, 457);
dgvOrdendeCompra.TabIndex = 23; dgvOrdendeCompra.TabIndex = 23;
// //
// label3 // label3
// //
label3.AutoSize = true; label3.AutoSize = true;
label3.Location = new Point(18, 51); label3.Location = new Point(834, -4);
label3.Name = "label3"; label3.Name = "label3";
label3.Size = new Size(146, 15); label3.Size = new Size(146, 15);
label3.TabIndex = 24; label3.TabIndex = 24;
@@ -150,7 +147,7 @@
// //
// btnAceptar // btnAceptar
// //
btnAceptar.Location = new Point(18, 372); btnAceptar.Location = new Point(12, 492);
btnAceptar.Name = "btnAceptar"; btnAceptar.Name = "btnAceptar";
btnAceptar.Size = new Size(75, 23); btnAceptar.Size = new Size(75, 23);
btnAceptar.TabIndex = 25; btnAceptar.TabIndex = 25;
@@ -160,7 +157,7 @@
// //
// btnCerrar // btnCerrar
// //
btnCerrar.Location = new Point(330, 375); btnCerrar.Location = new Point(1230, 479);
btnCerrar.Name = "btnCerrar"; btnCerrar.Name = "btnCerrar";
btnCerrar.Size = new Size(75, 23); btnCerrar.Size = new Size(75, 23);
btnCerrar.TabIndex = 26; btnCerrar.TabIndex = 26;
@@ -170,7 +167,7 @@
// //
// btnrmPresupuesto // btnrmPresupuesto
// //
btnrmPresupuesto.Location = new Point(592, 314); btnrmPresupuesto.Location = new Point(680, 218);
btnrmPresupuesto.Name = "btnrmPresupuesto"; btnrmPresupuesto.Name = "btnrmPresupuesto";
btnrmPresupuesto.Size = new Size(144, 29); btnrmPresupuesto.Size = new Size(144, 29);
btnrmPresupuesto.TabIndex = 27; btnrmPresupuesto.TabIndex = 27;
@@ -181,7 +178,7 @@
// label4 // label4
// //
label4.AutoSize = true; label4.AutoSize = true;
label4.Location = new Point(443, 348); label4.Location = new Point(19, 38);
label4.Name = "label4"; label4.Name = "label4";
label4.Size = new Size(61, 15); label4.Size = new Size(61, 15);
label4.TabIndex = 28; label4.TabIndex = 28;
@@ -193,19 +190,18 @@
dgvProveedor.AllowUserToDeleteRows = false; dgvProveedor.AllowUserToDeleteRows = false;
dgvProveedor.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvProveedor.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvProveedor.EditMode = DataGridViewEditMode.EditProgrammatically; dgvProveedor.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvProveedor.Location = new Point(443, 366); dgvProveedor.Location = new Point(18, 56);
dgvProveedor.MultiSelect = false; dgvProveedor.MultiSelect = false;
dgvProveedor.Name = "dgvProveedor"; dgvProveedor.Name = "dgvProveedor";
dgvProveedor.RowTemplate.Height = 25;
dgvProveedor.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvProveedor.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvProveedor.Size = new Size(347, 143); dgvProveedor.Size = new Size(454, 430);
dgvProveedor.TabIndex = 29; dgvProveedor.TabIndex = 29;
dgvProveedor.CellClick += dgvProveedor_CellClick; dgvProveedor.CellClick += dgvProveedor_CellClick;
// //
// label5 // label5
// //
label5.AutoSize = true; label5.AutoSize = true;
label5.Location = new Point(177, 29); label5.Location = new Point(314, 16);
label5.Name = "label5"; label5.Name = "label5";
label5.Size = new Size(32, 15); label5.Size = new Size(32, 15);
label5.TabIndex = 30; label5.TabIndex = 30;
@@ -214,7 +210,7 @@
// numTotal // numTotal
// //
numTotal.Enabled = false; numTotal.Enabled = false;
numTotal.Location = new Point(215, 25); numTotal.Location = new Point(352, 12);
numTotal.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 }); numTotal.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 });
numTotal.Name = "numTotal"; numTotal.Name = "numTotal";
numTotal.Size = new Size(120, 23); numTotal.Size = new Size(120, 23);
@@ -226,7 +222,7 @@
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
CancelButton = btnCerrar; CancelButton = btnCerrar;
ClientSize = new Size(1194, 527); ClientSize = new Size(1317, 527);
Controls.Add(numTotal); Controls.Add(numTotal);
Controls.Add(label5); Controls.Add(label5);
Controls.Add(dgvProveedor); Controls.Add(dgvProveedor);

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
@@ -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>
@@ -48,7 +48,7 @@
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter

View File

@@ -43,14 +43,14 @@
// groupBox1 // groupBox1
// //
groupBox1.Controls.Add(label2); groupBox1.Controls.Add(label2);
groupBox1.Controls.Add(BtnEliminar);
groupBox1.Controls.Add(BtnAdd);
groupBox1.Controls.Add(label1); groupBox1.Controls.Add(label1);
groupBox1.Controls.Add(dgvDetalles); groupBox1.Controls.Add(dgvDetalles);
groupBox1.Controls.Add(dgvOrdenDeCompra); groupBox1.Controls.Add(dgvOrdenDeCompra);
groupBox1.Controls.Add(BtnAdd);
groupBox1.Controls.Add(BtnEliminar);
groupBox1.Location = new Point(12, 3); groupBox1.Location = new Point(12, 3);
groupBox1.Name = "groupBox1"; groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(1211, 351); groupBox1.Size = new Size(1244, 500);
groupBox1.TabIndex = 4; groupBox1.TabIndex = 4;
groupBox1.TabStop = false; groupBox1.TabStop = false;
// //
@@ -81,7 +81,7 @@
dgvDetalles.Location = new Point(484, 22); dgvDetalles.Location = new Point(484, 22);
dgvDetalles.Name = "dgvDetalles"; dgvDetalles.Name = "dgvDetalles";
dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvDetalles.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvDetalles.Size = new Size(714, 235); dgvDetalles.Size = new Size(754, 472);
dgvDetalles.TabIndex = 4; dgvDetalles.TabIndex = 4;
// //
// dgvOrdenDeCompra // dgvOrdenDeCompra
@@ -94,13 +94,13 @@
dgvOrdenDeCompra.Location = new Point(6, 22); dgvOrdenDeCompra.Location = new Point(6, 22);
dgvOrdenDeCompra.Name = "dgvOrdenDeCompra"; dgvOrdenDeCompra.Name = "dgvOrdenDeCompra";
dgvOrdenDeCompra.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvOrdenDeCompra.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvOrdenDeCompra.Size = new Size(472, 235); dgvOrdenDeCompra.Size = new Size(472, 449);
dgvOrdenDeCompra.TabIndex = 3; dgvOrdenDeCompra.TabIndex = 3;
dgvOrdenDeCompra.CellClick += dgvOrdenDeCompra_CellClick; dgvOrdenDeCompra.CellClick += dgvOrdenDeCompra_CellClick;
// //
// BtnAdd // BtnAdd
// //
BtnAdd.Location = new Point(6, 263); BtnAdd.Location = new Point(6, 477);
BtnAdd.Name = "BtnAdd"; BtnAdd.Name = "BtnAdd";
BtnAdd.Size = new Size(75, 23); BtnAdd.Size = new Size(75, 23);
BtnAdd.TabIndex = 0; BtnAdd.TabIndex = 0;
@@ -110,7 +110,7 @@
// //
// BtnEliminar // BtnEliminar
// //
BtnEliminar.Location = new Point(87, 263); BtnEliminar.Location = new Point(87, 477);
BtnEliminar.Name = "BtnEliminar"; BtnEliminar.Name = "BtnEliminar";
BtnEliminar.Size = new Size(75, 23); BtnEliminar.Size = new Size(75, 23);
BtnEliminar.TabIndex = 2; BtnEliminar.TabIndex = 2;
@@ -122,7 +122,7 @@
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1250, 450); ClientSize = new Size(1268, 515);
Controls.Add(groupBox1); Controls.Add(groupBox1);
Name = "FrmOrdenesDeCompras"; Name = "FrmOrdenesDeCompras";
Text = "OrdenDeCompra"; Text = "OrdenDeCompra";

View File

@@ -57,7 +57,7 @@
groupBox1.Controls.Add(BtnEliminar); groupBox1.Controls.Add(BtnEliminar);
groupBox1.Location = new Point(12, 2); groupBox1.Location = new Point(12, 2);
groupBox1.Name = "groupBox1"; groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(1102, 377); groupBox1.Size = new Size(1229, 502);
groupBox1.TabIndex = 4; groupBox1.TabIndex = 4;
groupBox1.TabStop = false; groupBox1.TabStop = false;
// //
@@ -65,7 +65,7 @@
// //
numtotal.Enabled = false; numtotal.Enabled = false;
numtotal.InterceptArrowKeys = false; numtotal.InterceptArrowKeys = false;
numtotal.Location = new Point(665, 263); numtotal.Location = new Point(770, 473);
numtotal.Maximum = new decimal(new int[] { -727379969, 232, 0, 0 }); numtotal.Maximum = new decimal(new int[] { -727379969, 232, 0, 0 });
numtotal.Name = "numtotal"; numtotal.Name = "numtotal";
numtotal.Size = new Size(120, 23); numtotal.Size = new Size(120, 23);
@@ -74,7 +74,7 @@
// label3 // label3
// //
label3.AutoSize = true; label3.AutoSize = true;
label3.Location = new Point(624, 267); label3.Location = new Point(729, 477);
label3.Name = "label3"; label3.Name = "label3";
label3.Size = new Size(35, 15); label3.Size = new Size(35, 15);
label3.TabIndex = 8; label3.TabIndex = 8;
@@ -82,7 +82,7 @@
// //
// btnAceptarPresupuesto // btnAceptarPresupuesto
// //
btnAceptarPresupuesto.Location = new Point(456, 263); btnAceptarPresupuesto.Location = new Point(576, 473);
btnAceptarPresupuesto.Name = "btnAceptarPresupuesto"; btnAceptarPresupuesto.Name = "btnAceptarPresupuesto";
btnAceptarPresupuesto.Size = new Size(128, 23); btnAceptarPresupuesto.Size = new Size(128, 23);
btnAceptarPresupuesto.TabIndex = 7; btnAceptarPresupuesto.TabIndex = 7;
@@ -93,7 +93,7 @@
// label2 // label2
// //
label2.AutoSize = true; label2.AutoSize = true;
label2.Location = new Point(481, 7); label2.Location = new Point(573, 7);
label2.Name = "label2"; label2.Name = "label2";
label2.Size = new Size(48, 15); label2.Size = new Size(48, 15);
label2.TabIndex = 6; label2.TabIndex = 6;
@@ -112,11 +112,10 @@
// //
dgvdetallesPresupuesto.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvdetallesPresupuesto.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvdetallesPresupuesto.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvdetallesPresupuesto.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvdetallesPresupuesto.Location = new Point(456, 22); dgvdetallesPresupuesto.Location = new Point(573, 25);
dgvdetallesPresupuesto.Name = "dgvdetallesPresupuesto"; dgvdetallesPresupuesto.Name = "dgvdetallesPresupuesto";
dgvdetallesPresupuesto.RowTemplate.Height = 25;
dgvdetallesPresupuesto.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvdetallesPresupuesto.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvdetallesPresupuesto.Size = new Size(640, 235); dgvdetallesPresupuesto.Size = new Size(640, 442);
dgvdetallesPresupuesto.TabIndex = 4; dgvdetallesPresupuesto.TabIndex = 4;
// //
// dgvPresupuestos // dgvPresupuestos
@@ -125,15 +124,14 @@
dgvPresupuestos.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvPresupuestos.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvPresupuestos.Location = new Point(6, 22); dgvPresupuestos.Location = new Point(6, 22);
dgvPresupuestos.Name = "dgvPresupuestos"; dgvPresupuestos.Name = "dgvPresupuestos";
dgvPresupuestos.RowTemplate.Height = 25;
dgvPresupuestos.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvPresupuestos.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvPresupuestos.Size = new Size(420, 235); dgvPresupuestos.Size = new Size(561, 443);
dgvPresupuestos.TabIndex = 3; dgvPresupuestos.TabIndex = 3;
dgvPresupuestos.CellClick += dgvPresupuestos_CellClick; dgvPresupuestos.CellClick += dgvPresupuestos_CellClick;
// //
// BtnAdd // BtnAdd
// //
BtnAdd.Location = new Point(6, 263); BtnAdd.Location = new Point(6, 471);
BtnAdd.Name = "BtnAdd"; BtnAdd.Name = "BtnAdd";
BtnAdd.Size = new Size(75, 23); BtnAdd.Size = new Size(75, 23);
BtnAdd.TabIndex = 0; BtnAdd.TabIndex = 0;
@@ -143,7 +141,7 @@
// //
// BtnEliminar // BtnEliminar
// //
BtnEliminar.Location = new Point(87, 263); BtnEliminar.Location = new Point(87, 471);
BtnEliminar.Name = "BtnEliminar"; BtnEliminar.Name = "BtnEliminar";
BtnEliminar.Size = new Size(75, 23); BtnEliminar.Size = new Size(75, 23);
BtnEliminar.TabIndex = 2; BtnEliminar.TabIndex = 2;
@@ -155,7 +153,7 @@
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1126, 450); ClientSize = new Size(1253, 516);
Controls.Add(groupBox1); Controls.Add(groupBox1);
Name = "FrmPresupuestos"; Name = "FrmPresupuestos";
Text = "PedidosDePresupuestos"; Text = "PedidosDePresupuestos";

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
@@ -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>
@@ -48,7 +48,7 @@
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter

View File

@@ -167,7 +167,7 @@
dgvCategorias.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvCategorias.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvCategorias.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvCategorias.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvCategorias.EditMode = DataGridViewEditMode.EditProgrammatically; dgvCategorias.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvCategorias.Location = new Point(778, 343); dgvCategorias.Location = new Point(768, 333);
dgvCategorias.Name = "dgvCategorias"; dgvCategorias.Name = "dgvCategorias";
dgvCategorias.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvCategorias.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvCategorias.Size = new Size(250, 182); dgvCategorias.Size = new Size(250, 182);
@@ -176,7 +176,7 @@
// label1 // label1
// //
label1.AutoSize = true; label1.AutoSize = true;
label1.Location = new Point(781, 325); label1.Location = new Point(771, 315);
label1.Name = "label1"; label1.Name = "label1";
label1.Size = new Size(63, 15); label1.Size = new Size(63, 15);
label1.TabIndex = 7; label1.TabIndex = 7;

View File

@@ -45,7 +45,7 @@
groupBox1.Controls.Add(BtnModificar); groupBox1.Controls.Add(BtnModificar);
groupBox1.Location = new Point(12, 12); groupBox1.Location = new Point(12, 12);
groupBox1.Name = "groupBox1"; groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(1228, 351); groupBox1.Size = new Size(1228, 501);
groupBox1.TabIndex = 5; groupBox1.TabIndex = 5;
groupBox1.TabStop = false; groupBox1.TabStop = false;
// //
@@ -61,12 +61,12 @@
dataGridView1.Name = "dataGridView1"; dataGridView1.Name = "dataGridView1";
dataGridView1.ReadOnly = true; dataGridView1.ReadOnly = true;
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView1.Size = new Size(1216, 235); dataGridView1.Size = new Size(1216, 438);
dataGridView1.TabIndex = 3; dataGridView1.TabIndex = 3;
// //
// BtnAdd // BtnAdd
// //
BtnAdd.Location = new Point(6, 302); BtnAdd.Location = new Point(8, 466);
BtnAdd.Name = "BtnAdd"; BtnAdd.Name = "BtnAdd";
BtnAdd.Size = new Size(75, 23); BtnAdd.Size = new Size(75, 23);
BtnAdd.TabIndex = 0; BtnAdd.TabIndex = 0;
@@ -76,7 +76,7 @@
// //
// BtnEliminar // BtnEliminar
// //
BtnEliminar.Location = new Point(215, 302); BtnEliminar.Location = new Point(217, 466);
BtnEliminar.Name = "BtnEliminar"; BtnEliminar.Name = "BtnEliminar";
BtnEliminar.Size = new Size(75, 23); BtnEliminar.Size = new Size(75, 23);
BtnEliminar.TabIndex = 2; BtnEliminar.TabIndex = 2;
@@ -86,7 +86,7 @@
// //
// BtnModificar // BtnModificar
// //
BtnModificar.Location = new Point(108, 302); BtnModificar.Location = new Point(110, 466);
BtnModificar.Name = "BtnModificar"; BtnModificar.Name = "BtnModificar";
BtnModificar.Size = new Size(75, 23); BtnModificar.Size = new Size(75, 23);
BtnModificar.TabIndex = 1; BtnModificar.TabIndex = 1;
@@ -98,7 +98,7 @@
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1252, 382); ClientSize = new Size(1252, 513);
Controls.Add(groupBox1); Controls.Add(groupBox1);
Name = "FrmProveedores"; Name = "FrmProveedores";
Text = "Proveedores"; Text = "Proveedores";

View File

@@ -73,6 +73,7 @@ namespace Vista
{ {
Lote lote = new Lote Lote lote = new Lote
{ {
Id = detalle.Id,
Cantidad = detalle.Cantidad, Cantidad = detalle.Cantidad,
Fecha = DateTime.Now, Fecha = DateTime.Now,
Habilitado = true, Habilitado = true,

View File

@@ -29,25 +29,20 @@
private void InitializeComponent() private void InitializeComponent()
{ {
groupBox1 = new GroupBox(); groupBox1 = new GroupBox();
label3 = new Label();
label2 = new Label(); label2 = new Label();
label1 = new Label(); label1 = new Label();
dgvTodosLotes = new DataGridView();
dgvDetallesRemito = new DataGridView(); dgvDetallesRemito = new DataGridView();
dgvRemito = new DataGridView(); dgvRemito = new DataGridView();
BtnAdd = new Button(); BtnAdd = new Button();
groupBox1.SuspendLayout(); groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dgvTodosLotes).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvDetallesRemito).BeginInit(); ((System.ComponentModel.ISupportInitialize)dgvDetallesRemito).BeginInit();
((System.ComponentModel.ISupportInitialize)dgvRemito).BeginInit(); ((System.ComponentModel.ISupportInitialize)dgvRemito).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// groupBox1 // groupBox1
// //
groupBox1.Controls.Add(label3);
groupBox1.Controls.Add(label2); groupBox1.Controls.Add(label2);
groupBox1.Controls.Add(label1); groupBox1.Controls.Add(label1);
groupBox1.Controls.Add(dgvTodosLotes);
groupBox1.Controls.Add(dgvDetallesRemito); groupBox1.Controls.Add(dgvDetallesRemito);
groupBox1.Controls.Add(dgvRemito); groupBox1.Controls.Add(dgvRemito);
groupBox1.Controls.Add(BtnAdd); groupBox1.Controls.Add(BtnAdd);
@@ -57,15 +52,6 @@
groupBox1.TabIndex = 5; groupBox1.TabIndex = 5;
groupBox1.TabStop = false; groupBox1.TabStop = false;
// //
// label3
//
label3.AutoSize = true;
label3.Location = new Point(6, 301);
label3.Name = "label3";
label3.Size = new Size(90, 15);
label3.TabIndex = 8;
label3.Text = "Todos Los Lotes";
//
// label2 // label2
// //
label2.AutoSize = true; label2.AutoSize = true;
@@ -84,19 +70,6 @@
label1.TabIndex = 6; label1.TabIndex = 6;
label1.Text = "Remitos"; label1.Text = "Remitos";
// //
// dgvTodosLotes
//
dgvTodosLotes.AllowUserToAddRows = false;
dgvTodosLotes.AllowUserToDeleteRows = false;
dgvTodosLotes.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dgvTodosLotes.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvTodosLotes.EditMode = DataGridViewEditMode.EditProgrammatically;
dgvTodosLotes.Location = new Point(6, 319);
dgvTodosLotes.Name = "dgvTodosLotes";
dgvTodosLotes.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvTodosLotes.Size = new Size(1165, 153);
dgvTodosLotes.TabIndex = 5;
//
// dgvDetallesRemito // dgvDetallesRemito
// //
dgvDetallesRemito.AllowUserToAddRows = false; dgvDetallesRemito.AllowUserToAddRows = false;
@@ -107,7 +80,7 @@
dgvDetallesRemito.Location = new Point(562, 22); dgvDetallesRemito.Location = new Point(562, 22);
dgvDetallesRemito.Name = "dgvDetallesRemito"; dgvDetallesRemito.Name = "dgvDetallesRemito";
dgvDetallesRemito.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvDetallesRemito.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvDetallesRemito.Size = new Size(609, 235); dgvDetallesRemito.Size = new Size(689, 427);
dgvDetallesRemito.TabIndex = 4; dgvDetallesRemito.TabIndex = 4;
// //
// dgvRemito // dgvRemito
@@ -120,13 +93,13 @@
dgvRemito.Location = new Point(6, 22); dgvRemito.Location = new Point(6, 22);
dgvRemito.Name = "dgvRemito"; dgvRemito.Name = "dgvRemito";
dgvRemito.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvRemito.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dgvRemito.Size = new Size(550, 235); dgvRemito.Size = new Size(550, 427);
dgvRemito.TabIndex = 3; dgvRemito.TabIndex = 3;
dgvRemito.CellClick += dgvRemito_CellClick; dgvRemito.CellClick += dgvRemito_CellClick;
// //
// BtnAdd // BtnAdd
// //
BtnAdd.Location = new Point(6, 263); BtnAdd.Location = new Point(6, 455);
BtnAdd.Name = "BtnAdd"; BtnAdd.Name = "BtnAdd";
BtnAdd.Size = new Size(75, 23); BtnAdd.Size = new Size(75, 23);
BtnAdd.TabIndex = 0; BtnAdd.TabIndex = 0;
@@ -145,7 +118,6 @@
WindowState = FormWindowState.Maximized; WindowState = FormWindowState.Maximized;
groupBox1.ResumeLayout(false); groupBox1.ResumeLayout(false);
groupBox1.PerformLayout(); groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)dgvTodosLotes).EndInit();
((System.ComponentModel.ISupportInitialize)dgvDetallesRemito).EndInit(); ((System.ComponentModel.ISupportInitialize)dgvDetallesRemito).EndInit();
((System.ComponentModel.ISupportInitialize)dgvRemito).EndInit(); ((System.ComponentModel.ISupportInitialize)dgvRemito).EndInit();
ResumeLayout(false); ResumeLayout(false);
@@ -156,10 +128,8 @@
private GroupBox groupBox1; private GroupBox groupBox1;
private DataGridView dgvRemito; private DataGridView dgvRemito;
private Button BtnAdd; private Button BtnAdd;
private Label label3;
private Label label2; private Label label2;
private Label label1; private Label label1;
private DataGridView dgvTodosLotes;
private DataGridView dgvDetallesRemito; private DataGridView dgvDetallesRemito;
} }
} }

View File

@@ -21,14 +21,6 @@ namespace Vista
} }
private void ActualizarGrilla() private void ActualizarGrilla()
{ {
dgvTodosLotes.DataSource = null;
dgvTodosLotes.DataSource = ControladoraRemito.Instance.ListarLotes();
foreach (DataGridViewColumn column in dgvTodosLotes.Columns)
{
column.Visible = column.Name == "Id" || column.Name == "Fecha"
|| column.Name == "Cantidad" || column.Name == "NombreProducto";
}
dgvRemito.DataSource = null; dgvRemito.DataSource = null;
dgvRemito.DataSource = ControladoraRemito.Instance.Listar(); dgvRemito.DataSource = ControladoraRemito.Instance.Listar();
foreach (DataGridViewColumn column in dgvRemito.Columns) foreach (DataGridViewColumn column in dgvRemito.Columns)