Beispiel #1
0
        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");
        }
Beispiel #2
0
 private void listele()
 {
     context = new MGsTOKContex();
     gridControl1.DataSource = fisdal.GetAll(context);
 }
Beispiel #3
0
 public void Listele()
 {
     context = new NetSatisContext();
     gridcontFisler.DataSource = fisDal.GetAll(context);
 }
Beispiel #4
0
 private void Listele()
 {
     gridcontPersonelHareket.DataSource = fisDal.GetAll(context, c => c.PlasiyerKodu == _personelKodu);
     gridcontFisToplam.DataSource       = personelDal.PersonelFisToplam(context, _personelKodu);
 }