Ejemplo n.º 1
0
        public ActionResult WatchDetail(int caseID, int month, int year)
        {
            var caseService   = new Case.CaseService();
            var caseProviders = caseService.GetCaseProviderListItems(caseID, true);

            foreach (var provider in caseProviders)
            {
                if (!string.IsNullOrEmpty(provider.Email))
                {
                    var mailtoEmail  = HttpUtility.UrlEncode(provider.Email);
                    var displayEmail = HttpUtility.HtmlEncode(provider.Email);
                    provider.Email = "<a href='mailto:" + mailtoEmail + "'>" + displayEmail + "</a>";
                }
            }
            var caseMonthlyPeriod = caseService.GetCaseMonthlyPeriod(caseID, month, year);
            var model             = new Models.WatchDetailPopupVM
            {
                Providers = caseProviders,
                CaseID    = caseID,
                Month     = month,
                Year      = year
            };

            if (caseMonthlyPeriod != null)
            {
                model.Comments = caseMonthlyPeriod.WatchComment;
                model.Ignore   = caseMonthlyPeriod.WatchIgnore;
            }
            return(PartialView("WatchDetailPopup", model));
        }
Ejemplo n.º 2
0
        public void SaveWatchDetail(Models.WatchDetailPopupVM model)
        {
            var caseService = new Case.CaseService();

            caseService.SaveCaseMonthlyPeriod(model);
        }