c2ef48f3787be85c21a10aed323440ce1a7adf0d.svn-base 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. ///nwyj/ws/ExcelTeam/TeamExcelToDBTableTool/getTeamByCompId
  42. //xuwei
  43. async : {
  44. enable : true,
  45. dataType : 'JSON',
  46. dataName : 'treeNodes',
  47. url : $.pathname() + "/ws/ExcelTeam/TeamExcelToDBTableTool/getTeamByCompId/",
  48. autoParam: ["id", "name"],
  49. otherParam:["deptId",deptId]
  50. }
  51. }
  52. function closeFirstDialog(){
  53. diag.close();
  54. }
  55. //取页面传过来的预警级别
  56. var iframeUrl = window.location.href;
  57. var data = (iframeUrl).split('?')[1];
  58. //选择结果
  59. function getSelectValue(){
  60. alert("传过来的预警级别是:"+data);
  61. //获取zTree对象
  62. var zTree = $.fn.zTree.getZTreeObj("tree-1");
  63. //得到选中的数据集
  64. var checkedNodes = zTree.getCheckedNodes(true);
  65. var msg = "";
  66. var msg2 = "";
  67. for(var i = 0; i < checkedNodes.length; i++){
  68. //机构名称
  69. msg += "," + checkedNodes[i].name + checkedNodes[i].tel;
  70. }
  71. if(msg == ""){
  72. msg = "无选择";
  73. }else{
  74. msg = msg.substring(1);
  75. }
  76. if(msg2 == ""){
  77. msg2 = "无选择";
  78. }else{
  79. msg2 = msg2.substring(1);
  80. }
  81. temp = msg;
  82. if(data=="term_redAlert"){
  83. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_redAlert").value=msg;
  84. }else if(data=="term_orgAlert"){
  85. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_orgAlert").value=msg;
  86. }else if(data=="term_yellowAlert"){
  87. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_yellowAlert").value=msg;
  88. }else if(data=="term_redAlertsssg"){
  89. top.frmright.frmrightChild.document.getElementById("term_redAlert").value=msg;
  90. }else if(data=="term_orgAlertsssg"){
  91. top.frmright.frmrightChild.document.getElementById("term_orgAlert").value=msg;
  92. }else if(data=="term_yellowAlertsssg"){
  93. top.frmright.frmrightChild.document.getElementById("term_yellowAlert").value=msg;
  94. }else if(data=="term_blueAlertsssg"){
  95. top.frmright.frmrightChild.document.getElementById("term_blueAlert").value=msg;
  96. } else{
  97. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_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. </script>
  107. <!-- <div class="box1" panelWidth="100%"> -->
  108. <div style="height: 50px;background: #F8F8F8;" align="center"><font style="font-weight: bold;font-size: 20px;line-height: 45px;" >预警短信通知</font></div>
  109. <form id="fillForm" name="fillForm" method="post" action="" failAlert="表单填写不正确,请按要求填写!">
  110. <div style="overflow-x: hidden; overflow-y: auto;height: 430px;">
  111. <div class="groupTitle" ><span>通知应急队伍</span></div>
  112. <table class="tableStyle" formMode="transparent" footer="normal">
  113. <div>
  114. <fieldset width="95%"><ul>应急队伍:<input type="text" id="NAME_213" name="NAME_213" onkeydown="if(event.keyCode==13){searchHandler();}"/></ul></fieldset>
  115. <ul id="tree-1" class="ztree"></ul>
  116. </div>
  117. </table>
  118. <tr>
  119. <td colspan="4" align="center">
  120. <input type="button" value=" 确定" onclick="getSelectValue();"/>
  121. <input type="button" value=" 关 闭 " onclick="tt()"/>
  122. </td>
  123. </tr>
  124. </table>
  125. </div>
  126. </form>
  127. </body>
  128. </html>