Exemple #1
0
        public rptStokDurumu()
        {
            InitializeComponent();
            MGsTOKContex conetext = new MGsTOKContex();
            StokDal      stokdal  = new StokDal();

            ObjectDataSource stokDatasource = new ObjectDataSource {
                DataSource = stokdal.GetAlljoin(conetext)
            };

            this.DataSource = stokDatasource;
            // colStokGrubu.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, "StokBirimi");
            colStokGrubu.DataBindings.Add("Text", this.DataSource, "StokGrubu");
            colSatisKdv.DataBindings.Add("Text", this.DataSource, "SatisKdv");
            colStokGiris.DataBindings.Add("Text", this.DataSource, "StokGiris");
            colStokCikis.DataBindings.Add("Text", this.DataSource, "StokCikis");
        }
Exemple #2
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");
        }
Exemple #3
0
 private void FrmStokSec_Load(object sender, EventArgs e)
 {
     gridControl1.DataSource = stokdal.GetAlljoin(context);
 }
Exemple #4
0
        public void GetAll()//gridde verileri listelemek için yazdığım metod.
        =>

        gridControl1.DataSource = stokdal.GetAlljoin(context); //methodun orjinali stok dalın içinde