Exemple #1
0
 private void KullaniciTanitmaLogin_Load(object sender, EventArgs e)
 {
     try
     {
         this.txtKullanici.KeyPress += new
                                       System.Windows.Forms.KeyPressEventHandler(CheckEnter);
         Veritabani.ElemanEkle("userName", "tblKullanici", "", "");
         for (int i = 0; i < Veritabani.kullaniciIsimleri.Count; i++)
         {
             txtKullanici.Items.Add(Veritabani.kullaniciIsimleri[i]);
         }
     }
     catch (Exception a)
     {
         MessageBox.Show("Bir hata oluştu:" + a.Message, "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
 private void HastaIslemleri_Load(object sender, EventArgs e)
 {
     try
     {
         veriTablo.Columns.Add("polikinlik", typeof(string));
         veriTablo.Columns.Add("sira", typeof(string));
         veriTablo.Columns.Add("drKod", typeof(string));
         veriTablo.Columns.Add("saat", typeof(string));
         veriTablo.Columns.Add("yapilanIslem", typeof(string));
         veriTablo.Columns.Add("miktar", typeof(string));
         veriTablo.Columns.Add("birimFiyat", typeof(string));
         veriTablo.Columns.Add("dosyaNo", typeof(string));
         veriTablo.Columns.Add("sevkTarihi", typeof(string));
         this.txtDosyaNo.KeyPress += new
                                     System.Windows.Forms.KeyPressEventHandler(CheckEnter);
         Veritabani.ElemanEkle("polikinlikAdi", "tblPolikinlik", "True", "durum");
         for (int i = 0; i < Veritabani.kullaniciIsimleri.Count; i++)
         {
             txtPolikinlik.Items.Add(Veritabani.kullaniciIsimleri[i]);
         }
         Veritabani.ElemanEkle("islemAdi", "tblIslem", "", "");
         for (int i = 0; i < Veritabani.kullaniciIsimleri.Count; i++)
         {
             txtYapilanIslem.Items.Add(Veritabani.kullaniciIsimleri[i]);
         }
         Veritabani.ElemanEkle("kodu", "tblKullanici", "Doktor", "unvan");
         for (int i = 0; i < Veritabani.kullaniciIsimleri.Count; i++)
         {
             txtDrKodu.Items.Add(Veritabani.kullaniciIsimleri[i]);
         }
         txtPolikinlik.Text = txtPolikinlik.Items[0].ToString();
     }
     catch (Exception a)
     {
         MessageBox.Show("Bir hata oluştu:" + a.Message, "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemple #3
0
        public ActionResult UrunEkle(Urun entity)
        {
            Veritabani.ElemanEkle(entity);

            return(View("UrunListe", Veritabani.Liste));
        }