Beispiel #1
0
        protected override void ExcuteSelf()
        {
            MakeAssessPaper map = new MakeAssessPaper(_ItsAssessTemplatePaper, _ItsAssessActivity);

            _ItsAssessActivity.HRConfirmerName        = _CurrentEmployeeName;
            _ItsAssessActivity.ManagerExpectedFinish  = _ManagerExpectedFinish;
            _ItsAssessActivity.PersonalExpectedFinish = _PersonalExpectedTime;

            TransferAssessTemplatePaperToAssessActivityPaper(_ItsAssessTemplatePaper);
            PrepareAssessActivity(map);
            _iActiveFlow.AssessActivity = _ItsAssessActivity;
            ++_iActiveFlow.AssessActivity.NextStepIndex;
            _iActiveFlow.ExcuteFlow();
        }
Beispiel #2
0
        private void PrepareAssessActivity(MakeAssessPaper map)
        {
            for (int i = 0; i < _ItsAssessActivity.DiyProcess.DiySteps.Count; i++)
            {
                switch (_ItsAssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SubmitInfoType.Id)
                {
                //SubmitInfoType.HRAssess
                case 0:
                    _ItsAssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].ItsAssessActivityItems = map.HrItems();
                    break;

                //SubmitInfoType.MyselfAssess
                case 1:
                //SubmitInfoType.ManagerAssess
                case 2:
                    _ItsAssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].ItsAssessActivityItems = map.NotHrItems();
                    break;
                }
            }
        }