예제 #1
0
 public static void FormHastaBilgileri(FormHastaBilgileri frm)
 {
     if (_HastaDosyaNo != null)
     {
         frm.txtDosyaAdı.Text     = _HastaDosyaNo;
         frm.txtAd.Text           = _HastaAd;
         frm.txtSoyad.Text        = _HastaSoyad;
         frm.txtTcKimlik.Text     = _HastaTcKimlik;
         frm.txtAnneAdı.Text      = _HastaAnneAdi;
         frm.txtBabaAdı.Text      = _HastaBabaAdi;
         frm.txtDogumTarihi.Value = _HastaDogumTarihi;
         frm.cmbDogumYeri.Text    = _HastaDogumYeri;
         frm.cmbCinsiyet.Text     = _HastaCinsiyet;
         frm.cmbKanGrubu.Text     = _HastaKanGrubu;
         frm.cmbMedeniHal.Text    = _HastaMedeniHal;
         frm.txtAdres.Text        = _HastaAdres;
         frm.txtTelefonNo.Text    = _HastaTelNo;
         frm.txtKurumAdi.Text     = _HastaKurumAdi;
         frm.txtKurumSicilNo.Text = _HastaKurumSicilNo;
         frm.txtYakınTelefon.Text = _HastaYakinTel;
         frm.txtYakinKurum.Text   = _HastaYakinKurumAdi;
         frm.txtYakinSicilNo.Text = _HastaYakinKurumSicilNo;
         FormAc.Open(frm);
     }
     else
     {
         Kontrol.Mesaj("Boş Geçilemez", frm.txtDosyaAdı);
         frm.txtDosyaAdı.Focus();
     }
 }
 private void btnYeni_Click(object sender, EventArgs e)
 {
     //Kullanici.FormDuzenlemeKontrol(false, this);
     FormAc.aktifForm = null;
     FormAc.Open(new FormKullaniciDuzenleme());
     ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtKullaniciKod.Text = Kullanici.KullaniciKodu;
     ((FormKullaniciDuzenleme)(FormAc.aktifForm)).btnGuncelle.Text     = "Kaydet";
     ((FormKullaniciDuzenleme)(FormAc.aktifForm)).btnSil.Visible       = false;
 }
예제 #3
0
 public static void FormDuzenlemeKontrol(bool durum, Form form)
 {
     if (durum)
     {
         FormAc.aktifForm = null;
         FormAc.Open(new FormKullaniciDuzenleme());
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtKullaniciKod.Text = _KullaniciKodu;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtTCKimlik.Text     = _KullaniciTCKimlik;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbDogumYeri.Text    = _KullaniciDogumYeri;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtAnneAdi.Text      = _KullaniciAnneAdi;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtBabaAdi.Text      = _KullaniciBabaAdi;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtTelefonNo.Text    = _KullaniciEvTel;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtGsmNo.Text        = _KullaniciCepTel;
         if (_KullaniciYetki == "EVET")
         {
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).chckSecim.Checked = true;
         }
         else
         {
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).chckSecim.Checked = false;
         }
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbUnvan.Text  = _KullaniciUnvan;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtAdi.Text    = _KullaniciAd;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtSoyadi.Text = _KullaniciSoyad;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtMaas.Text   = _KullaniciMaas;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtIseBaslangicTarihi.Value = _KullaniciIseBaslama;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtDogumTarihi.Value        = _KullaniciDogumTarihi;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbCinsiyet.Text            = _KullaniciCinsiyet;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbKanGrubu.Text            = _KullaniciKanGrubu;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbMedeniHal.Text           = _KullaniciMedeniHal;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtAdres.Text        = _KullaniciAdres;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtKullaniciAdi.Text = _KullaniciUserame;
         ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtSifre.Text        = _KullaniciSifre;
         if (_KullaniciUnvan == "Doktor")
         {
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbPoliklinik.Visible = true;
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).label20.Visible       = true;
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).cmbPoliklinik.Text    = _KullaniciPoliklinik.ToString();
         }
         tckontrol       = _KullaniciTCKimlik;
         usernamekontrol = _KullaniciUserame;
     }
     else
     {
         DialogResult result = MessageBox.Show("Böyle bir kullanıcı yok! Oluşturmak ister misiniz?", "Dikkat", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
         if (result == DialogResult.Yes)
         {
             FormAc.aktifForm = null;
             FormAc.Open(new FormKullaniciDuzenleme());
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).txtKullaniciKod.Text = KullaniciKodu;
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).btnGuncelle.Text     = "Kaydet";
             ((FormKullaniciDuzenleme)(FormAc.aktifForm)).btnSil.Visible       = true;
         }
     }
 }
예제 #4
0
 private void btnYeni_Click(object sender, EventArgs e)
 {
     FormAc.Open(new FormHastaBilgileri());
     ((FormHastaBilgileri)(FormAc.aktifForm)).txtDosyaAdı.Text = Hasta.KullaniciKodu;
     ((FormHastaBilgileri)(FormAc.aktifForm)).btnYeni.Visible  = false;
 }
예제 #5
0
 private void btnBul_Click(object sender, EventArgs e)
 {
     FormAc.Open(new FormDosyaBul(this));
 }
예제 #6
0
 public FormAna()
 {
     InitializeComponent();
     FormAc = new FormAc(this);
 }