Example #1
0
        public ActionResult ProcessRequisition(long reqId, string status, string sessionId)
        {
            Employee emp         = EmployeeService.GetUserBySessionId(sessionId);
            long     currentHead = emp.EmpId;

            RequisitionService.ProcessRequisition(reqId, status, currentHead);
            bool all           = DelegateService.CheckPreviousHeadForNav(emp.DeptId);
            bool permanentHead = ((emp.EmpRole == "HEAD" && emp.EmpDisplayRole == "HEAD") || (emp.EmpRole == "EMPLOYEE" && emp.EmpDisplayRole == "HEAD"));

            ViewData["all"]           = all;
            ViewData["permanentHead"] = permanentHead;
            ViewData["sessionId"]     = sessionId;
            return(RedirectToAction("GetPendingRequisitions", new { sessionId = sessionId }));
        }