123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <%@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
- }
- },
-
- ///nwyj/ws/ExcelTeam/TeamExcelToDBTableTool/getTeamByCompId
- //xuwei
- async : {
- enable : true,
- dataType : 'JSON',
- dataName : 'treeNodes',
- url : $.pathname() + "/ws/ExcelTeam/TeamExcelToDBTableTool/getTeamByCompId/",
- autoParam: ["id", "name"],
- otherParam:["deptId",deptId]
- }
- }
- function closeFirstDialog(){
- diag.close();
- }
- //取页面传过来的预警级别
- var iframeUrl = window.location.href;
- var data = (iframeUrl).split('?')[1];
- //选择结果
- function getSelectValue(){
- alert("传过来的预警级别是:"+data);
- //获取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=="term_redAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("term_redAlert").value=msg;
- }else if(data=="term_orgAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("term_orgAlert").value=msg;
- }else if(data=="term_yellowAlert"){
- top.frmright.frmrightChild.iframeChild2.document.getElementById("term_yellowAlert").value=msg;
- }else if(data=="term_redAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("term_redAlert").value=msg;
- }else if(data=="term_orgAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("term_orgAlert").value=msg;
- }else if(data=="term_yellowAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("term_yellowAlert").value=msg;
- }else if(data=="term_blueAlertsssg"){
- top.frmright.frmrightChild.document.getElementById("term_blueAlert").value=msg;
- } else{
- top.frmright.frmrightChild.iframeChild2.document.getElementById("term_blueAlert").value=msg;
- };
- top.Dialog.close();
- }
-
- function initComplete(){
- $.fn.zTree.init($("#tree-1"), setting1);
- }
-
- //查询组织机构
- var name = $('#NAME_213').val();//机构名称
-
- </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>通知应急队伍</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>
- <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>
|