private void btn_buscarv_Click(object sender, EventArgs e) { objListVentas2 = objVoucherDao.ListarCuentasPorPagarVencer(cmb_UnidadNegocio.SelectedValue.ToString(), Convert.ToInt32(cbx_anio.SelectedValue.ToString())); grd_Documentos2.DataSource = null; grd_Documentos2.DataSource = objListVentas2; sumatorias2(); }
public CuentasPorPagar() { InitializeComponent(); this.ControlBox = false; this.Text = "REPORTE DOCUMENTOS POR PAGAR"; this.StartPosition = FormStartPosition.Manual; this.Location = new System.Drawing.Point(20, 20); DateTime d1, d2; d2 = DateTime.Now; d1 = new DateTime(d2.Year, d2.Month, 1); dpickerInicio.Value = d1; gridParams(); gridParams2(); cmbUnidadNegocio(); cmbUnidadNegocio2(); objVoucherDao = new VoucherDAO(); /*pagar por vencimiento*/ objListVentas2 = objVoucherDao.ListarCuentasPorPagarVencer(Ventas.UNIDADNEGOCIO, 0); grd_Documentos2.DataSource = null; grd_Documentos2.DataSource = objListVentas2; sumatorias2(); /**/ grd_Documentos.DataSource = objListVentas; grd_Documentos.Refresh(); cbxanio(); cbxanio2(); cbxmes(); sumatorias(); }