Пример #1
0
        public rptCariExtresi(int CariID, DateTime baslangic, DateTime bitis)
        {
            InitializeComponent();
            NetSatisContext  context              = new NetSatisContext();
            CariDAL          cariDal              = new CariDAL();
            var              cariEntity           = cariDal.GetByFilter(context, c => c.Id == CariID);
            ObjectDataSource cariEkstreDataSource = new ObjectDataSource {
                DataSource = cariDal.CariFisAyrinti(context, CariID, baslangic, bitis)
            };
            List <GenelToplam> cariBakiyeDataSource = (List <GenelToplam>)cariDal.CariGenelToplam(context, CariID);

            this.DataSource = cariEkstreDataSource;
            lblCariKodu.DataBindings.Add("Text", cariEntity, "CariKodu");
            lblCariAdı.DataBindings.Add("Text", cariEntity, "CariAdi");

            colSeri.DataBindings.Add("Text", this.DataSource, "Seri");
            colFisTuru.DataBindings.Add("Text", this.DataSource, "FisTuru");
            colBelgeNo.DataBindings.Add("Text", this.DataSource, "BelgeNo");
            colSira.DataBindings.Add("Text", this.DataSource, "Sira");
            colTarih.DataBindings.Add("Text", this.DataSource, "Tarih", "{0:dd.MM.yyyy}");
            colVadeTarihi.DataBindings.Add("Text", this.DataSource, "VadeTarihi", "{0:dd.MM.yyyy}");
            colToplamTutar.DataBindings.Add("Text", this.DataSource, "ToplamTutar", "{0:C2}");
            colOdenen.DataBindings.Add("Text", this.DataSource, "Odenen", "{0:C2}");
            colAktif.DataBindings.Add("Text", this.DataSource, "AktifTutar", "{0:C2}");

            lblBaslangic.Text = baslangic.ToShortDateString();
            lblBitis.Text     = bitis.ToShortDateString();

            colAlacak.DataBindings.Add("Text", cariBakiyeDataSource[0], "Bilgi");
            colAlacakTutar.DataBindings.Add("Text", cariBakiyeDataSource[0], "Tutar", "{0:C2}");
            colBorc.DataBindings.Add("Text", cariBakiyeDataSource[1], "Bilgi");
            colBorcTutar.DataBindings.Add("Text", cariBakiyeDataSource[1], "Tutar", "{0:C2}");
            colBakiye.DataBindings.Add("Text", cariBakiyeDataSource[2], "Bilgi");
            colBakiyeTutar.DataBindings.Add("Text", cariBakiyeDataSource[2], "Tutar", "{0:C2}");
        }
Пример #2
0
 private void Guncelle()
 {
     gridcontFisToplam.DataSource   = cariDal.CariFisGenelToplam(context, _cariId);
     gridcontBakiye.DataSource      = cariDal.CariGenelToplam(context, _cariId);
     gridcontCariHareket.DataSource = cariDal.CariFisAyrinti(context, _cariId);
 }
Пример #3
0
 private void Guncelle()
 {
     gridConFisToplam.DataSource   = caridal.CariFisGenelToplam(context, _cariKodu);
     gridConBakiye.DataSource      = caridal.CariGenelToplam(context, _cariKodu);
     gridConCariHareket.DataSource = caridal.CariFisAyrinti(context, _cariKodu);
 }
Пример #4
0
 public frmCariEkstreTarih(int cariId, DateTime baslangic, DateTime bitis)
 {
     _cariId = cariId;
     InitializeComponent();
     gridContCariHareket.DataSource = cariDal.CariFisAyrinti(context, cariId, baslangic, bitis);
 }
 private void Guncelle()
 {
     gridControl2.DataSource        = cariDal.CariFisGenelToplam(context, _cariKodu);
     gridControl3.DataSource        = cariDal.CariGenelToplam(context, _cariKodu);
     gridContcariHareket.DataSource = cariDal.CariFisAyrinti(context, _cariKodu);
 }