Beispiel #1
0
        private void frmVistaPreviaGlobalAnulados_Load(object sender, EventArgs e)
        {
            Reporteria datos = new Reporteria()
            {
                fecha_inicial = this.fechainicial,
                fecha_final   = this.fechafinal,
                idevento      = this.idEvento
            };
            Mensaje <List <Reporteria> > resp = new Mensaje <List <Reporteria> >();

            resp.data = datos.fechaAnulacion().data;

            try
            {
                this.rptanulados.LocalReport.ReportPath = @"..\..\Reportes\RptglobalAnulados.rdlc";
                this.rptanulados.LocalReport.DataSources.Clear();
                ReportDataSource ds = new ReportDataSource("dts_globalAnulados", resp.data);
                this.rptanulados.LocalReport.DataSources.Add(ds);
                this.rptanulados.LocalReport.Refresh();
                this.rptanulados.RefreshReport();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Referencia: " + ex.ToString());
            }

            this.rptanulados.RefreshReport();
        }
        private void frmVistaPreviaConceptoUsuario_Load(object sender, EventArgs e)
        {
            Reporteria datos = new Reporteria()
            {
                idevento = this.evento, idusuario = this.usuario, fecha_inicial = this.fechainicial, fecha_final = this.fechafinal
            };
            Mensaje <List <Reporteria> > resp = new Mensaje <List <Reporteria> >();

            resp.data = datos.individualConceptoFecha().data;

            try
            {
                this.rptconcepto.LocalReport.ReportPath = @"..\..\Reportes\RptfechaConcepto.rdlc";
                this.rptconcepto.LocalReport.DataSources.Clear();
                ReportDataSource ds = new ReportDataSource("dts_Concepto", resp.data);
                this.rptconcepto.LocalReport.DataSources.Add(ds);
                this.rptconcepto.LocalReport.Refresh();
                this.rptconcepto.RefreshReport();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Referencia: " + ex.ToString());
            }
        }