コード例 #1
0
        public void btnConfirmClick(object sender, EventArgs e)
        {
            int assessActivityID;

            if (!int.TryParse(_StrAssessActivityId, out assessActivityID))
            {
                _View.Message = "绩效考核活动信息传入错误";
                return;
            }

            if (!Validation())
            {
                return;
            }

            try
            {
                InstanceFactory.AssessActivityFacade().ConfirmActivityExcute(assessActivityID, _View.AssessTempletPaperID,
                                                                             Convert.ToDateTime(
                                                                                 _View.ManagerExpectedFinish),
                                                                             Convert.ToDateTime(_View.PersonalExpectedTime),
                                                                             LoginUser.Name);
                Model.AssessActivity assessActivity =
                    _AssessActivityFacade.GetAssessActivityByAssessActivityID(assessActivityID);

                _View.SubmitID = assessActivity.ItsAssessActivityPaper.SubmitInfoes[0].SubmitInfoID.ToString();
                NextPageRedirect(assessActivityID);
            }
            catch (Exception ex)
            {
                _View.Message = ex.Message;
            }
        }
コード例 #2
0
 public void BtnInterruptClick(object sender, EventArgs e)
 {
     try
     {
         InstanceFactory.AssessActivityFacade().InterruptActivity(Convert.ToInt32(_View.AssessActivityId));
         BindAssessActivity(null, null);
     }
     catch (Exception ex)
     {
         _View.Message = "<span class='fontred'>" + ex.Message + "</span>";
     }
 }
コード例 #3
0
 public void DeleteAssessActivity(string id)
 {
     try
     {
         InstanceFactory.AssessActivityFacade().DeleteAssessActivity(Convert.ToInt32(id));
         BindAssessActivity(null, null);
     }
     catch (Exception ex)
     {
         _View.Message = "<span class='fontred'>" + ex.Message + "</span>";
     }
 }
コード例 #4
0
 public void btnSubmitClick(object sender, EventArgs e)
 {
     try
     {
         InstanceFactory.AssessActivityFacade().FillSummarizeCommmentExcute(_AssessActivity.AssessActivityID,
                                                                            _View.Comment, LoginUser.Name);
         ToGetCurrentAssessPage(this, null);
     }
     catch (Exception ex)
     {
         _View.Message = ex.Message;
     }
 }
コード例 #5
0
 private void DoExcute(bool ifSubmit)
 {
     try
     {
         InstanceFactory.AssessActivityFacade().FillEmployeeItemsExcute(_AssessActivity.AssessActivityID,
                                                                        _View.AssessActivityItems, _View.Comment,
                                                                        _View.SelectIntention, ifSubmit,
                                                                        LoginUser.Name);
         ToGetCurrentAssessPage(this, null);
     }
     catch (Exception ex)
     {
         _View.Message = ex.Message;
     }
 }
コード例 #6
0
 private void DoExcute(bool ifSubmit)
 {
     try
     {
         InstanceFactory.AssessActivityFacade().FillManagerItemsExcute(_AssessActivity.AssessActivityID,
                                                                       _View.AssessActivityItems, _View.Comment,
                                                                       _View.SelectIntention, ifSubmit,
                                                                       LoginUser.Name, ConvertToDecaiml(_View.SalaryChange));
         ToGetCurrentAssessPage(this, null);
     }
     catch (ApplicationException ex)
     {
         _View.Message = ex.Message;
     }
 }
コード例 #7
0
 public void btnSubmitClick(object sender, EventArgs e)
 {
     try
     {
         if (HrValidation())
         {
             InstanceFactory.AssessActivityFacade().FillHRItemsExcute(_AssessActivity.AssessActivityID,
                                                                      _View.AssessActivityItems, _View.Comment, true, LoginUser.Name, ConvertToDecaiml(_View.SalaryNow));
             ToHRFillingAssessPage(this, null);
         }
     }
     catch (Exception ex)
     {
         _View.Message = ex.Message;
     }
 }
