private void btnCariSec_Click(object sender, EventArgs e) { FrmCariSec form = new FrmCariSec(); form.ShowDialog(); if (form.secildi) { Entities.Tables.Cari entityCari = form.secilen.FirstOrDefault(); entityCariBakiye = this.cariDal.CariBakiyesi(context, entityCari.CariKodu); lblCariKodu.Text = entityCari.CariKodu; lblCariAdi.Text = entityCari.CariAdi; textFaturaUnvani.Text = entityCari.FaturaUnvani; textVergiDairesi.Text = entityCari.VergiDairesi; textVergiNo.Text = entityCari.VergiNo; textGsmNo.Text = entityCari.CepTelefon; textIl.Text = entityCari.Il; textIlce.Text = entityCari.Ilce; textSemt.Text = entityCari.Semt; textAdres.Text = entityCari.Adres; lblAlacak.Text = entityCariBakiye.Alacak.ToString("C2"); lblBorc.Text = entityCariBakiye.Borc.ToString("C2"); lblBakiye.Text = entityCariBakiye.Bakiye.ToString("C2"); } }
private void btncarisec_Click_1(object sender, EventArgs e) { FrmCariSec form = new FrmCariSec(); form.ShowDialog(); if (form.secildi) { tables.Cari entity = form.secilen.FirstOrDefault(); entityBakiye = this.cariDal.CariBakiyesi(context, entity.CariKodu); txtcarikod.Text = entity.CariKodu; txtcariad.Text = entity.CariAdi; txtfatur.Text = entity.FaturaUnvani; txtvergida.Text = entity.VergiDairesi; txtvergino.Text = entity.VergiNo; txtcep.Text = entity.CepTelefonu; txtil.Text = entity.Il; txtilce.Text = entity.Ilce; txtsemt.Text = entity.Semt; txtadres.Text = entity.Adres; txtalacak.Text = entityBakiye.Alacak.ToString(); txtborc.Text = entityBakiye.Borc.ToString(); txtbakiye.Text = entityBakiye.Bakiye.ToString(); } }
private void btnCariSec_Click(object sender, EventArgs e) { FrmCariSec form = new FrmCariSec(); form.ShowDialog(); if (form.Secildi) { Entities.Tables.Cari entity = form.secilen.FirstOrDefault(); _entityBakiye = this.cariDal.CariBakiyesi(context, entity.Id); _cariId = entity.Id; _fisentity.CariId = entity.Id; txtCariKodu.Text = entity.CariKodu; txtCariAdi.Text = entity.CariAdi; txtFaturaUnvani.Text = entity.FaturaUnvani; txtVergiDairesi.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; lblRiskLimiti.Text = _entityBakiye.RiskLimiti.ToString("C2"); lblAlacak.Text = _entityBakiye.Alacak.ToString("C2"); lblBorc.Text = _entityBakiye.Borc.ToString("C2"); lblBakiye.Text = _entityBakiye.Bakiye.ToString("C2"); } }
private void carisec() { FrmCariSec frm = new FrmCariSec(); frm.ShowDialog(); if (frm.secildi) { Entities.Tables.Cari entity = frm._Secilen.FirstOrDefault(); entitybakiye = caridal.CariBakiyesi(context, entity.CariKodu); txtCariKodu.Text = entity.CariKodu; txtCariAdi14.Text = entity.CariAdi; txtFaturaUnvan.Text = entity.FaturaUnvani; txtVergiDairesi.Text = entity.VergiDairesi; txtVergiNo.Text = entity.VergiNumarasi; txtCepTelefon.Text = entity.CepTelefonu; txtil.Text = entity.Il; txtilce.Text = entity.Ilce; txtAdres.Text = entity.Adres; txtAciklama.Text = entity.Aciklama; lblAlacak.Text = entitybakiye.Alacak.ToString("C2"); lblBorc.Text = entitybakiye.Borc.ToString("C2"); lblBakiye.Text = entitybakiye.Bakiye.ToString("C2"); txtCariTuru.Text = entity.CariTuru; groupControl1.Enabled = true; } }
private void BtncariSec_Click(object sender, EventArgs e) { FrmCariSec form = new FrmCariSec(); form.ShowDialog(); if (form.secildi) { SarpTicariOtomasyon_Entities.Tables.Cari entity = form.secilen.FirstOrDefault(); entityBakiye = this.cariDal.CariBakiyesi(context, entity.CariKodu); lblCariKodu.Text = entity.CariKodu; lblcariAdi.Text = entity.CariAdi; txtfaturaUnvani.Text = entity.FaturaUnvani; txtvergiNo.Text = entity.VergiNo; txtvergiDairesi.Text = entity.VergiDairesi; txtAdres.Text = entity.Adres; txtCepTelefonu.Text = entity.CepTelefonu; txtIl.Text = entity.Il; txtIlce.Text = entity.Ilce; txtSemt.Text = entity.Semt; lblAlacak.Text = entityBakiye.Alacak.ToString("C2"); lblBorc.Text = entityBakiye.Borc.ToString("C2"); lblBakiye.Text = entityBakiye.Bakiye.ToString("C2"); } }
private void btnCariSec_Click(object sender, EventArgs e) { FrmCariSec form = new FrmCariSec(); form.ShowDialog(); if (form.Secildi) { Entities.Tables.Cari entity = form.secilen.FirstOrDefault(); _entityBakiye = this.cariDal.CariBakiyesi(context, entity.Id); txtFirma.Text = entity.CariKodu + " / " + entity.FaturaUnvani; calcBorc.Text = _entityBakiye.Borc.ToString("C2") + "-" + calcToplamAlt.Text; hedefPosta = entity.EMail; } }