`
南头一霸
  • 浏览: 16003 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

/*发送短信*/

 
阅读更多

/*发送邮件*/
$("#sendEmail").on("click",function(){
//console.log("send mail");
var customerArrEmail = "";
$("input[name='selectCustomer']").each(function(){
if( $(this).prop("checked")){
var customerEmail = $(this).parent().parent().find("td:eq(3)").find("input").val();
if(customerEmail != "")
customerArrEmail += customerEmail+";";
}
});
console.log(customerArrEmail);
$("#emailVal").val(customerArrEmail);
$("#phoneVal").val("");
$("#sendOption").submit();
});

/*发送短信*/
$("#sendPhone").on("click",function(){
var customerArrPhone = "";
$("input[name='selectCustomer']").each(function(){
if( $(this).prop("checked")){
var customerPhone = $(this).parent().parent().find("td:eq(2)").html();
if(customerPhone != "")
customerArrPhone += customerPhone+";";
}
});
console.log(customerArrPhone);
if(customerArrPhone == ""){
customerArrPhone = "phone";
}
$("#phoneVal").val(customerArrPhone);
$("#emailVal").val("");
$("#sendOption").submit();
});

/*创建线索*/
$("#btn_createsales").on("click",function(){
location.href = "${rc.contextPath}/saleclues/new";
});

/*得到checkbox中所选择的客户Id */
function getSelectedIds(){
  var customerArr = [];
  if($("#allCheck").prop("checked")){
  $("input[name='hobby']").each(function(){
/* var customerId = $(this).val();
cu stomerArr += customerId+",";*/
customerArr.push($(this).val());
   });
  }else{
  $("input[name='hobby']").each(function(){
  if( $(this).prop("checked")){
/* var customerId = $(this).val();
cus tomerArr += customerId+",";*/
customerArr.push($(this).val());
}
   });
  }
  return customerArr.join(",");
}


/*分配 */
var d;
$('#allotsaleclues').click(function(){
d = dialog(this);
d.open();
});
$("#confirmButton").click(function(){
  var selectedIds = getSelectedIds();
  if(selectedIds != ""){
  $.ajax({
  url:"<c:url value='/saleclues/allotsaleclues'/>",
  type:"post",
  dataType:"json",
  data:{
  selectedIds:selectedIds,
  newOrgId:3
  },
  success:function(data){
  if(data.type == "1"){
  console.log('bb');
  //alert(data.msg);
  d.close();
  }else
     alert(data.msg);
  }
  })
  }else
               alert("请选择数据");  
});
$("#cancelButton").click(function(){
d.close();
})
/*分配 */

/*回收*/
var d2;
$('#recyclesaleclues').click(function(){
d2 = dialog(this);
d2.open();
});
$("#confirmButton2").click(function(){
  var selectedIds = getSelectedIds();
  if(selectedIds != ""){
  $.ajax({
  url:"<c:url value='/saleclues/recyclesaleclues'/>",
  type:"post",
  dataType:"json",
  data:{
  selectedIds:selectedIds
  },
  success:function(data){
  if(data.type == "1"){
  console.log('bb');
  //alert(data.msg);
  d2.close();
  }else
     alert(data.msg);
  }
  })
  }else
               alert("请选择数据");  
});
$("#cancelButton2").click(function(){
d2.close();
})
/*回收 */

/*关闭*/
var d3;
$('#closesaleclues').click(function(){
d3 = dialog(this);
d3.open();
});
$("#confirmButton3").click(function(){
  var selectedIds = getSelectedIds();
  if(selectedIds != ""){
  $.ajax({
  url:"<c:url value='/saleclues/closesaleclues'/>",
  type:"post",
  dataType:"json",
  data:{
  selectedIds:selectedIds,
  reason:'客户反悔了'
  },
  success:function(data){
  if(data.type == "1"){
  console.log('bb');
  //alert(data.msg);
  d3.close();
  }else
     alert(data.msg);
  }
  })
  }else
               alert("请选择数据");  
});
$("#cancelButton3").click(function(){
d3.close();
})
/*关闭*/



分享到:
评论

相关推荐

    西门子*.SMI/*.SMO短信文件夹文件读取器(VB.NET)

    这两种文件格式通常包含短信的元数据和实际的短信内容,其中.SMI文件存储短信的发送和接收信息,而.SMO文件则存储短信的实际文本内容。它们基于PDU(Protocol Data Unit)编码,这是一种在GSM网络中用于传输短信的二...

    软件发送短信Demo

    \************************************************************/ /************************************************************\ * 类名:Sms * 描述:短信发送 * 函数: * singleMessage() - 单发短信,...

    GPRS收发短信原代码 wince5.0平台以下或以上兼容

    /* 发送短信内容 */ BOOL GPRS_WaitResponseOK(void); /* 等待 AT 命令的响应 */ CString GPRS_GetTheCallNum(CString str); /* 获取打进来的电话的号码 */ //int FindMsgPos(void); /* 查找短信的位置 */ ...

    自制发送短信程序,android,SmsManager与PendingIntent

    * 将PendingIntent,电话,简讯文字等参数传入sendTextMessage()方法发送简讯*/ PendingIntent mPI = PendingIntent.getBroadcast(EX05_03.this, 0, new Intent(), 0); smsManager.sendTextMessage...

    c++短信接口开发_c++发送短信验证码通知_c++短信demo示例.docx

    /* 发送短信*/ ssize_t send_sms(char *account, char *password, char *mobile, char *content){ char params[MAXPARAM + 1]; char *cp = params; sprintf(cp,"account=%s&password=%s&mobile=%s&content=%s", ...

    java发送短信之AT指令

    /**短信发送方*/ private String sender;//短信发送方 /**短信接收发*/ private String recver;//短信接收发 /**时间*/ private Date date; public String getSmstext() { return smstext; } public void...

    tp5.0阿里大于短信扩展

    /**********************************发送短信--阿里大鱼********************/ /** * @param $autograph //签名 * @param $model //短信模板 * @param $phone //短信接收号码 * @param array $array //短信模板...

    国外短信发送接口

    标题中的“国外短信发送接口”指的是用于向国外手机号码发送短信的服务或技术。在现代通信技术中,这种接口通常由云通讯服务提供商提供,允许开发者通过API集成到他们的应用程序中,以便实现跨国界的用户验证、通知...

    短信猫/发送短信/短信平台

    标题中的“短信猫/发送短信/短信平台”指的是在信息技术领域中用于批量发送短信的一种设备或服务。短信猫,也称为GSM调制解调器,是一种硬件设备,通过连接到计算机并插入SIM卡,可以实现电脑与手机之间的通信,从而...

    MAS_HTTPS短信接口文档1

    发送普通短信业务能力允许HTTPS客户端向云MAS平台发送短信任务请求,云MAS平台接收到请求后验证数据,如果数据验证通过,将数据发送给短信网关。数据传输的连接地址为https://:/sms/submit,请求方式为POST,数据...

    notify 邮件/短信发送

    在IT行业中,通知服务是系统间通信的重要组成部分,它允许应用程序向用户或系统发送消息,如电子邮件和短信。本文将详细讲解"notify邮件/短信发送"这一主题,以及如何通过插件集成短信邮件服务商,利用Java ...

    CRMEB小程序商城v4.0二次开发对接集成阿里云短信.md

    */ class Aliyun extends BaseSms { /** * AccessKeyId * @var string */ protected $accessKeyId; /** * AccessKeySecret * @var string */ protected $accessKeySecret; /** * 签名 * @var ...

    短信发送代码

    /**/ /// /// 奇偶互换并补F /// &lt;/summary&gt; /// &lt;param name="value"&gt;&lt;/param&gt; /// &lt;returns&gt;&lt;/returns&gt; private static string ParityChange(string value) { string result = string.Empty; int ...

    腾讯云发送短信验证码的详细案例

    在IT行业中,尤其是在移动应用和网站开发中,发送短信验证码是一项关键的安全措施,它用于验证用户身份,防止恶意攻击和欺诈行为。腾讯云提供了一套高效、稳定的短信服务,本案例将详细介绍如何利用腾讯云SDK在PHP...

    Spring Boot阿里云短信:如何实现发送短信

    本篇文章将详细阐述如何在Spring Boot项目中集成阿里云短信服务,实现发送短信的功能。 首先,我们需要在阿里云官网注册账号并开通短信服务,获取AccessKey ID和AccessKey Secret,这两个是鉴权使用的安全凭证。...

    腾讯云发送短信消息!!

    在IT行业中,腾讯云作为国内领先的云计算服务提供商之一,提供了丰富的云服务,其中包括发送短信的服务。这个服务在很多应用场景中非常关键,例如用户验证、营销推广、系统通知等。接下来,我们将深入探讨腾讯云发送...

    cmpp2.0短信网关发送短信代码(java)

    3. **发送短信**:利用CMPP_SUBMIT报文构造短信发送请求,包括短消息的内容、目标手机号码、短信类型、编码格式等信息,并通过TCP连接发送到网关。 4. **接收应答**:等待服务器返回CMPP_SUBMIT_RESP,这个响应包含...

    Android 获取系统联系人并发送短信demo

    4. **发送短信**:调用SmsManager的sendTextMessage()方法,传入电话号码、短信内容和发送状态回调的BroadcastReceiver。 5. **处理发送状态**:可以通过BroadcastReceiver监听短信的发送状态,如成功、失败或部分...

    短信发送程序可发送短信

    这些API允许程序通过HTTP请求发送短信,接收响应,例如发送状态报告和接收回执。 2. **身份验证与授权**:在使用短信API时,开发者需要进行身份验证,通常采用API密钥或OAuth等机制。这些机制确保只有授权的应用...

    短信发送模块制作

    在IT行业中,短信发送模块是通信系统中的一个重要组成部分,它主要负责通过串行接口(Serial Port)发送短信。本文将详细讲解如何制作一个短信发送模块,包括串口短信的发送指令、格式、编解码类型以及参数设置等...

Global site tag (gtag.js) - Google Analytics