Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (true == sayiKontrol(txtDosyaNo.Text) && txtDosyaNo.Text != "")
            {
                sevkDataView.Rows.Clear();
                SqlCommand sqlCommand = new SqlCommand();
                sqlCommand.CommandType = CommandType.StoredProcedure;
                sqlCommand.CommandText = "hastaBilgi";
                sqlCommand.Parameters.Add("@dosyaNo", int.Parse(txtDosyaNo.Text));

                hasta = DatabaseControl.hastaGetir(sqlCommand);
                cmBoxOncekiIslemler.Items.Clear();
                Sevk.oncekiIslemler(txtDosyaNo.Text, this, cmBoxOncekiIslemler);
                /* Sonradan eklenen kod */
                //
                sevkDataView.Rows.Clear();
                //

                toplamTutarHesap();
                // Sevk.SevkleriGetir(txtDosyaNo.Text, this);
                if (hasta != null)
                {
                    Hasta.BilgiGoster(this, hasta);
                }
                else
                {
                    MessageBox.Show("Bu dosya numarası yok");
                }
            }
            else
            {
                if (txtDosyaNo.Text == "")
                {
                    DosyaBul dosyaBul = new DosyaBul();
                    dosyaBul.Show();
                }
                else
                {
                    MessageBox.Show("Bir dosya numarası giriniz..");
                }
            }

            //DosyaBul dosyaBul = new DosyaBul();

            //dosyaBul.Show();
        }
Ejemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (hasta != null)
     {
         if (true == sayiKontrol(txtDosyaNo.Text) && txtDosyaNo.Text != "")
         {
             HastaBilgileri hastaBilgileri = new HastaBilgileri();
             hastaBilgileri.Show();
             Hasta.KullaniciBilgileriDoldur(hastaBilgileri, hasta);
             hastaBilgileri.btnKaydet.Text = "Güncelle";
         }
         else
         {
             MessageBox.Show("Bir dosya numarası giriniz..");
         }
     }
 }
Ejemplo n.º 3
0
 private void btnKaydet_Click(object sender, EventArgs e)
 {
     if (txtAd.Text != "" && txtSoyad.Text != "")
     {
         if (btnKaydet.Text == "Kaydet")
         {
             Hasta.EkleOrGuncelle(Hasta.HastaBilgiGuncelle(this), "Ekle");
             btnKaydet.Text = "Güncelle";
         }
         else
         {
             Hasta.EkleOrGuncelle(Hasta.HastaBilgiGuncelle(this), "Guncelle");
         }
     }
     else
     {
         MessageBox.Show("Bilgileri Giriniz");
     }
 }