Exemplo n.º 1
0
 private void BtnKaydet_Click(object sender, EventArgs e)
 {
     try
     {
         TBLCARI t = new TBLCARI();
         t.AD           = TxtAd.Text.ToUpper();
         t.SOYAD        = TxtSoyad.Text.ToUpper();
         t.TELEFON      = TxtTelefon.Text.ToUpper();
         t.MAIL         = TxtMail.Text.ToUpper();
         t.IL           = lookUpEdit1.Text.ToUpper();
         t.ILCE         = lookUpEdit2.Text.ToUpper();
         t.BANKA        = TxtBanka.Text.ToUpper();
         t.VERGIDAIRESI = TxtVergiDairesi.Text.ToUpper();
         t.VERGINO      = TxtVergiNo.Text.ToUpper();
         t.STATU        = TxtStatu.Text.ToUpper();
         t.ADRES        = TxtAdres.Text.ToUpper();
         db.TBLCARI.Add(t);
         db.SaveChanges();
         MessageBox.Show("Cari ekleme işlemi başarılı", "BİLGİ", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception)
     {
         MessageBox.Show("Cari ekleme işlemi için gerekli yerleri doldurunuz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemplo n.º 2
0
 private void BtnKaydet_Click(object sender, EventArgs e)
 {
     if (TxtAdi.Text != "" && TxtSoyadi.Text != "")
     {
         TBLCARI k = new TBLCARI();
         k.AD           = TxtAdi.Text.ToUpper();
         k.SOYAD        = TxtSoyadi.Text.ToUpper();
         k.TELEFON      = TxtTelefon.Text.ToUpper();
         k.MAIL         = TxtMail.Text.ToUpper();
         k.IL           = lookUpEdit1.Text;
         k.ILCE         = lookUpEdit2.Text;
         k.BANKA        = TxtBanka.Text.ToUpper();
         k.VERGIDAIRESI = TxtVDairesi.Text.ToUpper();
         k.VERGINO      = TxtVergiNo.Text.ToUpper();
         k.STATU        = TxtStatü.Text.ToUpper();
         k.ADRES        = TxtAdres.Text.ToUpper();
         db.TBLCARI.Add(k);
         db.SaveChanges();
         MessageBox.Show("Cari Ekleme İşlemi Başarılı", "BİLGİ", MessageBoxButtons.OK, MessageBoxIcon.Information);
         metot1();
     }
     else
     {
         MessageBox.Show("Cari Ekleme İşlemi İçin Gerekli Yerleri Doldurunuz.", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemplo n.º 3
0
        private void BtnKaydet_Click(object sender, EventArgs e)
        {
            TBLCARI t = new TBLCARI();

            t.AD           = TxtAd.Text;
            t.SOYAD        = TxtSoyad.Text;
            t.MAIL         = TxtMail.Text;
            t.TELEFON      = TxtTelefon.Text;
            t.IL           = lookUpEdit1.EditValue.ToString();
            t.ILCE         = lookUpEdit2.EditValue.ToString();
            t.BANKA        = TxtBanka.Text;
            t.VERGIDAIRESI = TxtVergiDairesi.Text;
            t.VERGINO      = TxtVergiNo.Text;
            t.STATU        = TxtStatu.Text;;
            t.ADRES        = TxtAdres.Text;

            db.TBLCARI.Add(t);
            db.SaveChanges();

            MessageBox.Show("Cari Başarıyla Kaydedildi", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information);

            YeniCariDegisiklikSayac++;//Diger formda burda değişiklik yapılmışmı kontrol etmek icins sayac
            Formlar.FrmCariListesi.PubCariListesiTimer.Enabled = true;
            //UrunListesi fomrundaki timerı calıştırıyor ki çalışınca liste guncellensin
        }
        private void btnkaydet_Click(object sender, EventArgs e)
        {
            TBLCARI t = new TBLCARI();

            t.AD      = txtad.Text;
            t.SOYAD   = txtad.Text;
            t.TELEFON = txtphone.Text;
            t.MAIL    = txtmail.Text;
            t.IL      = txtil.Text;
            t.ILCE    = txtilçe.Text;
            db.TBLCARI.Add(t);
            db.SaveChanges();
            MessageBox.Show("kaydedildi");
        }
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            TBLCARI C = new TBLCARI();

            C.AD           = txtAd.Text;
            C.SOYAD        = txtSoyad.Text;
            C.IL           = lookUpEdit2.EditValue.ToString();
            C.ILCE         = lookUpEdit3.EditValue.ToString();
            C.BANKA        = txtBanka.Text;
            C.ADRES        = txtAdres.Text;
            C.VERGIDAIRESİ = txtVergiDairesi.Text;
            C.VERGINO      = txtVergiNo.Text;
            C.TELEFON      = txtTelefon.Text;
        }
Exemplo n.º 6
0
 private void BtnKaydet_Click(object sender, EventArgs e)
 {
     try
     {
         TBLCARI t = new TBLCARI();
         t.AD    = TxtAd.Text;
         t.SOYAD = TxtSoyad.Text;
         t.IL    = lookUpEdit1.Text;
         t.ILCE  = lookUpEdit2.Text;
         db.TBLCARI.Add(t);
         db.SaveChanges();
         MessageBox.Show("Yeni Cari Sisteme Başarılı Bir Şekilde Eklendi", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception)
     {
         MessageBox.Show("Hata");
     }
 }
 private void BtnKaydet_Click(object sender, EventArgs e)
 {
     if (TxtAd.Text != "" & TxtSoyad.Text != "" & TxtAd.Text.Length <= 20)
     {
         TBLCARI t = new TBLCARI();
         t.AD      = TxtAd.Text;
         t.SOYAD   = TxtSoyad.Text;
         t.TELEFON = TxtTelefon.Text;
         t.IL      = lookUpEdit1.Text;
         t.ILCE    = lookUpEdit1.Text;
         db.TBLCARI.Add(t);
         db.SaveChanges();
         MessageBox.Show("Cari Sisteme Eklendi");
         liste();
     }
     else
     {
         MessageBox.Show("Hatalı giriş yeniden deneyin");
     }
 }
Exemplo n.º 8
0
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            TBLCARI t = new TBLCARI();

            try
            {
                if (txtTCno.Text != "" & txtAdSoyad.Text != "" & txtMail.Text != "" & txtTelefon.Text != "" & txtVergiDaire.Text != ""
                    & txtVergiNo.Text != "" & txtYetkili.Text != "" & lookUpEdit1.Text != "" & lookUpEdit2.Text != ""
                    & rchAdres.Text != "" & rchAciklama.Text != "")
                {
                    t.ACIKLAMA    = rchAciklama.Text;
                    t.CARIADRES   = rchAdres.Text;
                    t.CARIADSOYAD = txtAdSoyad.Text;
                    t.CARITC      = txtTCno.Text;
                    t.CARITUR     = int.Parse(lookUpEdit1.EditValue.ToString());
                    t.UYRUK       = int.Parse(lookUpEdit1.EditValue.ToString());
                    t.DURUM       = 1;
                    t.MAIL        = txtMail.Text;
                    t.TELEFON     = txtTelefon.Text;
                    t.VERGIDAIRE  = txtVergiDaire.Text;
                    t.YETKILI     = txtYetkili.Text;
                    t.VERGINO     = txtVergiNo.Text;
                    t.YETKILI     = txtYetkili.Text;
                    t.KIMLIKFOTO1 = @"D:\Github Dosyalarım\Otel_Rezervasyon_Otomasyonu\Otel_App\pictures\" + txtAdSoyad.Text + "1.jpg";
                    t.KIMLIKFOTO2 = @"D:\Github Dosyalarım\Otel_Rezervasyon_Otomasyonu\Otel_App\pictures\" + txtAdSoyad.Text + "2.jpg";
                    db.TBLCARI.Add(t);
                    db.SaveChanges();
                    XtraMessageBox.Show("Bilgiler Sisteme Kayıt Edildi", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    XtraMessageBox.Show("Boş alan bırakdınız lütfen boş alanları doldurunuz", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception)
            {
                XtraMessageBox.Show("Lütfen ilgili alanları kontrol ediniz ve tekrar doldurunuz", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemplo n.º 9
0
        private void BtnKaydet_Click(object sender, EventArgs e)
        {
            TBLCARI t = new TBLCARI();

            t.AD           = TxtAd.Text;
            t.SOYAD        = TxtSoyad.Text;
            t.MAIL         = TxtMail.Text;
            t.TELEFON      = TxtTelefon.Text;
            t.IL           = lookUpEdit1.EditValue.ToString();
            t.ILCE         = lookUpEdit2.EditValue.ToString();
            t.BANKA        = TxtBanka.Text;
            t.VERGIDAIRESI = TxtVergiDairesi.Text;
            t.VERGINO      = TxtVergiNo.Text;
            t.STATU        = TxtStatu.Text;;
            t.ADRES        = TxtAdres.Text;

            db.TBLCARI.Add(t);
            db.SaveChanges();

            MessageBox.Show("Cari Başarıyla Kaydedildi", "Bilgilendirme", MessageBoxButtons.OK, MessageBoxIcon.Information);

            PubCariListesiTimer.Enabled = true; //Degisiklik olunca timerı calıştırıyorum ki timer calıştığında ve değşikillk olduğunda yeni listeyi cagırayım
            CariListesiDegisiklikSayac++;       //Degisikliğe gore timerı çalıştııtyorum
        }