public JsonResult GetBirthdayAnniversaryCount() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode()); return(Json(objDash.GetBirthdayAnniversaryCount(_objcurrentInfo.GetRegionCode()), JsonRequestBehavior.AllowGet)); }
public JsonResult GetLockDetails() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode()); return(Json(objDash.GetLockDetails(_objcurrentInfo.GetUserCode()), JsonRequestBehavior.AllowGet)); }
public JsonResult GetAppliedExpenseClaimList(string userCode) { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode()); return(Json(objDash.GetMyAppliedExpenseClaimsDetails(userCode), JsonRequestBehavior.AllowGet)); }
public JsonResult GetEmployeeBirthdays() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode()); return(Json(objDash.GetEmployeeBirthdays(), JsonRequestBehavior.AllowGet)); }
public JsonResult GetExpenseClaimPendingUserList() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode()); return(Json(objDash.GetPendingApprovalUserList(_objcurrentInfo.GetUserCode(), DashBoardLanding.Entity.EXPNESECLAIM), JsonRequestBehavior.AllowGet)); }
public JsonResult GetUnapproveExpenseClaimList() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode()); return(Json(objDash.GetUnapproveExpenseClaimList(_objcurrentInfo.GetUserCode()), JsonRequestBehavior.AllowGet)); }
public JsonResult GetTPApprovalMenuAccess() { CurrentInfo _objcurrentInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(_objcurrentInfo.GetUserTypeCode()); return(Json(objDash.GetTPApprovalMenuAccessList(_objcurrentInfo.GetUserTypeCode()), JsonRequestBehavior.AllowGet)); }
/// <summary> /// Retrieve My Unapproved DCR Count. /// </summary> /// <returns>int</returns> public int GetMyDCRUnapprovedCount() { // Cretaes Instance. CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); // Get My Unapprove DCR. return(objDash.GetMyUnapprovedEntries(objInfo.GetUserCode(), objInfo.GetRegionCode(), DashBoardLanding.Entity.DCR)); }
/// <summary> /// Get Team Expense claims for Approval. /// Its get entire reporting user list. /// </summary> /// <returns>int</returns> public int GetExpenseClaimPendingApprovalCountForTeam() { // Cretaes Instance. CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); // Get Count for Entire Team Applied Expense claims. return(objDash.GetPendingApprovalCountForTeam(objInfo.GetCompanyCode(), objInfo.GetUserCode(), DashBoardLanding.Entity.EXPNESECLAIM)); }
/// <summary> /// Get Team TP Count for Approval. /// its only picking immediate users count. Not an entire reporting list. /// </summary> /// <returns>int</returns> public int GetTPPendingApprovalCountForTeam() { // create instances CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); // get TP Pending Approval count. return(objDash.GetPendingApprovalCountForTeam(objInfo.GetCompanyCode(), objInfo.GetUserCode(), DashBoardLanding.Entity.TP)); }
/// <summary> /// Retrieve the Unread NoticeBoard. /// </summary> /// <returns></returns> public int GetMyUnreadNoticeBoard() { // Cretaes Instance. CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); // Get My Unapproved claims. return(objDash.GetMyPendingNotifications(objInfo.GetUserCode(), DashBoardLanding.Entity.NOTICEBOARD)); }
/// <summary> /// Retrive the Unread Messaging count. /// </summary> /// <returns>int</returns> public int GetMyUnreadMessageCount() { // Cretaes Instance. CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); // Get My Unapproved claims. return(objDash.GetMyPendingNotifications(objInfo.GetUserCode(), DashBoardLanding.Entity.MESSAGING)); }
/// <summary> /// Retrieve My Expense Claim Count. /// </summary> /// <returns>int</returns> public int GetMyExpenseClaimUnapprovedCount() { // Cretaes Instance. CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); // Get My Unapproved claims. return(objDash.GetMyUnapprovedEntries(objInfo.GetUserCode(), objInfo.GetRegionCode(), DashBoardLanding.Entity.EXPNESECLAIM)); }
/// <summary> /// Dashboard landing page. /// </summary> /// <returns></returns> public ActionResult Index() { // create intances. CurrentInfo objInfo = new CurrentInfo(); BLDashBoardLanding objDash = new BLDashBoardLanding(objInfo.GetCompanyCode()); ViewBag.User_Code = objInfo.GetUserCode(); int teamCount = objDash.GetImmediateChildUserCount(objInfo.GetUserCode()); ViewBag.teamCount = teamCount; ViewBag.CompanyCode = objInfo.GetCompanyCode(); ViewBag.Region_Code = objInfo.GetRegionCode(); return(View()); }