/// <summary>
        ///
        /// </summary>
        public void SendPhone()
        {
            Account phoneToAccount = new MailAndPhoneUtility().GetMailToAccount(_LeaveRequest, _NextStep);
            string  contant        = string.Format("请审批{0}取消的请假申请,请假类型为{1},从{2}到{3},共{4}小时,理由为{5}",
                                                   _LeaveRequest.Account.Name, _LeaveRequest.LeaveRequestType.Name,
                                                   _LeaveRequestItem.FromDate, _LeaveRequestItem.ToDate, _LeaveRequestItem.CostTime,
                                                   _LeaveRequest.Reason);
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.SendCancelMessage(phoneToAccount, contant,
                                             new PhoneMessageType(PhoneMessageEnumType.LeaveRequest,
                                                                  _LeaveRequestItem.LeaveRequestItemID));
        }
Пример #2
0
        private void SendSubmitToPhone()
        {
            Account phoneToAccount = GetPhoneToAccount();
            string  contant        = string.Format("请审批{0}取消的外出申请,从{2}到{3},共{4}小时,地点{1},理由:{5}",
                                                   _OutApplication.Account.Name, _OutApplication.OutLocation,
                                                   _OutApplicationItem.FromDate,
                                                   _OutApplicationItem.ToDate, _OutApplicationItem.CostTime
                                                   , _OutApplication.Reason);
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.SendCancelMessage(phoneToAccount, contant,
                                             new PhoneMessageType(PhoneMessageEnumType.OutApplication,
                                                                  _OutApplicationItem.ItemID));
        }
Пример #3
0
        private void SendSubmitToPhone()
        {
            Account phoneToAccount = GetPhoneToAccount();
            string  contant        = string.Format("请审批{0}取消的{6}申请,从{2}到{3},共{4}小时,项目:{1},理由:{5}",
                                                   _OverWork.Account.Name, _OverWork.ProjectName,
                                                   _OverWorkItem.FromDate,
                                                   _OverWorkItem.ToDate, _OverWorkItem.CostTime
                                                   , _OverWork.Reason, OverWorkUtility.GetOverWorkTypeName(_OverWorkItem.OverWorkType));
            ConfirmMessage confirmmessage = new ConfirmMessage();

            confirmmessage.SendCancelMessage(phoneToAccount, contant,
                                             new PhoneMessageType(PhoneMessageEnumType.OverWork,
                                                                  _OverWorkItem.ItemID));
        }