Exemplo n.º 1
0
        public ActionResult MyAssets()
        {
            AssignmentProcess assignProcess   = new AssignmentProcess();
            EmployeeProcess   employeeProcess = new EmployeeProcess();

            ViewBag.Assignments = assignProcess.GetCurrentAssignmentsByEmployeeID(User.Identity.Name.ToInteger());
            ViewBag.Acceptances = assignProcess.GetAssignmentsForAcceptanceByEmployeeID(User.Identity.Name.ToInteger());
            ViewBag.History     = assignProcess.GetAllAssignmentsByEmployeeID(User.Identity.Name.ToInteger());

            return(View(employeeProcess.GetEmployeeProfileByID(User.Identity.Name.ToInteger())));
        }
Exemplo n.º 2
0
        public ActionResult MyAssetHistoryReport()
        {
            FASTService.Process.AssignmentProcess assignProcess = new AssignmentProcess();
            List <FASTService.vwAssetAssignment>  assignments   = new List <vwAssetAssignment>();

            int employeeID = 0;

            Int32.TryParse(User.Identity.Name, out employeeID);

            assignments = assignProcess.GetAllAssignmentByEmployeeID(employeeID);
            return(View(assignments));
        }
Exemplo n.º 3
0
        public ActionResult MyAssetHistoryReport()
        {
            AssignmentProcess assignProcess   = new AssignmentProcess();
            EmployeeProcess   employeeProcess = new EmployeeProcess();

            int employeeID = User.Identity.Name.ToInteger();

            ViewBag.Employee = employeeProcess.GetEmployeeProfileByID(employeeID);
            ViewBag.Assets   = assignProcess.GetAllAssignmentsByEmployeeID(employeeID);

            return(View());
        }
Exemplo n.º 4
0
        public ActionResult MIS()
        {
            AssignmentProcess assignProcess = new AssignmentProcess();

            assignProcess.UserID = User.Identity.Name.ToInteger();

            List <Common.vwAssetAssignmentsForMI> assignments = new List <vwAssetAssignmentsForMI>();
            List <Common.vwAssetAssignmentsForMI> acceptances = new List <vwAssetAssignmentsForMI>();

            IQueryable <vwAssetAssignmentsForMI> allAssignments = assignProcess.GetAssignmentsForMISByMISEmployeeID(assignProcess.UserID);

            assignments = allAssignments.Where(i => i.AssignmentStatusID == FASTConstant.ASSIGNMENT_STATUS_ACCEPTED).ToList();
            acceptances = allAssignments.Where(i => i.AssignmentStatusID == FASTConstant.ASSIGNMENT_STATUS_WT_ACCEPTANCE).ToList();

            ViewBag.Acceptances = acceptances;
            ViewBag.Assignments = assignments;

            return(View());
        }