123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <%@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" %>
- <script type="text/javascript">
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/response/report/reportInput/ReportInput.jsp";
- }
- //保存应急预警报告
- function updateAlertReport(){
- var params = {classid : "321"};
- //操作状态为4 代表回退
- $("#OPR_STATE_321").val("4");
- $("#IS_RELEASE_321").val("0");
- var formValue = $('#myFormId').serialize();
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/update/',
- type : 'post',
- timeout : 15000,
- data : formValue,
- dataType : 'json',
- success : function(data){
- goBack();
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
- }
- var fd_objectid="<%=request.getParameter("fd_id")%>";
- $(function(){
- $("#titleShow").text("回退应急工作专报");
-
- $("#goback").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- $("#goback").bind("click",goBack);
- //预警类别
- //$('#REPORT_TYPE_321').initCanstSelect('BM_ReportInputState');
- $("#fileDiv").newAsyncFileUpload("",fd_objectid,0);//附件
- if(fd_objectid.length>0){
- var params = {classid : "321",objectID : "<%=request.getParameter("fd_id")%>"};
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- success : function(data){
- $('#myFormId').ajaxWrite({data:data});
- $("#myFormId input[name='classid']").val("321");
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- });
- </script>
- </head>
- <body class="bd" align="center" >
- <div id="formContent" class="d_ground">
- <div class="title" align="center"><a href="javascript:;"><img class="back" id='goback' title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" ></img></a><font class="title_font" id="titleShow"></font></div>
- <form id="myFormId" >
- <input name="classid" value="321" type="hidden"/>
- <input id="FD_OBJECTID321" name="FD_OBJECTID321" type="hidden"/>
- <input id="OPR_STATE_321" name="OPR_STATE_321" type="hidden"/>
- <input id="IS_RELEASE_321" name="IS_RELEASE_321" type="hidden"/>
- <div class="button_jl">
- <input value="回退" type="button" onclick="updateAlertReport()"/>
- </div><br />
- <fieldset class="fieldset">
- <legend class="legend">基本信息:</legend>
- <table class="add_table_style" >
- <tr>
- <td width="20%" align="right">应急预警名称:</td>
- <td width="80%" ><input disabled="disabled" name="EARLY_ID_321" id="EARLY_WARNING_ID_321" type="text" value="" maxlength="" style="width:90%"></td>
- </tr>
- <tr>
- <td align="right">报告名称:</td>
- <td ><input disabled="disabled" name="REPORT_NAME_321" id="REPORT_NAME_321" type="text" value="" maxlength="" style="width:90%"></td>
- </tr>
- <tr>
- <td align="right">回退说明:</td>
- <td ><textarea rows="2" name="RETURN_EXPLAIN_321" maxNum="100" style="width: 90%"></textarea></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <fieldset class="fieldset">
- <legend class="legend">附件信息:</legend>
- <table class="add_table_style file_table" >
- <tr>
- <td width="120px" id="maingrid" align="right">附件:</td>
- <td width= "680px" colspan="3"><div style="width:100%" id="fileDiv" name="fileDiv" ></div></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </body>
|