123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <%@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" %>
- <!-- 附件上传 -->
- <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/alert/warning/WarningRelieve.js"></script>
- <style type="text/css">
- .class_color{
- background-color: rgb(237, 239, 253);
- }
- </style>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var relieve = "<%=request.getParameter("relieve")%>";
- // alert(fd_id+"******"+relieve)
- var isUpdate = "<%=request.getParameter("isUpdate")%>";
- //取得用户真实名字
- 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();
- //页面初始化
- $(function(){
- $("#EVENT_ID_365").initYewuSelect("363","FD_OBJECTID","EVENT_NAME"," IS_DEL='0' order by updatedate desc"); //事件
- 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
- };
- $("#EARLY_WARNING_AREA_NAME_365").OrgSel({selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
- "Y" : "s",
- "N" : ""
- }});
-
- //修改表单
- if(fd_id.length>0){
- if(isUpdate != null && isUpdate == 1){
- $("#titleShow").text("新增预警解除通知单");
- $('#fileDiv').newAsyncFileUpload(defaultOpts,'',"1");
- }else{
- $("#titleShow").text("修改预警解除通知单");
- $('#fileDiv').newAsyncFileUpload(defaultOpts,fd_id,"1");
- }
-
- // ********** 下拉框 数据 初始化 **************
- //$("#unitId").initYewuSelect("800","Dept_Id","DEPT_NAME","IS_DEL=0 and DEPT_TYPE='CORP'"); //填报单位
- //$("#unitId").attr("selectedValue",deptId);
- //$("#CHECKCK").val(realName);
- //$("#unitId").attr("selectedValue",deptId);
- //$('#fileDiv').getUploadFileContent();
- // $("#PLAN_TYPE_ID_365").initCanstSelect('BM_BYSUNESS_TYPE'); //预案类型
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- $("#PREV_EW_ID_365").val(data.PREV_EW_ID_365);
- if(isUpdate != null && isUpdate == 1){
- $("#EW_SUMMARY_365").val("");
- }
- $("#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);
- $("#CURRENT_EW_LEVEL_365").val(data.CURRENT_EW_LEVEL_365);
-
- $('#WRITE_DEPT_365_SHOW').text(Corp_names);
- $("#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);
- if(data.IS_LAST_ID_365==null||""==data.IS_LAST_ID_365){//如果IS_LAST_ID_365为空即为初次发布的解除,把初次发布那条记录的ID赋值给当前解除通知单的IS_LAST_ID_365
- // alert("新增")
- $("#REMARK_365").val(""); //备注
- $("#MEASURE_AND_REQUEST_365").val(""); //工作要求
- $("#IS_LAST_ID_365").val(relieve);
- }else{//IS_LAST_ID_365的值不为空
- // alert("修改")
- $("#IS_LAST_ID_365").val(data.IS_LAST_ID_365);
- $("#REMARK_365").val(data.REMARK_365); //备注
- $("#MEASURE_AND_REQUEST_365").val(data.MEASURE_AND_REQUEST_365); //工作要求
- if(data.EARLY_WARNING_PROPERTY_365 == '50'){//如果IS_LAST_ID_365的值不为空,并且预警性质为调整,那么需要重新给IS_LAST_ID_365赋值
- $("#IS_LAST_ID_365").val(fd_id);
- $("#REMARK_365").val(""); //备注
- $("#MEASURE_AND_REQUEST_365").val(""); //工作要求
- }
- }
- $("#PLAN_TYPE_ID_365").val(data.PLAN_TYPE_ID_365);
- /* is_last_id=data.IS_LAST_ID_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/alert/warning/WarningRelieve.jsp?fd_id="+ fd_id);
- }
- </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;" id="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 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>
- <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>
- <!-- <select editable=false id="unitId" name="unitId" prompt="请选择"></select> -->
- </div>
- </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" name="FD_OBJECTID365" id="FD_OBJECTID365" value=""/>
- <input name="classid" id="classid" value="365" type="hidden"/>
- <input name="PREV_EW_ID_365" id="PREV_EW_ID_365" value="" 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="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 type="hidden" name="IS_ALERT_365" id="IS_ALERT_365" value="0"/>
- <input id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" type="hidden"/>
- <input id="CURRENT_EW_LEVEL_365" name="CURRENT_EW_LEVEL_365" type="hidden"/>
- <input id="PLAN_TYPE_ID_365" name="PLAN_TYPE_ID_365" type="hidden">
- <table width="960px" class="tableStyle" align="center">
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>事件名称:</td>
- <td><select editable=false name="EVENT_ID_365" class="validate[required]" id="EVENT_ID_365" selAlign="" prompt="请选择" selWidth="756"></select></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,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 type="text" class="validate[required]" name="EARLY_WARNING_ID_365" id="EARLY_WARNING_ID_365" style="width: 750px;"/></td>
- </tr>
- <tr style="display: none;">
- <td align="right" width="120px" class="class_color"><span class="star">*</span>发布时间:</td>
- <td colspan="2"><input style="width: 750px" 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><input style="width: 750px" type="text" id="RELIEVE_DATE_365"name="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"><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"><span class="star">*</span>解除原因:</td>
- <td colspan="2"><textarea style="width: 750px;height: 270px;" name="EW_SUMMARY_365" id="EW_SUMMARY_365" maxNum="2000" class="validate[required]"></textarea></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">工作要求:</td>
- <td colspan="2"><textarea style="width: 750px;height: 270px;" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365" maxNum="2000"></textarea></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">备注:</td>
- <td colspan="2"><textarea name="REMARK_365" id="REMARK_365" style="width: 750px;height: 270px;" maxNum="2000"></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>
- </div>
- </body>
- </html>
|