remindrule.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
  11. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
  12. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-Switch/bootstrapSwitch.css">
  13. <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
  14. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  15. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  16. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  17. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
  18. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
  19. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  20. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-Switch/bootstrapSwitch.js"></script>
  21. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  22. <script src="${ctx}/assets/js/validate.js" ></script>
  23. <script type="text/javascript">
  24. function setCollapseIcon(collapseIcon)
  25. {
  26. var curCollapseIconClass=$("#"+collapseIcon).attr("class");
  27. if(curCollapseIconClass=="glyphicon glyphicon-menu-up")
  28. {
  29. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-down");
  30. }
  31. else
  32. {
  33. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-up");
  34. }
  35. }
  36. $(function () {
  37. //短信提醒开关
  38. $('#SMSFlagDiv').on('switch-change', function (e, data) {
  39. var $el = $(data.el);
  40. var fieldValue = data.value;
  41. if(fieldValue==false)
  42. {
  43. $('#SMSWaitDoFlagDiv').bootstrapSwitch('setState',false);
  44. $('#SMSSoonFlagDiv').bootstrapSwitch('setState',false);
  45. $('#SMSDayFlagDiv').bootstrapSwitch('setState',false);
  46. $('#SMSMonthFlagDiv').bootstrapSwitch('setState',false);
  47. $('#SMSSeasonsFlagDiv').bootstrapSwitch('setState',false);
  48. }
  49. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=SMSFlag&FieldValue='+fieldValue);
  50. $('#form1').ajaxSubmit(resultHandle);
  51. });
  52. $('#SMSWaitDoFlagDiv').on('switch-change', function (e, data) {
  53. var $el = $(data.el);
  54. var fieldValue = data.value;
  55. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=SMSWaitDoFlag&FieldValue='+fieldValue);
  56. $('#form1').ajaxSubmit(resultHandle);
  57. });
  58. $('#SMSSoonFlagDiv').on('switch-change', function (e, data) {
  59. var $el = $(data.el);
  60. var fieldValue = data.value;
  61. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=SMSSoonFlag&FieldValue='+fieldValue);
  62. $('#form1').ajaxSubmit(resultHandle);
  63. });
  64. $('#SMSDayFlagDiv').on('switch-change', function (e, data) {
  65. var $el = $(data.el);
  66. var fieldValue = data.value;
  67. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=SMSDayFlag&FieldValue='+fieldValue);
  68. $('#form1').ajaxSubmit(resultHandle);
  69. });
  70. $('#SMSMonthFlagDiv').on('switch-change', function (e, data) {
  71. var $el = $(data.el);
  72. var fieldValue = data.value;
  73. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=SMSMonthFlag&FieldValue='+fieldValue);
  74. $('#form1').ajaxSubmit(resultHandle);
  75. });
  76. $('#SMSSeasonsFlagDiv').on('switch-change', function (e, data) {
  77. var $el = $(data.el);
  78. var fieldValue = data.value;
  79. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=SMSSeasonsFlag&FieldValue='+fieldValue);
  80. $('#form1').ajaxSubmit(resultHandle);
  81. });
  82. //邮件提醒开关
  83. $('#EmailFlagDiv').on('switch-change', function (e, data) {
  84. var $el = $(data.el);
  85. var fieldValue = data.value;
  86. if(fieldValue==false)
  87. {
  88. $('#EmailWaitDoFlagDiv').bootstrapSwitch('setState',false);
  89. $('#EmailSoonFlagDiv').bootstrapSwitch('setState',false);
  90. $('#EmailDayFlagDiv').bootstrapSwitch('setState',false);
  91. $('#EmailMonthFlagDiv').bootstrapSwitch('setState',false);
  92. $('#EmailSeasonsFlagDiv').bootstrapSwitch('setState',false);
  93. }
  94. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=EmailFlag&FieldValue='+fieldValue);
  95. $('#form1').ajaxSubmit(resultHandle);
  96. });
  97. $('#EmailWaitDoFlagDiv').on('switch-change', function (e, data) {
  98. var $el = $(data.el);
  99. var fieldValue = data.value;
  100. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=EmailWaitDoFlag&FieldValue='+fieldValue);
  101. $('#form1').ajaxSubmit(resultHandle);
  102. });
  103. $('#EmailSoonFlagDiv').on('switch-change', function (e, data) {
  104. var $el = $(data.el);
  105. var fieldValue = data.value;
  106. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=EmailSoonFlag&FieldValue='+fieldValue);
  107. $('#form1').ajaxSubmit(resultHandle);
  108. });
  109. $('#EmailDayFlagDiv').on('switch-change', function (e, data) {
  110. var $el = $(data.el);
  111. var fieldValue = data.value;
  112. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=EmailDayFlag&FieldValue='+fieldValue);
  113. $('#form1').ajaxSubmit(resultHandle);
  114. });
  115. $('#EmailMonthFlagDiv').on('switch-change', function (e, data) {
  116. var $el = $(data.el);
  117. var fieldValue = data.value;
  118. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=EmailMonthFlag&FieldValue='+fieldValue);
  119. $('#form1').ajaxSubmit(resultHandle);
  120. });
  121. $('#EmailSeasonsFlagDiv').on('switch-change', function (e, data) {
  122. var $el = $(data.el);
  123. var fieldValue = data.value;
  124. $('#form1').attr('action','${ctx}/myconsole/complaint/rule/doRemindFlag?FieldName=EmailSeasonsFlag&FieldValue='+fieldValue);
  125. $('#form1').ajaxSubmit(resultHandle);
  126. });
  127. })
  128. //设置提醒标志
  129. function setRemindFlag(fieldName)
  130. {
  131. alert(fieldName);
  132. var fieldValue=$('#'+fieldName).is(':checked');
  133. }
  134. function setRemindFlag1(fieldName)
  135. {
  136. alert(fieldName);
  137. }
  138. function resultHandle(data){
  139. }
  140. </script>
  141. <title>提醒规则设置</title>
  142. <meta name="keywords" content="">
  143. <meta name="description" content="">
  144. </head>
  145. <body >
  146. <form id="form1" method="post" class="form-horizontal" role="form">
  147. <div style="display: none">
  148. <input type="hidden" id="KeyID" name="KeyID" value="${DoOrgID}"/>
  149. <input type="hidden" id="OrgID" name="OrgID" value="${DoOrgID}"/>
  150. <input type="hidden" id="OrgName" name="OrgName" value="${DoOrgName}"/>
  151. <input type="hidden" id="RecordUserID" name="RecordUserID" value="${user.UserID}"/>
  152. <input type="hidden" id="RecordUserName" name="RecordUserName" value="${user.UserName}"/>
  153. </div>
  154. <div class="container-fluid" style="margin-top:15px;">
  155. <div class="panel panel-primary">
  156. <div class="panel-heading">
  157. <div style="display:inline;" >短信提醒设置 </div>
  158. </div>
  159. <div id="collapsePerson" class="panel-collapse collapse in">
  160. <div class="panel-body" style="font-size:14px">
  161. <div class="row" style="padding:5px" >
  162. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  163. <label class="control-label" >短信提醒</label></div>
  164. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
  165. <div class="switch" id=SMSFlagDiv data-on="success" data-off="warning" data-on-label="开" data-off-label="关" >
  166. <input type="checkbox" id=SMSFlag name=SMSFlag />
  167. <script type="text/javascript">$(function(){$('#SMSFlagDiv').bootstrapSwitch('setState', ${remindRule.SMSFlag});})</script>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="row" style="padding:5px" >
  172. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  173. </div>
  174. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  175. <label class="control-label" >待办提醒</label></div>
  176. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  177. <div class="switch" id=SMSWaitDoFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  178. <input type="checkbox" id=SMSWaitDoFlag name=SMSWaitDoFlag />
  179. <script type="text/javascript">$(function(){$('#SMSWaitDoFlagDiv').bootstrapSwitch('setState', ${remindRule.SMSWaitDoFlag});})</script>
  180. </div>
  181. </div>
  182. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  183. <label class="control-label" >到期提醒</label></div>
  184. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  185. <div class="switch" id=SMSSoonFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  186. <input type="checkbox" id=SMSSoonFlag name=SMSSoonFlag />
  187. <script type="text/javascript">$(function(){$('#SMSSoonFlagDiv').bootstrapSwitch('setState', ${remindRule.SMSSoonFlag});})</script>
  188. </div>
  189. </div>
  190. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  191. <label class="control-label" >日报提醒</label></div>
  192. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  193. <div class="switch" id=SMSDayFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  194. <input type="checkbox" id=SMSDayFlag name=SMSDayFlag />
  195. <script type="text/javascript">$(function(){$('#SMSDayFlagDiv').bootstrapSwitch('setState', ${remindRule.SMSDayFlag});})</script>
  196. </div>
  197. </div>
  198. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  199. <label class="control-label" >月报提醒</label></div>
  200. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  201. <div class="switch" id=SMSMonthFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  202. <input type="checkbox" id=SMSMonthFlag name=SMSMonthFlag />
  203. <script type="text/javascript">$(function(){$('#SMSMonthFlagDiv').bootstrapSwitch('setState', ${remindRule.SMSMonthFlag});})</script>
  204. </div>
  205. </div>
  206. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  207. <label class="control-label" >季报提醒</label></div>
  208. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  209. <div class="switch" id=SMSSeasonsFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  210. <input type="checkbox" id=SMSSeasonsFlag name=SMSSeasonsFlag />
  211. <script type="text/javascript">$(function(){$('#SMSSeasonsFlagDiv').bootstrapSwitch('setState', ${remindRule.SMSSeasonsFlag});})</script>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="panel panel-success">
  219. <div class="panel-heading">
  220. <div style="display:inline;" >邮件提醒设置 </div>
  221. </div>
  222. <div id="collapsePerson" class="panel-collapse collapse in">
  223. <div class="panel-body" style="font-size:14px">
  224. <div class="row" style="padding:5px" >
  225. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  226. <label class="control-label" >邮件提醒</label></div>
  227. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
  228. <div class="switch" id=EmailFlagDiv data-on="success" data-off="warning" data-on-label="开" data-off-label="关" >
  229. <input type="checkbox" id=EmailFlag name=EmailFlag />
  230. <script type="text/javascript">$(function(){$('#EmailFlagDiv').bootstrapSwitch('setState', ${remindRule.EmailFlag});})</script>
  231. </div>
  232. </div>
  233. </div>
  234. <div class="row" style="padding:5px" >
  235. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  236. </div>
  237. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  238. <label class="control-label" >待办提醒</label></div>
  239. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  240. <div class="switch" id=EmailWaitDoFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  241. <input type="checkbox" id=EmailWaitDoFlag name=EmailWaitDoFlag />
  242. <script type="text/javascript">$(function(){$('#EmailWaitDoFlagDiv').bootstrapSwitch('setState', ${remindRule.EmailWaitDoFlag});})</script>
  243. </div>
  244. </div>
  245. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  246. <label class="control-label" >到期提醒</label></div>
  247. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  248. <div class="switch" id=EmailSoonFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  249. <input type="checkbox" id=EmailSoonFlag name=EmailSoonFlag />
  250. <script type="text/javascript">$(function(){$('#EmailSoonFlagDiv').bootstrapSwitch('setState', ${remindRule.EmailSoonFlag});})</script>
  251. </div>
  252. </div>
  253. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  254. <label class="control-label" >日报提醒</label></div>
  255. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  256. <div class="switch" id=EmailDayFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  257. <input type="checkbox" id=EmailDayFlag name=EmailDayFlag />
  258. <script type="text/javascript">$(function(){$('#EmailDayFlagDiv').bootstrapSwitch('setState', ${remindRule.EmailDayFlag});})</script>
  259. </div>
  260. </div>
  261. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  262. <label class="control-label" >月报提醒</label></div>
  263. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  264. <div class="switch" id=EmailMonthFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  265. <input type="checkbox" id=EmailMonthFlag name=EmailMonthFlag />
  266. <script type="text/javascript">$(function(){$('#EmailMonthFlagDiv').bootstrapSwitch('setState', ${remindRule.EmailMonthFlag});})</script>
  267. </div>
  268. </div>
  269. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" style="text-align:right;">
  270. <label class="control-label" >季报提醒</label></div>
  271. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  272. <div class="switch" id=EmailSeasonsFlagDiv data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
  273. <input type="checkbox" id=EmailSeasonsFlag name=EmailSeasonsFlag />
  274. <script type="text/javascript">$(function(){$('#EmailSeasonsFlagDiv').bootstrapSwitch('setState', ${remindRule.EmailSeasonsFlag});})</script>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. </form>
  283. </body>
  284. </html>