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 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);
     }
 }
Beispiel #3
0
 public static bool LLPersonelGuncelle(EntityPersonel ent)
 {
     if (ent.Ad != "" && ent.Soyad != "")
     {
         return(DALPersonel.PersonelGuncelle(ent));
     }
     else
     {
         return(false);
     }
 }
Beispiel #4
0
        public static int PersonelGuncelle(EntityPersonel entityPersonel)
        {
            if (entityPersonel.PersonelAd != "" &&
                entityPersonel.PersonelSoyad != "" &&
                entityPersonel.PersonelDepartmanId > 0 &&
                entityPersonel.PersonelMaas > 0)
            {
                return(DALPersonel.PersonelGuncelle(entityPersonel));
            }

            return(-1);
        }
Beispiel #5
0
 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);
     }
 }