public ActionResult RequestHistory() { var principal = (ClaimsIdentity)User.Identity; string EmpNum = principal.FindFirst(ClaimTypes.SerialNumber).Value; var RequestHistory = RetrieveRequest.GetRequestHistory(EmpNum); return(View(RequestHistory)); }
public ActionResult EditRequest(string RequestId = null) { if (RequestId == null) { return(RedirectToAction("RequestHistory")); } SourceRequestViewModel item = new SourceRequestViewModel(); var principal = (ClaimsIdentity)User.Identity; string _dept = principal.FindFirst(ClaimTypes.UserData).Value; string _deptCode = principal.FindFirst(ClaimTypes.Actor).Value; string _branch = principal.FindFirst(ClaimTypes.StateOrProvince).Value; string _branchCode = principal.FindFirst(ClaimTypes.PostalCode).Value; var RequestHistory = RetrieveRequest.GetRequestHistory(null, RequestId).FirstOrDefault(); ViewBag.ItemCategories = Common.GetMainCategory(); ViewBag.Vendors = GetVendors.GetAllVendors(); return(View(RequestHistory)); }
public ActionResult RequestHistoryPopup(string ItemId) { var RequestHistory = RetrieveRequest.GetRequestHistory(null, ItemId); return(PartialView(RequestHistory)); }