80aad78190c12f727bb0956eaf9885f47ed1ddd9.svn-base 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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="../../../../include1.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="/nwyj/scripts/business/am/ContingercyPlan/PlanGradeYJMsg.js"></script>
  13. <!--基本选项卡end-->
  14. </head>
  15. <body>
  16. <script type="text/javascript">
  17. var ifmHeight = "<%=request.getParameter("ifmHeight")%>";
  18. $(function(){
  19. $(top.document.body).find("#frmright").height(ifmHeight);
  20. });
  21. //当前登录用户所属的单位id--预警范围用到
  22. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  23. //var deptId="1";
  24. //当前等路用户的上一级单位
  25. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  26. //取预案的主键
  27. var sub_fd_id ="";
  28. //取页面传过来的预案主键ID
  29. sub_fd_id = parent.fd_id;
  30. var selectNodes="";
  31. var str ="";
  32. var setting1 = {
  33. view : {
  34. selectedMulti : true
  35. },
  36. check:{
  37. enable:true,
  38. chkStyle:"checkbox"
  39. },
  40. data : {
  41. simpleData : {
  42. enable : true
  43. }
  44. },
  45. //xuwei
  46. async : {
  47. enable : true,
  48. dataType : 'JSON',
  49. dataName : 'treeNodes',
  50. url : $.pathname() + '/ws/dept/DeptService/getDepartTree',
  51. autoParam: ["id", "name"],
  52. otherParam:["deptId",deptId]
  53. }
  54. }
  55. function closeFirstDialog(){
  56. firstdiag.close();
  57. }
  58. //取页面传过来的预警级别
  59. var iframeUrl = window.location.href;
  60. var data = (iframeUrl).split('?')[1];
  61. //选择结果
  62. function getSelectValue(){
  63. //获取zTree对象
  64. var zTree = $.fn.zTree.getZTreeObj("tree-1");
  65. //得到选中的数据集
  66. var checkedNodes = zTree.getCheckedNodes(true);
  67. //alert(JSON.stringify(checkedNodes))
  68. var msg = "";
  69. var msg2 = "";
  70. for(var i = 0; i < checkedNodes.length; i++){
  71. msg2 += "," + checkedNodes[i].id;
  72. //机构名称
  73. msg += "," + checkedNodes[i].name;
  74. }
  75. if(msg == ""){
  76. msg = "无选择";
  77. }else{
  78. msg = msg.substring(1);
  79. }
  80. if(msg2 == ""){
  81. msg2 = "无选择";
  82. }else{
  83. msg2 = msg2.substring(1);
  84. }
  85. //$("#EARLY_WARNING_AREA_ID_365").val(msg);
  86. //top.document.getElementById('EARLY_WARNING_AREA_ID_365').value = msg;
  87. top.document.getElementById("frmright").contentWindow.document.getElementById('EARLY_WARNING_AREA_NAME_365').value= msg;
  88. //top.Dialog.alert(inputValue);
  89. top.document.getElementById("frmright").contentWindow.document.getElementById('EARLY_WARNING_AREA_ID_365').value= msg2;
  90. $(top.document.body).find("#frmright").height(ifmHeight);
  91. top.Dialog.close();
  92. }
  93. function initComplete(){
  94. $.fn.zTree.init($("#tree-1"), setting1);
  95. }
  96. //查询组织机构
  97. var name = $('#EARLY_WARNING_AREA_NAME_365').val();//机构名称
  98. </script>
  99. <!-- <div class="box1" panelWidth="100%"> -->
  100. <form id="fillForm" name="fillForm" method="post" action="" failAlert="表单填写不正确,请按要求填写!">
  101. <div style="overflow-x: hidden; overflow-y: auto;height: 430px;">
  102. <div class="groupTitle" ><span>通知应急组织</span></div>
  103. <table class="tableStyle" formMode="transparent" footer="normal">
  104. <div>
  105. <fieldset width="95%"><ul>应急组织:<input type="text" id=EARLY_WARNING_AREA_ID_365 name="EARLY_WARNING_AREA_ID_365" onkeydown="if(event.keyCode==13){searchHandler();}"/></ul></fieldset>
  106. <ul id="tree-1" class="ztree"></ul>
  107. </div>
  108. </table>
  109. <tr>
  110. <td colspan="4" align="center">
  111. <input type="button" value=" 确定" onclick="getSelectValue();"/>
  112. <input type="button" value=" 关 闭 " onclick="tt()"/>
  113. </td>
  114. </tr>
  115. </table>
  116. </div>
  117. </form>
  118. </body>
  119. </html>