Ejemplo n.º 1
0
        /// <summary>
        /// 发送教练通知
        /// </summary>
        /// <param name="notice"></param>
        /// <param name="accountid"></param>
        /// <param name="servicetime"></param>
        /// <param name="content"></param>
        /// <param name="orderno"></param>
        public static void SendMessageTeacher(QX360.Model.Enums.NoticeType notice, string accountid, string servicetime, string content, string orderno)
        {
            var account = TeacherBLL.Instance.GetEntity(accountid);

            switch (notice)
            {
            case Enums.NoticeType.预约提醒:
                SendWxMessage.SendSuccessNotice(account.OpenId, account.Name, servicetime, content, orderno);
                break;

            case Enums.NoticeType.取消提醒:
                SendWxMessage.SendCancelNotice(account.OpenId, account.Name, servicetime, content, orderno);
                break;

            case Enums.NoticeType.更改提醒:
                SendWxMessage.SendChangeNotice(account.OpenId, account.Name, servicetime, content, orderno);
                break;

            case Enums.NoticeType.完成通知:
                SendWxMessage.SendFinishNotice(account.OpenId, account.Name, servicetime, content, orderno);
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        public static void SendInsuranceNotice(QX360.Model.Enums.NoticeType notice, string toUser, string username, string servcicetime, string content, string orderno)
        {
            switch (notice)
            {
            case Enums.NoticeType.预约提醒:
                SendWxMessage.SendSuccessNotice(toUser, username, servcicetime, content, orderno);
                break;

            case Enums.NoticeType.取消提醒:
                SendWxMessage.SendCancelNotice(toUser, username, servcicetime, content, orderno);
                break;

            case Enums.NoticeType.更改提醒:
                SendWxMessage.SendChangeNotice(toUser, username, servcicetime, content, orderno);
                break;

            case Enums.NoticeType.完成通知:
                SendWxMessage.SendFinishNotice(toUser, username, servcicetime, content, orderno);
                break;

            default:
                break;
            }
        }