Example #1
0
 public ActionResult NewStaff()
 {
     ViewBag.Id          = _newStaffService.All().Select(x => x.StaffId).LastOrDefault() + 1;
     ViewBag.BoundaryId  = LoadDropDown.LoadBoundary(_boundaryService);
     ViewBag.ReportingId = LoadDropDown.LoadReportingTo(_newStaffService);
     return(View());
 }
 // GET: FileProcessAction
 public ActionResult FileProcessAction()
 {
     ViewBag.MarkTo = LoadDropDown.LoadReportingTo(_newStaffService);
     // ViewBag.MarkTo = _newStaffService.All().Where(x => x.StaffId == Convert.ToInt32(Session["UserID"])).Select(x => x.ReportingId).FirstOrDefault();
     ViewBag.Action = LoadDropDown.LoadEmpDlList();
     //FileMain data = TempData["mydata"] as FileMain;
     //return View(data);
     return(View());
 }
        public ActionResult Index()
        {
            ViewBag.MarkTo = LoadDropDown.LoadReportingTo(_newStaffService);
            var ReportingName = _newStaffService.All().Where(x => x.StaffId == Convert.ToInt32(Session["UserID"])).Select(x => x.ReportingId).FirstOrDefault();

            //ViewBag.MarkTo = _newStaffService.All().Where(x => x.StaffId == ReportingName).Select(x => x.StaffName).FirstOrDefault();

            ViewBag.Action      = LoadDropDown.LoadActionList(_actionListService);
            ViewBag.Id          = _newStaffService.All().Select(x => x.StaffId).LastOrDefault() + 1;
            ViewBag.BoundaryId  = LoadDropDown.LoadBoundary(_boundaryService);
            ViewBag.ReportingId = LoadDropDown.LoadReportingTo(_newStaffService);
            //ViewBag.Items = GetAllItem();
            return(View());
        }