Example #1
0
        protected void btnKaydet_Click(object sender, EventArgs e)
        {
            EntityDepartman entityDepartman = new EntityDepartman();

            entityDepartman.DepartmanAd = txtDepartmanAd.Text;
            int sonuc = BLLDepartman.BLLDepartmanEkle(entityDepartman);

            MyPresentationExtensions.ShowErrorMessageOrRedirect(sonuc, ResourceDepartman.DepartmanlarSayfasi, ResourceDepartman.DepartmanEkleError);
        }
Example #2
0
        protected void btnKaydet_Click(object sender, EventArgs e)
        {
            EntityMusteri entityMusteri = new EntityMusteri();

            entityMusteri.MusteriAd    = txtMusteriAd.Text;
            entityMusteri.MusteriSoyad = txtMusteriSoyad.Text;
            int sonuc = BLLMusteri.BLLMusteriEkle(entityMusteri);

            MyPresentationExtensions.ShowErrorMessageOrRedirect(sonuc, ResourceMusteri.MusterilerSayfasi, ResourceMusteri.MusteriEkleError);
        }
Example #3
0
        protected void btnKaydet_Click(object sender, EventArgs e)
        {
            EntityUrun entityUrun = new EntityUrun();

            entityUrun.UrunAd    = txtUrunAd.Text;
            entityUrun.UrunFiyat = Convert.ToDecimal(txtUrunFiyat.Text);
            entityUrun.UrunAdet  = Convert.ToInt32(txtUrunAdet.Text);

            int sonuc = BLLUrun.UrunEkle(entityUrun);

            MyPresentationExtensions.ShowErrorMessageOrRedirect(sonuc, ResourceUrun.UrunlerSayfasi, ResourceUrun.UrunEkleError);
        }
Example #4
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);
        }
Example #5
0
        protected void btnKaydet_Click(object sender, EventArgs e)
        {
            EntitySatis entitySatis = new EntitySatis();

            entitySatis.UrunId     = Convert.ToByte(cmbUrun.SelectedValue);
            entitySatis.PersonelId = Convert.ToByte(cmbPersonel.SelectedValue);
            entitySatis.MusteriId  = Convert.ToByte(cmbMusteri.SelectedValue);
            entitySatis.Tutar      = Convert.ToDecimal(txtSatisTutar.Text);

            int sonuc = BLLSatis.SatisEkle(entitySatis);

            MyPresentationExtensions.ShowErrorMessageOrRedirect(sonuc, ResourceSatis.SatislarSayfasi, ResourceSatis.SatisEkleError);
        }