Esempio n. 1
0
        public void PersonelEkle(Personel P)
        {
            int    personelSayac = 0;
            string geciciNumara  = "";

            do
            {
                geciciNumara = this.SubeKodu + "" + Banka.BankaBilgisiGetir().SayiUret(3, 1);
                foreach (Personel _Personel in Personeller)
                {
                    if (_Personel.PersonelNo == geciciNumara)
                    {
                        break;
                    }
                    personelSayac++;
                }
            } while (Personeller.Count != personelSayac);
            P.PersonelNoAl(geciciNumara);
            Personeller.Add(P);
        }
Esempio n. 2
0
        private void btnPerGuncelle_Click(object sender, EventArgs e)
        {
            Personel _Personel = CMG.SeciliSube().PersonelListesi().ElementAt(indeksPersonel);

            if (txtPerAd.Text == "" || txtPerSoyad.Text == "" || txtPerTCKNO.Text == "" || txtPerMaas.Text == "")
            {
                lblPerOlumluSonuc.Visible  = false;
                lblPerOlumsuzSonuc.Visible = true;
            }
            else
            {
                _Personel.BilgileriGuncelle(txtPerAd.Text, txtPerSoyad.Text, Convert.ToInt64(txtPerTCKNO.Text), Convert.ToDecimal(txtPerMaas.Text));
                if (txtPerSifre.Text == "" || txtPerSifreOnay.Text == "")
                {
                    if (txtPerSifre.Text == txtPerSifreOnay.Text)
                    {
                        _Personel.SifreDegistir(txtPerSifre.Text);
                        lblPerOlumsuzSonuc.Visible = false;
                        lblPerOlumluSonuc.Visible  = true;
                    }
                    else
                    {
                        lblPerOlumsuzSonuc.Visible = false;
                        lblOlumluSonuc.Visible     = true;
                    }
                    lblPerOlumsuzSonuc.Visible = true;
                    lblPerOlumluSonuc.Visible  = false;
                }
                if (_Personel is Calisan)
                {
                    rbCalisan.Checked = true;
                }
                else
                {
                    rbMudur.Checked = true;
                }
                lblPerOlumsuzSonuc.Visible = false;
                lblPerOlumluSonuc.Visible  = true;
            }
        }
Esempio n. 3
0
 public void PersonelCikar(Personel P)
 {
     Personeller.Remove(P);
 }