コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
0
ファイル: PersonelEkle.aspx.cs プロジェクト: cyeksan/OOPStock
        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);
        }
コード例 #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);
        }