예제 #1
0
        public ActionResult CaseHoursLogs(int caseID, bool showAll)
        {
            var cutoff = CurrentHoursHistoryCutoff;
            var model  = new CaseHoursDetailVM
            {
                ShowAllHours = showAll,
                IsSupervisor = homeRepository.IsProviderSupervisor(caseID, Provider.ID.Value),
                Items        = homeRepository.GetCaseHoursDetails(caseID, Provider.ID.Value, cutoff)
            };

            return(PartialView("CaseHoursLog", model));
        }
예제 #2
0
        public ActionResult CaseHoursLogCallback()
        {
            //var showAll = Request.Params["showAll"] == "true";
            var caseID   = int.Parse(Request.Params["caseID"]);
            var provider = Global.Default.GetUserProvider();
            var cutoff   = CurrentHoursHistoryCutoff;
            var model    = new CaseHoursDetailVM
            {
                Items = homeRepository.GetCaseHoursDetails(caseID, provider.ID.Value, cutoff)
            };

            return(PartialView("CaseHoursLogGrid", model.Items));
        }