Exemplo n.º 1
0
        public void InitGoal(bool isPostBack)
        {
            CompanyGoal  companyGoal  = _IGoalBll.GetLastCompanyGoal(LoginUser);
            TeamGoal     teamGoal     = _IGoalBll.GetLastTeamGoalBySetHostID(LoginUser.Dept.Id, LoginUser);
            PersonalGoal personalGoal = _IGoalBll.GetLastPersonalGoalBySetHostID(LoginUser.Id, LoginUser);

            if (personalGoal == null)
            {
                _IGoalAllLastView.PersonalGoalVisible = false;
            }
            if (teamGoal == null)
            {
                _IGoalAllLastView.TeamGoalVisible = false;
            }
            if (companyGoal == null)
            {
                _IGoalAllLastView.CompanyGoalVisible = false;
            }
            _IGoalAllLastView.CompanyGoal  = companyGoal;
            _IGoalAllLastView.TeamGoal     = teamGoal;
            _IGoalAllLastView.PersonalGoal = personalGoal;
        }
Exemplo n.º 2
0
        protected override void ExcuteSelf()
        {
            _AssessActivity.PersonalGoal = String.Empty;
            PersonalGoal pGoal = _IGoal.GetLastPersonalGoalBySetHostID(_AssessActivity.ItsEmployee.Account.Id, null);

            if (pGoal != null)
            {
                _AssessActivity.PersonalGoal = pGoal.Content;
            }

            _AssessActivity.Intention    = _Dal.GetIntentionByCharacter(_AssessActivity.AssessCharacterType);
            _AssessActivity.EmployeeDept = _AssessActivity.ItsEmployee.Account.Dept.DepartmentName;
            Employee employee = _IEmployee.GetEmployeeByAccountID(_AssessActivity.ItsEmployee.Account.Id);

            _AssessActivity.Responsibility = employee.EmployeeDetails.Work.Responsibility;

            _AssessActivity.NextStepIndex = -1;
            PrepareAssessActivity();
            _IActiveFlow.AssessActivity = _AssessActivity;
            _IActiveFlow.AssessStatus   = AssessStatus.HRComfirming;
            _IActiveFlow.ExcuteFlow();
        }