123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <%@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="../../../include.jsp" %>
- <!--框架必需end-->
- <!--基本选项卡start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/basicTabModern.js"></script>
- <script type="text/javascript" src="../../../../scripts/business/am/ContingercyPlan/PlanGradeYJMsg.js"></script>
- <!--基本选项卡end-->
- </head>
- <body>
- <script type="text/javascript">
- //当前登录用户所属的单位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/PlanGlOrgService/PlanGlOrgService/getDeptRootById/",
- autoParam: ["id", "name"],
- otherParam:["deptId",deptId]
- }
- }
- function closeFirstDialog(){
- top.Dialog.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);
-
- var msg = "";
- var msg2 = "";
-
- for(var i = 0; i < checkedNodes.length; i++){
-
- //机构名称
- msg += "," + checkedNodes[i].name + checkedNodes[i].tel;
- }
- if(msg == ""){
- msg = "无选择";
- }else{
- msg = msg.substring(1);
- }
- if(msg2 == ""){
- msg2 = "无选择";
- }else{
- msg2 = msg2.substring(1);
- }
- temp = msg;
- if(data=="redAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("redAlert").value=msg;
- }else if(data=="orgAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("orgAlert").value=msg;
- }else if(data=="yellowAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("yellowAlert").value=msg;
- }else if(data=="blueAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("blueAlert").value=msg;
- }else if(data=="11"){
- top.frmright.document.getElementById("11").value=msg;
- }else if(data=="redAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("redAlert").value=msg;
- }else if(data=="orgAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("orgAlert").value=msg;
- }else if(data=="yellowAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("yellowAlert").value=msg;
- }else if(data=="blueAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("blueAlert").value=msg;
- };
- top.Dialog.close();
- }
-
- function initComplete(){
- $.fn.zTree.init($("#tree-1"), setting1);
- }
-
- //查询组织机构
- var name = $('#NAME_213').val();//机构名称
-
- //快捷查找组织机构的人
- function searchHandler(){
-
- }
-
- </script>
- <!-- <div class="box1" panelWidth="100%"> -->
- <div style="height: 50px;background: #F8F8F8;" align="center"><font style="font-weight: bold;font-size: 20px;line-height: 45px;" >预警短信通知</font></div>
- <form id="fillForm" name="fillForm" method="post" action="" failAlert="表单填写不正确,请按要求填写!">
- <div style="overflow-x: hidden; overflow-y: auto;height: 430px;">
- <div class="groupTitle" ><span id="fffx">通知应急组织</span></div>
- <table class="tableStyle" formMode="transparent" footer="normal">
- <div>
- <fieldset width="95%"><ul>应急组织:<input type="text" id="NAME_213" name="NAME_213" onkeydown="if(event.keyCode==13){searchHandler();}"/></ul></fieldset>
- <ul id="tree-1" class="ztree"></ul>
- </div>
- </table>
-
- <table class="tableStyle">
- <td colspan="4" align="center">
- <input type="button" value=" 确 定" onclick="getSelectValue();"/>
- <input type="button" value=" 关 闭 " onclick="closeFirstDialog()"/>
- </td>
- </table>
- </div>
- </form>
- </body>
- </html>
|