3974cafc009bc1742306dd9247caf906784e2656.svn-base 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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="../../../../include1.jsp" %>
  8. <!-- 附件上传 -->
  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. <!-- 附件上传 -->
  14. <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/business/em/response/emergencyResponse/WarningAddEdit.js"></script>
  16. <style type="text/css">
  17. .class_color{
  18. background-color: rgb(237, 239, 253);
  19. }
  20. .inline_block{
  21. display: inline-block;
  22. vertical-align: middle;
  23. }
  24. </style>
  25. <script type="text/javascript">
  26. var fd_id = "<%=request.getParameter("fd_id")%>";
  27. var is_adjst = "<%=request.getParameter("is_adjst")%>";
  28. //是否动态页签 true为是动态页签
  29. var isActivePage = "<%=request.getParameter("isActivePage")%>";
  30. //是否是响应研判跳转 响应研判页面通知单的id_是
  31. var is_yanPan = "<%=request.getParameter("is_yanPan")%>";
  32. var alertNum=""; //响应编号
  33. var firstdiag;
  34. var dateTitle = "";
  35. var dateTitleId = "";
  36. var nowTime = "";//后台获取当前时间
  37. //取得用户真实名字
  38. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  39. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  40. //部门id
  41. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  42. //部门名称
  43. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  44. //父部门id
  45. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  46. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  47. var Corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  48. var planMsg = "";
  49. var isLastId365 = "";//关联ID
  50. $(function(){
  51. $("#yjbh").live("change",function(){
  52. getYjNum();
  53. var node = $("#yjbh").data("selectedNode");
  54. if(node && node.report_type_id){
  55. $("#PLAN_TYPE_ID_365").val(node.report_type_id);
  56. }
  57. mouse("",1);
  58. inputEarlyWarningName();
  59. })
  60. if(isActivePage=="true"){
  61. //如果是动态页签,则隐藏返回按钮
  62. $("#back").parent().hide();
  63. }
  64. $.ajax({
  65. url : $.pathname()+ '/ws/response/responseService/getIssueUnitName',
  66. data : CorpArea,
  67. type : 'post',
  68. dataType : 'json',
  69. async : false,
  70. success : function(data){
  71. //alert(data.issueUnitName)
  72. $("#WRITE_DEPT_365_SHOW").text(data.issueUnitName);
  73. },error : function(e){
  74. top.Dialog.alert("系统错误!");
  75. }
  76. });
  77. var allTime = getDateTime();
  78. var nowYear = allTime.split("-")[0];
  79. $("#fbYear").val(nowYear);
  80. loadEventType();
  81. var defaultOpts={
  82. // 自动上传。
  83. auto : true,
  84. // swf文件路径
  85. swf : '/nwyj/scripts/webUploader/Uploader.swf',
  86. // 文件接收服务端。
  87. // server : '/nwyj/Upload',
  88. server : $.pathname() +"/ws/uploadForm/FileUpDownService/indexUpLoad",
  89. // 选择文件的按钮。可选。
  90. pick : '#picker',
  91. fileNumLimit: 5,
  92. fileSizeLimit: 200 * 1024 * 1024, // 200 M
  93. fileSingleSizeLimit: 50 * 1024 * 1024, // 50 M
  94. chunked: false,
  95. chunkSize: 512 * 1024,
  96. fileTypeLimit :"exe,jsp,asp",
  97. accept: {
  98. extensions: 'jpg,png,doc,docx,pdf'
  99. },
  100. /*
  101. formData: {},
  102. runtimeOrder: 'flash',
  103. */
  104. //禁掉全局的拖拽功能。这样不会出现图片拖进页面的时候,把图片打开。
  105. disableGlobalDnd: true
  106. };
  107. $('#fileDiv').newAsyncFileUpload(defaultOpts,fd_id,"1");
  108. $("#EARLY_WARNING_AREA_NAME_365").OrgSel({is_alert:"is_alert",valuetype:"showunit_0003",selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
  109. "Y" : "s",
  110. "N" : ""
  111. }});
  112. if(fd_id.length>0 && is_adjst == 5){ //修改表单
  113. $(".titleShow").text("修改响应启动通知单");
  114. $('#chongzhi2').show();
  115. $("#PREV_EW_ID").initYewuSelect("365","FD_OBJECTID","EARLY_WARNING_ID","IS_DEL=0 and IS_SEND = 5 and is_alert='1' and RELEASE_UNIT='"+CorpArea+"' and WRITER_ID='"+realName_ID+"' ");//上次响应单号
  116. $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
  117. $('#PREV_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //上次响应级别
  118. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  119. var params = {
  120. classid : '365',
  121. objectID : fd_id
  122. };
  123. $.request.query(url,params,function(data){
  124. $('#editForm').ajaxWrite({data:data});
  125. $('#editForm input[name="classid"]').val('365');
  126. isLastId365 = data.IS_LAST_ID_365;
  127. $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
  128. $("#EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_ID_365);
  129. $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);
  130. $("#WRITER_365").val(data.WRITER_365); //填报人
  131. $("#yjbh").setValue(data.MEET_EMERGENCIES_PLAN_365);//突发事件类型主键
  132. var val = data.PLAN_TYPE_ID_365;
  133. if(val=='9'){
  134. var tempDate = data.TYPHOON_DATE_365;
  135. if(tempDate != null && tempDate != ''){
  136. $("#isTFDate").show();
  137. $("#typhoonDate").show();
  138. }else{
  139. $("#isTFDate").show();
  140. $(".IsTF[value='false']").attr('checked','checkked');
  141. }
  142. }
  143. if(data.WETHER_EW_ADJUST_365 == 1){ //是否响应调整 0非响应调整1、是响应调整
  144. $("#WETHER_EW_ADJUST").attr("checked","checked");
  145. }else{
  146. $("#WARNING_PROPERTY").attr("checked","checked"); //是否初次发布 1是初次发布 2是非初次发布(即调整)
  147. }
  148. dateTitle = data.PLAN_TYPE_ID_365_SHOW;
  149. if("1"==data.WETHER_EW_ADJUST_365){
  150. mouse1(dateTitle);
  151. }else{
  152. mouse(dateTitle,1);
  153. }
  154. if(data.EARLY_WARNING_PROPERTY_365==50){
  155. //经过调整的记录,在修改页面加载上次响应编号和响应级别
  156. $("#PREV_EW_ID").setValue(data.IS_LAST_ID_365); //上次响应单号
  157. $("#PREV_EW_ID").render();
  158. }
  159. $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
  160. $("#EARLY_WARNING_NAME_365").val(data.EARLY_WARNING_NAME_365);
  161. var yjNum = data.EARLY_WARNING_ID_365;
  162. console.log(yjNum);
  163. yjNum = yjNum.split("-");
  164. mouse(yjNum[0]);//调整修改页面出不来
  165. $("#is_chuci").val(yjNum[1]);
  166. $("#fbYear").val(yjNum[2]);
  167. $("#yj_num").setValue(yjNum[3]);
  168. });
  169. }else{//---------------------------------------------新增
  170. $(".titleShow").text("响应启动通知单");
  171. $("#chongzhi").show();//显示重置按钮
  172. $("#PREV_EW_ID").initYewuSelect("365","FD_OBJECTID","EARLY_WARNING_ID","IS_DEL=0 and IS_SEND = 5 and is_alert='1' and RELEASE_UNIT='"+CorpArea+"' and WRITER_ID='"+realName_ID+"' ");//上次响应单号
  173. $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
  174. $('#PREV_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //上次响应级别
  175. $("#WARNING_PROPERTY").attr("checked","checked"); //响应性质--默认勾选初次
  176. $("#EARLY_WARNING_PROPERTY_365").val(49); //响应性质 49 初次发布 50非初次发布 51 解除
  177. $("#WETHER_EW_ADJUST_365").val(0); //是否响应调整 0非响应调整1、是调整
  178. $("#CHECK_STATUS_365").val(41); //41初次 42调整 43解除 操作
  179. $('#WRITE_DEPT_365').val(CorpArea);
  180. $("#RELEASE_UNIT_365").val(CorpArea);//发布单位
  181. $("#WRITER_365").val(realName); //填报人
  182. $("#WRITER_ID_365").val(realName_ID); //填报人ID
  183. }
  184. $.ajax({//后台获取系统当前时间
  185. url : $.pathname()+ '/ws/response/responseService/getNowTime',
  186. // data : {},
  187. type : 'post',
  188. dataType : 'text',
  189. async : false,
  190. timeout : 6000,
  191. success : function(result){
  192. nowTime=result;
  193. },error : function(e){
  194. top.Dialog.alert("获取后台时间失败!");
  195. return;
  196. }
  197. });
  198. $(".IsTF").bind("click",function(){
  199. var value = $(this).attr('value');
  200. if(value == 'true'){
  201. $("#dateTitle").text("台风登陆时间:");
  202. $("#typhoonDate").show();
  203. $("#TYPHOON_DATE_365").attr('class','date validate[required]');
  204. }else{
  205. $("#typhoonDate").hide();
  206. $("#TYPHOON_DATE_365").attr('class','date');
  207. $("#TYPHOON_DATE_365").val('');
  208. }
  209. });
  210. $("#CURRENT_ER_LEVEL_365").bind("change",function(){
  211. //响应级别
  212. var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
  213. if(level == undefined || level == '请选择'){
  214. level = '';
  215. }else{
  216. level = level + "响应";
  217. }
  218. if(dateTitle == undefined || dateTitle == '请选择'){
  219. dateTitle = '';
  220. }
  221. inputEarlyWarningName();
  222. //响应名称
  223. //$("#EARLY_WARNING_NAME_365").val(dateTitle+level);
  224. });
  225. $("#RELEASE_RELIEVE_DATE_365").on("blur",function(){//用于修改响应编号》》发布时间的改变
  226. var allTime = $(this).val();
  227. var nowYear = allTime.split("-")[0];
  228. mouse(nowYear,2);
  229. console.log(nowYear);
  230. });
  231. /* $("#WARNING_PROPERTY").on("click",function(){//用于修改响应编号》》选择初次发布
  232. var isChecked = $(this).attr("checked");
  233. if(isChecked == "checked"){
  234. mouse("F",3);
  235. }
  236. });
  237. $("#WETHER_EW_ADJUST").on("click",function(){//用于修改响应编号》》选择调整
  238. $("#titleShow_red").text("响应调整通知单");
  239. var isChecked = $(this).attr("checked");
  240. if(isChecked == "checked"){
  241. mouse("T",4);
  242. }
  243. }); */
  244. $("#WARNING_PROPERTY").on("change",function(){//用于修改响应编号》》选择初次发布
  245. $("#titleShow_red").text("响应启动通知单");
  246. var isChecked = $(this).attr("checked");
  247. if(isChecked == "checked"){
  248. mouse("F",3);//如果响应调整被勾选-----2
  249. //$(".titleShow").text("响应启动通知单");
  250. $("#PREV_EW_ID").resetValue();//上次响应单号重置
  251. $("#PREV_EW_LEVEL").setValue("请选择");//上次响应级别重置
  252. //mouse();
  253. $("#PREV_EW_LEVEL").attr("disabled",true);//上次响应级别禁用
  254. $("#PREV_EW_LEVEL").render();
  255. $("#PREV_EW_ID").attr("disabled",true);//上次响应单号禁用
  256. $("#PREV_EW_ID").render();
  257. $("#WETHER_EW_ADJUST").attr("checked",false);
  258. }else{
  259. mouse("T",4);
  260. //$(".titleShow").text("响应调整通知单");
  261. $("#PREV_EW_LEVEL").attr("disabled",false);//上次响应级别解除禁用
  262. $("#PREV_EW_LEVEL").render();
  263. $("#PREV_EW_ID").attr("disabled",false);//上次响应单号解除禁用
  264. $("#PREV_EW_ID").render();
  265. $("#WETHER_EW_ADJUST").attr("checked",true);
  266. }
  267. });
  268. $("#WETHER_EW_ADJUST").on("change",function(){//用于修改响应编号》》选择调整
  269. $("#titleShow_red").text("响应调整通知单");
  270. var isChecked = $(this).attr("checked");
  271. if(isChecked == "checked"){
  272. mouse("T",4);
  273. //$(".titleShow").text("响应调整通知单");
  274. $("#PREV_EW_LEVEL").attr("disabled",false);//上次响应级别解除禁用
  275. $("#PREV_EW_LEVEL").render();
  276. $("#PREV_EW_ID").attr("disabled",false);//上次响应单号解除禁用
  277. $("#PREV_EW_ID").render();
  278. $("#WARNING_PROPERTY").attr("checked",false);
  279. }else{
  280. mouse("F",3);//如果响应调整被勾选-----2
  281. //$(".titleShow").text("响应启动通知单");
  282. $("#PREV_EW_ID").resetValue();//上次响应单号重置
  283. $("#PREV_EW_LEVEL").setValue("请选择");//上次响应级别重置
  284. //mouse();
  285. $("#PREV_EW_LEVEL").attr("disabled",true);//上次响应级别禁用
  286. $("#PREV_EW_LEVEL").render();
  287. $("#PREV_EW_ID").attr("disabled",true);//上次响应单号禁用
  288. $("#PREV_EW_ID").render();
  289. $("#WARNING_PROPERTY").attr("checked",true);
  290. }
  291. });
  292. });
  293. //获得当前系统时间
  294. function getDateTime() {
  295. var s = "";
  296. var d = allGetServerTime();
  297. var vYear = d.getFullYear();
  298. var vMon = d.getMonth() + 1;
  299. var vDay = d.getDate();
  300. var h = d.getHours();
  301. var m = d.getMinutes();
  302. s = vYear + "-" + (vMon < 10 ? "0" + vMon : vMon) + "-"
  303. + (vDay < 10 ? "0" + vDay : vDay) + " "
  304. + (h < 10 ? "0" + h : h) + ":" + (m < 10 ? "0" + m : m);
  305. return s;
  306. }
  307. //新增重置方法
  308. function formReset(){
  309. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAddEdit.jsp?fd_id=&is_adjst=4");
  310. }
  311. //修改重置方法
  312. function formReset2(){
  313. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAddEdit.jsp?fd_id="+ fd_id+"&is_adjst=5");
  314. }
  315. //响应编号--响应名称失去焦点时生成----初次
  316. function mouse(thing,num){//num的值【1:说明是预案的改变进来的】【2:说明是发布时间的改变进来的】【3:说明是选择了初次发布进来的】【4:说明是选择了调整进来的】
  317. //响应级别
  318. var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
  319. if(level == undefined || level == '请选择'){
  320. level = '';
  321. }else{
  322. level = level+"响应";
  323. }
  324. if(thing == undefined || thing == '请选择'){
  325. thing = '';
  326. }
  327. //响应名称
  328. //$("#EARLY_WARNING_NAME_365").val(thing+level);
  329. var year = allGetServerTime().getFullYear();
  330. var planTypeId = $("#PLAN_TYPE_ID_365").val();
  331. $("#PLAN_TYPE_ID_368").val(planTypeId);
  332. //=====================修改响应编号start
  333. var isF = $("#WARNING_PROPERTY").attr("checked");
  334. var isT = $("#WETHER_EW_ADJUST").attr("checked");
  335. var isForT = "";
  336. if(isF == "checked"){
  337. isForT = "F";
  338. $("#is_chuci").val("F");
  339. }else if(isT == "checked"){
  340. isForT = "T";
  341. $("#is_chuci").val("T");
  342. }
  343. //=====================修改响应编号end
  344. if(num == "2"){//-----------------【2:说明是发布时间的改变进来的】
  345. year = thing!=""?thing:year;
  346. }
  347. var params = {
  348. companyId : CorpArea,
  349. year : year,
  350. //isAdjust : 'F',
  351. isAdjust : isForT,
  352. isAlert:'1',
  353. plan_type_id : planTypeId
  354. };
  355. var url = $.pathname()+ '/ws/response/responseService/getAlertresponse';
  356. $.ajax({
  357. url : url,
  358. type : 'post',
  359. timeout : 60000,
  360. dataType : 'json',
  361. data : params,
  362. success : function(data) {
  363. /**************************20160615 ljp 根据需求,当有通知单不走系统时,会出现跳编号情况,这时候,查出当前最大编号,往后推十个号供选择**********************************/
  364. $("#NUM_368").val(data);
  365. data = Number(data);
  366. var dataJson = {"list":[]};
  367. var dataJson1 = {"list":[]};
  368. //=====================修改响应编号start
  369. var warningNum = $("#yj_num").attr("relText");//响应编号----防风防汛-F-2017-1
  370. warningNum += "";
  371. var thing1 = warningNum.split("-")[0];
  372. var getYear = warningNum.split("-")[2];
  373. if(thing1 == "undefined" || thing1 == undefined){
  374. thing1 = "";
  375. }
  376. if(getYear == "undefined" || getYear == undefined){
  377. getYear = year;
  378. }
  379. for (var i = 0; i < 10; i++) {
  380. if(data==0){
  381. data++;
  382. }
  383. if(data<10 && data>=0){
  384. dataJson1.list.push({"key":"00"+data,"value":"00"+data});
  385. }else if(data<100 && data>=10){
  386. dataJson1.list.push({"key":"0"+data,"value":"0"+data});
  387. }else{
  388. dataJson1.list.push({"key":data,"value":data});
  389. }
  390. data++;
  391. }
  392. if(num == "1"){//-----------------【1:说明是预案的改变进来的】
  393. for (var i = 0; i < 10; i++) {
  394. data++;
  395. alertNum = thing + "-" + "F" + "-" + year + "-" + data;
  396. dataJson.list.push({"key":alertNum,"value":alertNum});
  397. }
  398. }else if(num == "2"){//-----------------【2:说明是发布时间的改变进来的】
  399. for (var i = 0; i < 10; i++) {
  400. data++;
  401. alertNum = thing1 + "-" + "F" + "-" + thing + "-" + data;
  402. dataJson.list.push({"key":alertNum,"value":alertNum});
  403. }
  404. $("#fbYear").val(thing);
  405. }else if(num == "3"){//-----------------【3:说明是选择了初次发布进来的】
  406. for (var i = 0; i < 10; i++) {
  407. data++;
  408. alertNum = thing1 + "-" + "F" + "-" + getYear + "-" + data;
  409. dataJson.list.push({"key":alertNum,"value":alertNum});
  410. }
  411. }else if(num == "4"){//-----------------【4:说明是选择了调整进来的】
  412. for (var i = 0; i < 10; i++) {
  413. data++;
  414. alertNum = thing1 + "-" + "T" + "-" + getYear + "-" + data;
  415. dataJson.list.push({"key":alertNum,"value":alertNum});
  416. }
  417. }
  418. $("#COMPANY_ID_368").val(CorpArea);
  419. $("#YEAR_368").val(year);
  420. $("#yj_num").data("data",dataJson1);//<input>显示
  421. $("#yj_num").render();
  422. getYjNum();
  423. }
  424. });
  425. };
  426. //修改调整
  427. function mouse1(thing){
  428. //响应级别
  429. var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
  430. if(level == undefined || level == '请选择'){
  431. level = '';
  432. }else{
  433. level = level+"响应";
  434. }
  435. if(thing == undefined || thing == '请选择'){
  436. thing = '';
  437. }
  438. //响应名称
  439. var year = allGetServerTime().getFullYear();
  440. var params = {
  441. companyId : CorpArea,
  442. year : year,
  443. isAdjust : 'T',
  444. isAlert:'1'
  445. };
  446. var url = $.pathname()+ '/ws/response/responseService/getAlertresponse';
  447. $.ajax({
  448. url : url,
  449. type : 'post',
  450. timeout : 60000,
  451. dataType : 'json',
  452. data : params,
  453. success : function(data) {
  454. $("#NUM_368").val(data);
  455. /**************************20160615 ljp 根据需求,当有通知单不走系统时,会出现跳编号情况,这时候,查出当前最大编号,往后推十个号供选择**********************************/
  456. data = parseInt(data)-1;
  457. var dataJson = {"list":[]};
  458. for (var i = 0; i < 10; i++) {
  459. data++;
  460. alertNum = thing + "-" + "T" + "-" + year + "-" + data;
  461. dataJson.list.push({"key":alertNum,"value":alertNum});
  462. }
  463. $("#COMPANY_ID_368").val(CorpArea);
  464. $("#YEAR_368").val(year);
  465. $("#yj_num").data("data",dataJson);//<input>显示
  466. $("#yj_num").render();
  467. }
  468. });
  469. };
  470. $(function(){
  471. //初次发布的鼠标事件
  472. /* $("#WARNING_PROPERTY").click(function(){
  473. if($("#WARNING_PROPERTY").attr("checked")=="checked"){//如果初次发布被勾选-----1
  474. $("#WETHER_EW_ADJUST").attr("checked",false);//那么响应调整不被勾选
  475. $(".titleShow").text("响应启动通知单");
  476. $("#PREV_EW_ID").resetValue();//上次响应单号重置
  477. $("#PREV_ER_LEVEL_365").setValue("请选择");//上次响应级别重置
  478. //mouse();
  479. $("#PREV_ER_LEVEL_365").attr("disabled",true);//上次响应级别的禁用
  480. $("#PREV_ER_LEVEL_365").render();
  481. $("#PREV_EW_ID").attr("disabled",true);//上次响应级别的禁用
  482. $("#PREV_EW_ID").render();
  483. }
  484. }); */
  485. //响应调整的鼠标事件
  486. /* $("#WETHER_EW_ADJUST").click(function(){
  487. if($("#WETHER_EW_ADJUST").attr("checked")=="checked"){//如果响应调整被勾选-----2
  488. $("#WARNING_PROPERTY").attr("checked",false);//那么初次发布不被勾选
  489. $(".titleShow").text("响应调整通知单");
  490. $("#PREV_ER_LEVEL_365").attr("disabled",false);//上次响应级别的解除禁用
  491. $("#PREV_ER_LEVEL_365").render();
  492. $("#PREV_EW_ID").attr("disabled",false);//上次响应级别的解除禁用
  493. $("#PREV_EW_ID").render();
  494. }
  495. }); */
  496. $("#PREV_EW_ID").bind("change",function(){
  497. var val=$(this).attr("relValue");
  498. //alert(val);
  499. if(val!=''){
  500. /* $.ajax({
  501. url : $.pathname() + '/ws/duty/DutyRecordsService/getlastLevel0',
  502. type : 'post',
  503. timeout : 15000,
  504. data:val,
  505. dataType : 'text',
  506. success : function(result){
  507. var lastLevel = result;
  508. //alert(lastLevel);
  509. $("#PREV_ER_LEVEL_365").setValue(lastLevel);
  510. },
  511. error : function(e){
  512. top.Dialog.alert("访问服务失败!");
  513. }
  514. }); */
  515. var name = $(this).attr("reltext");
  516. top.Dialog.confirm("是否调整"+name,function(){//点击确定--弹出调整页签
  517. top.createActiveTab("响应调整",$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAdjust.jsp?fd_id="+ val+"&is_adjst=1");
  518. });
  519. //$('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAdjust.jsp?fd_id="+ val+"&is_adjst=1");
  520. };
  521. });
  522. });
  523. /*******自动输入响应/响应名称*************/
  524. function inputEarlyWarningName(){
  525. var yjbh = $("#yjbh").attr("reltext");
  526. var jb = $("#CURRENT_ER_LEVEL_365").attr("reltext");
  527. yjbh = !yjbh?"":yjbh;
  528. jb = !jb?"":jb+"响应";
  529. $("#EARLY_WARNING_NAME_365").val(yjbh+jb);
  530. }
  531. function selectEarlyWarningNum(){
  532. var early_num = $("#yj_num").attr("relvalue");
  533. $("#NUM_368").val(early_num);
  534. getYjNum();
  535. }
  536. /******加载突发事件类型*********/
  537. function loadEventType(){
  538. $.ajax({
  539. url : $.pathname() + '/ws/sys/constantService/getAllEventType/',
  540. type : 'post',
  541. timeout : 60000,
  542. //data : { sql : AreaSql },
  543. dataType : 'json',
  544. async: false,
  545. success : function(data){
  546. $("#yjbh").data("data",data);
  547. $("#yjbh").render();
  548. getYjNum();
  549. }
  550. });
  551. }
  552. //查询预案Id——214
  553. function queryPlanId(planType){
  554. $.ajax({
  555. url : $.pathname() + '/ws/sys/constantService/getPlanId/',
  556. data : { unitId : CorpArea , planType : planType },
  557. type : 'post',
  558. dataType : 'text',
  559. async : false,
  560. success : function(resultData){
  561. if(resultData == null){
  562. planMsg = "noPlan";
  563. }else{
  564. planMsg = resultData.FD_OBJECTID+","+resultData.planName;
  565. }
  566. },error : function(e){
  567. }
  568. });
  569. }
  570. function getYjNum(){
  571. var event_type_name = $("#yjbh").attr("relText");
  572. $("#EARLY_WARNING_ID_365").val(event_type_name+"-"+$("#is_chuci").val()+"-"+$("#fbYear").val()+"-"+$("#yj_num").attr("relvalue"))
  573. $("#MEET_EMERGENCIES_PLAN_365").val($("#yjbh").attr("relValue"));
  574. }
  575. </script>
  576. </head>
  577. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
  578. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8; " width="1000px" >
  579. <!-- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" title="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow"></font></div> -->
  580. <form id="editForm" method="post">
  581. <input name="classid" value="365" type="hidden"/>
  582. <input name="CHECK_STATUS_365" id="CHECK_STATUS_365" type="hidden"/>
  583. <input name="IS_SEND_365" id="IS_SEND_365" value="0" type="hidden"/>
  584. <!-- <input name="IS_LAST_ID_365" id="IS_LAST_ID_365" type="hidden"/> -->
  585. <input name="RELEASE_UNIT_365" id="RELEASE_UNIT_365" type="hidden"/>
  586. <input id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" type="hidden"/>
  587. <input id="WETHER_EW_ADJUST_365" name="WETHER_EW_ADJUST_365" type="hidden"/>
  588. <input id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" type="hidden"/>
  589. <input id="WRITE_TIME_365" name="WRITE_TIME_365" type="hidden"/>
  590. <!-- <input id="PREV_EW_ID_365" name="PREV_EW_ID_365" type="hidden"/> -->
  591. <input type="hidden" name="FD_OBJECTID365" id="FD_OBJECTID365" value=""/>
  592. <input type="hidden" name="IS_ALERT_365" id="IS_ALERT_365" value="1"/>
  593. <input id="WRITER_365" name="WRITER_365" type="hidden"/>
  594. <input type="hidden" name="WRITER_ID_365" id="WRITER_ID_365"/>
  595. <input type="hidden" name="WRITE_DEPT_365" id="WRITE_DEPT_365"/>
  596. <input type="hidden" name="EVENT_ID_365" id="EVENT_ID_365"/>
  597. <input type="hidden" name="PLAN_TYPE_ID_365" id="PLAN_TYPE_ID_365"/>
  598. <input type="hidden" name="MEET_EMERGENCIES_PLAN_365" id="MEET_EMERGENCIES_PLAN_365"/>
  599. <input type="hidden" id="AGREE_ISSUE_LEADER_ID_365" name="AGREE_ISSUE_LEADER_ID_365"/>
  600. <input type="hidden" id="AGREE_ISSUE_LEADER_NAME_365" name="AGREE_ISSUE_LEADER_NAME_365"/>
  601. <input type="hidden" id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID_365" /><!-- 响应响应编号 -->
  602. <!-- 保存和重置 -->
  603. <br/>
  604. <div style="float:right" id="divOfButton">
  605. <input type="button" id="is_Send" value="发送"/>&nbsp;&nbsp;
  606. <input type="button" id="is_Issue" value="发布" title="上传盖章后的通知单附件,可以不经发送、审核直接发布"/>&nbsp;&nbsp;
  607. <input value="保存" type="button" id="save"/>&nbsp;&nbsp;
  608. <input value="重置" onclick="formReset();" id="chongzhi" style="display: none;" type="button"/>
  609. <input value="重置" onclick="formReset2();" id="chongzhi2" style="display: none;" type="button"/>&nbsp;&nbsp;&nbsp;&nbsp;
  610. </div><br/>
  611. <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow_red">响应启动通知单</font></div>
  612. <!-- 填报单位和填报人 -->
  613. <table align="center" width="960px" style="padding-left: 10px;padding-right: 10px;margin:auto">
  614. <tr>
  615. <td align="left">
  616. <div style="float:left"><span>发布单位:</span></div>
  617. <div style="float:left">
  618. <label id="WRITE_DEPT_365_SHOW"></label>
  619. <!-- <label id="RELEASE_UNIT_365"></label> -->
  620. <!-- <div class="selectTree" selWidth="" id="WRITE_DEPT_365" name="WRITE_DEPT_365" ></div> -->
  621. </div><!-- <label id="unitId"></label> -->
  622. </td>
  623. <td align="right" style="padding-right: 60px;">签发人:<label id='WRITER_365_SHOW1'></label></td>
  624. </tr>
  625. </table>
  626. <!-- 正文表格 -->
  627. <table width="960px" class="tableStyle" align="center">
  628. <tr>
  629. <td align="right" width="120px" class="class_color"><span class="star">*</span>响应名称:</td>
  630. <td colspan="2"><input type="text" maxLength="50" class="validate[required,length[0,50],custom[illegalLetter]]" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" title="响应名称可根据所选响应编号和响应级别自动填入,无需手动输入" style="width: 750px;"/></td>
  631. </tr>
  632. <tr>
  633. <td align="right" width="120px" class="class_color"><span class="star">*</span>发布时间:</td>
  634. <td colspan="2"><input style="width: 750px" readonly="readonly" type="text" id="RELEASE_RELIEVE_DATE_365"name="RELEASE_RELIEVE_DATE_365" class="validate[required] date" dateFmt="yyyy-MM-dd HH:mm"/></td>
  635. </tr>
  636. <tr>
  637. <td align="right" width="120px" class="class_color"><span class="star">*</span>响应编号:</td>
  638. <td colspan="2">
  639. <!-- <input type="text" class="validate[required]" name="yj_num" id="yj_num" style="width: 750px;"/> -->
  640. <div class='inline_block'><select selWidth="288" editable=false class="validate[required]" id='yjbh' prompt="请选择" selAlign="" ></select></div>
  641. <div class='inline_block'><input type="text" class="validate[required,custom[illegalLetter]]" readonly="readonly" maxLength="1" id='is_chuci' style="width: 100px;height:30px;"/></div>
  642. <div class='inline_block'><input type="text" class="validate[required,custom[illegalLetter]]" readonly="readonly" maxLength="4" id='fbYear' style="width: 100px;height:30px;"/></div>
  643. <div class='inline_block'><select selWidth="256" editable=false class="validate[required]" id="yj_num" selAlign="" onchange="selectEarlyWarningNum()"></select></div>
  644. </td>
  645. <tr>
  646. <td align="right" width="120px" class="class_color"><span class="star">*</span>响应范围:</td><!-- class="validate[required]" -->
  647. <td colspan="2"><div style="width: 826px;" id="EARLY_WARNING_AREA_NAME_365" allclickset="1" ></div></td>
  648. </tr>
  649. <tr>
  650. <td align="right" width="120px" class="class_color">响应性质:</td>
  651. <td width="420px">
  652. <input type="checkbox" id="WARNING_PROPERTY"/><label for="WARNING_PROPERTY">初次发布</label>
  653. </td>
  654. <td width="420px">
  655. <input type="checkbox" id="WETHER_EW_ADJUST"/><label for="WETHER_EW_ADJUST">响应调整</label><br/>
  656. <div style="float:left"><span>上次响应单号:</span></div>
  657. <div style="float:left">
  658. <select selWidth="246" disabled="true" editable=false id="PREV_EW_ID" name="PREV_EW_ID_365" prompt="请选择" ></select>
  659. </div>
  660. </td>
  661. </tr>
  662. <td align="right" width="120px" class="class_color"><span class="star">*</span><span>响应级别:</span></td>
  663. <td width="420px">
  664. <div style="float:left">&nbsp;<span>本次:</span></div>
  665. <div style="float:left">
  666. <select name="CURRENT_ER_LEVEL_365" class="validate[required]" id="CURRENT_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="300"></select>
  667. </div>&nbsp;&nbsp;
  668. </td>
  669. <td width="420px" align="left">
  670. <div style="float:left">&nbsp;<span>上次:</span></div>
  671. <div style="float:left"><select disabled="true" name="PREV_ER_LEVEL_365" id="PREV_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="290"></select>
  672. </div>&nbsp;&nbsp;
  673. </td>
  674. </tr>
  675. <tr>
  676. <td align="right" width="120px" class="class_color">响应概要:</td>
  677. <td colspan="2"><textarea maxNum="2000" style="width: 750px;height: 270px;" name="EW_SUMMARY_365" id="EW_SUMMARY_365"></textarea></td>
  678. </tr>
  679. <tr>
  680. <td align="right" width="120px" class="class_color">预防措施及<br></>工作要求:</td>
  681. <td colspan="2"><textarea maxNum="2000" style="width: 750px;height: 270px;" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365"></textarea></td>
  682. </tr>
  683. <tr>
  684. <td align="right" width="120px" class="class_color">备注:</td>
  685. <td colspan="2"><textarea maxNum="2000" name="REMARK_365" id="REMARK_365" style="width: 750px;height: 270px;"></textarea></td>
  686. </tr>
  687. </table>
  688. <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" >
  689. <legend width="960px" >附件信息:</legend>
  690. <table width="960px" class="tableStyle" align="center">
  691. <tr>
  692. <td width="110px" class="class_color" align="right"><span>纸质扫描件:</span></td>
  693. <td colspan="2"><font color=red>只有领导审核、签发的word、pdf、图片(png/jpg)附件才可以上传直接发布</font></td>
  694. </tr>
  695. <tr>
  696. <td width="110px" class="class_color" align="right"><span align="right" class="star">*</span>上传附件:</td>
  697. <td width= "750px" colspan="3"><div style="width:750px" id="fileDiv" name="fileDiv" ></div></td>
  698. </tr>
  699. </table>
  700. </fieldset>
  701. </form>
  702. <form id="alertResponseNumForm" method="post">
  703. <input name="classid" value="368" type="hidden"/>
  704. <input type="hidden" id="COMPANY_ID_368" name="COMPANY_ID_368"/>
  705. <input type="hidden" id="YEAR_368" name="YEAR_368"/>
  706. <input type="hidden" id="NUM_368" name="NUM_368"/>
  707. <input type="hidden" id="IS_ADJUST_368" name="IS_ADJUST_368" value="F"/>
  708. <input type="hidden" id="IS_ALERT_368" name="IS_ALERT_368" value="1"/>
  709. <input type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368" value="-1"/>
  710. </form>
  711. </div>
  712. </body>
  713. </html>