private DataSet GetReportRX()
        {
            var rp = new Reports.crInformeRadiologico();

            var dataListForReport = new ServiceBL().ReportRadiologico(_serviceId, Constants.RX_TORAX_ID);

            dsGetRepo = new DataSet();

            DataTable dt = Sigesoft.Node.WinClient.BLL.Utils.ConvertToDatatable(dataListForReport);

            dt.TableName = "dtRadiologico";

            dsGetRepo.Tables.Add(dt);

            return(dsGetRepo);
        }
Пример #2
0
        private void ShowReport()
        {
            OperationResult objOperationResult = new OperationResult();

            var rp = new Reports.crInformeRadiologico();

            var     aptitudeCertificate = new ServiceBL().ReportRadiologico(_serviceId, Constants.RX_TORAX_ID);
            DataSet ds1 = new DataSet();

            DataTable dt = Sigesoft.Node.WinClient.BLL.Utils.ConvertToDatatable(aptitudeCertificate);

            dt.TableName = "dtRadiologico";

            ds1.Tables.Add(dt);

            rp.SetDataSource(ds1);

            crystalReportViewer1.ReportSource = rp;
            crystalReportViewer1.Show();
        }