4fbb71315d45794239118fdcc683a0971574b695.svn-base 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>应急预案管理</title>
  7. <!--框架必需start-->
  8. <%@include file="../../../include.jsp" %>
  9. <!--框架必需end-->
  10. <!--基本选项卡start-->
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/basicTabModern.js"></script>
  12. <script type="text/javascript" src="../../../../scripts/business/am/ContingercyPlan/PlanGradeYJMsg.js"></script>
  13. <!--基本选项卡end-->
  14. </head>
  15. <body>
  16. <script type="text/javascript">
  17. //当前登录用户所属的单位id--预警范围用到
  18. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  19. //var deptId="1";
  20. //当前等路用户的上一级单位
  21. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  22. //取预案的主键
  23. var sub_fd_id ="";
  24. //取页面传过来的预案主键ID
  25. sub_fd_id = parent.fd_id;
  26. var selectNodes="";
  27. var str ="";
  28. var setting1 = {
  29. view : {
  30. selectedMulti : true
  31. },
  32. check:{
  33. enable:true,
  34. chkStyle:"checkbox"
  35. },
  36. data : {
  37. simpleData : {
  38. enable : true
  39. }
  40. },
  41. //xuwei
  42. async : {
  43. enable : true,
  44. dataType : 'JSON',
  45. dataName : 'treeNodes',
  46. url : $.pathname() + "/ws/PlanGlOrgService/PlanGlOrgService/getDeptRootById/",
  47. autoParam: ["id", "name"],
  48. otherParam:["deptId",deptId]
  49. }
  50. }
  51. function closeFirstDialog(){
  52. top.Dialog.close();
  53. }
  54. //取页面传过来的预警级别
  55. var iframeUrl = window.location.href;
  56. var data = (iframeUrl).split('?')[1];
  57. //选择结果
  58. function getSelectValue(){
  59. //获取zTree对象
  60. var zTree = $.fn.zTree.getZTreeObj("tree-1");
  61. //得到选中的数据集
  62. var checkedNodes = zTree.getCheckedNodes(true);
  63. var msg = "";
  64. var msg2 = "";
  65. for(var i = 0; i < checkedNodes.length; i++){
  66. //机构名称
  67. msg += "," + checkedNodes[i].name + checkedNodes[i].tel;
  68. }
  69. if(msg == ""){
  70. msg = "无选择";
  71. }else{
  72. msg = msg.substring(1);
  73. }
  74. if(msg2 == ""){
  75. msg2 = "无选择";
  76. }else{
  77. msg2 = msg2.substring(1);
  78. }
  79. temp = msg;
  80. if(data=="redAlert"){
  81. top.frmright.frmrightChild.iframeChild2.document.getElementById("redAlert").value=msg;
  82. }else if(data=="orgAlert"){
  83. top.frmright.frmrightChild.iframeChild2.document.getElementById("orgAlert").value=msg;
  84. }else if(data=="yellowAlert"){
  85. top.frmright.frmrightChild.iframeChild2.document.getElementById("yellowAlert").value=msg;
  86. }else if(data=="blueAlert"){
  87. top.frmright.frmrightChild.iframeChild2.document.getElementById("blueAlert").value=msg;
  88. }else if(data=="11"){
  89. top.frmright.document.getElementById("11").value=msg;
  90. }else if(data=="redAlertsssg"){
  91. top.frmright.frmrightChild.document.getElementById("redAlert").value=msg;
  92. }else if(data=="orgAlertsssg"){
  93. top.frmright.frmrightChild.document.getElementById("orgAlert").value=msg;
  94. }else if(data=="yellowAlertsssg"){
  95. top.frmright.frmrightChild.document.getElementById("yellowAlert").value=msg;
  96. }else if(data=="blueAlertsssg"){
  97. top.frmright.frmrightChild.document.getElementById("blueAlert").value=msg;
  98. };
  99. top.Dialog.close();
  100. }
  101. function initComplete(){
  102. $.fn.zTree.init($("#tree-1"), setting1);
  103. }
  104. //查询组织机构
  105. var name = $('#NAME_213').val();//机构名称
  106. //快捷查找组织机构的人
  107. function searchHandler(){
  108. }
  109. </script>
  110. <!-- <div class="box1" panelWidth="100%"> -->
  111. <div style="height: 50px;background: #F8F8F8;" align="center"><font style="font-weight: bold;font-size: 20px;line-height: 45px;" >预警短信通知</font></div>
  112. <form id="fillForm" name="fillForm" method="post" action="" failAlert="表单填写不正确,请按要求填写!">
  113. <div style="overflow-x: hidden; overflow-y: auto;height: 430px;">
  114. <div class="groupTitle" ><span id="fffx">通知应急组织</span></div>
  115. <table class="tableStyle" formMode="transparent" footer="normal">
  116. <div>
  117. <fieldset width="95%"><ul>应急组织:<input type="text" id="NAME_213" name="NAME_213" onkeydown="if(event.keyCode==13){searchHandler();}"/></ul></fieldset>
  118. <ul id="tree-1" class="ztree"></ul>
  119. </div>
  120. </table>
  121. <table class="tableStyle">
  122. <td colspan="4" align="center">
  123. <input type="button" value=" 确 定" onclick="getSelectValue();"/>
  124. <input type="button" value=" 关 闭 " onclick="closeFirstDialog()"/>
  125. </td>
  126. </table>
  127. </div>
  128. </form>
  129. </body>
  130. </html>