protected void Page_Load(object sender, EventArgs e) { List <EntityPersonel> Perlis = BLLPersonel.PersonelListesi(); Repeater1.DataSource = Perlis; Repeater1.DataBind(); }
private void PersonelleriGetir() { List <EntityPersonel> personelListesi = BLLPersonel.PersonelListele(); Repeater1.DataSource = personelListesi; Repeater1.DataBind(); }
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); }
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"); }
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); }
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())); } } }
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(); } }
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); } }
protected void PersonelSil(int id) { BLLPersonel.PersonelSil(id); PersonelleriGetir(); }