Ejemplo n.º 1
0
        public static bool SendSMS(string phoneNumber, string content, SMSPriority priority)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("Common_SendSMS");

            cmd.SetParameterValue("@CellNumber", phoneNumber);
            cmd.SetParameterValue("@SMSContent", content);
            cmd.SetParameterValue("@Priority", priority);
            return(cmd.ExecuteNonQuery() > 0 ? true : false);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 发送短信
        /// </summary>
        /// <param name="phoneNumber"></param>
        /// <param name="content"></param>
        /// <param name="priority"></param>
        public virtual void SendSMS(string phoneNumber, string content, SMSPriority priority)
        {
            DataCommand dc = DataCommandManager.GetDataCommand("InsertSMS");

            dc.SetParameterValue("@CellNumber", phoneNumber);
            dc.SetParameterValue("@SMSContent", content);
            dc.SetParameterValue("@Priority", priority);
            dc.SetParameterValueAsCurrentUserSysNo("@CreateUserSysno");
            dc.ExecuteNonQuery();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 发送短信
 /// </summary>
 /// <param name="phoneNumber">发送到的短信号码,多个号码可以用英文半角的逗号“,”或分号“;”隔开</param>
 /// <param name="content">短信内容</param>
 /// <param name="priority">发送的优先级</param>
 public static void SendSMS(string phoneNumber, string content, SMSPriority priority)
 {
     try
     {
         ObjectFactory <ECCentral.Service.IBizInteract.ICommonBizInteract> .Instance.SendSMS(phoneNumber, content, priority);
     }
     catch (Exception ex)
     {
         ExceptionHelper.HandleException(ex);
     }
 }
Ejemplo n.º 4
0
 public static bool SendSMS(string phoneNumber, string content, SMSPriority priority)
 {
     return(CommonDA.SendSMS(phoneNumber, content, priority));
 }
Ejemplo n.º 5
0
 public virtual void SendSMS(string phoneNumber, string content, SMSPriority priority)
 {
     ObjectFactory <ICommonDA> .Instance.SendSMS(phoneNumber, content, priority);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 发送短信
 /// </summary>
 /// <param name="cellphone"></param>
 /// <param name="message"></param>
 /// <param name="sMSPriority"></param>
 public static void SendSMS(string cellphone, string message, SMSPriority sMSPriority)
 {
     ObjectFactory <ICommonBizInteract> .Instance.SendSMS(cellphone, message, sMSPriority);
 }