示例#1
0
 private void btn_reporteletras_Click_1(object sender, EventArgs e)
 {
     objReporteListLetra    = objVoucherDao.ReportelistarLetra(Ventas.UNIDADNEGOCIO, dpickerInicio.Value, dpickerFin.Value, cmb_Estado.SelectedValue.ToString(), txt_Ruc.Text);
     dgv_reporte.DataSource = null;
     dgv_reporte.DataSource = objReporteListLetra;
     dgv_reporte.Refresh();
 }
示例#2
0
        public CanjeLetra()
        {
            InitializeComponent();
            formReporteProveedor = this;
            this.Text            = "CANJE LETRAS";
            this.ControlBox      = false;
            this.StartPosition   = FormStartPosition.Manual;
            this.Location        = new Point(50, 20);
            DateTime d1, d2;

            d2 = DateTime.Now;
            d1 = new DateTime(d2.Year, d2.Month, 1);
            dpickerInicio.Value = d1;
            gridParams();
            gridParams2();
            objVoucherDao          = new VoucherDAO();
            objListLetra           = objVoucherDao.listarLetra(Ventas.UNIDADNEGOCIO, dpickerInicio.Value, dpickerFin.Value, "NN", txt_Ruc.Text);
            objReporteListLetra    = objVoucherDao.ReportelistarLetra(Ventas.UNIDADNEGOCIO, dpickerInicio.Value, dpickerFin.Value, "NN", txt_Ruc.Text);
            dgv_reporte.DataSource = objReporteListLetra;
            grd_letra.DataSource   = objListLetra;
            dgv_reporte.Refresh();
            grd_letra.Refresh();
            cmbEstado();
        }