Ejemplo n.º 1
0
        public JsonResult GetBirthdayAnniversaryCount()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

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

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

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

            return(Json(objDash.GetEmployeeBirthdays(), JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 6
0
        public JsonResult GetUnapproveExpenseClaimList()
        {
            CurrentInfo        _objcurrentInfo = new CurrentInfo();
            BLDashBoardLanding objDash         = new BLDashBoardLanding(_objcurrentInfo.GetCompanyCode());

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

            return(Json(objDash.GetTPApprovalMenuAccessList(_objcurrentInfo.GetUserTypeCode()), JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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());
        }