コード例 #1
0
        public ActionResult GrafikForm(string Giris, string Cikis)
        {
            DateTime girisZamani = DateTime.ParseExact(Giris, "dd/MM/yyyy HH:mm", null);
            DateTime cikisZamani = DateTime.ParseExact(Cikis, "dd/MM/yyyy HH:mm", null);

            List <int>    arabaSayisi = new List <int>();
            List <string> etiketler   = new List <string>();

            foreach (var i in GrafikVeriOlusturucu.GunlereGoreGirenArac(7, 'p', girisZamani, cikisZamani))
            {
                arabaSayisi.Add((int)(i.Deger));
                etiketler.Add(GrafikVeriOlusturucu.GrafikVeriEtiketiOlustur(i, "dd/MM", false));
            }

            ViewBag.Etiketler = etiketler;
            return(View("GrafikCiz", arabaSayisi));
        }
コード例 #2
0
 public ActionResult AylikOrtalama(int id)
 {
     return(View(GrafikVeriOlusturucu.AyIcindeOrtalamaBul(GrafikVeriOlusturucu.GunlereGoreGirenArac(id, 'p', new DateTime(2018, 4, 01, 0, 0, 0), new DateTime(2018, 6, 30, 23, 59, 59)))));
 }
コード例 #3
0
 public ActionResult Gunluk(int id)
 {
     return(View(GrafikVeriOlusturucu.GunlereGoreGirenArac(id, 'p', new DateTime(2018, 4, 01, 0, 0, 0), new DateTime(2018, 6, 30, 23, 59, 59))));
 }