예제 #1
0
 private void BindInformation(hrmisModel.AssessActivity assessActivity)
 {
     if (assessActivity != null)
     {
         _View.AssessActivityToShow = assessActivity;
         Account managerInfo =
             BllInstance.AccountBllInstance.GetLeaderByAccountId(assessActivity.ItsEmployee.Account.Id);
         if (managerInfo != null)
         {
             managerInfo       = BllInstance.AccountBllInstance.GetAccountById(managerInfo.Id);
             _View.ManagerName = managerInfo.Name;
         }
     }
     else
     {
         _View.Message = "绩效考核活动信息获取失败";
     }
 }
예제 #2
0
        public override void Initialize(bool isPostBack)
        {
            _View.Message = string.Empty;
            _View.IsBack  = _IsBack;
            if (isPostBack)
            {
                return;
            }

            int assessActivityID;

            if (!int.TryParse(_StrAssessActivityId, out assessActivityID))
            {
                _View.Message = "绩效考核活动信息传入错误";
                return;
            }
            hrmisModel.AssessActivity assessActivity = InstanceFactory.AssessActivityFacade().GetAssessActivityByAssessActivityID(assessActivityID);
            BindInformation(assessActivity);
        }
        public void btnApplyClick(object sender, EventArgs e)
        {
            if (!Validation())
            {
                return;
            }

            try
            {
                hrmisModel.AssessActivity temp = _View.AssessActivityToManual;
                temp.AssessProposerName = LoginUser.Name;

                InstanceFactory.AssessActivityFacade().ManualAssess(temp);
                ToGetEmployeeForApplyPage(this, null);
            }
            catch (ApplicationException ex)
            {
                _View.Message = ex.Message;
            }
        }