Пример #1
0
        //Pops up when creating a new RFQ or RFP
        //enables buyer mapp request initiated from branch being mapped to
        //new RFQ or RFP request.

        public ActionResult MappTreatedSourceReq()
        {
            List <SourceRequestViewModel> RequestHistory = new List <SourceRequestViewModel>();
            var    principal = (ClaimsIdentity)User.Identity;
            string UserId    = principal.FindFirst(ClaimTypes.Actor).Value;
            string UserRole  = principal.FindFirst(ClaimTypes.Role).Value;

            if (UserRole == "Administrator")
            {
                RequestHistory = RetrieveRequest.GetSourceRequestHistoryAdmin(null, null, "Mapp");
            }
            else
            {
                RequestHistory = RetrieveRequest.GetSourceRequestHistoryAdmin(UserId, null, "Mapp");
            }

            return(PartialView(RequestHistory));
        }
Пример #2
0
        public ActionResult TreatedSourceReq()
        {
            //check for request id on the request table
            List <SourceRequestViewModel> RequestHistory = new List <SourceRequestViewModel>();
            var    principal = (ClaimsIdentity)User.Identity;
            string UserId    = principal.FindFirst(ClaimTypes.Actor).Value;
            string UserRole  = principal.FindFirst(ClaimTypes.Role).Value;

            if (UserRole == "Administrator")
            {
                RequestHistory = RetrieveRequest.GetSourceRequestHistoryAdmin();
            }
            else
            {
                RequestHistory = RetrieveRequest.GetSourceRequestHistoryAdmin(UserId);
            }

            return(View(RequestHistory));
        }
Пример #3
0
        public ActionResult TreatedSourceReqPopUp(string ItemId)
        {
            var RequestHistory = RetrieveRequest.GetSourceRequestHistoryAdmin(null, ItemId);

            return(PartialView(RequestHistory));
        }