private void btnCariSec_Click(object sender, EventArgs e) { frmCariSec frm = new frmCariSec(); frm.ShowDialog(); if (frm.secildi) { Isbasatis.Entities.Tables.Cari entity = frm.secilen.FirstOrDefault(); entityBakiye = this.cariDAL.CariBakiyesi(context, entity.Id); _cariId = entity.Id; _fisentity.CariId = _cariId; lblCariKodu.Text = entity.CariKodu; lblCariAdi.Text = entity.CariAdi; txtFaturaUnvani.Text = entity.FaturaUnvani; txtVargiDairesi.Text = entity.VergiDairesi; txtVergiNo.Text = entity.VergiNo; txtCepTelefonu.Text = entity.CepTelefonu; txtIl.Text = entity.Il; txtIlce.Text = entity.Ilce; txtSemt.Text = entity.Semt; txtAdres.Text = entity.Adres; lblAlcak.Text = entityBakiye.Alcak.ToString("C2"); lblBorc.Text = entityBakiye.Borc.ToString("C2"); lblBakiye.Text = entityBakiye.Bakiye.ToString("C2"); } }
private void btnBul_Click(object sender, EventArgs e) { frmCariSec form = new frmCariSec(); form.ShowDialog(); if (form.secildi) { Entities.Tables.Cari entity = form.secilen.FirstOrDefault(); entityBakiye = cariDal.CariBakiyesi(context, entity.CariKodu); lblCariKodu.Text = entity.CariKodu; lblCariAdi.Text = entity.CariAdi; txtFaturaUnvani.Text = entity.FaturaUnvani; txtVergiDairesi.Text = entity.VergiDairesi; txtVergiNo.Text = entity.VergiNo; txtCepTelefon.Text = entity.CepTelefonu; txtIl.Text = entity.Il; txtIlce.Text = entity.Ilce; txtSemt.Text = entity.Semt; txtAdres.Text = entity.Adres; lblAlacak.Text = entityBakiye.Alacak.ToString("C2"); lblBorc.Text = entityBakiye.Borc.ToString("C2"); lblBakiye.Text = entityBakiye.Bakiye.ToString("C2"); } }