コード例 #1
0
        public ActionResult RenderDeliveryAction(int nodeId)
        {
            var pageModel = new ChalmersILLActionDeliveryModel(_orderItemManager.GetOrderItem(nodeId));

            _umbraco.PopulateModelWithAvailableValues(pageModel);
            return(PartialView("Chalmers.ILL.Action.Delivery", pageModel));
        }
コード例 #2
0
        public ActionResult RenderReturnAction(int nodeId)
        {
            var pageModel = new ChalmersILLActionReturnModel(_orderItemManager.GetOrderItem(nodeId));

            _umbraco.PopulateModelWithAvailableValues(pageModel);

            // The return format depends on the client's Accept-header
            return(PartialView("Chalmers.ILL.Action.Return", pageModel));
        }
コード例 #3
0
        public ActionResult RenderMailAction(int nodeId)
        {
            var model = new ChalmersILLActionMailModel(_orderItemManager.GetOrderItem(nodeId));

            _dataTypes.PopulateModelWithAvailableValues(model);
            model.SignatureTemplate = _templateService.GetTemplateData("SignatureTemplate", model.OrderItem);
            model.Templates         = _templateService.GetManualTemplates();

            // The return format depends on the client's Accept-header
            return(PartialView("Chalmers.ILL.Action.Mail", model));
        }
コード例 #4
0
        public ActionResult RenderOrderItem(int nodeId)
        {
            // Get current member.
            int memberId = _memberInfoManager.GetCurrentMemberId(Request, Response);

            // Get a new OrderItem populated with values for this node
            var pageModel = new ChalmersILLOrderItemModel(_orderItemManager.GetOrderItem(nodeId));

            // Check if the current user has the lock for the item.
            pageModel.OrderItem.EditedByCurrentMember = pageModel.OrderItem.EditedBy != "" && pageModel.OrderItem.EditedBy == memberId.ToString();

            _umbraco.PopulateModelWithAvailableValues(pageModel);

            // Return Partial View to the client
            return(PartialView("Chalmers.ILL.OrderItem", pageModel));
        }