dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
164
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
180
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
191
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
{{public Entidades.Colecciones.LineasVentas RecuperarTodos(int codigoVenta)public Entidades.Colecciones.LineasVentas RecuperarTodos(Entidades.Venta oVenta){{return new Tecnoplas.Entidades.Colecciones.LineasVentas();MySqlConnection oConn = Datos.General.CrearConexion();using (oConn){MySqlCommand oCmd = new MySqlCommand();using (oCmd){oCmd.Connection = oConn;oCmd.CommandType = CommandType.StoredProcedure;oCmd.CommandText = "lineas_venta_recuperartodos";oCmd.Parameters.AddWithValue("p_codigo_venta", oVenta.Codigo);Entidades.Colecciones.LineasVentas oLineasVentas = new Entidades.Colecciones.LineasVentas();try{oConn.Open();MySqlDataReader oReader = oCmd.ExecuteReader();using (oReader){while (oReader.Read()){// Creamos un nuevo objeto.Entidades.LineaVenta oLineaVenta = new Entidades.LineaVenta();// Lo completamos con la informacion del Reader.oLineaVenta.Codigo = Convert.ToInt32(oReader["codigo_linea_venta"]);oLineaVenta.Venta = oVenta;oLineaVenta.Producto = new Productos().RecuperarUno(Convert.ToString(oReader["codigo_producto"]))[0];oLineaVenta.Cantidad = Convert.ToInt32(oReader["cantidad"]);// Lo agregamos a la coleccionoLineasVentas.Add(oLineaVenta);oLineaVenta = null;}oConn.Close();return oLineasVentas;}}finally{oLineasVentas = null;}}}oVenta.LineasVentas = new LineasVenta().RecuperarTodos(oVenta.Codigo);this.ShowInTaskbar = false;CargarCondicionesIVA();cbxIVA.Text = Convert.ToString(oCliente.CondicionIVA.Descripcion);cbxIVA.SelectedIndex = cbxIVA.Items.IndexOf(Convert.ToString(oCliente.CondicionIVA.Descripcion));this.cbxIVA.TabIndex = 5;this.cbxIVA.TabIndex = 6;this.txtRazonSocial.TabIndex = 1;this.txtRazonSocial.TabIndex = 2;this.txtDomicilio.TabIndex = 2;this.txtDomicilio.TabIndex = 3;this.btnCancelar.TabIndex = 7;this.btnCancelar.TabIndex = 8;this.btnGuardar.TabIndex = 6;this.btnGuardar.TabIndex = 7;this.txtCUIT.TabIndex = 4;this.txtCUIT.TabIndex = 5;this.txtCodigo.TabIndex = 0;this.txtCodigo.TabIndex = 1;this.txtTelefono.TabIndex = 3;this.txtTelefono.TabIndex = 4;{{this.codigoDevuelto = Convert.ToInt32(this.dgvClientes.SelectedRows[0].Cells[0].Value.ToString());this.dgvClientes.TabIndex = 4;this.dgvClientes.TabIndex = 3;this.menuPrincipal.Size = new System.Drawing.Size(827, 36);this.menuPrincipal.Size = new System.Drawing.Size(827, 38);this.btnAgregar.Size = new System.Drawing.Size(84, 33);this.btnAgregar.Size = new System.Drawing.Size(91, 35);this.separador1.Size = new System.Drawing.Size(6, 36);this.separador1.Size = new System.Drawing.Size(6, 38);this.btnModificar.Size = new System.Drawing.Size(88, 33);this.btnModificar.Size = new System.Drawing.Size(100, 35);this.separador2.Size = new System.Drawing.Size(6, 36);this.separador2.Size = new System.Drawing.Size(6, 38);this.btnEliminar.Size = new System.Drawing.Size(81, 33);this.btnEliminar.Size = new System.Drawing.Size(92, 35);this.separador3.Size = new System.Drawing.Size(6, 36);this.separador3.Size = new System.Drawing.Size(6, 38);this.btnCerrar.Size = new System.Drawing.Size(42, 33);this.btnCerrar.Size = new System.Drawing.Size(43, 35);this.cbxIVA.TabIndex = 3;this.cbxIVA.TabIndex = 2;this.lblUsuario.TabIndex = 1;this.lblUsuario.TabIndex = 0;this.lblPassword.TabIndex = 2;this.lblPassword.TabIndex = 0;this.txtUsuario.TabIndex = 3;this.txtUsuario.TabIndex = 1;this.txtPassword.TabIndex = 4;this.txtPassword.TabIndex = 2;this.btnIngresar.TabIndex = 5;this.btnIngresar.TabIndex = 3;this.btnSalir.TabIndex = 6;this.btnSalir.TabIndex = 4;{{this.txtCodigo.Enabled = false;// Mostrar Errores{{this.txtCodigo.TabIndex = 0;this.txtCodigo.TabIndex = 1;this.lblCodigo.TabIndex = 1;this.lblCodigo.TabIndex = 0;this.grpDatosProducto.TabIndex = 4;this.grpDatosProducto.TabIndex = 0;this.txtStock.TabIndex = 24;this.grpMedidas.TabIndex = 23;this.grpMedidas.TabIndex = 0;this.lblDensidad.TabIndex = 30;this.lblMilimetros4.TabIndex = 35;this.lblMilimetros4.TabIndex = 0;this.lblCantidadLitros.TabIndex = 29;this.lblCantidadLitros.TabIndex = 0;this.txtMedidaTapa.TabIndex = 34;this.txtMedidaTapa.TabIndex = 12;this.lblMedidaTapa.TabIndex = 28;this.lblMedidaTapa.TabIndex = 0;this.cbxMedidaTapa.TabIndex = 33;this.cbxMedidaTapa.TabIndex = 11;this.lblMedidaBase.TabIndex = 27;this.lblMedidaBase.TabIndex = 0;this.lblMilimetros5.TabIndex = 32;this.lblMilimetros5.TabIndex = 0;this.lblMedidaAncho.TabIndex = 26;this.lblMedidaAncho.TabIndex = 0;this.txtDensidad.TabIndex = 31;this.txtDensidad.TabIndex = 16;this.lblMedidaAlto.TabIndex = 25;this.lblMedidaAlto.TabIndex = 0;this.cbxDensidad.TabIndex = 30;this.cbxDensidad.TabIndex = 15;this.lblLitros.TabIndex = 29;this.lblLitros.TabIndex = 0;this.cbxCantidadLitros.TabIndex = 28;this.cbxCantidadLitros.TabIndex = 13;this.lblMilimetros3.TabIndex = 27;this.lblMilimetros3.TabIndex = 0;this.cbxMedidaBase.TabIndex = 26;this.cbxMedidaBase.TabIndex = 9;this.lblMilimetros2.TabIndex = 25;this.lblMilimetros2.TabIndex = 0;this.cbxMedidaAncho.TabIndex = 24;this.cbxMedidaAncho.TabIndex = 7;this.lblMilimetros1.TabIndex = 23;this.lblMilimetros1.TabIndex = 0;this.cbxMedidaAlto.TabIndex = 22;this.cbxMedidaAlto.TabIndex = 5;this.txtMedidaAlto.TabIndex = 10;this.txtMedidaAlto.TabIndex = 6;this.txtCantidadLitros.TabIndex = 13;this.txtCantidadLitros.TabIndex = 14;this.txtMedidaAncho.TabIndex = 11;this.txtMedidaAncho.TabIndex = 8;this.txtMedidaBase.TabIndex = 12;this.txtMedidaBase.TabIndex = 10;this.label5.TabIndex = 20;this.label1.TabIndex = 16;this.label1.TabIndex = 0;this.lblRequerido1.TabIndex = 6;this.lblRequerido1.TabIndex = 0;this.txtDescripcion.TabIndex = 8;this.txtDescripcion.TabIndex = 3;this.txtNombre.TabIndex = 6;this.txtNombre.TabIndex = 2;this.lblStock.TabIndex = 2;this.lblStock.TabIndex = 0;this.lblDescripcion.TabIndex = 1;this.lblDescripcion.TabIndex = 0;this.lblRequeridoMain.TabIndex = 5;this.lblRequeridoMain.TabIndex = 0;this.btnGuardar.TabIndex = 10;this.btnGuardar.TabIndex = 17;this.btnCancelar.TabIndex = 11;this.btnCancelar.TabIndex = 18;this.menuPrincipal.Size = new System.Drawing.Size(877, 36);this.menuPrincipal.Size = new System.Drawing.Size(877, 38);this.btnAgregar.Size = new System.Drawing.Size(101, 33);this.btnAgregar.Size = new System.Drawing.Size(110, 35);this.separador1.Size = new System.Drawing.Size(6, 36);this.separador1.Size = new System.Drawing.Size(6, 38);this.btnModificar.Size = new System.Drawing.Size(105, 33);this.btnModificar.Size = new System.Drawing.Size(119, 35);this.separador2.Size = new System.Drawing.Size(6, 36);this.separador2.Size = new System.Drawing.Size(6, 38);this.btnEliminar.Size = new System.Drawing.Size(98, 33);this.btnEliminar.Size = new System.Drawing.Size(111, 35);this.separador3.Size = new System.Drawing.Size(6, 36);this.separador3.Size = new System.Drawing.Size(6, 38);this.btnCerrar.Size = new System.Drawing.Size(42, 33);this.btnCerrar.Size = new System.Drawing.Size(43, 35);this.lblFiltrar.TabIndex = 7;this.lblFiltrar.TabIndex = 0;this.txtBuscar.TabIndex = 9;this.txtBuscar.TabIndex = 2;this.cbxFiltrar.TabIndex = 8;this.cbxFiltrar.TabIndex = 1;this.dgvProductos.TabIndex = 10;this.dgvProductos.TabIndex = 3;this.txtCUIT = new System.Windows.Forms.TextBox();this.grpDatosProveedor.Controls.Add(this.txtCUIT);this.lblRequerido5.TabIndex = 13;this.lblRequerido5.TabIndex = 0;this.txtLocalidad.TabIndex = 7;this.txtLocalidad.TabIndex = 6;this.lblRequerido4.TabIndex = 14;this.lblRequerido4.TabIndex = 0;this.txtTelefono.TabIndex = 6;this.txtTelefono.TabIndex = 5;this.lblRequerido3.TabIndex = 15;this.lblRequerido3.TabIndex = 0;this.txtDomicilio.TabIndex = 5;this.txtDomicilio.TabIndex = 4;this.lblRequerido2.TabIndex = 10;// txtCUIT//this.txtCUIT.Location = new System.Drawing.Point(118, 75);this.txtCUIT.Name = "txtCUIT";this.txtCUIT.Size = new System.Drawing.Size(181, 20);this.txtCUIT.TabIndex = 4;//this.txtRazonSocial.TabIndex = 3;this.txtRazonSocial.TabIndex = 2;this.lblRequerido1.TabIndex = 12;this.lblRequerido1.TabIndex = 0;this.btnCancelar.TabIndex = 9;this.btnCancelar.TabIndex = 8;this.btnGuardar.TabIndex = 8;this.btnGuardar.TabIndex = 7;this.lblRequeridoMain.TabIndex = 11;this.lblRequeridoMain.TabIndex = 0;private System.Windows.Forms.TextBox txtCUIT;{{System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();this.menuPrincipal.Size = new System.Drawing.Size(827, 36);this.menuPrincipal.Size = new System.Drawing.Size(827, 38);this.btnAgregar.Size = new System.Drawing.Size(114, 33);this.btnAgregar.Size = new System.Drawing.Size(121, 35);this.separador1.Size = new System.Drawing.Size(6, 36);this.separador1.Size = new System.Drawing.Size(6, 38);this.btnModificar.Size = new System.Drawing.Size(118, 33);this.btnModificar.Size = new System.Drawing.Size(130, 35);this.separador2.Size = new System.Drawing.Size(6, 36);this.separador2.Size = new System.Drawing.Size(6, 38);this.btnEliminar.Size = new System.Drawing.Size(111, 33);this.btnEliminar.Size = new System.Drawing.Size(122, 35);this.separador3.Size = new System.Drawing.Size(6, 36);this.separador3.Size = new System.Drawing.Size(6, 38);this.btnCerrar.Size = new System.Drawing.Size(42, 33);this.btnCerrar.Size = new System.Drawing.Size(43, 35);this.lblFiltrar.TabIndex = 7;this.lblFiltrar.TabIndex = 0;this.txtBuscar.TabIndex = 9;this.txtBuscar.TabIndex = 2;this.cbxFiltrar.TabIndex = 8;this.cbxFiltrar.TabIndex = 1;dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;this.dgvProveedores.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;this.dgvProveedores.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;this.dgvProveedores.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {this.dgvProveedores.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;this.dgvProveedores.DefaultCellStyle = dataGridViewCellStyle5;this.dgvProveedores.DefaultCellStyle = dataGridViewCellStyle2;dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;this.dgvProveedores.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;this.dgvProveedores.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;this.dgvProveedores.TabIndex = 10;this.dgvProveedores.TabIndex = 3;{{// Llamar a la lista de productosnew frmProductosLista().Show();{{{{{// No quiero que me muestre nada sino encuentra el codigo, simplemente que el fondo// el fondo del TextBox se ponga rojo.this.txtCodigoCliente.BackColor = Color.WhiteSmoke;this.txtCodigoCliente.BackColor = Color.RoyalBlue;private void btnBuscarCliente_Click(object sender, EventArgs e)private void txtFechaFactura_Enter(object sender, EventArgs e){{// Solo si no hay una fecha completamente ingresada, la pisamos con la fecha actualif(!this.txtFechaFactura.MaskCompleted)this.txtFechaFactura.Text = DateTime.Today.ToString();private void dgvLineasVenta_CellClick(object sender, DataGridViewCellEventArgs e){// Si la columna de la celda seleccionada es la 1 (asumo es producto)...if (dgvLineasVenta.SelectedCells[0].ColumnIndex == 1){new frmProductosLista().Show();}}{this.btnBuscarCliente = new System.Windows.Forms.Button();this.colCodigo = new System.Windows.Forms.DataGridViewTextBoxColumn();this.colNombre = new System.Windows.Forms.DataGridViewTextBoxColumn();this.colDescripcion = new System.Windows.Forms.DataGridViewTextBoxColumn();this.PrecioUnitario = new System.Windows.Forms.DataGridViewTextBoxColumn();this.lblNumeroFactura.TabIndex = 2;this.lblNumeroFactura.TabIndex = 0;this.txtNumeroFactura.TabIndex = 3;this.txtNumeroFactura.TabIndex = 2;this.grpDatosFactura.TabIndex = 4;this.grpDatosFactura.TabIndex = 0;this.txtFechaFactura.TabIndex = 7;this.txtFechaFactura.TabIndex = 3;this.lblFechaFactura.TabIndex = 6;this.lblFechaFactura.TabIndex = 0;this.cbxFormaPago.TabIndex = 5;this.cbxFormaPago.TabIndex = 4;this.lblFormaPago.TabIndex = 4;this.lblFormaPago.TabIndex = 0;this.grpDatosCliente.Controls.Add(this.btnBuscarCliente);this.grpDatosCliente.TabIndex = 14;this.grpDatosCliente.TabIndex = 0;this.txtIVA.TabIndex = 16;this.txtIVA.TabIndex = 9;// btnBuscarCliente//this.btnBuscarCliente.Location = new System.Drawing.Point(214, 26);this.btnBuscarCliente.Name = "btnBuscarCliente";this.btnBuscarCliente.Size = new System.Drawing.Size(90, 23);this.btnBuscarCliente.TabIndex = 13;this.btnBuscarCliente.Text = "Buscar...";this.btnBuscarCliente.UseVisualStyleBackColor = true;this.btnBuscarCliente.Click += new System.EventHandler(this.btnBuscarCliente_Click);//this.txtCodigoCliente.TabIndex = 12;this.txtCodigoCliente.TabIndex = 5;this.lblCodigoCliente.TabIndex = 11;this.lblCodigoCliente.TabIndex = 0;this.txtRazonSocial.TabIndex = 3;this.txtRazonSocial.TabIndex = 7;this.txtCUIT.TabIndex = 6;this.txtCUIT.TabIndex = 8;this.grpLineasVenta.TabIndex = 15;this.grpLineasVenta.TabIndex = 0;this.dgvLineasVenta.TabIndex = 11;this.dgvLineasVenta.TabIndex = 10;this.dgvLineasVenta.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvLineasVenta_CellClick);this.btnQuitarProducto.TabIndex = 12;this.btnAgregarProducto.TabIndex = 11;this.lblRequeridoMain.TabIndex = 16;this.lblRequeridoMain.TabIndex = 0;this.btnAceptar.TabIndex = 17;this.btnAceptar.TabIndex = 13;this.btnCancelar.TabIndex = 18;this.btnCancelar.TabIndex = 14;// colCodigo//this.colCodigo.DataPropertyName = "Codigo";this.colCodigo.HeaderText = "Código";this.colCodigo.Name = "colCodigo";this.colCodigo.ReadOnly = true;this.colCodigo.Width = 50;//// colNombre//this.colNombre.DataPropertyName = "Producto";this.colNombre.HeaderText = "Producto";this.colNombre.Name = "colNombre";this.colNombre.ReadOnly = true;this.colNombre.Width = 200;//// colDescripcion//this.colDescripcion.DataPropertyName = "Cantidad";this.colDescripcion.HeaderText = "Cantidad";this.colDescripcion.Name = "colDescripcion";this.colDescripcion.Width = 75;//// PrecioUnitario//this.PrecioUnitario.HeaderText = "Precio Unitario";this.PrecioUnitario.Name = "PrecioUnitario";this.PrecioUnitario.ReadOnly = true;//private System.Windows.Forms.Button btnBuscarCliente;this.colCodigo = new System.Windows.Forms.DataGridViewTextBoxColumn();this.colNroFactura = new System.Windows.Forms.DataGridViewTextBoxColumn();this.colFechaFactura = new System.Windows.Forms.DataGridViewTextBoxColumn();this.colCliente = new System.Windows.Forms.DataGridViewTextBoxColumn();this.colFormaPago = new System.Windows.Forms.DataGridViewTextBoxColumn();this.lblFiltrar.TabIndex = 12;this.lblFiltrar.TabIndex = 0;this.txtBuscar.TabIndex = 14;this.txtBuscar.TabIndex = 2;this.cbxFiltrar.TabIndex = 13;this.dgvVentas.TabIndex = 15;this.dgvVentas.TabIndex = 3;this.menuPrincipal.Size = new System.Drawing.Size(877, 36);this.menuPrincipal.Size = new System.Drawing.Size(877, 38);this.btnAgregar.Size = new System.Drawing.Size(81, 33);this.btnAgregar.Size = new System.Drawing.Size(85, 35);this.separador1.Size = new System.Drawing.Size(6, 36);this.separador1.Size = new System.Drawing.Size(6, 38);this.btnConsultar.Size = new System.Drawing.Size(88, 33);this.btnConsultar.Size = new System.Drawing.Size(94, 35);this.separador2.Size = new System.Drawing.Size(6, 36);this.separador2.Size = new System.Drawing.Size(6, 38);this.btnCerrar.Size = new System.Drawing.Size(42, 33);this.btnCerrar.Size = new System.Drawing.Size(43, 35);// colCodigo//this.colCodigo.DataPropertyName = "Codigo";this.colCodigo.HeaderText = "Código";this.colCodigo.Name = "colCodigo";this.colCodigo.ReadOnly = true;this.colCodigo.Width = 50;//// colNroFactura//this.colNroFactura.DataPropertyName = "NumeroFactura";this.colNroFactura.HeaderText = "Nro Factura";this.colNroFactura.Name = "colNroFactura";this.colNroFactura.ReadOnly = true;this.colNroFactura.Width = 75;//// colFechaFactura//this.colFechaFactura.DataPropertyName = "FechaFactura";this.colFechaFactura.HeaderText = "Fecha";this.colFechaFactura.Name = "colFechaFactura";this.colFechaFactura.Width = 75;//// colCliente//this.colCliente.DataPropertyName = "DatosCliente";this.colCliente.HeaderText = "Cliente";this.colCliente.Name = "colCliente";this.colCliente.ReadOnly = true;this.colCliente.Width = 250;//// colFormaPago//this.colFormaPago.DataPropertyName = "DescripcionFormaPago";this.colFormaPago.HeaderText = "Forma de Pago";this.colFormaPago.Name = "colFormaPago";this.colFormaPago.ReadOnly = true;this.colFormaPago.Width = 150;//