void BilgiGetir()
        {
            _f.HastaList(true);
            _secimId = frmAnasayfa.aktarma;

            frmAnasayfa.aktarma = -1;
            if (_secimId > 0)
            {
                _edit          = true;
                btnKaydet.Text = "GÜNCELLE";
            }
            TblHasta hst = new TblHasta();

            hst                = _db.TblHastas.First(x => x.Id == _secimId);
            txtAd.Text         = hst.Ad;
            txtSoyad.Text      = hst.Soyad;
            txtProtokolNo.Text = hst.Prot;
            dtpOpTarih.Text    = hst.Opttar.ToString();
            txtOpTur.Text      = hst.Opttur;
            txtTakip.Text      = hst.Takip.ToString();
            txtAnah.Text       = hst.Anah.ToString();

            TblDemograf hd = _db.TblDemografs.First(x => x.HastaId == _secimId);

            txtYas.Text          = hd.Yas.ToString();
            txtBoy.Text          = hd.Boy.ToString();
            txtKilo.Text         = hd.Kilo.ToString();
            txtBMI.Text          = hd.BMI.ToString();
            cbAsa.Text           = hd.ASA.ToString();
            txtDr.Text           = hd.Dr;
            cbCins.Text          = hd.Cins;
            cbTaraf.Text         = hd.Taraf;
            txtLokalizasyon.Text = hd.Lklzsyn;
            txtBoyut.Text        = hd.Boyut.ToString();
            txtKoMorb.Text       = hd.Komorbid;

            Tbl_PatalojikVeri pv = _db.Tbl_PatalojikVeris.First(x => x.HastaId == _secimId);

            txtPatoloji.Text    = pv.Patoloji;
            txtAltGrup.Text     = pv.AltGr;
            cbFuhrman.Text      = pv.FurhmanGrade;
            cbPatEvre.Text      = pv.PatolojikEvre;
            cbCerrahiSinir.Text = pv.CerrahiSinir;

            TblOperaf op = _db.TblOperafs.First(x => x.HastaId == _secimId);

            cbPksAciklama.Text = op.PksAc;
            cbSIK.Text         = op.SIK;
            txtCoop.Text       = op.Coop;
            txtIskemi.Text     = op.Iskemi.ToString();
            txtPortSay.Text    = op.Portsay.ToString();
            txtYardimYnt.Text  = op.Yrdmynt;
            txtSure.Text       = op.Sure.ToString();
            txtDren.Text       = op.Dren.ToString();
            txtKanama.Text     = op.Kanama.ToString();
            txtPiyes.Text      = op.Piyes.ToString();

            TblPosOperaf po = _db.TblPosOperafs.First(x => x.HastaId == _secimId);

            cbPerErKom.Text       = po.PeropErkenKomp;
            txtPosAnaliz.Text     = po.PostopAn;
            cbSonda.Text          = po.Sonda;
            mtbPreobKeratin.Text  = po.preopKeratin.ToString();
            mtbPostopKeratin.Text = po.PostopKreatin.ToString();
            mtbPreopHct.Text      = po.PreopHtc.ToString();
            mtbPostopHct.Text     = po.PostopHct.ToString();
            mtbPreopHb.Text       = po.PreobHb.ToString();
            mtbPostopHb.Text      = po.PostopHb.ToString();
            txtPosTakip.Text      = po.Takip;
            txtTel.Text           = po.Tel;
            txtPostopGecKomp.Text = po.PostopGecKomp;
            txtKompClavien.Text   = po.KompClavien;



            TblTakip tkp = _db.TblTakips.First(x => x.HastaId == _secimId);

            cb3Nuks.Text       = tkp.Postop3Lkl;
            mtbPost3Kerat.Text = tkp.Postop3Krtn.ToString();

            cbNuks6.Text       = tkp.Postop6Lkl;
            mtbPost6Kerat.Text = tkp.Postop6Krtn.ToString();

            cbNuks12.Text       = tkp.Postop12Lkl;
            mtbPost12Kerat.Text = tkp.Postop12Krtn.ToString();
        }
Exemple #2
0
 private void btnHastaList_Click(object sender, EventArgs e)
 {
     _f.HastaList();
 }