public static bool PersonelSil(int?id) { if (id != null && id > 0) { return(DALPersonel.PersonelSil(id)); } return(false); }
public static EntityPersonel PersonelGetirById(int?id) { if (id != null && id > 0) { return(DALPersonel.PersonelGetirById(id)); } return(null); }
public static int LLPersonelEkle(EntityPersonel p) { if (p.Ad != "" && p.Soyad != "" && p.Maas >= 3500 && p.Ad.Length >= 3) { return(DALPersonel.PersonelEkle(p)); } else { return(-1); } }
public static bool LLPersonelSil(int per) { if (per >= 1) { return(DALPersonel.PersonelSil(per)); } else { return(false); } }
public static int BLLPersonelEkle(EntityPersonel m) { if (m.Personelad != "" && m.Personelsoyad != "" & m.Personeldepartman != 0) { return(DALPersonel.PersonelEkle(m)); } else { return(-1); } }
public static bool LLPersonelGuncelleme(EntityPersonel ent) { if (ent.Ad != "" && ent.Ad.Length <= 3 && ent.Soyad != "" && ent.Gorev != "" && ent.Sehir != "" && ent.Maas <= 1000) { return(DALPersonel.PersonelGuncelle(ent)); } else { return(false); } }
public static int BLLPersonelEkle(EntityPersonel p) { if (p.Personelad != "" && p.Personelsoyad != "" && p.Personelmaas != 0) { return(DALPersonel.PersonelEkle(p)); } else { return(-1); } }
public static int llpersonelekle(entitypersonel p) { if (p.Ad != "" && p.Soyad != "" && p.Maas >= 3500 && p.Ad.Length >= 3) { return(DALPersonel.personelekle(p)); } else { return(-1); } }
public static bool LLPersonelGuncelle(EntityPersonel ent) { if (ent.Ad != "" && ent.Soyad != "") { return(DALPersonel.PersonelGuncelle(ent)); } else { return(false); } }
public static bool LLPersonelGuncelle(EntityPersonel ent) { if (ent.Ad.Length >= 3 && ent.Ad != "" && ent.Maas >= 4200) { return(DALPersonel.PersonelGuncelle(ent)); } else { return(false); } }
public static int LLPersonelEkle(EntityPersonel p) { if (p.Ad != "" && p.Soyad != "") { return(DALPersonel.PersonelEkle(p)); } else { return(-1); } }
public static bool llpersonelguncelle(entitypersonel ent) { if (ent.Ad.Length >= 3 && ent.Ad != "" && ent.Maas >= 4500) { return(DALPersonel.personelguncelle(ent)); } else { return(false); } }
public static int PersonelGuncelle(EntityPersonel entityPersonel) { if (entityPersonel.PersonelAd != "" && entityPersonel.PersonelSoyad != "" && entityPersonel.PersonelDepartmanId > 0 && entityPersonel.PersonelMaas > 0) { return(DALPersonel.PersonelGuncelle(entityPersonel)); } return(-1); }
public static bool PersonelGuncelle(EntityPersonel ent) { if (ent.Ad != "" && ent.Soyad != "" && ent.Maas >= 4500) { MessageBox.Show("Kayıt Başarılı Bir Şekilde Güncellendi", "BİLGİ", MessageBoxButtons.OK, MessageBoxIcon.Information); return(DALPersonel.PersonelGuncelle(ent)); } else { MessageBox.Show("Lütfen Bilgileri Kontrol Ediniz", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false); } }
public static bool PersonelSil(int per) { if (per > 1) { MessageBox.Show("Kayıt Başarılı Bir Şekilde Silindi", "BİLGİ", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(DALPersonel.PersonelSil(per)); } else { MessageBox.Show("Lütfen Bilgileri Kontrol Ediniz", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false); } }
public static int PersonelEkle(EntityPersonel p) { if (p.Ad != "" && p.Soyad != "" && p.Maas >= 3500 && p.Ad.Length >= 3) { MessageBox.Show("Kayıt Başarılı Bir Şekilde Gerçekleşti", "BİLGİ", MessageBoxButtons.OK, MessageBoxIcon.Information); return(DALPersonel.PersonelEkle(p)); } else { MessageBox.Show("Lütfen Bilgileri Kontrol Ediniz", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(-1); } }
public static List <EntityPersonel> LLPersonelListesi() { return(DALPersonel.PersonelListesi()); }
private void button1_Click(object sender, EventArgs e) { List <entitypersonel> perlist = DALPersonel.personellistesi(); dataGridView1.DataSource = perlist; }
public static List <entitypersonel> llpersonellistesi() { return(DALPersonel.personellistesi()); }