Beispiel #1
0
        public ActionResult OrderTimes()
        {
            StaffTimesViewModel _staffTimes = StaffHelpers.GetPerformanceInDateViewModel(_firstDayOfWeek, _lastDayOfWeek);

            ViewBag.BarChart = DataChartHelpers.GetStaffLineBarChart(_staffTimes.Performances);
            ViewBag.Users    = db.Users.ToList();

            return(View(_staffTimes));
        }
Beispiel #2
0
        public ActionResult OrderTimes(StaffTimesViewModel model)
        {
            StaffTimesViewModel _staffTimes = StaffHelpers.GetPerformanceInDateViewModel(model.FromDate, model.ToDate, model.UserName);

            ViewBag.BarChart = DataChartHelpers.GetStaffLineBarChart(_staffTimes.Performances);
            ViewBag.Users    = db.Users.ToList();

            return(View(_staffTimes));
        }
Beispiel #3
0
        public ActionResult TimesDashboard(StaffTimesViewModel model)
        {
            string user = User.Identity.Name;

            if (user == null || user == "")
            {
                user = "******";
            }
            StaffTimesViewModel _staffTimes = StaffHelpers.GetPerformanceInDateViewModel(model.FromDate, model.ToDate, user);

            ViewBag.BarChart = DataChartHelpers.GetStaffLineBarChart(_staffTimes.Performances);

            return(View(_staffTimes));
        }
Beispiel #4
0
        public ActionResult StaffDashboard(string userName)
        {
            if ((userName == "" || userName == null) && @Request.IsAuthenticated)
            {
                userName = User.Identity.Name;
            }

            StaffTimesViewModel _staffTimes = StaffHelpers.GetPerformanceInDateViewModel(_firstDayOfWeek, _lastDayOfWeek, userName);

            ViewBag.BarChart = DataChartHelpers.GetStaffLineBarChart(_staffTimes.Performances);
            ViewBag.Users    = db.Users.ToList();

            return(View(_staffTimes));
        }