Esempio n. 1
0
        public static bool PersonelSil(int?id)
        {
            if (id != null && id > 0)
            {
                return(DALPersonel.PersonelSil(id));
            }

            return(false);
        }
Esempio n. 2
0
        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);
     }
 }
Esempio n. 5
0
 public static int BLLPersonelEkle(EntityPersonel m)
 {
     if (m.Personelad != "" && m.Personelsoyad != "" & m.Personeldepartman != 0)
     {
         return(DALPersonel.PersonelEkle(m));
     }
     else
     {
         return(-1);
     }
 }
Esempio n. 6
0
 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);
     }
 }
Esempio n. 7
0
 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);
     }
 }
Esempio n. 9
0
 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);
     }
 }
Esempio n. 11
0
 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);
     }
 }
Esempio n. 13
0
        public static int PersonelGuncelle(EntityPersonel entityPersonel)
        {
            if (entityPersonel.PersonelAd != "" &&
                entityPersonel.PersonelSoyad != "" &&
                entityPersonel.PersonelDepartmanId > 0 &&
                entityPersonel.PersonelMaas > 0)
            {
                return(DALPersonel.PersonelGuncelle(entityPersonel));
            }

            return(-1);
        }
Esempio n. 14
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);
     }
 }
Esempio n. 15
0
 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);
     }
 }
Esempio n. 16
0
 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());
 }
Esempio n. 18
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <entitypersonel> perlist = DALPersonel.personellistesi();

            dataGridView1.DataSource = perlist;
        }
 public static List <entitypersonel> llpersonellistesi()
 {
     return(DALPersonel.personellistesi());
 }