Пример #1
0
        public ActionResult GetPendingRequisitions(string sessionId)
        {
            Employee           emp           = EmployeeService.GetUserBySessionId(sessionId);
            long               deptId        = emp.DeptId;
            List <Requisition> requisitions  = RequisitionService.DisplayPendingRequisitions(deptId);
            bool               all           = DelegateService.CheckPreviousHeadForNav(deptId);
            bool               permanentHead = ((emp.EmpRole == "HEAD" && emp.EmpDisplayRole == "HEAD") || (emp.EmpRole == "EMPLOYEE" && emp.EmpDisplayRole == "HEAD"));

            ViewData["all"]                   = all;
            ViewData["permanentHead"]         = permanentHead;
            ViewData["requisitionsToProcess"] = requisitions;
            ViewData["sessionId"]             = sessionId;
            return(View());
        }