private void ShowReport()
        {
            OperationResult objOperationResult  = new OperationResult();
            var             aptitudeCertificate = new ServiceBL().GetAptitudeCertificate(ref objOperationResult, _serviceId).ToList();
            var             TipoEso             = aptitudeCertificate[0].i_EsoTypeId.ToString();

            if (TipoEso == "3")
            {
                var       rp = new Reports.crOccupationalMedicalAptitudeCertificateRetiros();
                DataSet   ds = new DataSet();
                DataTable dt = Sigesoft.Node.WinClient.BLL.Utils.ConvertToDatatable(aptitudeCertificate);
                dt.TableName = "AptitudeCertificate";
                ds.Tables.Add(dt);
                rp.SetDataSource(ds);

                crystalReportViewer1.ReportSource = rp;
                crystalReportViewer1.Show();
            }
            else
            {
                var       rp = new Reports.crOccupationalMedicalAptitudeCertificate();
                DataSet   ds = new DataSet();
                DataTable dt = Sigesoft.Node.WinClient.BLL.Utils.ConvertToDatatable(aptitudeCertificate);
                dt.TableName = "AptitudeCertificate";
                ds.Tables.Add(dt);
                rp.SetDataSource(ds);

                crystalReportViewer1.ReportSource = rp;
                crystalReportViewer1.Show();
            }
        }
        private void ShowReport()
        {
            OperationResult objOperationResult = new OperationResult();
            var             rp = new Reports.crOccupationalMedicalAptitudeCertificate();

            var aptitudeCertificate = new ServiceBL().GetAptitudeCertificate(ref objOperationResult, _serviceId);

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

            dt.TableName = "AptitudeCertificate";
            ds.Tables.Add(dt);
            rp.SetDataSource(ds);

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