コード例 #8
0
 public void btnSubmitClick(object sender, EventArgs e)
 {
     if (Validation())
     {
         try
         {
             InstanceFactory.AssessActivityFacade().FillCEOCommentExcute(_AssessActivity.AssessActivityID,
                                                                         _View.Comment, LoginUser.Name, ConvertToDecaiml(_View.SalaryChange));
             ToGetCurrentAssessPage(this, null);
         }
         catch (Exception ex)
         {
             _View.Message = ex.Message;
         }
     }
 }
コード例 #9
0
 public void BtnEmployeeVisibleClick(string id, string linkBtText)
 {
     try
     {
         bool ifVisible = false;
         if (linkBtText == "设置员工可见")
         {
             ifVisible = true;
         }
         InstanceFactory.AssessActivityFacade().SetEmployeeVisible(Convert.ToInt32(id), ifVisible);
         BindAssessActivity(null, null);
     }
     catch (Exception ex)
     {
         _View.Message = "<span class='fontred'>" + ex.Message + "</span>";
     }
 }
コード例 #10
0
        public override void Initialize(bool isPostBack)
        {
            _View.Message = string.Empty;

            if (_AssessActivityID == 0)
            {
                _View.Message = "绩效考核活动信息输入有误";
                return;
            }
            if (!isPostBack)
            {
                _View.AssessCharacterTypes   = AssessActivityUtility.GetCharacterTypeEnum();
                _View.ddlCharacterEnabled    = false;
                _View.AssessActivityToManual = InstanceFactory.AssessActivityFacade().GetAssessActivityByAssessActivityID(_AssessActivityID);
                _View.FormReadonly           = true;
            }
        }
コード例 #11
0
 public static string ExportAssessFormEvent(string employeeTemplateLocationAnnual, string employeeTemplateLocationNormal, int id)
 {
     Model.AssessActivity assess =
         InstanceFactory.AssessActivityFacade().GetAssessActivityByAssessActivityID(
             id);
     if (assess.AssessCharacterType == AssessCharacterType.Annual)
     {
         return
             (InstanceFactory.AssessActivityFacade().ExportAnnualAssessForm(
                  id, employeeTemplateLocationAnnual));
     }
     else
     {
         return
             (InstanceFactory.AssessActivityFacade().ExportExportNormalForContractAssessForm(
                  id, employeeTemplateLocationNormal));
     }
 }
コード例 #12
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);
        }
コード例 #13
0
        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;
            }
        }
コード例 #14
0
 public MemoryStream ExportAnnualAssessAll(string employeeTemplateLocation)
 {
     if (Validation())
     {
         DateTime dttemp;
         DateTime?dtHRSubmitTimeFrom = null;
         DateTime?dtHRSubmitTimeTo   = null;
         DateTime?dtScopeFrom        = null;
         DateTime?dtScopeTo          = null;
         dtHRSubmitTimeFrom = DateTime.TryParse(_View.HRSubmitTimeFrom, out dttemp) ? dttemp : dtHRSubmitTimeFrom;
         dtHRSubmitTimeTo   = DateTime.TryParse(_View.HRSubmitTimeTo, out dttemp) ? dttemp : dtHRSubmitTimeTo;
         dtScopeFrom        = DateTime.TryParse(_View.ScopeTimeFrom, out dttemp) ? dttemp : dtScopeFrom;
         dtScopeTo          = DateTime.TryParse(_View.ScopeTimeTo, out dttemp) ? dttemp : dtScopeTo;
         AssessStatus assessStatus = (AssessStatus)Convert.ToInt32(_View.StatusType);
         return
             (InstanceFactory.AssessActivityFacade().ExportAnualAssessListExcel(employeeTemplateLocation,
                                                                                _View.EmployeeName,
                                                                                dtHRSubmitTimeFrom, dtHRSubmitTimeTo,
                                                                                _View.FinishStatus, dtScopeFrom,
                                                                                dtScopeTo, _View.DepartmentID, LoginUser, HrmisPowers.A705, assessStatus));
     }
     return(null);
 }
