示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <EntityPersonel> Perlis = BLLPersonel.PersonelListesi();

            Repeater1.DataSource = Perlis;
            Repeater1.DataBind();
        }
示例#2
0
        private void PersonelleriGetir()
        {
            List <EntityPersonel> personelListesi = BLLPersonel.PersonelListele();

            Repeater1.DataSource = personelListesi;
            Repeater1.DataBind();
        }
示例#3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityPersonel ent = new EntityPersonel();

            ent.Personelad        = TextBox1.Text;
            ent.Personelsoyad     = TextBox2.Text;
            ent.Personelmaas      = decimal.Parse(TextBox3.Text);
            ent.Personeldepartman = byte.Parse(DropDownList1.SelectedValue);
            BLLPersonel.BLLPersonelEkle(ent);
        }
示例#4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityPersonel ent = new EntityPersonel();

            ent.Personelad        = TextBox1.Text;
            ent.Personelsoyad     = TextBox2.Text;
            ent.Personelmaas      = Convert.ToDecimal(TextBox3.Text);
            ent.Personeldepartman = Convert.ToByte(DropDownList1.SelectedValue);
            BLLPersonel.BLLPersonelEkle(ent);
            Response.Redirect("Personel.aspx");
        }
示例#5
0
        protected void btnKaydet_Click(object sender, EventArgs e)
        {
            EntityPersonel entityPersonel = new EntityPersonel {
                PersonelAd          = txtPersonelAd.Text,
                PersonelSoyad       = txtPersonelSoyad.Text,
                PersonelMaas        = Convert.ToDecimal(txtPersonelMaas.Text),
                PersonelDepartmanId = Convert.ToByte(cmbPersonelDepartman.SelectedValue)
            };

            int sonuc = BLLPersonel.PersonelEkle(entityPersonel);

            MyPresentationExtensions.ShowErrorMessageOrRedirect(sonuc, ResourcePersonel.PersonellerSayfasi, ResourcePersonel.PersonelEkleError);
        }
示例#6
0
        private void PersonelleriGetir()
        {
            if (cmbPersonel.Items.Count == 0)
            {
                List <EntityPersonel> personelList = BLLPersonel.PersonelListele();
                cmbPersonel.Items.Add(new ListItem(ResourceSatis.cmbPersonelDefaultValue, ResourceSatis.Zero.ToString()));

                foreach (var item in personelList)
                {
                    cmbPersonel.Items.Add(new ListItem(item.PersonelAd + ' ' + item.PersonelSoyad, item.PersonelId.ToString()));
                }
            }
        }
示例#7
0
        private void SetPersonellerToDropdown(EntitySatis entitySatis)
        {
            if (cmbPersonel.Items.Count == 0)
            {
                List <EntityPersonel> personelList = BLLPersonel.PersonelListele();

                foreach (var item in personelList)
                {
                    cmbPersonel.Items.Add(new ListItem(item.PersonelAd + ' ' + item.PersonelSoyad, item.PersonelId.ToString()));
                }
                cmbPersonel.SelectedValue = entitySatis.PersonelId.ToString();
            }
        }
示例#8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            EntityPersonel entityPersonel = BLLPersonel.PersonelGetirById(Convert.ToByte(Request.QueryString["id"]));

            if (Page.IsPostBack == false)
            {
                txtPersonelId.Text    = entityPersonel.PersonelId.ToString();
                txtPersonelAd.Text    = entityPersonel.PersonelAd;
                txtPersonelSoyad.Text = entityPersonel.PersonelSoyad;
                txtPersonelMaas.Text  = entityPersonel.PersonelMaas.ToString();
                SetPersonelDepartmanToDropdown(entityPersonel);
            }
        }
示例#9
0
 protected void PersonelSil(int id)
 {
     BLLPersonel.PersonelSil(id);
     PersonelleriGetir();
 }