123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <%@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/alert/report/reportInputPlan/ReportInputPlan.jsp";
- }
- //获取url中的参数
- function getUrlParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
- var r = window.location.search.substr(1).match(reg); //匹配目标参数
- if (r != null)
- return unescape(r[2]);
- return null; //返回参数值
- }
-
- var fd_objectid = getUrlParam('fd_id');
-
- function release(fd_id){
- var params = {classid : "320",FD_OBJECTID320:fd_id,IS_RELEASE_320:"1"};
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/update/',
- type : 'post',
- data : params,
- async:false,
- dataType : 'json',
- success : function(data){
- top.Dialog.alert("发布成功!");
- //获取iframe中的元素值
- var iframe = parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/alert/report/reportInputPlan/ReportInputPlan.jsp";
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- $(function() {
-
- $("#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);
- //预警类别
- if (fd_objectid.length > 0) {
- $("#release").live("click",function(){
- release(fd_objectid);
- });
- var params = {
- classid : "320",
- objectID : fd_objectid
- };
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- success : function(data) {
- if(data.IS_RELEASE_320 ==0 ){
- $("#release").parent().show();
- }
- /* $('#myFormId').ajaxWrite({
- data : data
- }); */
- for(var index in data){
- $("#"+index).html(data[index]);
- }
- var report_type = "";
- if(data.REPORT_TYPE_320=="1"){
- report_type = "预警行动信息报告"
- }else if(data.REPORT_TYPE_320=="2"){
- report_type = "预警总结报告"
- }else{
- report_type = "预警行动信息报告,预警总结报告"
- }
- $("#REPORT_TYPE_320_SHOW").html(report_type);
- var circletime = data.CIRCLE_TIME_320;
- var temporarytime = data.TEMPORARY_TIME_320;
- createTd(circletime,temporarytime);
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- });
-
- function createTd(circletime,temporarytime){
- //判断是周期性还是临时性
- var flag = $("#WRITE_DATE_TYPE_320").text();
-
- if(flag=="周期性"){
- $("#tbsjb").append('<td width="10%" align="right">每日:</td>'+
- '<td width="30%" ><div style="word-wrap:break-word; word-break:break-all;display:block;width:97%;" name="CIRCLE_TIME_320" id="CIRCLE_TIME_320">'+circletime+'</div></td>');
- }else{
- $("#tbsjb").append('<td width="10%" align="right">时间:</td>'+
- '<td width="30%" ><div style="word-wrap:break-word; word-break:break-all;display:block;width:97%;" name="TEMPORARY_TIME_320" id="TEMPORARY_TIME_320">'+temporarytime+'</div></td>');
- }
- setHight();
- }
-
- </script>
- <style type="text/css">
- input{
- height:30px;
- line-height: 30px;
- background: #eee none;
- border:1px solid #ccc;
- }
- </style>
- </head>
- <body class="bd" align="center" >
- <div id="formContent" class="d_ground">
- <div class="title" align="center"><a href="javascript:;"><img id='goback' class="back" 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="320" type="hidden" />
- <!-- 保存和重置 -->
- <div class="button_jl" style="display: none;">
- <input value="发布" type="button"id="release" />
- </div><br />
-
- <fieldset class="fieldset">
- <legend class="legend">基本信息:</legend>
- <table class="add_table_style view_table" >
- <tr>
- <td width="20%" align="right">预警编号:</td>
- <td width="30%"><div style="width: 97%" name="EARLY_WARNING_ID_320" id="EARLY_WARNING_ID_320"></div></td>
- <td width="20%" align="right">填报要求名称:</td>
- <td width="30%"><div style="width: 97%" name="PROGRAMME_NAME_320" id="PROGRAMME_NAME_320"></div></td>
- </tr>
- <tr>
- <td width="20%" align="right">报告类型:</td>
- <td width="30%" colspan="3"><div style="width: 97%" name="REPORT_TYPE_320" id="REPORT_TYPE_320_SHOW"></div></td>
- </tr>
- <tr>
- <td width="20%" align="right">填报单位:</td>
- <td width="30%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' name="WRITE_DEPT_NAME_320" id="WRITE_DEPT_NAME_320"></div></td>
- </tr>
- <tr>
- <td width="20%" align="right">起始日期:</td>
- <td width="30%"><div style="width: 97%" name="START_TIME_320" id="START_TIME_320"></div></td>
- <td width="20%" align="right">截止日期:</td>
- <td width="30%"><div style="width: 97%" name="EXPIRATION_DATE_320" id="EXPIRATION_DATE_320"></div></td>
- </tr>
- <tr id="tbsjb">
- <td width="20%" align="right">填报时间表:</td>
- <td width="30%"><div style="width: 97%" name="WRITE_DATE_TYPE_320" id="WRITE_DATE_TYPE_320"></div></td>
- </tr>
- <tr>
- <td width="20%" align="right">状态:</td>
- <td width="30%" colspan="3"><div name="IS_RELEASE_320_SHOW" id="IS_RELEASE_320_SHOW"></div></td>
- </tr>
- </table>
- </fieldset>
-
- <fieldset class="fileTable_border" >
- <legend>填写人员信息:</legend>
- <table class="tableStyle" align="center" id="fillForm">
- <tr>
- <td width="114px" align="right" >单位:</td>
- <td width="35%"><div name="INPUT_DEPT_320_SHOW" id="INPUT_DEPT_320_SHOW" /></td>
- <td width="114px" align="right" >录入时间:</td>
- <td><div name="WRITE_TIME_320" id="WRITE_TIME_320" /></td>
- </tr>
- <tr>
- <td width="114px" align="right" >填写人员:</td>
- <td width="35%"><div name="WRITER_320" id="WRITER_320" /></td>
- <td></td><td></td>
- </tr>
- </table>
- </fieldset>
-
- </form>
- </div>
- </body>
- </html>
|