public ActionResult HolidaysMapping() { HolidaysMapping _HolidaysMapping = new HolidaysMapping(); ViewBag.EmployeeList = new SelectList(LMSBAL.Get_Employees(UserId, BusinessId), "key", "value"); ViewBag.Locations = new SelectList(LMSBAL.Get_Locations(), "key", "value"); ViewBag.CompanyNames = new SelectList(LMSBAL.GetCompanyName(BusinessId, UserId), "key", "value"); ViewBag.UserName = UserName; ViewBag.RoleId = RoleId; return(View()); }
public ActionResult ViewApplyLeave() { ViewBag.UserId = UserId; ViewBag.UserName = UserName; ViewBag.RoleId = RoleId; ViewBag.EmployeeList = new SelectList(LMSBAL.Get_Employees(UserId, BusinessId), "key", "value"); ViewBag.LeaveYearList = new SelectList(LMSBAL.Get_Years(UserId), "key", "value"); //ViewBag.UserEmployeeId = UserEmployeeId; //ViewBag.EmployeeName = EmployeeName; return(View()); }
public ActionResult ApplyLeave() { LMS _ApplyLeave = new LMS(); ViewBag.EmployeeList = new SelectList(LMSBAL.Get_Employees(UserId, BusinessId), "key", "value"); ViewBag.LeaveList = new SelectList(LMSBAL.Get_LeaveType(UserId), "key", "value"); ViewBag.ReasonList = new SelectList(LMSBAL.Get_ReasonType(UserId), "key", "value"); ViewBag.UserName = UserName; ViewBag.RoleId = RoleId; ViewBag.UserEmployeeId = UserSessionEmployeeId; var balance = BAL.PreferencesBAL.GetManageLeaveDetails(this.BusinessId).FirstOrDefault(); if (balance == null) { ViewBag.CurrentBalance = 0; } else { ViewBag.CurrentBalance = balance.Leavevalue; } return(View()); }
public ActionResult ModifyWeeklyOff() { ViewBag.EmployeeList = new SelectList(LMSBAL.Get_Employees(UserId, BusinessId), "key", "value"); return(View()); }