Example #1
0
        private void FormTahlilYazdir_Load(object sender, EventArgs e)
        {
            var data = _hastaTahlilSonuclariRepository.GetList(x => x.TahlilAdi == _cbTahlillerSelectedValue && x.KabulID == _secilenHasta.KabulID);

            this.HastaTahlilSonuclariBindingSource.DataSource = data;

            var p = new[]
            {
                new ReportParameter("AdSoyad", _secilenHasta.Hastalar.Ad + " " + _secilenHasta.Hastalar.Soyad),
                new ReportParameter("Doktor", _secilenHasta.Personeller.Unvanlar.PersonelUnvan + " " + _secilenHasta.Personeller.Ad + " " + _secilenHasta.Personeller.Soyad),
                new ReportParameter("Aciklama", "-"),
                new ReportParameter("YapilanTest", _cbTahlillerSelectedValue),
                new ReportParameter("Cinsiyet", _secilenHasta.Hastalar.Cinsiyet),
                new ReportParameter("DogumTarihi", _secilenHasta.Hastalar.DogumTarihi.Value.ToShortDateString()),
                new ReportParameter("Klinik", _secilenHasta.Klinikler.KlinikAd),
            };

            reportViewer1.LocalReport.SetParameters(p);
            this.reportViewer1.RefreshReport();
        }
 public List <HastaTahlilSonuclari> HizmetList()
 {
     return(_hastaTahlilSonuclariRepository.GetList(null));
 }