예제 #1
0
파일: rptKasa.cs 프로젝트: damar89/EmdErp
        public rptKasa(int KasaID, DateTime baslangic, DateTime bitis)
        {
            InitializeComponent();
            NetSatisContext  context               = new NetSatisContext();
            KasaHareketDAL   kasatDal              = new KasaHareketDAL();
            var              kasaEntity            = kasatDal.GetByFilter(context, c => c.Id == KasaID);
            ObjectDataSource kasaHareketDataSource = new ObjectDataSource {
                DataSource = kasatDal.kasaHareket(context, KasaID, baslangic, bitis)
            };

            this.DataSource = kasaHareketDataSource;
            colOdemeTuru.DataBindings.Add("Text", this.DataSource, "OdemeTuru.OdemeTuruAdi");
            colKasaAdi.DataBindings.Add("Text", this.DataSource, "Kasa.KasaAdi");
            colTipi.DataBindings.Add("Text", this.DataSource, "Hareket");
            colTarih.DataBindings.Add("Text", this.DataSource, "Tarih", "{0:dd.MM.yyyy}");
            colTutar.DataBindings.Add("Text", this.DataSource, "Tutar");
            colAciklama.DataBindings.Add("Text", this.DataSource, "Aciklama");
        }