public void InitGoal(bool isPostBack) { if (!isPostBack) { CompanyGoal companyGoal = _GetGoal.GetLastCompanyGoal(LoginUser); _IGoalLastCompanyView.CompanyGoal = companyGoal; } }
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; }