private void btnkaydet_Click(object sender, EventArgs e) { if (txtTC.Text != "") { if (FrmAnaktg.SayisalMi(txtTC.Text) == true) { if (txtad.Text != "") { if (txtsoyad.Text != "") { if (mtxttel.Text != "") { if (txteposta.Text != "") { if (MailKontrolu(txteposta.Text)) { Kaydetmusteri(); } else { MessageBox.Show("Lütfen Geçerli Bir E-Posta Adresi Giriniz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txteposta.Focus(); } } else { MessageBox.Show("E-Posta Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txteposta.Focus(); } } else { MessageBox.Show("Tel No Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); mtxttel.Focus(); } } else { MessageBox.Show("Müşteri Soyadı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsoyad.Focus(); } } else { MessageBox.Show("Müşteri Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtad.Focus(); } } else { MessageBox.Show("TC Kimlik No, Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtTC.Focus(); } } else { MessageBox.Show("TC Kimlik No Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtTC.Focus(); } }
private void btnkaydet_Click(object sender, EventArgs e) { if (cmbAnaktg.SelectedIndex != -1) { if (txtAltktg.Text != "") { if (FrmAnaktg.SayisalMi(txtAltktg.Text) == false) { KaydetAltKtg(); } else { MessageBox.Show("Alt Kategori Adı Sayısal Değer Olamaz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtAltktg.Focus(); txtAltktg.SelectAll(); } } else { MessageBox.Show("Alt Kategori Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtAltktg.Focus(); } } else { MessageBox.Show("Lütfen Ana Kategori Adı Seçimi Yapınız!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); cmbAnaktg.Focus(); } }
private void btnkaydet_Click(object sender, EventArgs e) { if (txtbarkod.Text != "") { if (FrmAnaktg.SayisalMi(txtbarkod.Text) == true) { if (numerikadet.Value > 0) { if (txtalisbirimfiyati.Text != "") { if (FrmAnaktg.SayisalMi(txtalisbirimfiyati.Text) == true) { Kaydetalis(); } else { MessageBox.Show("Alış Birim Fiyatı Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtalisbirimfiyati.Focus(); txtalisbirimfiyati.SelectAll(); } } else { MessageBox.Show("Alış Birim Fiyatı Alanı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtalisbirimfiyati.Focus(); } } else { MessageBox.Show("Adet Alanı 0'dan Büyük Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Barkod Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtbarkod.Focus(); txtbarkod.SelectAll(); } } else { MessageBox.Show("Barkod Alanı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtbarkod.Focus(); } }
private void btnkaydet_Click(object sender, EventArgs e) { if (txtkargoadi.Text != "") { if (FrmAnaktg.SayisalMi(txtkargoadi.Text) == false) { if (txtsube.Text != "") { if (FrmAnaktg.SayisalMi(txtsube.Text) == false) { Kaydetkargo(); } else { MessageBox.Show("Şube Adı Sayısal Değer Olamaz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsube.Focus(); txtsube.SelectAll(); } } else { MessageBox.Show("Şube Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsube.Focus(); } } else { MessageBox.Show("Kargo Firması Adı Sayısal Değer Olamaz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtkargoadi.Focus(); txtkargoadi.SelectAll(); } } else { MessageBox.Show("Kargo Firması Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtkargoadi.Focus(); } }
private void btnkaydet_Click(object sender, EventArgs e) { if (txtsipdur.Text != "") { if (FrmAnaktg.SayisalMi(txtsipdur.Text) == false) { Kaydetsipdur(); } else { MessageBox.Show("Sipariş Durumu Sayısal Değer Olamaz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsipdur.Focus(); txtsipdur.SelectAll(); } } else { MessageBox.Show("Sipariş Durumu Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsipdur.Focus(); } }
private void btnkaydet_Click(object sender, EventArgs e) { if (txtTC.Text != "") { if (FrmAnaktg.SayisalMi(txtTC.Text) == true) { if (txtad.Text != "") { if (txtsoyad.Text != "") { if (mtxttel.Text != "") { if (txteposta.Text != "") { if (Frmmusteri.MailKontrolu(txteposta.Text) == true) { if (cmbdep.SelectedIndex != -1) { Kaydetpersonel(); btnsifre.Enabled = true; btnmail.Enabled = true; txtsifre.Enabled = true; } else { MessageBox.Show("Departman Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); cmbdep.Focus(); } } else { MessageBox.Show("Lütfen Geçerli Bir E-Posta Adresi Giriniz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txteposta.Focus(); } } else { MessageBox.Show("E-Posta Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txteposta.Focus(); } } else { MessageBox.Show("Tel No Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); mtxttel.Focus(); } } else { MessageBox.Show("Personel Soyadı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsoyad.Focus(); } } else { MessageBox.Show("Personel Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtad.Focus(); } } else { MessageBox.Show("TC Kimlik No, Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtTC.Focus(); } } else { MessageBox.Show("TC Kimlik No Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtTC.Focus(); } }
private void altmenuAnaktg_Click(object sender, EventArgs e) { FrmAnaktg frmanaktg = new FrmAnaktg(); frmanaktg.ShowDialog(); }
private void btnkaydet_Click(object sender, EventArgs e) { if (txtbarkod.Text != "") { if (txturunadi.Text != "") { if (cmbAnaKtg.SelectedIndex != -1) { if (cmbAltktg.SelectedIndex != -1) { if (txtsatisfiyati.Text != "") { if (FrmAnaktg.SayisalMi(txtsatisfiyati.Text) == true) { if (txtkdv.Text != "") { if (FrmAnaktg.SayisalMi(txtkdv.Text) == true) { Kaydeturun(); } else { MessageBox.Show("KDV Alanı Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtkdv.Focus(); txtkdv.SelectAll(); } } else { MessageBox.Show("KDV Alanı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtkdv.Focus(); } } else { MessageBox.Show("Satış Fiyatı Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsatisfiyati.Focus(); txtsatisfiyati.SelectAll(); } } else { MessageBox.Show("Satış Fiyatı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtsatisfiyati.Focus(); } } else { MessageBox.Show("Alt Kategori Alanı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); cmbAltktg.Focus(); } } else { MessageBox.Show("Ana Kategori Alanı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); cmbAnaKtg.Focus(); } } else { MessageBox.Show("Ürün Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txturunadi.Focus(); } } else { MessageBox.Show("Ürün Barkod Alanı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtbarkod.Focus(); } }