3d802b83199c6bc443134e8979a2f9106dabb01a.svn-base 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. //获取zTree对象
  61. var zTree = $.fn.zTree.getZTreeObj("tree-1");
  62. //得到选中的数据集
  63. var checkedNodes = zTree.getCheckedNodes(true);
  64. var msg = "";
  65. var msg2 = "";
  66. for(var i = 0; i < checkedNodes.length; i++){
  67. //机构名称
  68. msg += "," + checkedNodes[i].name + checkedNodes[i].tel;
  69. }
  70. if(msg == ""){
  71. msg = "无选择";
  72. }else{
  73. msg = msg.substring(1);
  74. }
  75. if(msg2 == ""){
  76. msg2 = "无选择";
  77. }else{
  78. msg2 = msg2.substring(1);
  79. }
  80. temp = msg;
  81. if(data=="term_redAlert"){
  82. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_redAlert").value=msg;
  83. }else if(data=="term_orgAlert"){
  84. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_orgAlert").value=msg;
  85. }else if(data=="term_yellowAlert"){
  86. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_yellowAlert").value=msg;
  87. }else if(data=="term_redAlertsssg"){
  88. top.frmright.frmrightChild.document.getElementById("term_redAlert").value=msg;
  89. }else if(data=="term_orgAlertsssg"){
  90. top.frmright.frmrightChild.document.getElementById("term_orgAlert").value=msg;
  91. }else if(data=="term_yellowAlertsssg"){
  92. top.frmright.frmrightChild.document.getElementById("term_yellowAlert").value=msg;
  93. }else if(data=="term_blueAlertsssg"){
  94. top.frmright.frmrightChild.document.getElementById("term_blueAlert").value=msg;
  95. } else{
  96. top.frmright.frmrightChild.iframeChild2.document.getElementById("term_blueAlert").value=msg;
  97. };
  98. top.Dialog.close();
  99. }
  100. function initComplete(){
  101. $.fn.zTree.init($("#tree-1"), setting1);
  102. }
  103. //查询组织机构
  104. var name = $('#NAME_213').val();//机构名称
  105. </script>
  106. <!-- <div class="box1" panelWidth="100%"> -->
  107. <div style="height: 50px;background: #F8F8F8;" align="center"><font style="font-weight: bold;font-size: 20px;line-height: 45px;" >预警短信通知</font></div>
  108. <form id="fillForm" name="fillForm" method="post" action="" failAlert="表单填写不正确,请按要求填写!">
  109. <div style="overflow-x: hidden; overflow-y: auto;height: 430px;">
  110. <div class="groupTitle" ><span>通知应急队伍</span></div>
  111. <table class="tableStyle" formMode="transparent" footer="normal">
  112. <div>
  113. <fieldset width="95%"><ul>应急队伍:<input type="text" id="NAME_213" name="NAME_213" onkeydown="if(event.keyCode==13){searchHandler();}"/></ul></fieldset>
  114. <ul id="tree-1" class="ztree"></ul>
  115. </div>
  116. </table>
  117. <!-- <tr>
  118. <td colspan="4" align="center">
  119. <input type="button" value=" 确定" onclick="getSelectValue();"/>
  120. <input type="button" value=" 关 闭 " onclick="tt()"/>
  121. </td>
  122. </tr> -->
  123. </div>
  124. </form>
  125. </body>
  126. </html>