| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Text;
- using System.Security.Cryptography;
- using System.Net.Http;
- using System.Net.Http.Headers;
- using System.Configuration;
- namespace YTSoft.BaseCallCenter.MVCWeb.Commons
- {
- public class MsgHelper
- {
- public static BLL.T_SMS_InternalMessages mesbll = new BLL.T_SMS_InternalMessages();
- public static bool AddInternalMessagesInfo(string title, string content, string receiveUserCode, string sendUserCode, int smstop=0,
- string workorderid = "", string workordercode = "")
- {
- if (!string.IsNullOrWhiteSpace(title) || !string.IsNullOrWhiteSpace(receiveUserCode) || !string.IsNullOrWhiteSpace(sendUserCode))
- {
-
- Model.T_SMS_InternalMessages model = new Model.T_SMS_InternalMessages();
- model.SMS_Title = title;//标题
- model.SMS_Content = content;//内容
- model.SMS_ReceiveUserCode = receiveUserCode;//接收人
- model.SMS_SendUserCode = sendUserCode;//发送人
- model.SMS_IsRead = 0;//是否阅读
- model.SMS_SendTime = DateTime.Now;
- model.SMS_IsDelete = 0;
- model.SMS_Order = 0;//排序
- model.SMS_IsTop = smstop;
- model.SMS_Type = 0;//状态
- model.F_WorkOrderId = workorderid;
- if (string.IsNullOrEmpty(workordercode))
- model.F_WorkOrderCode = workorderid;
- else
- model.F_WorkOrderCode = workordercode;
- int n = mesbll.Add(model);
- if (n > 0)
- {
-
- return true;
- }
- else
- {
- return false;
- }
- }
- else
- {
- return false;
- }
- }
-
- }
- }
|