97f2ed2c20b282a88622b4fe2ed8069e06e2756a.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <%@include file="/page/include1.jsp" %>
  8. <!-- 附件异步上传start -->
  9. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
  10. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/style.css" />
  11. <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/webUploader/upload.js"></script>
  13. <!-- 附件异步上传end -->
  14. <script type="text/javascript" src="<%=path%>/scripts/business/em/monitor/responseReceive/GovResponseReceiveAddEdit.js"></script>
  15. <link type="text/css" href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet"/>
  16. <script type="text/javascript">
  17. var fd_id="<%=request.getParameter("fd_id")%>";
  18. //取得用户真实名字
  19. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  20. //部门名称
  21. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  22. // 部门id
  23. var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  24. //父部门id
  25. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  26. //取得用户真实名字
  27. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  28. var pageType = 0;//0-新增页面;1-调整页面;2-解除页面
  29. function getNowFormatDate() {
  30. var date = allGetServerTime();
  31. var seperator1 = "-";
  32. var seperator2 = ":";
  33. var year = date.getFullYear();
  34. var month = date.getMonth() + 1;
  35. var strDate = date.getDate();
  36. var hour=date.getHours();
  37. var minu=date.getMinutes();
  38. var sec=date.getSeconds();
  39. if (month >= 1 && month <= 9) {
  40. month = "0" + month;
  41. }
  42. if (strDate >= 0 && strDate <= 9) {
  43. strDate = "0" + strDate;
  44. }
  45. if(hour>=0 && hour<=9){
  46. hour="0"+hour;
  47. }
  48. if(minu>=0 && minu<=9){
  49. minu="0"+minu;
  50. }
  51. if(sec>=0 && sec<=9){
  52. sec="0"+sec;
  53. }
  54. var currentdate = year + seperator1 + month + seperator1 + strDate + " " + hour + seperator2 + minu;
  55. return currentdate;
  56. }
  57. $(function(){
  58. $("#back").hover(function() {
  59. $(this).attr("src", "/nwyj/images/temp/back_hover.png");
  60. }, function() {
  61. $(this).attr("src", "/nwyj/images/temp/back.png");
  62. });
  63. $("#RESPONSE_STATUS_370").bind("change",function(){
  64. var RESPONSE_STATUS_370 = $(this).attr("relvalue");
  65. if(RESPONSE_STATUS_370=="34"){
  66. $(".inRelieve").hide();
  67. $(".isRelieve").show();
  68. $(".isRelieve_input").addClass("validate[required]");
  69. $(".inRelieve_input").removeClass("validate[required]");
  70. }else{
  71. $(".inRelieve").show();
  72. $(".isRelieve").hide();
  73. $(".inRelieve_input").addClass("validate[required]");
  74. $(".isRelieve_input").removeClass("validate[required]");
  75. }
  76. })
  77. //初始化下拉框
  78. $('#RESPONSE_STATUS_370').initCanstSelect('BM_PublishState');
  79. $('#RESPONSE_NAME_370').initCanstSelect('BM_EMC_WarningName');
  80. $('#RESPONSE_LEVEL_370').initCanstSelect('BM_REPONSELEVEL');
  81. $('#EARLY_WARNING_PROPERTY_370').val("49");
  82. /******************录入人信息start********************/
  83. /* 页面展示用 */
  84. //取登录用户信息
  85. //登录用户姓名 要调整,还是要用id
  86. var userName = top.com.sinosoft.lz.system.user.LoginInfo
  87. .getReal_name();
  88. $("#TYPEIN_PEOPLE").html(userName);
  89. //用户手机号
  90. var getMobile = top.com.sinosoft.lz.system.user.LoginInfo.getMobile();
  91. if (getMobile == undefined) {
  92. $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无手机号码");
  93. $("#TYPEIN_PEOPLE_PHONE_NUM_370").val("");
  94. } else {
  95. $("#TYPEIN_PEOPLE_PHONE_NUM").html(getMobile);
  96. $("#TYPEIN_PEOPLE_PHONE_NUM_370").val(getMobile);
  97. }
  98. var getCorp_Id = top.com.sinosoft.lz.system.user.LoginInfo
  99. .getCorp_ids();
  100. $("#WRITE_UNIT_370").val(getCorp_Id);
  101. //用户所属单位
  102. var getCorp_names = top.com.sinosoft.lz.system.user.LoginInfo
  103. .getCorp_names();
  104. $("#UNITE").html(getCorp_names);
  105. //用户所属部门
  106. var getDeptnames = top.com.sinosoft.lz.system.user.LoginInfo
  107. .getDeptnames();
  108. $("#DEPT").html(getDeptnames);
  109. /*****************录入人信息end*********************/
  110. //修改表单
  111. if (fd_id.length > 0) {
  112. $(".titleShow").text("应急响应信息接收修改");
  113. //getFileList(fd_id);
  114. $('#fileDiv').newAsyncFileUpload("", fd_id, "1");
  115. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  116. var params = {
  117. classid : '370',
  118. objectID : fd_id
  119. };
  120. $.request.query(url, params, function(data) {
  121. $('#editForm').ajaxWrite({
  122. data : data
  123. });
  124. $('#editForm input[name="classid"]').val('370');
  125. if(data.RESPONSE_STATUS_370=="34"){
  126. $(".isRelieve").show();
  127. $(".inRelieve").hide();
  128. }else{
  129. $(".inRelieve").show();
  130. $(".isRelieve").hide();
  131. }
  132. $('#EARLY_WARNING_PROPERTY_370').val("49");
  133. var RESPONSE_STATUS_370 = data.EARLY_WARNING_STATUS_369;
  134. if(RESPONSE_STATUS_370=="34"){
  135. $(".inRelieve_input").removeClass("validate[required]");
  136. $(".isRelieve_input").addClass("validate[required]");
  137. $(".isRelieve_input").render();
  138. }else{
  139. $(".isRelieve_input").removeClass("validate[required]");
  140. $(".inRelieve_input").addClass("validate[required]");
  141. $(".inRelieve_input").render();
  142. }
  143. $("#EVENT_ID_select").setValue(data.EVENT_ID_370);
  144. });
  145. } else {//新增
  146. $(".titleShow").text("应急响应信息接收新增");
  147. //获取系统当前时间
  148. var sysDate = getNowFormatDate();
  149. $('#RELEASE_DATE_370').val(sysDate);//默认显示当前时间
  150. $('#WRITE_DEPT_370').val(dpids);//填报部门
  151. $('#WRITER_370').val(realName);//填报人
  152. $('#WRITER_UNIT_NAME_370').val(getCorp_names);
  153. $('#RELEASE_DATE_370').val(sysDate);//发布时间
  154. $('#WRITE_TIME_370').val(sysDate);//填报时间
  155. $('#RESPONSE_STATUS_370').attr('selectedValue', "33");//默认选中发布状态
  156. $('#fileDiv').newAsyncFileUpload("", "", "1");
  157. }
  158. $("#EVENT_ID_select").initYewuSelect("363","FD_OBJECTID","EVENT_NAME"," EVENT_STATE='0' and IS_DEL='0' order by updatedate desc");
  159. $("#EVENT_ID_select").on("change",function(){
  160. var eventId = $(this).attr("relValue");
  161. var eventName = $(this).attr("relText");
  162. $("#EVENT_ID_370").val(eventId);
  163. $("#EVENT_NAME_370").val(eventName);
  164. });
  165. });
  166. </script>
  167. </head>
  168. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
  169. <div class="box1" id="formContent" width="1000px" >
  170. <div class="titlehead">
  171. <div class="go_img1">
  172. <a href="javascript:;">
  173. <img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png"></img></a>
  174. </div>
  175. <font class="titleShow titleMsg"></font>
  176. </div>
  177. <div id="formContent">
  178. <form id="editForm" method="post" enctype="multipart/form-data">
  179. <input type="hidden" name="classid" value="370"/>
  180. <input type="hidden" name="FD_OBJECTID370" value=""/>
  181. <input id="RESPONSE_AREA_NAME_370" name="RESPONSE_AREA_NAME_370" type="hidden"/>
  182. <input type="hidden" name="EARLY_WARNING_PROPERTY_370" id="EARLY_WARNING_PROPERTY_370" value=""/>
  183. <input type="hidden" name="WRITER_UNIT_NAME_370" id="WRITER_UNIT_NAME_370" value=""/>
  184. <input type="hidden" name="WRITE_DEPT_370" id="WRITE_DEPT_370" value=""/>
  185. <input type="hidden" name="WRITER_370" id="WRITER_370" value=""/>
  186. <input type="hidden" name="WRITE_TIME_370" id="WRITE_TIME_370" value=""/>
  187. <input type="hidden" name="TYPEIN_PEOPLE_PHONE_NUM_370" id="TYPEIN_PEOPLE_PHONE_NUM_370" value=""/>
  188. <input type="hidden" name="EVENT_ID_370" id="EVENT_ID_370"/>
  189. <input type="hidden" name="EVENT_NAME_370" id="EVENT_NAME_370"/>
  190. <!-- 保存和重置 -->
  191. <div style="margin-left:82%; margin-top: 10px;">
  192. <input value='保存' id='save' type='button'/>&nbsp;&nbsp;<input id='cancel' value='重置' type='reset'/>
  193. </div>
  194. <fieldset class="basic_fieldset_border" >
  195. <legend >基本信息:</legend>
  196. <table width="960px" class="add_table_style" align="center">
  197. <tr>
  198. <td align="right" width="15%"><span class="star">*</span>响应名称</td>
  199. <td width="35%"><input style="width: 265px;" type="text" maxlength="50" style="width: 97%;" name="NAME_370" id="NAME_370" class="validate[required]" /></td>
  200. <td align="right" width="15%"><span class="star">*</span>发布单位</td>
  201. <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>
  202. </tr>
  203. <tr>
  204. <td align="right" width="120px"><span class="star">*</span>发布时间</td>
  205. <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>
  206. <td align="right" width="120px"><span class="star">*</span>响应类别</td>
  207. <td><select class="validate[required]" selWidth="270" prompt="请选择" name="RESPONSE_NAME_370" id="RESPONSE_NAME_370"></select></td>
  208. </tr>
  209. <tr>
  210. <td align="right" width="120px"><span class="star">*</span>响应级别</td>
  211. <td><select class="validate[required]" selWidth="270" prompt="请选择" name="RESPONSE_LEVEL_370" id="RESPONSE_LEVEL_370"></select></td>
  212. <td align="right" width="120px"><span class="star">*</span>响应状态</td>
  213. <td><select class="validate[required]" selWidth="270" prompt="请选择" name="RESPONSE_STATUS_370" id="RESPONSE_STATUS_370"></select></td>
  214. </tr>
  215. <tr style="display: none;" class="isRelieve">
  216. <td align="right" width="120px"><span class="star">*</span>解除时间</td>
  217. <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" />
  218. </tr>
  219. <tr style="display: none;" class="isRelieve">
  220. <td align="right" width="120px" class="font_size"><span class="star">*</span>解除原因</td>
  221. <td colspan="3" width="280px" align="left"><textarea style="width: 750px;height: 305px;" class=" isRelieve_input" name="REASON_369" id="REASON_369"></textarea></td>
  222. </tr>
  223. <tr class="inRelieve">
  224. <td align="right" width="120px">响应内容</td>
  225. <td colspan="3"><textarea style="width:750px;;height:330px" maxNum="1000" name="RESPONSE_CONTENT_370" id="RESPONSE_CONTENT_370" ></textarea></td><!-- class="inRelieve_input" -->
  226. </tr>
  227. <tr class="inRelieve">
  228. <td align="right" width="120px">响应范围</td>
  229. <td colspan="3"><textarea style="width:750px;height:330px" maxNum="1000" name="RESPONSE_AREA_370" id="RESPONSE_AREA_370"></textarea></td>
  230. </tr>
  231. </table>
  232. </fieldset>
  233. <fieldset class="fj_fieldset_border" >
  234. <legend width="960px" >附件信息:</legend>
  235. <table width="960px" class="tableStyle" align="center">
  236. <tr>
  237. <td width="130px" align="right">上传附件:</td>
  238. <td width= "750px" colspan="3"><div style="width:750px" id="fileDiv" name="fileDiv" ></div></td>
  239. </tr>
  240. </table>
  241. </fieldset>
  242. <fieldset class="fileTable_border" >
  243. <legend>录入人信息:</legend>
  244. <table width="960px" class="tableStyle" align="center" id="fillForm">
  245. <tr>
  246. <td width="114px" align="right" class="font_size">单位:</td>
  247. <td width="280px"><div style="width:265px" name="UNITE" id="UNITE" class="font_size1"/></td>
  248. <input style="width:98%;" id="WRITE_UNIT_370" name="WRITE_UNIT_370" type="hidden"/>
  249. <td width="114px" align="right" class="font_size">部门:</td>
  250. <td width="280px"><div name="DEPT" id="DEPT" class="font_size1"/></td>
  251. </tr>
  252. <tr>
  253. <td width="114px" align="right" class="font_size">录入人:</td>
  254. <td width="280px"><div name="TYPEIN_PEOPLE" id="TYPEIN_PEOPLE" class="font_size1"/></td><!-- style="text-decoration:underline;color:#0000FF" -->
  255. <td width="114px" align="right" class="font_size">录入人联系方式:</td>
  256. <td width="280px"><div name="TYPEIN_PEOPLE_PHONE_NUM" id="TYPEIN_PEOPLE_PHONE_NUM" class="font_size1"/></td>
  257. </tr>
  258. </table>
  259. </fieldset>
  260. <br>
  261. </form>
  262. </div>
  263. </div>
  264. </body>
  265. </html>