29cc9045a25fa22d1cc9e68c0e06701faa04d4a2.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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="../../../../include.jsp" %>
  8. <!--树组件与弹窗组件(这里引入只为“非iframe弹窗(复杂内容)”示例需要) -->
  9. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/drag.js"></script>
  10. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/dialog.js"></script>
  11. <!--树组件与弹窗组件(这里引入只为“非iframe弹窗(复杂内容)”示例需要) -->
  12. <!--引用资源文件,JS CSS-->
  13. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  17. <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
  18. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  19. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  20. <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
  21. <!-- <script type="text/javascript" src="../../../../..//scripts/business/em/alert/warning/WarningReleaseMatter.js"></script> -->
  22. <script type="text/javascript">
  23. var fd_id = "<%=request.getParameter("fd_id")%>";
  24. var dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  25. //页面初始化
  26. $(function(){
  27. $("#BUSINESS_ID_378").val(fd_id);
  28. //部门id
  29. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  30. //查看表单
  31. if(fd_id.length>0){
  32. $(".titleShow").text("任务清单");
  33. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  34. var params = {
  35. classid : '365',
  36. objectID : fd_id
  37. };
  38. $.request.query(url,params,function(data){
  39. for(var i in data){
  40. $('#'+i).html(data[i]);
  41. }
  42. //$("#faBu").html(data.WRITER_365);
  43. if(data.IS_SEND_365_SHOW=="已发布"){
  44. if(data.CURRENT_EW_LEVEL_365_SHOW=="红色预警" || data.CURRENT_EW_LEVEL_365_SHOW=="橙色预警"){
  45. $("#faBu").html(data.RELEASE_UNIT_365_SHOW+"应急指挥中心");
  46. $("#faBuDate").html(data.RELEASE_RELIEVE_DATE_365);
  47. }else{
  48. $("#faBu").html(data.RELEASE_UNIT_365_SHOW+"应急办");
  49. $("#faBuDate").html(data.RELEASE_RELIEVE_DATE_365);
  50. }
  51. }
  52. $("#faBuDate").html(data.UPDATEDATE_365);
  53. $("#earlyWarningId").val(data.EARLY_WARNING_ID_365);//、、、、、、、、、、、、、、、、
  54. person(fd_id,data.IS_SEND_365);
  55. sendPerson(data.EARLY_WARNING_AREA_ID_365,data.EARLY_WARNING_NAME_365);
  56. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  57. //报表
  58. reportTable();
  59. //报告
  60. getReport();
  61. });
  62. };
  63. });
  64. function changeSendState(Fd_Objectid){
  65. /* top.Dialog.confirm("是否要发布?|报表",function(){
  66. var url0 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/updateReportScheduleSendStat';
  67. var params0 = { FD_OBJECTID : Fd_Objectid };
  68. $.request.query(url0,params0,function(data){
  69. if(data==true){
  70. window.location.reload();
  71. }
  72. },"text");
  73. },function(){
  74. }); */
  75. }
  76. function changeIsRelease(Fd_Objectid){
  77. /* top.Dialog.confirm("是否要发布?|报告",function(){
  78. var url1 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/updateAlertReportPlanIsRelease';
  79. var params1 = { FD_OBJECTID : Fd_Objectid };
  80. $.request.query(url1,params1,function(data){
  81. if(data==true){
  82. window.location.reload();
  83. }
  84. },"text");
  85. },function(){
  86. }); */
  87. }
  88. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  89. function person(fd_id,is_send){
  90. var url1 = $.pathname() + '/ws/qdbbi/QueryDataByBusinessId/query/';
  91. var params1 = {
  92. 'businessId' :fd_id
  93. };
  94. $.ajax({
  95. url:url1,
  96. type:"post",
  97. data:params1,
  98. dataType : "json",
  99. success : function(data) {
  100. for (var i = 0; i < data.length; i++) {
  101. var personName = data[i].PERSON_NAME;
  102. var personDate = (data[i].UPDATEDATE).split(".")[0];
  103. if(is_send != '1' && data[i].STATUES=="1"){
  104. $("#shenHe").html(personName);
  105. $("#shenHeDate").html(personDate);
  106. }else if(is_send != '3' && data[i].STATUES=="3"){
  107. $("#qianFa").html(personName);
  108. $("#qianFaDate").html(personDate);
  109. }
  110. }
  111. },
  112. error:function(e){
  113. alert("访问服务失败! ")
  114. }
  115. });
  116. }
  117. //全部启动
  118. /* function startAll(){
  119. changeSendState();//发布报表
  120. changeIsRelease();//发布报告
  121. } */
  122. function sendPerson(rangeIds,reportName){
  123. var rangeIdsStr = "";
  124. if(rangeIds != null && rangeIds != ""){
  125. rangeIds = rangeIds.split(',');
  126. var len = rangeIds.length;
  127. for(var i =0;i<len;i++){
  128. if(i == (len-1)){
  129. rangeIdsStr += "'"+rangeIds[i]+"'";
  130. }else{
  131. rangeIdsStr += "'"+rangeIds[i]+"',";
  132. }
  133. }
  134. }
  135. //$.post($.pathname() + "/ws/human/TreateHumanService/queryEmergencyPersonPhone",{companyIds:rangeIdsStr},function(data){
  136. // $("#personPhone").text(data.split('$')[1]);
  137. //});
  138. $("#reportName").val(reportName);
  139. $.post($.pathname() + "/ws/human/TreateHumanService/queryEmergencyPersonName",{companyIds:rangeIdsStr},function(data){
  140. $("#person").text(data.split('$')[1]);
  141. $("#personPhone").text(data.split('$')[1]);
  142. });
  143. }
  144. function reportTable(){
  145. var url0 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/getReportScheduleProjectName';
  146. var params0 = { WARNING_NUMBER : $("#earlyWarningId").val(),isAlert:'0',dept_id:dept_id};
  147. /* $.post(url0,params0, function(data) {}); */
  148. $.request.query(url0,params0,function(data){
  149. var i;
  150. if(data.length>0){
  151. //alert(JSON.stringify(data));
  152. for(i=0;i<data.length;i++){
  153. var tempInput = data[i].FILL_IN_SCHEDULE;
  154. var strBG = "<tr>"+
  155. "<td width='35%'>已生成报表填报计划:"+data[i].NAME+"</td>"+
  156. "<td width='15%'>填报类型:"+tempInput+"</td>"+
  157. "<td width='15%'>开始时间:"+data[i].START_TIME+"</td>";
  158. if(tempInput == '周期性'){
  159. strBG += "<td width='15%'>填报时间:"+data[i].ROUND_TIME+"</td>";
  160. }else{
  161. strBG += "<td width='15%'>填报时间:"+data[i].TEMPORARY_TIME+"</td>";
  162. }
  163. if(data[i].SEND_STAT!=0){
  164. strBG += "<td width='20%'>发布状态:发布</td>";
  165. }else{
  166. strBG += "<td width='20%'>发布状态:未发布</td>";
  167. }
  168. strBG += "</tr>"
  169. //alert(data[i].FD_OBJECTID)
  170. $("#baoBiao").append(strBG);
  171. }
  172. }else{
  173. $("#baoBiao").append("<tr><td colspan='3'>没有生成报表</td></tr>");
  174. }
  175. },"text");
  176. }
  177. function getReport(){
  178. url0 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/getReportPlanMSG';
  179. params0 = { EARLY_WARNING_ID : $("#earlyWarningId").val(),IS_ALERT:'0'};
  180. $.request.query(url0,params0,function(data){
  181. var i;
  182. //$("div[title='i']").html(data[i].PROGRAMME_NAME);
  183. if(data.length>0){
  184. //alert(JSON.stringify(data));
  185. for(i=0;i<data.length;i++){
  186. var tempInput = data[i].WRITE_DATE_TYPE;
  187. var strBG = "<tr>"+
  188. "<td class='BGid' style='display: none;'>"+data[i].FD_OBJECTID+"</td>"+
  189. "<td width='35%'>已生成报告填报计划:"+data[i].PROGRAMME_NAME+"</td>"+
  190. "<td width='15%'>填报类型:"+tempInput+"</td>"+
  191. "<td width='15%'>开始时间:"+data[i].START_TIME+"</td>";
  192. if(tempInput == '周期性'){
  193. strBG += "<td width='15%'>填报时间:"+data[i].CIRCLE_TIME+"</td>";
  194. }else{
  195. strBG += "<td width='15%'>填报时间:"+data[i].TEMPORARY_TIME+"</td>";
  196. }
  197. if(data[i].IS_RELEASE!=0){
  198. strBG += "<td width='20%'>发布状态:发布</td>";
  199. }else{
  200. strBG += "<td width='20%'>发布状态:未发布</td>";
  201. }
  202. strBG += "</tr>"
  203. //alert(data[i].FD_OBJECTID)
  204. $("#baoGao").append(strBG);
  205. }
  206. }else{
  207. $("#baoGao").append("<tr><td colspan='3'>没有生成报告</td></tr>");
  208. }
  209. },"text");
  210. }
  211. </script>
  212. </head>
  213. <body>
  214. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  215. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="Warning.jsp"><img class="back" title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow"></font></div>
  216. <table class="tableStyle" style="width: 100%;">
  217. <tr><td colspan="4" style="font-weight: bold;" align="center">基本信息</td></tr>
  218. <tr>
  219. <td align="right" width="15%">预警名称:</td>
  220. <td width="35%"><div id="EARLY_WARNING_NAME_365"></div></td>
  221. <td align="right" width="15%">预警编号:</td>
  222. <td width="35%"><div id="EARLY_WARNING_ID_365"></div></td>
  223. </tr>
  224. <tr>
  225. <td align="right" width="15%">预警性质:</td>
  226. <td width="35%"><div id="EARLY_WARNING_PROPERTY_365_SHOW"></div> </td>
  227. <td align="right" width="15%">预警级别:</td>
  228. <td width="35%"><div id="CURRENT_EW_LEVEL_365_SHOW"></div></td>
  229. </tr>
  230. <tr>
  231. <td align="right" width="15%">预警范围:</td>
  232. <td width="35%" colspan="3"><div id="EARLY_WARNING_AREA_NAME_365"></div></td>
  233. </tr>
  234. <tr>
  235. <td align="right" width="15%">应急预案:</td>
  236. <td width="35%" colspan="3"><div id="MEET_EMERGENCIES_PLAN_365_SHOW"></div></td>
  237. </tr>
  238. <tr>
  239. <td align="right" width="15%">填报人:</td>
  240. <td width="35%"><div id="WRITER_365"></div></td>
  241. <td align="right" width="15%">填报时间:</td>
  242. <td width="35%"><div id="WRITE_TIME_365"></div></td>
  243. </tr>
  244. <tr>
  245. <td align="right" width="15%">审核人:</td>
  246. <td width="35%"><div id="shenHe"></div></td>
  247. <td align="right" width="15%">审核时间:</td>
  248. <td width="35%"><div id="shenHeDate"></div></td>
  249. </tr>
  250. <tr>
  251. <td align="right" width="15%">签发人:</td>
  252. <td width="35%"><div id="qianFa"></div></td>
  253. <td align="right" width="15%">签发时间:</td>
  254. <td width="35%"><div id="qianFaDate"></div></td>
  255. </tr>
  256. <tr>
  257. <td align="right" width="15%">发布单位:</td>
  258. <td width="35%"><div id="faBu"></div></td>
  259. <td align="right" width="15%">发布时间:</td>
  260. <td width="35%"><div id="faBuDate"></div></td>
  261. </tr>
  262. </table>
  263. <br/>
  264. <table class="tableStyle" style="width: 100%;">
  265. <tr><td colspan="3" style="font-weight: bold;" align="center">任务列表</td></tr>
  266. <tr><td colspan="3" style="font-weight: bold;">一、报表</td></tr>
  267. </table>
  268. <table class="tableStyle" id="baoBiao" style="width: 100%;">
  269. </table>
  270. <table class="tableStyle" style="width: 100%;">
  271. <tr id="MyTr"><td colspan="3" style="font-weight: bold;">二、报告</td></tr>
  272. </table>
  273. <table class="tableStyle" id="baoGao" style="width: 100%;">
  274. </table>
  275. <table class="tableStyle" style="width: 100%;">
  276. <tr><td colspan="3" style="font-weight: bold;">三、短信</td></tr>
  277. <tr>
  278. <td width="20%" align="right">接收人员:</td>
  279. <td width="80%" colspan="2" id="personPhone"></td>
  280. </tr>
  281. <tr>
  282. <td width="20%" align="right">短信内容:</td>
  283. <td width="60%"><textarea style="width: 100%" id="reportName"></textarea></td>
  284. <td width="20%"><!-- <input type="button" value="发送"/> --></td>
  285. </tr>
  286. <tr><td colspan="3" style="font-weight: bold;">四、站内消息</td></tr>
  287. <tr>
  288. <td width="20%" align="right">站内提醒人员:</td>
  289. <td width="60%" id="person"></td>
  290. <td width="20%"><!-- <input type="button" value="发送"/> --></td>
  291. </tr>
  292. <tr><td colspan="3" align="center"><!-- <input type="button" value="全部启动" onclick="startAll()"> --></td></tr>
  293. </table>
  294. <!-- ======================================================================================================================================================= -->
  295. <table id="hideTable" style="display:none;">
  296. <tr>
  297. <td>
  298. <input type="text" id="earlyWarningId"/>
  299. <input
  300. </td>
  301. </tr>
  302. </table>
  303. <!-- ======================================================================================================================================================= -->
  304. </div>
  305. </body>
  306. </html>