地铁二期项目正式开始

SMS_Send.cshtml 10.0KB

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