Esempio n. 1
0
        public void GetAll()
        {
            NetSatisContext context = new NetSatisContext();
            StokDal         stokDal = new StokDal();

            gridControl1.DataSource = stokDal.StokListele(context);
        }
Esempio n. 2
0
        public rptStokDurumu()
        {
            InitializeComponent();
            NetSatisContext context = new NetSatisContext();
            StokDal         stokDal = new StokDal();

            ObjectDataSource stokDataSource = new ObjectDataSource {
                DataSource = stokDal.StokListele(context)
            };

            this.DataSource = stokDataSource;

            colStokKodu.DataBindings.Add("Text", this.DataSource, "StokKodu");
            colBarkod.DataBindings.Add("Text", this.DataSource, "Barkod");
            colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi");
            colBirimi.DataBindings.Add("Text", this.DataSource, "Birimi");
            colStokGrubu.DataBindings.Add("Text", this.DataSource, "StokGrubu");
            colStokAltGrubu.DataBindings.Add("Text", this.DataSource, "StokAltGrubu");
            colSatisKdv.DataBindings.Add("Text", this.DataSource, "SatisKdv");
            colStokGiris.DataBindings.Add("Text", this.DataSource, "StokGiris");
            colStokCikis.DataBindings.Add("Text", this.DataSource, "StokCikis");
            colMevcutStok.DataBindings.Add("Text", this.DataSource, "MevcutStok");
        }
Esempio n. 3
0
 private void FrmStokSec_Load(object sender, EventArgs e)
 {
     gridcontStoklar.DataSource = stokDal.StokListele(context);
 }