private void btnBuscarDoc_Click(object sender, EventArgs e) { frmConsultaVentas frm = new frmConsultaVentas(cod_tienda, true, true); frm.ShowDialog(); if ((frm.ent_venta != null)) { reiniciarCredito(); txtNroDocumento.Text = (frm.ent_venta.nro_doc_str == null) ? "" : frm.ent_venta.nro_doc_str; cboTipoVenta.SelectedValue = (frm.ent_venta.tipo_venta == null) ? "" : frm.ent_venta.tipo_venta; txtFecha.Text = (frm.ent_venta.emision == null) ? "" : frm.ent_venta.emision; } }
private void ventasToolStripMenuItem1_Click(object sender, EventArgs e) { frmConsultaVentas frm = new frmConsultaVentas(cod_tienda); frm.ShowDialog(); }