public rptFatura(string fiskodu) { InitializeComponent(); MGsTOKContex conetext = new MGsTOKContex(); StokDal stokdal = new StokDal(); FisDal fisdal = new FisDal(); ObjectDataSource fisDatasource = new ObjectDataSource { DataSource = fisdal.GetAll(conetext, c => c.FisKodu == fiskodu) }; ObjectDataSource stokDatasource = new ObjectDataSource { DataSource = stokdal.GetAlljoin(conetext) }; this.DataSource = stokDatasource; lblCariAdi.DataBindings.Add("Text", fisDatasource, "CariAdi"); lblAdres.DataBindings.Add("Text", fisDatasource, "Adres"); colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi"); colMiktar.DataBindings.Add("Text", this.DataSource, "Miktar"); colBirimFiyat.DataBindings.Add("Text", this.DataSource, "BirimFiyat"); }
private void listele() { context = new MGsTOKContex(); gridControl1.DataSource = fisdal.GetAll(context); }
public void Listele() { context = new NetSatisContext(); gridcontFisler.DataSource = fisDal.GetAll(context); }
private void Listele() { gridcontPersonelHareket.DataSource = fisDal.GetAll(context, c => c.PlasiyerKodu == _personelKodu); gridcontFisToplam.DataSource = personelDal.PersonelFisToplam(context, _personelKodu); }