123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>应急预案管理</title>
- <!--框架必需start-->
- <%@include file="../../../../include1.jsp" %>
- <!--框架必需end-->
- <!--基本选项卡start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/basicTabModern.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/am/ContingercyPlan/PlanGradeYJMsg.js"></script>
- <!--基本选项卡end-->
- </head>
- <body>
- <script type="text/javascript">
- var ifmHeight = "<%=request.getParameter("ifmHeight")%>";
- $(function(){
- $(top.document.body).find("#frmright").height(ifmHeight);
- });
- //当前登录用户所属的单位id--预警范围用到
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //var deptId="1";
- //当前等路用户的上一级单位
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //取预案的主键
- var sub_fd_id ="";
- //取页面传过来的预案主键ID
- sub_fd_id = parent.fd_id;
- var selectNodes="";
- var str ="";
- var setting1 = {
- view : {
- selectedMulti : true
- },
- check:{
- enable:true,
- chkStyle:"checkbox"
- },
-
- data : {
- simpleData : {
- enable : true
- }
- },
-
- //xuwei
- async : {
- enable : true,
- dataType : 'JSON',
- dataName : 'treeNodes',
- url : $.pathname() + '/ws/dept/DeptService/getDepartTree',
- autoParam: ["id", "name"],
- otherParam:["deptId",deptId]
- }
- }
- function closeFirstDialog(){
- firstdiag.close();
- }
- //取页面传过来的预警级别
- var iframeUrl = window.location.href;
- var data = (iframeUrl).split('?')[1];
- //选择结果
- function getSelectValue(){
- //获取zTree对象
- var zTree = $.fn.zTree.getZTreeObj("tree-1");
- //得到选中的数据集
- var checkedNodes = zTree.getCheckedNodes(true);
- //alert(JSON.stringify(checkedNodes))
- var msg = "";
- var msg2 = "";
-
- for(var i = 0; i < checkedNodes.length; i++){
- msg2 += "," + checkedNodes[i].id;
- //机构名称
- msg += "," + checkedNodes[i].name;
- }
- if(msg == ""){
- msg = "无选择";
- }else{
- msg = msg.substring(1);
- }
- if(msg2 == ""){
- msg2 = "无选择";
- }else{
- msg2 = msg2.substring(1);
- }
- //$("#EARLY_WARNING_AREA_ID_365").val(msg);
- //top.document.getElementById('EARLY_WARNING_AREA_ID_365').value = msg;
- top.document.getElementById("frmright").contentWindow.document.getElementById('EARLY_WARNING_AREA_NAME_365').value= msg;
- //top.Dialog.alert(inputValue);
- top.document.getElementById("frmright").contentWindow.document.getElementById('EARLY_WARNING_AREA_ID_365').value= msg2;
-
- $(top.document.body).find("#frmright").height(ifmHeight);
-
- top.Dialog.close();
- }
-
- function initComplete(){
- $.fn.zTree.init($("#tree-1"), setting1);
- }
-
- //查询组织机构
- var name = $('#EARLY_WARNING_AREA_NAME_365').val();//机构名称
-
- </script>
- <!-- <div class="box1" panelWidth="100%"> -->
- <form id="fillForm" name="fillForm" method="post" action="" failAlert="表单填写不正确,请按要求填写!">
- <div style="overflow-x: hidden; overflow-y: auto;height: 430px;">
- <div class="groupTitle" ><span>通知应急组织</span></div>
- <table class="tableStyle" formMode="transparent" footer="normal">
- <div>
- <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>
- <ul id="tree-1" class="ztree"></ul>
- </div>
- </table>
- <tr>
- <td colspan="4" align="center">
- <input type="button" value=" 确定" onclick="getSelectValue();"/>
- <input type="button" value=" 关 闭 " onclick="tt()"/>
- </td>
- </tr>
-
- </table>
- </div>
- </form>
- </body>
- </html>
|