123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <%@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="/page/include1.jsp" %>
- <!-- 附件异步上传start -->
- <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>
- <!-- 附件异步上传end -->
- <script type="text/javascript" src="<%=path%>/scripts/business/em/monitor/responseReceive/GovResponseReceiveAddEdit.js"></script>
- <link type="text/css" href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet"/>
- <script type="text/javascript">
- var fd_id="<%=request.getParameter("fd_id")%>";
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- // 部门id
- var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var pageType = 0;//0-新增页面;1-调整页面;2-解除页面
-
- function getNowFormatDate() {
-
- var date = allGetServerTime();
- var seperator1 = "-";
- var seperator2 = ":";
- var year = date.getFullYear();
- var month = date.getMonth() + 1;
- var strDate = date.getDate();
- var hour=date.getHours();
- var minu=date.getMinutes();
- var sec=date.getSeconds();
- if (month >= 1 && month <= 9) {
- month = "0" + month;
- }
- if (strDate >= 0 && strDate <= 9) {
- strDate = "0" + strDate;
- }
- if(hour>=0 && hour<=9){
- hour="0"+hour;
- }
- if(minu>=0 && minu<=9){
- minu="0"+minu;
- }
- if(sec>=0 && sec<=9){
- sec="0"+sec;
- }
- var currentdate = year + seperator1 + month + seperator1 + strDate + " " + hour + seperator2 + minu;
-
- return currentdate;
- }
- $(function(){
-
- $("#back").hover(function() {
- $(this).attr("src", "/nwyj/images/temp/back_hover.png");
- }, function() {
- $(this).attr("src", "/nwyj/images/temp/back.png");
- });
- $("#RESPONSE_STATUS_370").bind("change",function(){
- var RESPONSE_STATUS_370 = $(this).attr("relvalue");
- if(RESPONSE_STATUS_370=="34"){
- $(".inRelieve").hide();
- $(".isRelieve").show();
- $(".isRelieve_input").addClass("validate[required]");
- $(".inRelieve_input").removeClass("validate[required]");
- }else{
- $(".inRelieve").show();
- $(".isRelieve").hide();
- $(".inRelieve_input").addClass("validate[required]");
- $(".isRelieve_input").removeClass("validate[required]");
- }
- })
- //初始化下拉框
- $('#RESPONSE_STATUS_370').initCanstSelect('BM_PublishState');
- $('#RESPONSE_NAME_370').initCanstSelect('BM_EMC_WarningName');
- $('#RESPONSE_LEVEL_370').initCanstSelect('BM_REPONSELEVEL');
- $('#EARLY_WARNING_PROPERTY_370').val("49");
- /******************录入人信息start********************/
- /* 页面展示用 */
- //取登录用户信息
- //登录用户姓名 要调整,还是要用id
- var userName = top.com.sinosoft.lz.system.user.LoginInfo
- .getReal_name();
- $("#TYPEIN_PEOPLE").html(userName);
- //用户手机号
- var getMobile = top.com.sinosoft.lz.system.user.LoginInfo.getMobile();
- if (getMobile == undefined) {
- $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无手机号码");
- $("#TYPEIN_PEOPLE_PHONE_NUM_370").val("");
- } else {
- $("#TYPEIN_PEOPLE_PHONE_NUM").html(getMobile);
- $("#TYPEIN_PEOPLE_PHONE_NUM_370").val(getMobile);
- }
- var getCorp_Id = top.com.sinosoft.lz.system.user.LoginInfo
- .getCorp_ids();
- $("#WRITE_UNIT_370").val(getCorp_Id);
- //用户所属单位
- var getCorp_names = top.com.sinosoft.lz.system.user.LoginInfo
- .getCorp_names();
- $("#UNITE").html(getCorp_names);
- //用户所属部门
- var getDeptnames = top.com.sinosoft.lz.system.user.LoginInfo
- .getDeptnames();
- $("#DEPT").html(getDeptnames);
- /*****************录入人信息end*********************/
- //修改表单
- if (fd_id.length > 0) {
- $(".titleShow").text("应急响应信息接收修改");
- //getFileList(fd_id);
- $('#fileDiv').newAsyncFileUpload("", fd_id, "1");
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '370',
- objectID : fd_id
- };
- $.request.query(url, params, function(data) {
- $('#editForm').ajaxWrite({
- data : data
- });
- $('#editForm input[name="classid"]').val('370');
-
- if(data.RESPONSE_STATUS_370=="34"){
- $(".isRelieve").show();
- $(".inRelieve").hide();
- }else{
- $(".inRelieve").show();
- $(".isRelieve").hide();
- }
- $('#EARLY_WARNING_PROPERTY_370').val("49");
- var RESPONSE_STATUS_370 = data.EARLY_WARNING_STATUS_369;
- if(RESPONSE_STATUS_370=="34"){
- $(".inRelieve_input").removeClass("validate[required]");
- $(".isRelieve_input").addClass("validate[required]");
- $(".isRelieve_input").render();
- }else{
- $(".isRelieve_input").removeClass("validate[required]");
- $(".inRelieve_input").addClass("validate[required]");
- $(".inRelieve_input").render();
- }
- $("#EVENT_ID_select").setValue(data.EVENT_ID_370);
- });
- } else {//新增
- $(".titleShow").text("应急响应信息接收新增");
- //获取系统当前时间
- var sysDate = getNowFormatDate();
- $('#RELEASE_DATE_370').val(sysDate);//默认显示当前时间
- $('#WRITE_DEPT_370').val(dpids);//填报部门
- $('#WRITER_370').val(realName);//填报人
- $('#WRITER_UNIT_NAME_370').val(getCorp_names);
- $('#RELEASE_DATE_370').val(sysDate);//发布时间
- $('#WRITE_TIME_370').val(sysDate);//填报时间
- $('#RESPONSE_STATUS_370').attr('selectedValue', "33");//默认选中发布状态
- $('#fileDiv').newAsyncFileUpload("", "", "1");
- }
- $("#EVENT_ID_select").initYewuSelect("363","FD_OBJECTID","EVENT_NAME"," EVENT_STATE='0' and IS_DEL='0' order by updatedate desc");
- $("#EVENT_ID_select").on("change",function(){
- var eventId = $(this).attr("relValue");
- var eventName = $(this).attr("relText");
- $("#EVENT_ID_370").val(eventId);
- $("#EVENT_NAME_370").val(eventName);
- });
- });
-
-
- </script>
- </head>
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
- <div class="box1" id="formContent" width="1000px" >
- <div class="titlehead">
- <div class="go_img1">
- <a href="javascript:;">
- <img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png"></img></a>
- </div>
- <font class="titleShow titleMsg"></font>
- </div>
- <div id="formContent">
- <form id="editForm" method="post" enctype="multipart/form-data">
- <input type="hidden" name="classid" value="370"/>
- <input type="hidden" name="FD_OBJECTID370" value=""/>
- <input id="RESPONSE_AREA_NAME_370" name="RESPONSE_AREA_NAME_370" type="hidden"/>
- <input type="hidden" name="EARLY_WARNING_PROPERTY_370" id="EARLY_WARNING_PROPERTY_370" value=""/>
- <input type="hidden" name="WRITER_UNIT_NAME_370" id="WRITER_UNIT_NAME_370" value=""/>
- <input type="hidden" name="WRITE_DEPT_370" id="WRITE_DEPT_370" value=""/>
- <input type="hidden" name="WRITER_370" id="WRITER_370" value=""/>
- <input type="hidden" name="WRITE_TIME_370" id="WRITE_TIME_370" value=""/>
- <input type="hidden" name="TYPEIN_PEOPLE_PHONE_NUM_370" id="TYPEIN_PEOPLE_PHONE_NUM_370" value=""/>
- <input type="hidden" name="EVENT_ID_370" id="EVENT_ID_370"/>
- <input type="hidden" name="EVENT_NAME_370" id="EVENT_NAME_370"/>
-
- <!-- 保存和重置 -->
- <div style="margin-left:82%; margin-top: 10px;">
- <input value='保存' id='save' type='button'/> <input id='cancel' value='重置' type='reset'/>
- </div>
- <fieldset class="basic_fieldset_border" >
- <legend >基本信息:</legend>
- <table width="960px" class="add_table_style" align="center">
-
- <tr>
- <td align="right" width="15%"><span class="star">*</span>响应名称</td>
- <td width="35%"><input style="width: 265px;" type="text" maxlength="50" style="width: 97%;" name="NAME_370" id="NAME_370" class="validate[required]" /></td>
- <td align="right" width="15%"><span class="star">*</span>发布单位</td>
- <td width="35%"><input type="text" maxlength="50" style="width: 265px;" name="RELEASE_UNIT_370" id="RELEASE_UNIT_370" class="validate[required,custom[chinese]]" /></td>
- </tr>
- <tr>
- <td align="right" width="120px"><span class="star">*</span>发布时间</td>
- <td><input type="text" readonly="readonly" style="width: 265px;" maxlength="26" dateFmt="yyyy-MM-dd HH:mm" name="RELEASE_DATE_370" id="RELEASE_DATE_370" class="date validate[required]" /></td>
- <td align="right" width="120px"><span class="star">*</span>响应类别</td>
- <td><select class="validate[required]" selWidth="270" prompt="请选择" name="RESPONSE_NAME_370" id="RESPONSE_NAME_370"></select></td>
- </tr>
- <tr>
- <td align="right" width="120px"><span class="star">*</span>响应级别</td>
- <td><select class="validate[required]" selWidth="270" prompt="请选择" name="RESPONSE_LEVEL_370" id="RESPONSE_LEVEL_370"></select></td>
- <td align="right" width="120px"><span class="star">*</span>响应状态</td>
- <td><select class="validate[required]" selWidth="270" prompt="请选择" name="RESPONSE_STATUS_370" id="RESPONSE_STATUS_370"></select></td>
- </tr>
- <tr style="display: none;" class="isRelieve">
- <td align="right" width="120px"><span class="star">*</span>解除时间</td>
- <td colspan="3"><input type="text" readonly="readonly" style="width: 265px;" maxlength="26" dateFmt="yyyy-MM-dd HH:mm" name="RELIEVE_TIME_370" id="RELIEVE_TIME_370" class="isRelieve_input date" />
- </tr>
- <tr style="display: none;" class="isRelieve">
- <td align="right" width="120px" class="font_size"><span class="star">*</span>解除原因</td>
- <td colspan="3" width="280px" align="left"><textarea style="width: 750px;height: 305px;" class=" isRelieve_input" name="REASON_369" id="REASON_369"></textarea></td>
- </tr>
- <tr class="inRelieve">
- <td align="right" width="120px">响应内容</td>
- <td colspan="3"><textarea style="width:750px;;height:330px" maxNum="1000" name="RESPONSE_CONTENT_370" id="RESPONSE_CONTENT_370" ></textarea></td><!-- class="inRelieve_input" -->
- </tr>
- <tr class="inRelieve">
- <td align="right" width="120px">响应范围</td>
- <td colspan="3"><textarea style="width:750px;height:330px" maxNum="1000" name="RESPONSE_AREA_370" id="RESPONSE_AREA_370"></textarea></td>
- </tr>
- </table>
- </fieldset>
- <fieldset class="fj_fieldset_border" >
- <legend width="960px" >附件信息:</legend>
- <table width="960px" class="tableStyle" align="center">
- <tr>
- <td width="130px" align="right">上传附件:</td>
- <td width= "750px" colspan="3"><div style="width:750px" id="fileDiv" name="fileDiv" ></div></td>
- </tr>
- </table>
- </fieldset>
- <fieldset class="fileTable_border" >
- <legend>录入人信息:</legend>
- <table width="960px" class="tableStyle" align="center" id="fillForm">
- <tr>
- <td width="114px" align="right" class="font_size">单位:</td>
- <td width="280px"><div style="width:265px" name="UNITE" id="UNITE" class="font_size1"/></td>
- <input style="width:98%;" id="WRITE_UNIT_370" name="WRITE_UNIT_370" type="hidden"/>
- <td width="114px" align="right" class="font_size">部门:</td>
- <td width="280px"><div name="DEPT" id="DEPT" class="font_size1"/></td>
- </tr>
- <tr>
- <td width="114px" align="right" class="font_size">录入人:</td>
- <td width="280px"><div name="TYPEIN_PEOPLE" id="TYPEIN_PEOPLE" class="font_size1"/></td><!-- style="text-decoration:underline;color:#0000FF" -->
- <td width="114px" align="right" class="font_size">录入人联系方式:</td>
- <td width="280px"><div name="TYPEIN_PEOPLE_PHONE_NUM" id="TYPEIN_PEOPLE_PHONE_NUM" class="font_size1"/></td>
- </tr>
- </table>
- </fieldset>
- <br>
- </form>
- </div>
- </div>
- </body>
- </html>
|