123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- <%@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-->
- <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
- <link href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css" />
- <style type="text/css">
- body,div,ul,li,p{
- margin:0;
- padding:0;
- font-size: 14px;
- }
- .d_ground{
- border: 1px solid #cdcaca;
- background: white;
- width:1000px;
- }
- </style>
- <script type="text/javascript" >
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //问题记录
- var is_edit = false;
- var dutyData={"list" : [{"value" : "0","key" : "是"},
- {"value" : "1","key" : "否"}]};
- var g;
- $(function(){
- //修改表单信息,获取记录
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '299',
- objectID : fd_id
- };
- $('#fileDiv').newAsyncFileUpload("",fd_id,0);
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- if(data.IMPLEMENT_STAT_299=="0"&&data.UNITS_299==deptId){
- $("#daiwancheng").show();
- }
- var category = data.DRILL_REFINE_CATEGORY_299.split(",");
- var drillcategory = "";
- for(var n=0;n<category.length;n++){
- if(category[n]=="10"){
- drillcategory += "突发事件总体预案,";
- }
- if(category[n]=="11"){
- drillcategory += "人生事故应急预案,";
- }
- if(category[n]=="12"){
- drillcategory += "突发性群体事件应急预案,";
- }
- if(category[n]=="13"){
- drillcategory += "新闻危机公关处理,";
- }
- if(category[n]=="14"){
- drillcategory += "突发公共卫生事件,";
- }
- if(category[n]=="15"){
- drillcategory += "生产场所防恐怖袭击,";
- }
- if(category[n]=="16"){
- drillcategory += "本部办公大楼消防,";
- }
- if(category[n]=="17"){
- drillcategory += "涉外突发事件,";
- }
- if(category[n]=="18"){
- drillcategory += "设备事故应急预案,";
- }
- if(category[n]=="19"){
- drillcategory += "防风防汛应急预案,";
- }
- if(category[n]=="20"){
- drillcategory += "电网防地震,";
- }
- if(category[n]=="21"){
- drillcategory += "重大环境污染事故,";
- }
- if(category[n]=="22"){
- drillcategory += "雨雪冰冻灾害,";
- }
- if(category[n]=="23"){
- drillcategory += "网络与信息安全,";
- }
- if(category[n]=="24"){
- drillcategory += "电网事故,";
- }
- if(category[n]=="25"){
- drillcategory += "电力供应,";
- }
- if(category[n]=="26"){
- drillcategory += "客户服务事件,";
- }
- if(category[n]=="27"){
- drillcategory += "其他,";
- }
- }
- drillcategory = drillcategory.substring(0, drillcategory.length-1)
- $("#DRILL_REFINE_CATEGORY_299_SHOW1").html(drillcategory);
- //取完成情况的字段,控制计划提醒时间是否需要显示 IMPLEMENT_STAT
- var isComplete = data.IMPLEMENT_STAT_299;
- if(isComplete=="1"){
- $("#table").hide();
- }else{
- $("#table").show();
- }
-
- var userID = data.PLAN_MAKER_299;
- for(var i in data){
- $('#'+i).html(data[i]);
- }
-
- var noticetime = data.NOTICE_TIME_299;
- $("#1111").attr("selectedValue",noticetime);
- $("#1111").render();
- //录入人信息
- getUserInfo(userID);
-
- initGrid(data.FD_OBJECTID299);
- },
- error : function(e){
- top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
-
-
-
- function getUserInfo(userID){
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '880',
- objectID : userID
- };
-
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- var DRILL_LINKMAN =data.REAL_NAME_880;
- var MOBILE = data.MOBILE_880; //手机
- var COMPANY_ID = data.COMPANY_ID_880_SHOW;//所属单位
- var ORG_ID = data.ORG_ID_880_SHOW;//所属部门
- getDeptName(data.ORG_ID_880);
-
- $("#DRILL_LINKMAN").html(DRILL_LINKMAN);
- $("#MOBILE").html(MOBILE);
- $("#COMPANY_ID").html(COMPANY_ID);
- $("#ORG_ID").html(ORG_ID);
-
- },
- error : function(e){
- top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- function getDeptName(id){
-
- $.ajax({
- url : $.pathname()+ "/ws/DrillCount/DrillCountService/getDeptNameInfo",
- type : 'post',
- timeout : 60000,
- data : {id:id},
- dataType : 'text',
- success : function(data){
-
- $("#COMPANY_ID").html(data);
-
- }
- });
- }
-
- $("#goback a img").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- });
- //修改计划提前提醒的时间
- function noticeTimeServer(){
- var fd_id = (window.location.href).split('?')[1];
- var noticeTime = $("#1111").val();
- top.Dialog.confirm("确定要提前"+noticeTime+"天提醒吗'?|确定", function() {
- // 确定
- $.post($.pathname() +"/ws/DrillCount/DrillCountService/noticeTimeServer/", {
- //当前单位id
- days : noticeTime,
- fd_id : fd_id,
- }, function(result) {
- if (result.Msg.sucsess == true) {
- top.Dialog.alert("演练计划提前提醒配置成功!");
- } else {
- top.Dialog.alert("上报失败!");
- }
- }, "json");
-
- });
- }
- function jumpUpdate(){
- var fd_id = (window.location.href).split('?')[1];
- window.location.href="emc-drill-update.jsp?"+fd_id+"?1";
- }
-
- function goBack() {
- window.location.href="emc-drill.jsp";
- }
-
-
- function initGrid(dutyid1){
- var hurl= $.pathname() + '/ws/DrillCount/DrillCountService/queryDrillRelevanceId';
- var loadParms={taskid:dutyid1};
- g = $("#maingrid").quiGrid({
- columns: [
- { display: '发现问题', name: 'DISCOVER_PROBLEMS',showTitle:true,isSort : false,align: 'center', width: "16%"},
- { display: '整改措施', name: 'RECTIFICATION_MEASURES',showTitle:true,isSort : false,align: 'center', width: "16%"},
- { display: '责任单位和</br>部门(负责人)', name: 'CHARGE_MAN',showTitle:true,isSort : false,align: 'center', width: "12%"},
- { display: '监督单位和</br>部门(跟踪人)', name: 'TRACKING_MAN',showTitle:true,isSort : false,align: 'center', width: "12%"},
- { display: '计划完成时间', name: 'PLAN_TIME',isSort : false,showTitle:true,align: 'center', width: "12%"},
- { display: '完成情况', name: 'COMPLETE_STATUS',showTitle:true,isSort : false,align: 'center', width: "12%"},
- { display: '实际完成时间', name: 'DOWN_TIME',showTitle:true,isSort : false,align: 'center', width: "12%"} ,
- { display: '是否完结', name: 'IS_END',showTitle:true,isSort : false,align: 'center', width: "8%" ,render:function (item){
- for (var i = 0; i < dutyData["list"].length; i++){
- if (dutyData["list"][i]['value'] == item.IS_END){
- return dutyData["list"][i]['key'];
- }
- }
- return item.IS_END;
- }
- }
- ],
-
- url:hurl,
- rownumbers : false,
- params:loadParms,
- usePager : false,
- fixedCellHeight : false,
- onAfterShowData:function(rowdata){
- setHight();
- }
-
- });
- }
-
- </script>
- </head>
-
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
- <div class="d_ground">
- <div style="position: relative;" class="titlehead">
- <div class="go_img" id="goback">
- <a href="javascript:;">
- <!-- <img id="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack()"></img> --><!--window.history.back() -->
- </a>
- </div>
- <font class="titleMsg">应急演练信息</font>
- </div>
- <!-- <br /> -->
- <!-- <div style="float:right">
- <table id="table" align="right">
- <tr>
- <td align="right"><span class="star" align="right"></span>计划提前提醒时间:</td>
- <td><select id="1111" name="1111" selWidth="250" onchange="getSelectValue()" data='{"list":[{"value":"30","key":"提前一个月提醒"},{"value":"15","key":"提前半个月提醒"},{"value":"7","key":"提前一周提醒"},{"value":"3","key":"提前三天提醒"}]}'></select></td>
- <td><input value="确定" type="button" onclick="noticeTimeServer()"/></td>
- </tr>
- </table>
- </div> -->
- <div class="button_jl">
- <input type="button" value="待完成" id="daiwancheng" onclick="jumpUpdate()" style="display: none; "/>
-
- </div>
- <br />
-
- <fieldset class="fieldset" >
- <legend>基本信息:</legend>
- <table class="tableStyle" align="center">
- <tr>
- <td width="150px" align="right">名称:</td>
- <td width="250px"><div id="DRILL_NAME_299" name="DRILL_NAME_299" /></td>
- <td width="150px" align="right">是否计划:</td>
- <td width="250px"><div id="IS_PLAN_299_SHOW" name="IS_PLAN_299_SHOW" /></td>
- </tr>
- <tr>
- <td align="right">主办单位:</td>
- <td><div id="SPONSOR_COMP_299_SHOW" name="SPONSOR_COMP_299_SHOW" ></div></td>
- <td align="right">承办单位:</td>
- <td><div id="UPDERTAKE_COMP_299_SHOW" name="UPDERTAKE_COMP_299_SHOW" ></div></td>
- </tr>
- <tr>
- <td align="right">实施状态:</td>
- <td><div id="IMPLEMENT_STAT_299_SHOW" name="IMPLEMENT_STAT_299_SHOW" ></div></td>
- <td align="right">演练类别:</td>
- <td><div id="DRILL_TYPE_299_SHOW" name="DRILL_TYPE_299_SHOW" ></div></td>
- </tr>
- <tr>
- <td align="right">细化类别:</td>
- <td><div id="DRILL_REFINE_CATEGORY_299_SHOW1" name="DRILL_REFINE_CATEGORY_299_SHOW" ></div></td>
- <td align="right">演练形式:</td>
- <td><div id="DRILL_FORM_299_SHOW" name="DRILL_FORM_299_SHOW" ></div></td>
- </tr>
- <tr>
- <td align="right">填报时间:</td>
- <td><div id="REPORT_DATE_299" name="REPORT_DATE_299"/></td>
- <td align="right">计划时间:</td>
- <td><div id="PLAN_TIME_299" name="PLAN_TIME_299"/></td>
- </tr>
- <tr>
- <td align="right">演练联系人:</td>
- <td><div id="DRILL_LINKMAN_299" name="DRILL_LINKMAN_299"/></td>
- <td align="right">计划提前提醒时间:</td>
- <td><select id="1111" name="1111" selWidth="150" onchange="getSelectValue()" data='{"list":[{"value":"30","key":"提前一个月提醒"},{"value":"15","key":"提前半个月提醒"},{"value":"7","key":"提前一周提醒"},{"value":"3","key":"提前三天提醒"}]}'></select> <input value="确定" type="button" onclick="noticeTimeServer()"/></td>
- </tr>
- <tr>
- <td align="right">联系人手机:</td>
- <td colspan="3"><div id="LINKMENCALL_299" name="LINKMENCALL_299"/></td>
- </tr>
- </table>
- </fieldset>
-
-
-
- <fieldset class="fieldset" >
- <legend>完成情况:</legend>
- <table class="tableStyle" align="center">
- <tr>
- <td width="150px" align="right">领导(人数):</td>
- <td width="250px"><div id="DRILL_LEADER_299" name="DRILL_LEADER_299"/></td>
- <td width="150px" align="right">安全监察人员(人数):</td>
- <td width="250px"><div id="DRILL_CONTROLER_299" name="DRILL_CONTROLER_299"/></td>
- </tr>
- <tr>
- <td align="right">生产管理人员(人数):</td>
- <td><div id="DRILL_PRODUCTION_MANAGEMENT_299" name="DRILL_PRODUCTION_MANAGEMENT_299"/></td>
- <td align="right">应急抢修人员(人数):</td>
- <td><div id="DRILL_EMERGENCY_REPAIR_299" name="DRILL_EMERGENCY_REPAIR_299"/></td>
- </tr>
- <tr>
- <td align="right">投入(万元):</td>
- <td><div id="DRILL_INPUT_299" name="DRILL_INPUT_299"/></td>
- <td align="right">完成时间:</td>
- <td><div id="DOWN_TIME_299" name="DOWN_TIME_299" /></td>
- </tr>
-
- <tr>
- <td align="right">演练简况:</td>
- <td colspan="3"><div id="DRILL_BRIEF_299" name="DRILL_BRIEF_299"></div></td>
- </tr>
- </table>
- </fieldset>
-
-
- <!-- <table style="width: 100%;" align="center" border="0">
- <tr><td colspan="3"><div id="maingrid"></div></td></tr>
- </table> -->
-
- <fieldset class="fieldset">
- <legend >问题记录:</legend>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- </fieldset>
-
- <fieldset id="file" class="fieldset">
- <legend>附件信息:</legend>
- <table class="tableStyle" align="center">
- <tr>
- <td width="150px" align="right">相关资料:</td>
- <!-- <td colspan="3"><div id="fileDiv" /></td> -->
- <td width="650px"><div id="fileDiv" name="fileDiv"></div></td>
- </tr>
- </table>
- </fieldset>
-
- <fieldset id="manInfo" class="fieldset">
- <legend>填写人员信息:</legend>
- <table class="tableStyle" align="center">
- <tr>
- <td align="right" width="150px">单位:</td>
- <td width="250px"><div id="COMPANY_ID" name="COMPANY_ID_880" readOnly="true"/></td>
- <td align="right" width="150px">部门:</td>
- <td width="250px"><div id="ORG_ID" name="ORG_ID_880" readOnly="true"/></td>
- </tr>
- <tr>
- <td align="right">填写人员:</td>
- <td><div id="DRILL_LINKMAN" name="DRILL_LINKMAN_299_SHOW" readOnly="true"/></td>
- <td align="right">填写人员联系方式:</td>
- <td><div id="MOBILE" name="MOBILE_880" readOnly="true"/></td>
- </tr>
- <tr>
- <td align="right">录入时间:</td>
- <td colspan="3"><div id="UPDATEDATE_299" name="UPDATEDATE_299" readOnly="true"/></td>
- </tr>
- </table>
- </fieldset>
-
- </div>
- </body>
- </html>
|