123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <%@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="../../../../include1.jsp" %>
- <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
- <!-- 附件上传 -->
- <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/em/response/emergencyResponse/RelieveFlow.js "></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var is_edit = "<%=request.getParameter("is_edit")%>";
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //部门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();
- $(function(){
- $('#fileDiv').newAsyncFileUpload("",fd_id,"1");
- $("#EARLY_WARNING_AREA_NAME_365").OrgSel({is_alert:"is_alert",selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
- "Y" : "s",
- "N" : ""
- }});
- if(fd_id.length>0){
- $("#titleShow").text("修改响应解除通知单");
- // ********** 下拉框 数据 初始化 **************
- $("#WRITE_DEPT_365").initYewuSelect("800","Dept_Id","DEPT_NAME","IS_DEL=0 and DEPT_TYPE='CORP',orgWidth:'95%'"); //填报单位
-
- $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- $("#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);
- $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);
- });
- }
- });
-
- //获得当前系统时间
- 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();
- s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m);
- return s;
- }
- function formReset(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/RelieveFlow.jsp?fd_id="+ fd_id+"&is_edit=0");
-
- }
- function but() {
-
- //top.Dialog.open({URL:"/nwyj/page/business/em/alert/warning/Warningunit.jsp",Title:"选择部门",Width:400,Height:550});
- var ifmHeight = $(parent.document.body).find("#frmright").height();
- firstdiag = new top.Dialog();
- firstdiag.Title = "选择部门";
- firstdiag.Width=400;
- firstdiag.Height=550;
- firstdiag.URL = "/nwyj/page/business/em/alert/warning/Warningunit.jsp?ifmHeight="+ifmHeight;
- firstdiag.ShowButtonRow=false;
- firstdiag.show();
- }
-
- //响应编号--鼠标事件
- function mouse(){
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //获取响应名称的方法
- var thing = $("#EARLY_WARNING_NAME_365").val();
- //获取系统年份
- var year = allGetServerTime().getFullYear();
- var params = {
- deptId : deptId,
- is_alert : 1,
- wether_ew_adjust : 0,
- };
- var url = $.pathname()+ '/ws/response/responseService/getCount';
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- dataType : 'json',
- data : params,
- success : function(data) {
- alertNum = thing + "-" + "F" + "-" + year + "-" + (data+1);
- $("#EARLY_WARNING_ID_365").val(alertNum);//<input>显示
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="box1" id="formContent" style="overflow:false;height:100%;border: 1px solid #E4E4E4;background: #F8F8F8;">
- <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;" id="titleShow"></font></div>
- <!-- 保存和重置 -->
- <br/>
- <div style="float:right">
- <input type="button" id="is_Send" value="发送"/>
- <input type="button" id="is_Issue" value="发布"/>
- <input value="保存" type="button" id="save"/>
- <input id="chongzhi" value="重置" onclick="formReset();" type="button"/> <!-- 新增重置 -->
- </div><br />
- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red">响应解除通知单</font></div>
- <form id="editForm" method="post" enctype="multipart/form-data">
- <input type="hidden" name="FD_OBJECTID365" id="FD_OBJECTID365" />
- <input id="classid" name="classid" value="365" type="hidden"/>
- <input name="CHECK_STATUS_365" id="CHECK_STATUS_365" type="hidden"/>
- <input name="IS_SEND_365" id="IS_SEND_365" type="hidden"/>
- <input name="IS_LAST_ID_365" id="IS_LAST_ID_365" type="hidden"/>
- <input id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" type="hidden"/>
- <input name="RELEASE_UNIT_365" id="RELEASE_UNIT_365" type="hidden"/>
- <input id="WRITE_TIME_365" name="WRITE_TIME_365" type="hidden"/>
- <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"/>
- <!-- 填报单位和填报人 -->
- <table width="85%" style="padding-left: 10px;padding-right: 10px;">
- <tr>
- <td align="left">
- <div style="float:left"> 填报单位:</div>
- <div style="float:left">
- <!-- <label id="RELEASE_UNIT_365"></label> -->
- <select editable=false id="WRITE_DEPT_365" name="WRITE_DEPT_365" prompt="请选择"></select>
- </div><!-- <label id="unitId"></label> -->
- </td>
- <td align="right">填报人:<input id="WRITER_365" name="WRITER_365" type="text"/> </td>
- </tr>
- </table>
- <table class="tableStyle" style="width: 85%;" align="center">
- <tr>
- <td width="20%" align="right"><span class="star">*</span>响应名称:</td>
- <td width="80%" colspan="2"><input onblur="mouse()" type="text" class="validate[required,length[0,33],custom[illegalLetter]]" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" style="width: 97%;"/></td>
- </tr>
- <tr>
- <td width="20%" align="right"><span class="star">*</span>发布时间:</td>
- <td width="80%" colspan="2"><input style="width: 97%" 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 width="20%" align="right"><span class="star">*</span>响应编号:</td>
- <td width="80%" colspan="2"><input type="text" class="validate[required]" name="EARLY_WARNING_ID_365" id="EARLY_WARNING_ID_365" style="width: 97%;"/></td>
- </tr>
- <tr>
- <td width="20%" align="right"><span class="star">*</span>解除时间:</td>
- <td width="80%"><input style="width: 97%" type="text" id="RELIEVE_DATE_365"name="RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm"/></td>
- </tr>
- <tr>
- <td width="20%" align="right"><span class="star">*</span>解除范围:</td>
- <td width="80%" colspan="2"><div allclickset="1" id="EARLY_WARNING_AREA_NAME_365"></div></td>
- </tr>
- <tr>
- <td width="20%" align="right"><span class="star">*</span>响应级别:</td>
- <td width="80%" colspan="2"><div style="float:left"><select name="CURRENT_ER_LEVEL_365" class="validate[required]" id="CURRENT_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="97%"></select></div></td>
- </tr>
- <tr>
- <td width="20%" align="right"><span class="star">*</span>解除原因:</td>
- <td width="80%"><textarea style="width: 97%;height: 270px;" maxNum="800" name="EW_SUMMARY_365" id="EW_SUMMARY_365" class="validate[required,length[0,800]]"></textarea></td>
- </tr>
- <tr>
- <td width="20%" align="right">工作要求:</td>
- <td width="80%"><textarea style="width: 97%;height: 270px;" maxNum="800" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365" class="validate[length[0,800]]"></textarea></td>
- </tr>
- <tr>
- <td width="20%" align="right">备注:</td>
- <td width="80%"><textarea name="REMARK_365" maxNum="800" id="REMARK_365" style="width: 97%;height: 270px;" class="validate[length[0,800]]"></textarea></td>
- </tr>
- </table>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>附件信息:</legend>
- <table style="width: 85%;" align="center" border="0">
- <tr><td colspan="3"><div id="fileDiv"></div> </td></tr>
- </table>
- </fieldset>
- </form>
- </div>
- </body>
- </html>
|