Esempio n. 1
0
        private void PrintReport()
        {
            lvRepRev.Items.Clear();
            Report_Service service = new Report_Service();
            Report         report  = service.GetReport();
            var            row     = new string[] { report.Sales.ToString(), report.Turnover.ToString(), report.CustomerID.ToString() };
            var            lvi     = new ListViewItem(row);

            lvRepRev.Items.Add(lvi);
        }
Esempio n. 2
0
        // GET: Admin/Home
        public ActionResult Index()
        {
            List <ChartReport>        lstChart     = new List <ChartReport>();
            List <Dashboard_OverView> overviewData = new List <Dashboard_OverView>();

            try
            {
                TaiKhoanDAO taiKhoan = (TaiKhoanDAO)System.Web.HttpContext.Current.Session["User"];
                lstChart         = Report_Service.GetDataForChart();
                overviewData     = Report_Service.GetOverviewData();
                ViewBag.overview = overviewData;
            } catch (Exception e)
            {
                throw e;
            }
            return(View(lstChart));
        }