コード例 #15
0
        public void BindAssessActivity(object sender, EventArgs e)
        {
            List <Model.AssessActivity> list =
                AssessActivityLogic.GetAssessActivityByEmployeeStatus(-1, AssessStatus.HRFilling);

            for (int i = list.Count - 1; i >= 0; i--)
            {
                Account operAccount =
                    InstanceFactory.AssessActivityFacade().GetDiyStepAccount(list[i].ItsEmployee.Account.Id,
                                                                             list[i].DiyProcess.DiySteps[
                                                                                 list[i].NextStepIndex]);
                if (operAccount == null)
                {
                    InstanceFactory.AssessActivityFacade().InterruptActivity(list[i].AssessActivityID);
                    list.RemoveAt(i);
                }
                else if (operAccount.Id != LoginUser.Id)
                {
                    list.RemoveAt(i);
                }
            }
            _View.AssessActivitys = list;
        }
コード例 #16
0
 private void GetAndPassSummarizeCommmentSource(object sender, EventArgs e)
 {
     _ItsView.SummarizeCommmentSource = InstanceFactory.AssessActivityFacade().GetSummarizeCommmentFillActivitys(LoginUser.Id);
 }
コード例 #17
0
 public string ExportSelfEvent(string employeeTemplateLocation)
 {
     return
         (InstanceFactory.AssessActivityFacade().ExportEmployeeSelfAssessForm(
              Convert.ToInt32(_View.AssessActivityId), employeeTemplateLocation));
 }
コード例 #18
0
 private void GetAndPassCeoSource(object sender, EventArgs e)
 {
     _ItsView.CeoSource = InstanceFactory.AssessActivityFacade().GetCeoFillActivitys(LoginUser.Id);
 }
コード例 #19
0
        public override void Initialize(bool isPostBack)
        {
            _View.Message = string.Empty;
            int assessActivityID;

            if (!int.TryParse(_StrAssessActivityId, out assessActivityID))
            {
                _View.Message = "考核信息传入错误";
                return;
            }

            _AssessActivity = InstanceFactory.AssessActivityFacade().GetAssessActivityByAssessActivityID(assessActivityID);
            if (_AssessActivity.AssessCharacterType == AssessCharacterType.ProbationII)
            {
                _View.SalaryName = "转正后工资&nbsp;<span class=\"redstar\">*</span>";
            }
            else if (_AssessActivity.AssessCharacterType == AssessCharacterType.Annual)
            {
                _View.SalaryName = "建议工资";
            }
            int submitID;

            if (!int.TryParse(_StrSubmitId, out submitID))
            {
                _View.Message = "考核信息传入错误";
                return;
            }

            if (submitID == 0)
            {
                _SubmitInfo = _AssessActivity.ItsAssessActivityPaper.SubmitInfoes[_AssessActivity.NextStepIndex];
            }
            else
            {
                for (int i = 0; i < _AssessActivity.ItsAssessActivityPaper.SubmitInfoes.Count; i++)
                {
                    if (_AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SubmitInfoID == submitID)
                    {
                        _SubmitInfo = _AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i];
                    }
                }
            }
            for (int i = 0; i < _AssessActivity.ItsAssessActivityPaper.SubmitInfoes.Count; i++)
            {
                if (_AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SubmitInfoType.Id ==
                    SubmitInfoType.HRAssess.Id)
                {
                    _SalaryNow = _AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SalaryNow;
                }
                else if (_AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SubmitInfoType.Id ==
                         SubmitInfoType.Approve.Id)
                {
                    _SalaryChange = _AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SalaryChange;
                }
                else if (_AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SubmitInfoType.Id ==
                         SubmitInfoType.ManagerAssess.Id)
                {
                    if (
                        !string.IsNullOrEmpty(
                            _AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SalaryChange.ToString()))
                    {
                        _ManageSalary =
                            string.Format("主管意见:{0}",
                                          _AssessActivity.ItsAssessActivityPaper.SubmitInfoes[i].SalaryChange);
                    }
                }
            }
        }