123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455 |
- <%@page contentType="text/html" 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>
- <%@include file="../../../../include.jsp" %>
- <!-- 附件上传 -->
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/style.css" />
- <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/webUploader/upload.js"></script>
- <!-- 附件上传 -->
-
- <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/business/em/response/emergencyResponse/WarningAdjust.js"></script>
- <style type="text/css">
- .class_color{
- background-color: rgb(237, 239, 253);
- }
- .inline_block{
- display: inline-block;
- vertical-align: middle;
- }
- </style>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var is_adjst = "<%=request.getParameter("is_adjst")%>";
- //是否动态页签 true为是动态页签
- var isActivePage = "<%=request.getParameter("isActivePage")%>";
- var alertNum=""; //预警编号
- var firstdiag;
- var dateTitle = "";
- var dateTitleId = "";
- var thing = "";
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var Corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- var taifengTime="";//台风时间
- var meet_plan_id = ""//预案id
- var fabuTime_old = "";//调整之前的发布时间
- var fabuTime_new = "";//调整后新添加的发布时间
- var year;
- $(function(){
- var content = $(".box1").height();
- $(window.document.body).height(content+1500);
- $(parent.document.body).find("#frmright").height($(window.document.body).height());
- if(isActivePage=="true"){
- //如果是动态页签,则隐藏返回按钮
- $("#back").parent().hide();
- }
- var allTime = getDateTime();
- var nowYear = allTime.split("-")[0];
- year = nowYear;
- $("#fbYear").val(nowYear);
- loadEventType();
-
-
- $("#yjbh").live("change",function(){
- getYjNum();
- var node = $("#yjbh").data("selectedNode");
- if(node && node.report_type_id){
- $("#PLAN_TYPE_ID_365").val(node.report_type_id);
- }
- mouse("",1);
- inputEarlyWarningName();
- })
- var defaultOpts={
- // 自动上传。
- auto : true,
- // swf文件路径
- swf : '/nwyj/scripts/webUploader/Uploader.swf',
- // 文件接收服务端。
- server : '/nwyj/Upload',
- // 选择文件的按钮。可选。
- pick : '#picker',
- fileNumLimit: 5,
- fileSizeLimit: 200 * 1024 * 1024, // 200 M
- fileSingleSizeLimit: 50 * 1024 * 1024, // 50 M
- chunked: false,
- chunkSize: 512 * 1024,
- fileTypeLimit :"exe,jsp,asp",
- accept: {
- extensions: 'jpg,png,doc,docx,pdf'
- },
- /*
- formData: {},
- runtimeOrder: 'flash',
- */
- //禁掉全局的拖拽功能。这样不会出现图片拖进页面的时候,把图片打开。
- disableGlobalDnd: true
- };
- if(fd_id.length>0 && is_adjst == 1){//调整
- $(".titleShow").text("响应调整通知单");
- // ********** 下拉框 数据 初始化 **************
- //$("#unitId").initYewuSelect("800","Dept_Id","DEPT_NAME","IS_DEL=0 and DEPT_TYPE='CORP'"); //填报单位编码
- //$("#unitId").attr("selectedValue",deptId);
- //$("#CHECKCK").val(realName);
- $('#WRITE_DEPT_365_SHOW').text(Corp_names);//填报人
- $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
- $("#PLAN_TYPE_ID_365").initCanstSelect('BM_YAXHLB'); //预案类型
- $('#PREV_ER_LEVEL').initCanstSelect('BM_REPONSELEVEL'); //上次响应级别
- $('#fileDiv').newAsyncFileUpload(defaultOpts,"","1");
- $("#EARLY_WARNING_AREA_NAME_365").OrgSel({is_alert:"is_alert",selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
- "Y" : "s",
- "N" : ""
- }});
- $("#is_adjst").val(is_adjst);
-
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : fd_id
- };
-
- $.request.query(url,params,function(data){ //加载数据
- $('#editForm').ajaxWrite({data:data});
- fabuTime_old = data.RELEASE_RELIEVE_DATE_365;
- $("#RELEASE_RELIEVE_DATE_365").val("");
- $("#WETHER_EW_ADJUST").attr("checked","checked"); //是否响应调整 0非响应调整1、是响应
- var alertNum = data.EARLY_WARNING_ID_365;
- $("#PREV_EW_ID").text(data.EARLY_WARNING_ID_365);
- $("#PREV_EW_ID_365").val(data.EARLY_WARNING_ID_365); //上次响应单号
- $("#PREV_ER_LEVEL").attr("selectedValue",data.CURRENT_ER_LEVEL_365);
- $("#PREV_ER_LEVEL_365").val(data.CURRENT_ER_LEVEL_365);
- $('#PREV_ER_LEVEL').render();
- console.log("data=="+JSON.stringify(data));
- taifengTime = data.TYPHOON_DATE_365;
- $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);//响应范围显示
- $("#EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_ID_365);//响应范围ID
- $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);//响应范围NAME
- $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
- //$("#WRITER_365_SHOW").text(realName);
- //$("#WRITER_365").val(realName); //填报人
- $("#WRITER_ID_365").val(realName_ID);
- $('#WRITE_DEPT_365').val(CorpArea);
- $("#RELEASE_UNIT_365").val(CorpArea);
- thing = alertNum.split('-')[0];
- mouse();
- $("#FD_OBJECTID365").val("");
- $("#IS_LAST_ID_365").val(data.FD_OBJECTID365);
- $("#classid").val("365");
-
- var yjNum = data.EARLY_WARNING_ID_365;
- console.log(yjNum);
- yjNum = yjNum.split("-");
- $("#yjbh").setValue("plan11,11");
- $("#is_chuci").val("T");
- $("#fbYear").val(yjNum[2]);
- year = yjNum[2];
- mouse(year);
- $("#yjbh").setValue(data.MEET_EMERGENCIES_PLAN_365);//突发事件类型主键
-
- $("#AGREE_ISSUE_LEADER_ID_365").val("");
- $("#AGREE_ISSUE_LEADER_NAME_365").val("");
-
- });
- }
- $(".IsTF").bind("click",function(){
- var value = $(this).attr('value');
- if(value == 'true'){
- $("#dateTitle").text("台风登陆时间:");
- $("#typhoonDate").show();
- $("#TYPHOON_DATE_365").attr('class','date validate[required]');
- }else{
- $("#typhoonDate").hide();
- $("#TYPHOON_DATE_365").attr('class','date');
- $("#TYPHOON_DATE_365").val('');
- }
- });
-
- $("#CURRENT_ER_LEVEL_365").bind("change",function(){
- //预警级别
- var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }else{
- level = level+"响应"
- }
- if(dateTitle == undefined || dateTitle == '请选择'){
- dateTitle = '';
- }
- inputEarlyWarningName();
- //预警名称
- //$("#EARLY_WARNING_NAME_365").val(thing+level);
- });
-
-
- $("#RELEASE_RELIEVE_DATE_365").on("blur",function(){//用于修改预警编号》》发布时间的改变
- var allTime = $(this).val();
- var nowYear = allTime.split("-")[0];
- mouse(nowYear,2);
- });
-
- });
- //获得当前系统时间
- function getDateTime(){
- var s="";
- var d = allGetServerTime();
- var vYear = d.getFullYear();
- var vMon = d.getMonth() + 1;
- var vDay = d.getDate();
- var h = d.getHours();
- var m = d.getMinutes();
- var se = d.getSeconds();
- s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m)+":"+(se<10 ? "0" +se : se);
- return s;
- }
- //重置方法
- function formReset(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAdjust.jsp?fd_id="+ fd_id+"&is_adjst=1");
-
- }
- //响应编号--鼠标事件(填报,修改,转响应页面)
- function mouse(year){
- var planTypeId = $("#PLAN_TYPE_ID_365").val();
- $("#PLAN_TYPE_ID_368").val(planTypeId);
-
- var params = {
- companyId : CorpArea,
- year : year,
- isAdjust : 'T',
- isAlert:'1',
- plan_type_id : $("#PLAN_TYPE_ID_365").val()
- };
- var url = $.pathname()+ '/ws/response/responseService/getAlertresponse';
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- dataType : 'json',
- data : params,
- success : function(data) {
- $("#COMPANY_ID_368").val(CorpArea);
- $("#YEAR_368").val(year);
- $("#NUM_368").val(data);
-
- data = Number(data);
- var dataJson = {"list":[]};
- var dataJson1 = {"list":[]};
-
- for (var i = 0; i < 10; i++) {
- if(data==0){
- data++;
- }
- if(data<10 && data>=0){
- dataJson1.list.push({"key":"00"+data,"value":"00"+data});
- }else if(data<100 && data>=10){
- dataJson1.list.push({"key":"0"+data,"value":"0"+data});
- }else{
- dataJson1.list.push({"key":data,"value":data});
- }
- data++;
- }
- $("#yj_num").data("data",dataJson1);//<input>显示
- $("#yj_num").render();
- getYjNum();
- }
- });
- }
- /******加载突发事件类型*********/
- function loadEventType(){
-
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/getAllEventType/',
- type : 'post',
- timeout : 60000,
- //data : { sql : AreaSql },
- dataType : 'json',
- async: false,
- success : function(data){
- $("#yjbh").data("data",data);
- $("#yjbh").render();
- getYjNum();
- }
- });
-
- }
- function selectEarlyWarningNum(){
- var early_num = $("#yj_num").attr("relvalue");
- $("#NUM_368").val(early_num);
- getYjNum();
- }
- /*******自动输入预警/响应名称*************/
- function inputEarlyWarningName(){
- var yjbh = $("#yjbh").attr("reltext");
- var jb = $("#CURRENT_ER_LEVEL_365").attr("reltext");
- yjbh = !yjbh?"":yjbh;
- jb = !jb?"":jb+"响应";
- $("#EARLY_WARNING_NAME_365").val(yjbh+jb);
- }
- function getYjNum(){
- var event_type_name = $("#yjbh").attr("relText");
- $("#EARLY_WARNING_ID_365").val(event_type_name+"-"+$("#is_chuci").val()+"-"+$("#fbYear").val()+"-"+$("#yj_num").attr("relvalue"))
- $("#MEET_EMERGENCIES_PLAN_365").val($("#yjbh").attr("relValue"));
- }
- </script>
- </head>
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8; " width="1000px" >
- <!-- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow"></font></div> -->
- <!-- 保存和重置 -->
- <br/><div style="float:right">
- <input type="button" id="is_Send" value="发送"/>
- <input type="button" id="is_Issue" value="发布" title="上传盖章后的通知单附件,可以不经发送、审核直接发布"/>
- <input value="保存" type="button" id="save"/>
- <input value="重置" onclick="formReset();" id="chongzhi" type="button"/>
- </div><br/>
- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="" class="titleShow"></font></div>
- <!-- 调整页面的填报人 填报单位 -->
- <table align="center" width="960px" style="padding-left: 10px;padding-right: 10px;margin:auto">
- <tr>
- <td align="left">
- <div style="float:left"><span id="shenwei">发布单位</span>:</div>
- <div style="float:left">
- <label id="WRITE_DEPT_365_SHOW"></label>
- <!-- <label id="RELEASE_UNIT_365"></label> -->
- <!-- <select editable=false id="unitId" name="unitId" prompt="请选择"></select> -->
- </div><!-- <label id="unitId"></label> -->
- </td>
- <td align="right" style="padding-right: 60px;"><span id="shenhe">签发人</span>:<label id="WRITER_365_SHOW"></label> </td>
- </tr>
- </table>
- <form id="editForm" method="post">
- <input type="hidden" id="is_adjst"/>
- <input name="classid" value="365" id="classid" type="hidden"/>
- <input name="CHECK_STATUS_365" id="CHECK_STATUS_365" type="hidden"/>
- <input name="IS_SEND_365" id="IS_SEND_365" value="0" type="hidden"/>
- <input name="IS_LAST_ID_365" id="IS_LAST_ID_365" type="hidden"/>
- <input name="RELEASE_UNIT_365" id="RELEASE_UNIT_365" type="hidden"/>
- <input id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" type="hidden"/>
- <input id="WETHER_EW_ADJUST_365" name="WETHER_EW_ADJUST_365" type="hidden"/>
- <input id="WRITER_365" name="WRITER_365" type="hidden"/>
- <input id="WRITER_ID_365" name="WRITER_ID_365" type="hidden"/>
- <input id="WRITE_DEPT_365" name="WRITE_DEPT_365" type="hidden"/>
- <input id="WRITE_TIME_365" name="WRITE_TIME_365" type="hidden"/>
- <input id="PREV_ER_LEVEL_365" name="PREV_ER_LEVEL_365" type="hidden"/>
- <input id="PREV_EW_ID_365" name="PREV_EW_ID_365" type="hidden"/>
- <input type="hidden" name="FD_OBJECTID365" id="FD_OBJECTID365" value=""/>
- <input type="hidden" name="IS_ALERT_365" id="IS_ALERT_365" value="1"/>
- <input id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" type="hidden"/>
- <input id="TYPHOON_DATE_365" name="TYPHOON_DATE_365" type="hidden"/>
- <input type="hidden" id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID_365" /><!-- 预警响应编号 -->
- <input type="hidden" name="EVENT_ID_365" id="EVENT_ID_365"/>
- <input type="hidden" name="MEET_EMERGENCIES_PLAN_365" id="MEET_EMERGENCIES_PLAN_365"/>
- <input type="hidden" id="AGREE_ISSUE_LEADER_ID_365" name="AGREE_ISSUE_LEADER_ID_365"/>
- <input type="hidden" id="AGREE_ISSUE_LEADER_NAME_365" name="AGREE_ISSUE_LEADER_NAME_365"/>
- <input type="hidden" name="PLAN_TYPE_ID_365" id="PLAN_TYPE_ID_365"/>
- <!-- 正文表格 -->
- <table width="960px" class="tableStyle" align="center">
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>响应名称:</td>
- <td colspan="2"><input type="text" class="validate[required,length[0,50],custom[illegalLetter]]" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" style="width: 750px;"/></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>发布时间:</td>
- <td colspan="2"><input style="width: 750px" readonly="readonly" type="text" id="RELEASE_RELIEVE_DATE_365"name="RELEASE_RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm"/></td>
- </tr>
-
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>响应编号:</td>
- <td colspan="2">
- <!-- <input type="text" class="validate[required]" name="yj_num" id="yj_num" style="width: 750px;"/> -->
- <div class='inline_block'><select selWidth="288" editable=false class="validate[required]" id='yjbh' prompt="请选择" selAlign="" ></select></div>
- <div class='inline_block'><input type="text" class="validate[required,custom[illegalLetter]]" readonly="readonly" maxLength="1" id='is_chuci' style="width: 100px;height:30px;"/></div>
- <div class='inline_block'><input type="text" class="validate[required,custom[illegalLetter]]" readonly="readonly" maxLength="4" id='fbYear' style="width: 100px;height:30px;"/></div>
- <div class='inline_block'><select selWidth="256" editable=false class="validate[required]" id="yj_num" selAlign="" onchange="selectEarlyWarningNum()"></select></div>
- </td>
- <tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>响应范围:</td>
- <td colspan="2">
- <div style="width: 826px;" class="validate[required]" allclickset="1" id="EARLY_WARNING_AREA_NAME_365" name="EARLY_WARNING_AREA_NAME_365" readonly="readonly"></div>
- </td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">响应性质:</td>
- <td width="420px"><input type="checkbox" id="WARNING_PROPERTY" disabled="disabled"/>初次发布</td>
- <td width="420px">响应调整:<input type="checkbox" disabled="disabled" id="WETHER_EW_ADJUST"/>响应调整<br/>上次响应单号:(<label id="PREV_EW_ID"></label>)</td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>响应级别:</td>
- <td width="380px"><div style="float:left"> 本次:</div><div style="float:left"><select name="CURRENT_ER_LEVEL_365" class="validate[required]" id="CURRENT_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="300"></select></div></td>
- <td><div style="float:left"> 上次:</div><div style="float:left"><select name="PREV_ER_LEVEL" disabled="disabled" id="PREV_ER_LEVEL" selAlign="right" prompt="请选择" selWidth="278"></select></div></td>
- </tr>
- <!-- <tr id="isTFDate" style="display: none;">
- <td align="right" width="120px" class="class_color"><span class="star">*</span><span>是否台风:</span></td>
- <td colspan="2"> <input type="radio" class='IsTF' checked="checked" name="isTF" value="true"/>是 <input type="radio" class='IsTF' name="isTF" value="false"/>否</td>
- </tr>
- <tr id="typhoonDate" style="display: none;">
- <td align="right" width="120px" class="class_color"><span class="star">*</span><span id="dateTitle">台风登陆时间:</span></td>
- <td colspan="2"><input style="width: 750px" type="text" id="TYPHOON_DATE_365" name="TYPHOON_DATE_365" class="date" dateFmt="yyyy-MM-dd HH:mm:ss"/></td>
- </tr> -->
- <tr>
- <td align="right" width="120px" class="class_color">响应概要:</td>
- <td colspan="2"><textarea maxNum="2000" style="width: 750px;height: 270px;" name="EW_SUMMARY_365" id="EW_SUMMARY_365"></textarea></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">预防措施及<br>工作要求:</td>
- <td colspan="2"><textarea maxNum="2000" style="width: 750px;height: 270px;" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365"></textarea></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">备注:</td>
- <td colspan="2"><textarea maxNum="2000" name="REMARK_365" id="REMARK_365" style="width: 750px;height: 270px;"></textarea></td>
- </tr>
- </table>
- <fieldset style=" border-color:#999999; border-top-color: rgb(200,200,200); border-right-color: rgb(200,200,200); border-bottom-color: rgb(200,200,200); border-left-color: rgb(200,200,200); width: 960px" align="center" >
- <legend width="960px" >附件信息:</legend>
- <table width="960px" class="tableStyle" align="center">
- <tr>
- <td width="110px" class="class_color" align="right"><span>纸质扫描件:</span></td>
- <td colspan="2"><font color=red>只有领导审核、签发的word、pdf、图片(png/jpg)附件才可以上传直接发布</font></td>
- </tr>
- <tr>
- <td width="110px" class="class_color" align="right"><span align="right" class="star">*</span>上传附件:</td>
- <td width= "750px" colspan="3"><div style="width:750px" id="fileDiv" name="fileDiv" ></div></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <form id="alertResponseNumForm" method="post">
- <input name="classid" value="368" type="hidden"/>
- <input type="hidden" id="COMPANY_ID_368" name="COMPANY_ID_368"/>
- <input type="hidden" id="YEAR_368" name="YEAR_368"/>
- <input type="hidden" id="NUM_368" name="NUM_368"/>
- <input type="hidden" id="IS_ADJUST_368" name="IS_ADJUST_368" value="T"/>
- <input type="hidden" id="IS_ALERT_368" name="IS_ALERT_368" value="1"/>
- <input type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368" value="-1"/>
-
- </form>
- </div>
- </body>
- </html>
|