示例#1
0
        public virtual ActionResult PCRFollowUpTaskList(string operationNumber, string accessType)
        {
            var errorMessage = SynchronizationHelper.AccessToResources(
                accessType,
                UrlFollowUp,
                operationNumber,
                IDBContext.Current.UserName);

            if (!string.IsNullOrWhiteSpace(errorMessage))
            {
                return(Json(new
                {
                    ErrorMessage = errorMessage
                }));
            }

            ViewBag.SPDRole = _authorizationService.IsAuthorized(
                IDBContext.Current.UserLoginName,
                operationNumber,
                ActionEnum.PCRSPDLeaderWrite,
                true);
            ViewBag.IsModeEdit = accessType.Equals("edit") ? true : false;

            ViewBag.Documents = _viewModelMapperHelper
                                .AddOptionsDocumentsDropDown(IDBContext.Current.CurrentLanguage);
            ViewBag.UserName = IDBContext.Current.UserName;

            var model = _viewModelMapperHelper.GetFollowUp(operationNumber);

            ViewBag.SerializedViewModel = PageSerializationHelper.SerializeObject(model);

            return(PartialView("Partials/PCRFollowUpTaskList", model));
        }