Beispiel #1
0
        private void dgvRandevular_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                var _kabulId = dgvRandevular.CurrentRow.Cells[0].Value;
                _secilenHasta            = _hastaKabulService.GetHastaKabulById(Convert.ToInt32(_kabulId));
                txtAd.Text               = _secilenHasta.Hastalar.Ad + " " + _secilenHasta.Hastalar.Soyad;
                txtTCKimlikNo.Text       = _secilenHasta.Hastalar.TCKimlikNo;
                txtKlinikAdi.Text        = _secilenHasta.Personeller.Klinikler.KlinikAd;
                txtDoktorAdi.Text        = _secilenHasta.Personeller.Ad + " " + _secilenHasta.Personeller.Soyad;
                txtKanGrubu.Text         = _secilenHasta.Hastalar.KanGrubu;
                txtRandevuTarih.Text     = _secilenHasta.GelisTarihi.ToShortDateString();
                txtRandevuSaat.Text      = _secilenHasta.GelisTarihi.ToShortTimeString();
                txtSigortaKurumu.Text    = _secilenHasta.Hastalar.Kurumlar.KurumAd;
                txtIstenenTahliller.Text = _secilenHasta.IstenenTahliller;

                var sikayet = _hastaSikayetleriService.GetHastaSikayetleriByKabulId(_secilenHasta.KabulID);
                txtHastaSikayeti.Text = sikayet != null ? sikayet.Aciklama : "";
                var teshis = _teshisService.GetTeshisByKabulId(_secilenHasta.KabulID);
                txtTeshis.Text = teshis != null ? teshis.Teshis : "";

                ReceteListesiDoldur();
                HizmetleriDoldur();
                HastaHizmetHareketlerDoldur();
                TahlilleriDoldur();
            }
            catch (Exception)
            {
                // ignored
            }
        }
        private void dgvRandevular_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                var _kabulId = dgvRandevular.CurrentRow.Cells[0].Value;
                SecilenHasta          = _hastaKabulService.GetHastaKabulById(Convert.ToInt32(_kabulId));
                txtAd.Text            = SecilenHasta.Hastalar.Ad + " " + SecilenHasta.Hastalar.Soyad;
                txtTCKimlikNo.Text    = SecilenHasta.Hastalar.TCKimlikNo;
                txtKlinikAdi.Text     = SecilenHasta.Personeller.Klinikler.KlinikAd;
                txtDoktorAdi.Text     = SecilenHasta.Personeller.Ad + " " + SecilenHasta.Personeller.Soyad;
                txtKanGrubu.Text      = SecilenHasta.Hastalar.KanGrubu;
                txtRandevuTarih.Text  = SecilenHasta.GelisTarihi.ToShortDateString();
                txtRandevuSaat.Text   = SecilenHasta.GelisTarihi.ToShortTimeString();
                txtSigortaKurumu.Text = SecilenHasta.Hastalar.Kurumlar.KurumAd;
                try
                {
                    var sikayet = _hastaSikayetleriService.GetHastaSikayetleriByKabulId(SecilenHasta.KabulID);
                    txtHastaSikayeti.Text = sikayet.Aciklama;
                }
                catch (Exception)
                {
                    txtHastaSikayeti.Text = "";
                }

                //TahlilleriDoldur();
            }
            catch (Exception)
            {
                // ignored
            }
        }