예제 #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");
        }
예제 #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");
        }
예제 #3
0
파일: FrmStokSec.cs 프로젝트: mguler1/Erp
 private void FrmStokSec_Load(object sender, EventArgs e)
 {
     gridControl1.DataSource = stokdal.GetAlljoin(context);
 }
예제 #4
0
파일: FrmStok.cs 프로젝트: mguler1/Erp
        public void GetAll()//gridde verileri listelemek için yazdığım metod.
        =>

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