Пример #1
0
        public ActionResult ClearClientHistory()
        {
            RequestedServicesViewModel rsvm = new RequestedServicesViewModel {
                Agencies = Agencies.GetAgenciesSelectList(0)
            };

            DailyHub.GetClientHistory(0);

            return(View("ExistingClient", rsvm));
        }
Пример #2
0
        /*
         * public ActionResult PrehistoricChecks()
         * {
         *  RequestedServicesViewModel rsvm = new RequestedServicesViewModel();
         *  int nowServing = NowServing();
         *  Client client = Clients.GetClient(nowServing, rsvm);
         *  rsvm.Agencies = Agencies.GetAgenciesSelectList(client.AgencyId);
         *  rsvm.MBVDS = MBVDS.GetMBVDSelectList();
         *
         *  ViewBag.ClientName = Clients.ClientBeingServed(client);
         *  ViewBag.DOB = client.DOB.ToString("MM/dd/yyyy");
         *  ViewBag.Age = client.Age;
         *
         *  // Treat a client with ancient history like a client with existing history
         *  // that is not yet visible, i.e. must be added to any actual existing history.
         *  return View("ExistingClient", rsvm);
         * }
         */

        public ActionResult GetClientHistory()
        {
            RequestedServicesViewModel rsvm = new RequestedServicesViewModel {
                Agencies = Agencies.GetAgenciesSelectList(0)
            };

            string nowServing = SessionHelper.Get("NowServing");

            DailyHub.GetClientHistory(Convert.ToInt32(nowServing));

            return(View("ExistingClient", rsvm));
        }