Example #1
0
        private VistaPrevia _PrepararReporte()
        {
            if (TB_Desde.Text == "")
            {
                TB_Desde.Text = "1";
            }

            if (TB_Hasta.Text == "")
            {
                TB_Hasta.Text = "9999";
            }

            ReportDocument reporte = new ListadoLegajos();

            string WFiltro = " AND ({Legajo.FEgreso} = '  /  /    ' OR {Legajo.FEgreso} = '00/00/0000') ";

            if (!checkBox1.Checked)
            {
                WFiltro = "";
            }

            VistaPrevia rp = new VistaPrevia();

            rp.CargarReporte(reporte, "{Legajo.Codigo}>=" + TB_Desde.Text + " AND {Legajo.Codigo}<=" + TB_Hasta.Text + " AND {Legajo.Renglon}=1" + WFiltro);
            return(rp);
        }
Example #2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ListadoLegajos rpt = new ListadoLegajos();

            rpt.Site = this.Site;
            return(rpt);
        }