郑许地铁

SMS_Send.cshtml 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. @using ZXDT.CallCenter.MVCWeb.Models;
  2. @using ZXDT.CallCenter.Model;
  3. <html>
  4. <head>
  5. <link href="/Content/layui/css/layui.css" rel="stylesheet" />
  6. <script src="/Content/js/jquery-1.8.3.min.js"></script>
  7. <script src="/Content/layui/layui.js"></script>
  8. <link href="/Content/css/workflow/workflow.css" rel="stylesheet" />
  9. </head>
  10. <style>
  11. .quick-btn {
  12. position: fixed;
  13. top: 50%;
  14. right: 0px;
  15. background: #01a1cb;
  16. padding: 10px 15px;
  17. color: #ffffff;
  18. cursor: pointer;
  19. z-index: 11;
  20. }
  21. .quick-head .tag {
  22. cursor: pointer;
  23. padding: 0 20px;
  24. height: 30px;
  25. display: inline-block;
  26. border-bottom: 3px solid transparent;
  27. }
  28. .quick-head .tag .countNum{
  29. margin-left: 10px;
  30. color: #ffffff;
  31. background: #ff0000;
  32. height: 20px;
  33. line-height: 20px;
  34. padding: 0px 5px;
  35. border-radius: 5px;
  36. }
  37. .quick-head .action {
  38. border-color: #2196f3;
  39. }
  40. .quick-list {
  41. overflow: auto;
  42. height: 750px;
  43. }
  44. .quick-item {
  45. padding: 13px 13px 0px 13px;
  46. cursor: pointer;
  47. border-bottom: 1px solid #ccc;
  48. word-break: break-all;
  49. display: -webkit-box;
  50. -webkit-box-orient: vertical;
  51. -webkit-line-clamp: 2;
  52. overflow: hidden;
  53. }
  54. .quick-block {
  55. display: none;
  56. position: fixed;
  57. top: 0;
  58. right: 0;
  59. border: 1px solid #ccc;
  60. height: 100%;
  61. }
  62. #inputs {
  63. width: 0;
  64. height: 0;
  65. }
  66. .gyNum{
  67. display: none;
  68. }
  69. .syNum{
  70. display: none;
  71. }
  72. </style>
  73. <body>
  74. <form class="layui-form" id="form1">
  75. <div class="layui-elem-quote layui-quote-nm">
  76. <div class="layui-elem-quote layui-quote-nm">
  77. <div>
  78. <input name="sign" type="hidden" value="" />
  79. <input name="txtUserId" type="text" id="txtUserId" value="0" style="display: none;" />
  80. <table border="0" cellpadding="0" cellspacing="0" style=" width:100%">
  81. <tr>
  82. <td valign="top" style="padding: 10px;">
  83. <table style=" width:100%" border="0" cellspacing="3" cellpadding="0">
  84. <colgroup>
  85. <col style=" width:90px" align="right" />
  86. <col style=" width:550px" />
  87. <col />
  88. </colgroup>
  89. <tbody>
  90. <tr id="trPhone">
  91. <td style="height:30px">
  92. <span style="color: #ff0000; font-family: Wingdings;">v</span>电话号码:
  93. </td>
  94. <td>
  95. <textarea name="TelNum" id="TelNum" lay-verify="required" style="height: 55px; width: 500px;"
  96. class="txtInput normal"></textarea>
  97. </td>
  98. <td valign="top" style="border: 1px solid #999; padding: 8px; font-size: 14px; color: #990000;">
  99. <span
  100. style="color:red; font-family: Wingdings;">v</span>&nbsp;&nbsp;&nbsp;&nbsp;发送号码之间请用英文逗号&nbsp;&nbsp;“,”&nbsp;&nbsp;隔开;
  101. </td>
  102. </tr>
  103. <tr style="height:20px;display:none;"></tr>
  104. <tr style="display:none;">
  105. <td style="height:30px"></td>
  106. <td colspan="2">
  107. <div id="qunfa" style="border: 1px solid #ffffff; width: 505px;">
  108. <button class="layui-btn layui-btn-normal layui-btn-radius" data-type="rowAdd">
  109. <i class="layui-icon">&#xe654;</i>导入内部人员号码
  110. </button>
  111. </div>
  112. </td>
  113. </tr>
  114. <tr style="height:20px"></tr>
  115. <tr style="display:none">
  116. <td style="height:30px">
  117. <span style="color: #ff0000; font-family: Wingdings;">v</span>短信类型:
  118. </td>
  119. <td colspan="2">
  120. <div style="float: left;">
  121. &nbsp;
  122. </div>
  123. <div class="layui-input-inline">
  124. <select name="ddlInfoType" id="ddlInfoType" class="layui-input-inline" style="width:120px;">
  125. <option value="">--请选择--</option>
  126. <option value="11">测试短信</option>
  127. </select>
  128. </div>
  129. </td>
  130. </tr>
  131. <tr style="height:20px"></tr>
  132. <tr>
  133. <td style="height:30px">
  134. <span style="color: #ff0000; font-family: Wingdings;">v</span>短信内容:
  135. </td>
  136. <td>
  137. <textarea name="Content" id="Content" lay-verify="required" style="height: 75px; width: 500px;"
  138. class="txtInput normal">@Model.Content</textarea>
  139. <label id="lbtxtContent" for="txtContent"></label>
  140. </td>
  141. <td valign="top" style="border: 1px solid #999; padding: 14px; font-size: 12px; color: #990000;">
  142. <span style="color: #ff0000; font-family: Wingdings;">v</span>&nbsp;&nbsp;&nbsp;&nbsp;发送短信内容。
  143. </td>
  144. </tr>
  145. <tr style="display:none">
  146. <td style="height:30px"></td>
  147. <td colspan="2">
  148. &nbsp; 当前共
  149. <input name="tishi1" type="text" id="tishi1" value="0" class="txtInput normal"
  150. style="width: 35px; color: Blue;" readonly="readonly" />
  151. 个字&nbsp;&nbsp;&nbsp;&nbsp;
  152. <input name="tishi2" type="text" id="tishi2" value="0" class="txtInput normal"
  153. style="width: 35px; color: Blue;" readonly="readonly" />
  154. 字符&nbsp;&nbsp;&nbsp;&nbsp;<span id="spanCount" style="color: Red"></span>
  155. </td>
  156. </tr>
  157. <tr style="display:none">
  158. <td style="height:30px">
  159. 发送方式:
  160. </td>
  161. <td colspan="2">
  162. <div style="float: left;">
  163. <input value="0" name="rbSendType" type="radio" id="rbSendType_0" checked="checked" /><label
  164. for="rbSendType_0">立即发送</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<input value="1"
  165. name="rbSendType" type="radio" id="rbSendType_1" onclick="ChangeType()" /><label
  166. onclick="ChangeType()" for="rbSendType_1">定时发送</label>
  167. </div>
  168. <div id="trDate" style="float: left; display: none;">
  169. &nbsp;&nbsp;&nbsp;&nbsp;
  170. <input name="txtTime" type="text" id="txtTime" style="width: 120px;" class="txtInput" />
  171. </div>
  172. </td>
  173. </tr>
  174. </tbody>
  175. </table>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td height="30px" align="center">
  180. <div class="layui-col-md12 btndiv">
  181. <button class="layui-btn layui-btn-warm layui-btn-radius" lay-submit=""
  182. lay-filter="SubmitData">发送</button>
  183. </div>
  184. </td>
  185. </tr>
  186. </table>
  187. </div>
  188. </div>
  189. </div>
  190. </form>
  191. @*<div class="quick-btn">快捷回复</div>*@
  192. <div class="layui-col-md3 quick-block">
  193. <div class="layui-card">
  194. <div class="layui-card-header">
  195. 快捷回复
  196. </div>
  197. <div class="layui-card-header" style="display: inline-block;">
  198. <input type="text" style="width: 200px; display: inline;" placeholder="" autocomplete="off" class="layui-input"
  199. id="keyWord">
  200. <button class="layui-btn layui-btn-normal layui-btn-normal serchBtn">
  201. <i class="layui-icon">&#xe615; 查 询</i>
  202. </button>
  203. </div>
  204. <div class="layui-card-body">
  205. <div class="quick-head">
  206. <span class="tag action" data-attr="0">公共回复<span class="countNum gyNum"> </span></span>
  207. <span class="tag" data-attr="1">私有回复<span class="countNum syNum"></span>
  208. </div>
  209. <div class="quick-list"></div>
  210. </div>
  211. </div>
  212. </div>
  213. </body>
  214. <textarea id="inputs" type="hidden"></textarea>
  215. </html>
  216. <script src="/Content/js/sms/sentsave.js"></script>
  217. <script>
  218. //快捷回复
  219. var quickType = 0;
  220. $(".quick-btn").click(function (event) {
  221. $(".quick-block").toggle()
  222. });
  223. $(".quick-head .tag").click(function () {
  224. quickType = $(this).attr("data-attr")
  225. $(".quick-head .tag").removeClass("action")
  226. $(this).addClass("action")
  227. quickData();
  228. })
  229. $(".serchBtn").click(function (event) {
  230. quickData();
  231. quicNum()
  232. });
  233. function quicNum(){
  234. //$.ajax({
  235. // url: "/QuickMsgs/GetListData",
  236. // type: "get",
  237. // contentType: "application/json",
  238. // dataType: "text",
  239. // async: false,
  240. // data: {
  241. // type: 0,
  242. // key: $("#keyWord").val(),
  243. // page: 1,
  244. // limit: 5,
  245. // },
  246. // success: function (thisResult) {
  247. // if (eval('(' + thisResult + ')').msg == "成功") {
  248. // var list = eval('(' + thisResult + ')').data;
  249. // $(".gyNum").show()
  250. // $(".gyNum").text(eval('(' + thisResult + ')').count)
  251. // }
  252. // else {
  253. // layui.layer.alert("获取该部门下用户信息失败!", {
  254. // icon: 2
  255. // });
  256. // }
  257. // }
  258. //});
  259. //$.ajax({
  260. // url: "/QuickMsgs/GetListData",
  261. // type: "get",
  262. // contentType: "application/json",
  263. // dataType: "text",
  264. // async: false,
  265. // data: {
  266. // type: 1,
  267. // key: $("#keyWord").val(),
  268. // page: 1,
  269. // limit: 5,
  270. // },
  271. // success: function (thisResult) {
  272. // if (eval('(' + thisResult + ')').msg == "成功") {
  273. // var list = eval('(' + thisResult + ')').data;
  274. // $(".syNum").show()
  275. // $(".syNum").text(eval('(' + thisResult + ')').count)
  276. // }
  277. // else {
  278. // layui.layer.alert("获取该部门下用户信息失败!", {
  279. // icon: 2
  280. // });
  281. // }
  282. // }
  283. //});
  284. }
  285. quickData();
  286. quicNum()
  287. function quickData() {
  288. //$.ajax({
  289. // url: "/QuickMsgs/GetListData",
  290. // type: "get",
  291. // contentType: "application/json",
  292. // dataType: "text",
  293. // async: false,
  294. // data: {
  295. // type: quickType,
  296. // key: $("#keyWord").val(),
  297. // page: 1,
  298. // limit: 15,
  299. // },
  300. // success: function (thisResult) {
  301. // if (eval('(' + thisResult + ')').msg == "成功") {
  302. // var list = eval('(' + thisResult + ')').data;
  303. // $(".quick-item").remove();
  304. // var key_w = $("#keyWord").val();
  305. // $(list).each(function (i, n) {
  306. // var after_u = n.msg.replace(key_w, '<span style="color:red;">' + key_w + '</span>');
  307. // $(".quick-list").append("<div class='quick-item'>" + after_u + "</div>");
  308. // })
  309. // $(".quick-list .quick-item").click(function (event) {
  310. // var texts = $(this).text();
  311. // var inputs = document.getElementById("inputs");
  312. // inputs.value = texts; // 修改文本框的内容(赋值内容)
  313. // inputs.select(); // 选中文本
  314. // document.execCommand("copy"); // 执行浏览器复制命令
  315. // alert("复制成功");//测试执行是否成
  316. // });
  317. // }
  318. // else {
  319. // layui.layer.alert("获取该部门下用户信息失败!", {
  320. // icon: 2
  321. // });
  322. // }
  323. // }
  324. //});
  325. }
  326. </script>