예제 #1
0
        public JsonResult GetBirthdayAnniversaryCount()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

            return(Json(objDash.GetBirthdayAnniversaryCount(_objcurrentInfo.GetRegionCode()), JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public JsonResult GetLockDetails()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

            return(Json(objDash.GetLockDetails(_objcurrentInfo.GetUserCode()), JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public JsonResult GetAppliedExpenseClaimList(string userCode)
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

            return(Json(objDash.GetMyAppliedExpenseClaimsDetails(userCode), JsonRequestBehavior.AllowGet));
        }
예제 #4
0
        public JsonResult GetEmployeeBirthdays()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

            return(Json(objDash.GetEmployeeBirthdays(), JsonRequestBehavior.AllowGet));
        }
예제 #5
0
        public JsonResult GetExpenseClaimPendingUserList()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

            return(Json(objDash.GetPendingApprovalUserList(_objcurrentInfo.GetUserCode(), DashBoardLanding.Entity.EXPNESECLAIM), JsonRequestBehavior.AllowGet));
        }
예제 #6
0
        public JsonResult GetUnapproveExpenseClaimList()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

            return(Json(objDash.GetUnapproveExpenseClaimList(_objcurrentInfo.GetUserCode()), JsonRequestBehavior.AllowGet));
        }
예제 #7
0
        public JsonResult GetTPApprovalMenuAccess()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetUserTypeCode());

            return(Json(objDash.GetTPApprovalMenuAccessList(_objcurrentInfo.GetUserTypeCode()), JsonRequestBehavior.AllowGet));
        }
예제 #8
0
        /// <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));
        }
예제 #9
0
        /// <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));
        }
예제 #10
0
        /// <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));
        }
예제 #11
0
        /// <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));
        }
예제 #12
0
        /// <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));
        }
예제 #13
0
        /// <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));
        }
예제 #14
0
        /// <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());
        }