/// <summary>
        /// ·¢ËÍÉóºË½áÊøÓʼþ
        /// </summary>
        public void ConfirmOverPhone()
        {
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.FinishPhoneMessageOperationByAssessorID(
                new PhoneMessageType(PhoneMessageEnumType.LeaveRequest,
                                     _LeaveRequestItem.LeaveRequestItemID), _NowAccount);
            if (_LeaveRequestItem.Status == RequestStatus.ApproveCancelFail ||
                _LeaveRequestItem.Status == RequestStatus.ApproveCancelPass ||
                _LeaveRequestItem.Status == RequestStatus.ApproveFail ||
                _LeaveRequestItem.Status == RequestStatus.ApprovePass)
            {
                string contant = "";
                if (_LeaveRequestItem.Status == RequestStatus.ApproveCancelFail ||
                    _LeaveRequestItem.Status == RequestStatus.ApproveFail)
                {
                    contant = "ÄãµÄÇë¼Ùµ¥ÒÑÉóºË¾Ü¾ø";
                }
                else if (_LeaveRequestItem.Status == RequestStatus.ApprovePass ||
                         _LeaveRequestItem.Status == RequestStatus.ApproveCancelPass)
                {
                    contant = "ÄãµÄÇë¼Ùµ¥ÒÑÉóºËͨ¹ý";
                }
                _Sms.SendOneMessage(
                    new SendMessageDataModel(-1, _LeaveRequest.Account.MobileNum, contant,
                                             SmsClientProcessCenter._HrmisId));
            }
        }
Example #2
0
        /// <summary>
        /// 给下一步操作人发邮件
        /// </summary>
        public void SendPhoneToNextOperator(int nextOperator, LeaveRequestItem item, int nowAccount)
        {
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.FinishPhoneMessageOperationByAssessorID(
                new PhoneMessageType(PhoneMessageEnumType.LeaveRequest,
                                     item.LeaveRequestItemID), nowAccount);
            Account phoneToAccount = _AccountBll.GetAccountById(nextOperator);

            confirmmessage.SendConfirmMessage(phoneToAccount,
                                              new PhoneMessageType(PhoneMessageEnumType.LeaveRequest,
                                                                   item.LeaveRequestItemID));
        }
Example #3
0
        /// <summary>
        /// 给下一步操作人发邮件
        /// </summary>
        public void SendPhoneToNextOperator(Account nextOperator, Account nowAccount)
        {
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.FinishPhoneMessageOperationByAssessorID(
                new PhoneMessageType(PhoneMessageEnumType.OverWork,
                                     _OverWorkItem.ItemID), nowAccount.Id);
            if (nextOperator != null)
            {
                Account phoneToAccount = _AccountBll.GetAccountById(nextOperator.Id);
                confirmmessage.SendConfirmMessage(phoneToAccount, new PhoneMessageType(PhoneMessageEnumType.OverWork,
                                                                                       _OverWorkItem.ItemID));
            }
        }
        /// <summary>
        /// ·¢ËÍÉóºË½áÊøÓʼþ
        /// </summary>
        public void ConfirmOverPhone()
        {
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.FinishPhoneMessageOperationByAssessorID(
                new PhoneMessageType(PhoneMessageEnumType.LeaveRequest,
                                     _TraineeApplication.PKID), _NowAccount);
            if (_TraineeApplication.TraineeApplicationStatuss == TraineeApplicationStatus.ApproveFail ||
                _TraineeApplication.TraineeApplicationStatuss == TraineeApplicationStatus.ApprovePass)
            {
                string contant = "";
                if (_TraineeApplication.TraineeApplicationStatuss == TraineeApplicationStatus.ApproveFail)
                {
                    contant = "ÄãµÄÅàѵÉêÇëÒÑÉóºË¾Ü¾ø";
                }
                else if (_TraineeApplication.TraineeApplicationStatuss == TraineeApplicationStatus.ApprovePass)
                {
                    contant = "ÄãµÄÅàѵÉêÇëÒÑÉóºËͨ¹ý";
                }
                _Sms.SendOneMessage(
                    new SendMessageDataModel(-1, _TraineeApplication.Applicant.MobileNum, contant,
                                             SmsClientProcessCenter._HrmisId));
            }
        }