示例#1
0
        public rptGunlukSatis(DateTime giris)
        {
            InitializeComponent();
            IsbaSatisContext context        = new IsbaSatisContext();
            KasaHareketDAL   kasaHareketDAL = new KasaHareketDAL();

            ObjectDataSource kasaDatasource = new ObjectDataSource {
                DataSource = kasaHareketDAL.OdemeTuruSatisListele(context, giris)
            };

            this.DataSource = kasaDatasource;
            colOdemeTuru.DataBindings.Add("Text", this.DataSource, "OdemeTuruAdi");

            colKasaGiris.DataBindings.Add("Text", this.DataSource, "KasaGiris", "{0:C2}");
            colKasaCikis.DataBindings.Add("Text", this.DataSource, "KasaCikis", "{0:C2}");
            colBakiye.DataBindings.Add("Text", this.DataSource, "Bakiye", "{0:C2}");
        }
示例#2
0
 void listele(DateTime baslangic, DateTime bitis)
 {
     gridControl1.DataSource = kasaHareketDAL.OdemeTuruSatisListele(context, DateTime.Now);
 }