public ActionResult Index() { var data = _remarkBLL.GetRemark(); var model = new RemarkModel(); model.Details = Mapper.Map <List <RemarkItem> >(data); model.MainMenu = _mainMenu; model.CurrentLogin = CurrentUser; model.CurrentPageAccess = CurrentPageAccess; return(View(model)); }
private TraCafIndexViewModel InitialIndexModel(TraCafIndexViewModel model) { var RemarkList = _remarkBLL.GetRemark().Where(x => x.RoleType == CurrentUser.UserRole.ToString()).ToList(); model.RemarkList = new SelectList(RemarkList, "MstRemarkId", "Remark"); model.CurrentLogin = CurrentUser; model.MainMenu = _mainMenu; model.CurrentPageAccess = CurrentPageAccess; return(model); }
public GsItem InitialModel(GsItem model) { var policeList = _fleetBLL.GetFleet().Where(x => x.IsActive == true).ToList(); model.PoliceNumberList = new SelectList(policeList, "PoliceNumber", "PoliceNumber"); var RemarkList = _remarkBLL.GetRemark().Where(x => x.IsActive == true && x.DocumentType == (int)Enums.DocumentType.GS).ToList(); model.RemarkList = new SelectList(RemarkList, "Remark", "Remark"); var EmployeeList = _employeeBLL.GetEmployee().Where(x => x.IS_ACTIVE == true).Select(x => new { EmployeeName = x.FORMAL_NAME }).ToList(); model.EmployeeList = new SelectList(EmployeeList, "EmployeeName", "EmployeeName"); var LocationList = _locationMappingBLL.GetLocationMapping().Select(x => new { location = x.Location }).ToList(); model.LocationList = new SelectList(LocationList, "location", "location"); return(model); }
public ActionResult Dashboard() { var model = new TraCrfDashboardViewModel(); model.MainMenu = _mainMenu; var RemarkList = _remarkBLL.GetRemark().Where(x => x.RoleType == CurrentUser.UserRole.ToString()).ToList(); model.CurrentLogin = CurrentUser; var data = _CRFBLL.GetCrfEpaf().Where(x => x.CrfId == null); model.RemarkList = new SelectList(RemarkList, "MstRemarkId", "Remark"); model.CurrentPageAccess = CurrentPageAccess; model.Details = Mapper.Map <List <TraCrfEpafItem> >(data); return(View(model)); }