Beispiel #1
0
        private void btnIslemiBitir_Click(object sender, EventArgs e)
        {
            if (_secilenHasta == null)
            {
                return;
            }

            var Secim = MessageBox.Show("Ödemeyi Onaylıyor musunuz_?", "Dikkat!", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);

            if (Secim != DialogResult.Yes)
            {
                return;
            }
            _secilenHasta.CikisTarihi = DateTime.Now;
            _hastaKabulService.Edit(_secilenHasta);
            var model = new Odemeler
            {
                Tarih     = DateTime.Now,
                KabulID   = _secilenHasta.KabulID,
                OdemeTuru = "Nakit",
                Toplam    = Convert.ToDecimal(_genelToplam),
                Indirim   = Convert.ToDecimal((_genelToplam * _secilenHasta.Hastalar.Kurumlar.Iskonto / 100)),
                Aciklama  = "-"
            };

            _odemeRepository.Add(model);

            MessageBox.Show("Hasta Ödemesi ve Hasta Çıkışı Başarıyla Gerçekleştirildi.", "İşlem Gerçekleştirildi!",
                            MessageBoxButtons.OK, MessageBoxIcon.Information);

            RandevuluHastalarDoldur();
        }
 private void btnTahlilYapildiIsaretle_Click(object sender, EventArgs e)
 {
     if (_secilenHasta == null)
     {
         return;
     }
     _secilenHasta.TahlilYapildiMi = true;
     _hastaKabulService.Edit(_secilenHasta);
     MessageBox.Show("Hastanın Tüm Tahlilleri Doktora Gönderildi", "İşlem Gerçekleştirildi!", MessageBoxButtons.OK, MessageBoxIcon.Information);
     TahlilIstenenHastalarDoldur();
 }
Beispiel #3
0
        private void btnTahlilIste_Click(object sender, EventArgs e)
        {
            if (_secilenHasta == null)
            {
                return;
            }
            if (txtIstenenTahliller.Text == null)
            {
                return;
            }
            _secilenHasta.IstenenTahliller = txtIstenenTahliller.Text;
            _secilenHasta.TahlilYapildiMi  = false;
            var result = _hastaKabulService.Edit(_secilenHasta);

            MessageBox.Show("Hastadan İstenen Tahliller Başarıyla Düzenlendi.", "İşlem Gerçekleştirildi!", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }