コード例 #1
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            string          strListZonas     = Cadenas.ListToString(this.chkListProductos.CheckedItems, "");
            string          strListProductos = Cadenas.ListToString(this.chkListZonas.CheckedItems, "");
            BEFiltroTablero filtro           = new BEFiltroTablero();
            DSRptTablero    oDSRptTablero    = new DSRptTablero();

            filtro.strListZonas     = strListZonas;
            filtro.strListProductos = strListProductos;

            filtro.dtFechaInicio = this.dtpFechaInicial.Value.Date;
            filtro.dtFechaFinal  = this.dtpFechaFinal.Value.Date;

            oDSRptTablero = new BLVenta().ReporteHojaTablero(filtro);

            CRptHojaTablero oCRptReporteTablero = new CRptHojaTablero();

            oCRptReporteTablero.Refresh();
            oCRptReporteTablero.SetDataSource(oDSRptTablero);
            oCRptReporteTablero.SetParameterValue("fecha", DateTime.Now.Date);
            frmReporteViewer ofrmReporteViewer = new frmReporteViewer(oCRptReporteTablero);

            ofrmReporteViewer.MdiParent = this.ParentForm;
            ofrmReporteViewer.Visible   = true;
            ofrmReporteViewer.Show();
        }
コード例 #2
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            string          strListZonas     = Cadenas.ListToString(this.chkListProductos.CheckedItems, "");
            string          strListProductos = Cadenas.ListToString(this.chkListZonas.CheckedItems, "");
            BEFiltroTablero filtro           = new BEFiltroTablero();
            DSRptTablero    oDSRptTablero    = new DSRptTablero();

            filtro.strListZonas     = strListZonas;
            filtro.strListProductos = strListProductos;

            filtro.dtFechaInicio = this.dtpFechaInicial.Value.Date;
            filtro.dtFechaFinal  = this.dtpFechaFinal.Value.Date;
            filtro.IdCaja        = VariablesSession.BEUsuarioSession.IdCaja;
            filtro.IdModoReporte = this.chkResumido.Checked.GetHashCode();
            oDSRptTablero        = new BLVenta().ReporteCobranzaCobrador(filtro);

            CRRendicion oCRptReporteTablero = new CRRendicion();

            oCRptReporteTablero.Refresh();
            oCRptReporteTablero.SetDataSource(oDSRptTablero);
            //oCRptReporteTablero.SetParameterValue("fecha" ,DateTime.Now.Date );
            frmReporteViewer ofrmReporteViewer = new frmReporteViewer(oCRptReporteTablero);

            ofrmReporteViewer.MdiParent = this.ParentForm;
            ofrmReporteViewer.Visible   = true;
            ofrmReporteViewer.Show();
        }