Beispiel #1
0
 private void ArizaDetayForm_Load(object sender, EventArgs e)
 {
     urunAdLook.Properties.DataSource = from item in urunServis.List()
                                        select new
     {
         item.Id,
         item.UrunAd
     };
     BindData();
 }
Beispiel #2
0
        private void BindData()
        {
            urunSayisiLbl.Text     = urunServis.List().Count().ToString();
            kategoriSayisiLbl.Text = kategoriServis.List().Count().ToString();
            stokSayisiLbl.Text     = urunServis.List().Sum(c => c.UrunStok).ToString();

            var urun = urunServis.List().OrderByDescending(c => c.UrunStok).FirstOrDefault();

            enFazlaStokSayiliUrunTxt.Text = urun.UrunAd;
            enFazlaStokSayi.Text          = urun.UrunStok.ToString();

            foreach (var item in urunServis.List())
            {
                chartControl1.Series["Series 1"].Points.AddPoint(item.UrunAd, double.Parse(item.UrunStok.ToString()));
            }

            foreach (var item in urunServis.List())
            {
                chartControl2.Series["Satış Fiyatı"].Points.AddPoint(item.UrunAd, double.Parse(item.SatisFiyat.ToString()));
            }
        }
Beispiel #3
0
 private void BindData()
 {
     gridControl1.DataSource = from item in urunServis.List()
                               select new
     {
         item.Id,
         item.UrunAd,
         item.UrunMarka,
         item.AlisFiyat,
         item.SatisFiyat,
         item.UrunStok,
         Kategori = item.Kategori.KategoriAd
     };
 }
Beispiel #4
0
 private void ArizaKaydiForm_Load(object sender, EventArgs e)
 {
     urunLook.Properties.DataSource = from item in urunServis.List()
                                      select new
     {
         item.Id,
         item.UrunAd
     };
     musteriLook.Properties.DataSource = from item in musteriServis.List()
                                         select new
     {
         item.Id,
         AdSoyad = item.MusteriAd + " " + item.MusteriSoyad
     };
     personelLook.Properties.DataSource = from item in personelServis.List()
                                          select new
     {
         item.Id,
         AdSoyad = item.PersonelAd + " " + item.PersonelSoyad
     };
 }
 private void FaturaForm_Load(object sender, EventArgs e)
 {
     musteriLook.Properties.DataSource = from item in musteriServis.List()
                                         select new
     {
         item.Id,
         AdSoyad = item.MusteriAd + " " + item.MusteriSoyad
     };
     personelLook.Properties.DataSource = from item in personelServis.List()
                                          select new
     {
         item.Id,
         AdSoyad = item.PersonelAd + " " + item.PersonelSoyad
     };
     urunLook.Properties.DataSource = from item in urunServis.List()
                                      select new
     {
         item.Id,
         item.UrunAd
     };
     BindDataFaturaBilgi();
 }
 private void BindData()
 {
     gridControl1.DataSource = _urunServis.List();
 }