4f3eddaf29b3506c89d4777eb5c9229f8f174c8d.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. <!--引用资源文件,JS CSS-->
  9. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  10. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  11. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  16. <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
  17. <script language="javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
  18. <style>
  19. /* .roundedRectangle{
  20. background: #FFFFCE;//背景色
  21. border-style: solid;
  22. border-radius: 5px; //圆角的大小
  23. border-color: #000 #000 #000 #000; //边框颜色,依次为上、右、下、左
  24. } */
  25. .abc{
  26. position:relative;
  27. left: 128px;
  28. top: 200px;
  29. }
  30. ul{width: 80%;margin: auto;min-width:800px;}
  31. ul li{margin-top: 40px;vertical-align: top;}
  32. .c_img_state{display: inline-block;width: 10%;margin-left: 2.5%;vertical-align: top;position: relative;}
  33. .c_img_people{display: inline-block;width: 10%;margin-left: 2.5%;vertical-align: top;text-align: left;}
  34. .c_img_people img{display: block;}
  35. .c_text_time{display: inline-block;width: 50%;margin-left: 2.5%;vertical-align: top;text-align: left;}
  36. .c_tbTime{margin-left:30px; font-size: 17px;color:#4b4a4a}
  37. .c_gyTime{margin: 20px;color:#009ADB;font-size: 15px;}
  38. .c_fangxiang{ position: absolute; top: 95px; left: 42px;}
  39. .c_people_name{position: absolute;margin-top: -30px;width: 91px;margin-left:5px;text-align: center;}
  40. </style>
  41. <script>
  42. var eventId = "<%=request.getParameter("fd_id")%>";
  43. var is_adjust = "<%=request.getParameter("is_adjust")%>";
  44. //是否动态页签 true为是动态页签
  45. var isActivePage = "<%=request.getParameter("isActivePage")%>";
  46. var tianbaoshijian = '';
  47. var fasongshijian='';
  48. var shenheshijian='';
  49. var qianfashijian='';
  50. var fabushijian='';
  51. $(function(){
  52. if(isActivePage=="true"){
  53. //如果是动态页签,则隐藏返回按钮
  54. $("#back").parent().hide();
  55. }
  56. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  57. var params = {
  58. classid : '365',
  59. objectID : eventId
  60. };
  61. //通过通知单id 获取通知单相关信息
  62. $.request.query(url,params,function(data){
  63. var url1 = $.pathname() + '/ws/qdbbi/QueryDataByBusinessId/query/';
  64. var params1 = {
  65. 'businessId' :eventId
  66. };
  67. //var is_send = data.IS_SEND_365;
  68. //通过通知单id,获取378表中相关的处理人信息
  69. $.ajax({
  70. url:url1,
  71. type:"post",
  72. data:params1,
  73. dataType : "json",
  74. success : function(date378) {
  75. //判断是不是解除
  76. if(data.CHECK_STATUS_365==43){
  77. tianbaoshijian=data.RELEASE_RELIEVE_DATE_365;
  78. //alert(tianbaoshijian);
  79. }else{
  80. tianbaoshijian = data.WRITE_TIME_365;
  81. }
  82. if(tianbaoshijian.length==19){//将秒去掉
  83. tianbaoshijian = tianbaoshijian.substring(0, 16);
  84. }
  85. $("#tianbao").text(data.WRITER_365);
  86. $("#tianbaoTime").html(tianbaoshijian);
  87. if(data.IS_SEND_365 == 0){//待发送
  88. for (var i = 0; i < date378.length; i++) {
  89. if(date378[i].EXPLAIN !=""){
  90. /* $("#chushi").append("<sapn style='color:ab3a9'> 撤回人:</sapn><span style='color:ab3a9' id='chehuiman'><hr/> </span>");
  91. $("#chehuiman").text(date378[i].PERSON_NAME); */
  92. $("#chushi").append("<sapn style='color:ab3a9'>&nbsp;&nbsp;&nbsp;&nbsp; 退回原因:</sapn><span style='color:ab3a9' id='chehuiinfo'><hr/> </span>");
  93. $("#chehuiinfo").text(date378[i].EXPLAIN);
  94. }
  95. }
  96. }
  97. if(data.IS_SEND_365 == 0){//待发送
  98. if(date378!=''){
  99. $("#fasong").text(data.WRITER_365);
  100. }
  101. }
  102. if(data.IS_SEND_365 == 1){//待审核
  103. //$("#divbg2").css("background-color","#FF0000");
  104. // $("#chuli2").html("已处理");
  105. $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  106. $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  107. $("#fasong").text(data.WRITER_365);
  108. var personDate = (date378[0].UPDATEDATE).split(".")[0];
  109. var time = (date378[0].UPDATEDATE).split(".")[0];
  110. if(personDate.length==19){
  111. personDate = personDate.substring(0, 16);
  112. }
  113. $("#fasongTime").text(personDate);
  114. fasongshijian=personDate;
  115. $("#fasongTime").html(fasongshijian);
  116. $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
  117. if(data.IS_SEND_365 == 1)
  118. $("#shenhe").text(date378[0].PERSON_NAME);
  119. }
  120. if(data.IS_SEND_365 == 3){//待签发
  121. $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  122. $("#div3").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  123. $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  124. $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  125. $("#fasong").text(data.WRITER_365);
  126. // fasongshijian=(data.SENT_TIME_365).split(".")[0];
  127. // if(fasongshijian.length==19){
  128. // fasongshijian = fasongshijian.substring(0, 16);
  129. // }
  130. fasongshijian=(date378[0].UPDATEDATE).substring(0,16);
  131. $("#fasongTime").html(fasongshijian);
  132. $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
  133. for (var i = 0; i < date378.length; i++) {
  134. var personName = date378[i].PERSON_NAME;
  135. var personDate = (date378[i].UPDATEDATE).split(".")[0];
  136. var time = (date378[i].UPDATEDATE).split(".")[0];
  137. if(personDate.length==19){
  138. personDate = personDate.substring(0, 16);
  139. }
  140. if(date378[i].STATUES=="1"){//审核
  141. //alert(personName)
  142. $("#shenhe").text(personName);
  143. $("#shenheTime").text(personDate);
  144. shenheshijian=personDate;
  145. $("#shTime").html(getHour(fasongshijian,shenheshijian));
  146. }
  147. if(date378[i].STATUES=="3"){
  148. $("#qianfa").text(date378[1].PERSON_NAME);
  149. // $("#qianfaTime").text(personDate);
  150. // $("#qfTime").html(getHour(fasongshijian,shenheshijian));
  151. }
  152. }
  153. }
  154. if(data.IS_SEND_365 == 4){//待分发---待发布
  155. $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  156. $("#div3").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  157. $("#div4").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  158. $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  159. $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  160. $("#qianfaimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  161. $("#fasong").text(data.WRITER_365);
  162. fasongshijian=(data.SENT_TIME_365).split(".")[0];
  163. if(fasongshijian.length==19){
  164. fasongshijian = fasongshijian.substring(0, 16);
  165. }
  166. $("#fasongTime").html(fasongshijian);
  167. $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
  168. for (var i = 0; i < date378.length; i++) {
  169. var personName = date378[i].PERSON_NAME;
  170. var personDate = (date378[i].UPDATEDATE).split(".")[0];
  171. var time = (date378[i].UPDATEDATE).split(".")[0];
  172. if(personDate.length==19){
  173. personDate = personDate.substring(0, 16);
  174. }
  175. if(date378[i].STATUES=="1"){//审核
  176. $("#shenhe").text(personName);
  177. $("#shenheTime").text(personDate);
  178. shenheshijian=personDate;
  179. $("#shTime").text(getHour(fasongshijian,shenheshijian));
  180. }
  181. if(date378[i].STATUES=="3"){//签发
  182. $("#qianfa").text(personName);
  183. $("#qianfaTime").text(personDate);
  184. qianfashijian=personDate;
  185. $("#qfTime").text(getHour(shenheshijian,qianfashijian));
  186. $("#fabu").text(data.WRITER_365);
  187. }
  188. }
  189. }
  190. if(data.IS_SEND_365 == 5){//已发布
  191. if(date378==''){
  192. $("#chuli_img5").eq(0).attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  193. $("#fabuimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  194. $("#fabu").text(data.WRITER_365);
  195. tianbaoshijian=(data.WRITE_TIME_365).split(".")[0];
  196. if(tianbaoshijian.length==19){
  197. tianbaoshijian = tianbaoshijian.substring(0, 16);
  198. }
  199. fabushijian=(data.UPDATEDATE_365).split(".")[0];
  200. if(fabushijian.length==19){
  201. fabushijian = fabushijian.substring(0, 16);
  202. }
  203. $("#div3").eq(0).attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  204. $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  205. $("#div4").eq(0).attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  206. $("#qianfaimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  207. $("#shenhe").text(data.WRITER_365);
  208. $("#shenheTime").text(fabushijian);
  209. $("#shTime").text("0分钟");
  210. $("#qianfa").text(data.AGREE_ISSUE_LEADER_NAME_365);
  211. $("#qianfaTime").text(fabushijian+"(口头授权签发人)");
  212. $("#qfTime").text("0分钟");
  213. $("#fabuTime").text(fabushijian);
  214. $("#fbTime").text(getHour(tianbaoshijian,fabushijian));
  215. }else{
  216. $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  217. $("#div3").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  218. $("#div4").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  219. $("#chuli_img5").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
  220. $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  221. $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  222. $("#qianfaimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  223. $("#fabuimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
  224. $("#fasong").text(data.WRITER_365);
  225. fasongshijian=(data.SENT_TIME_365).split(".")[0];
  226. if(fasongshijian.length==19){
  227. fasongshijian = fasongshijian.substring(0, 16);
  228. }
  229. $("#fasongTime").html(fasongshijian);
  230. $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
  231. for (var i = 0; i < date378.length; i++) {
  232. var personName = date378[i].PERSON_NAME;
  233. var personDate = (date378[i].UPDATEDATE).split(".")[0];
  234. var time = (date378[i].UPDATEDATE).split(".")[0];
  235. var $_faburen = $("#fabu").prop("outerHTML");
  236. if(personDate.length==19){
  237. personDate = personDate.substring(0, 16);
  238. }
  239. if(date378[i].STATUES=="1"){
  240. $("#shenhe").text(personName);
  241. $("#shenheTime").text(personDate);
  242. shenheshijian=personDate;
  243. $("#shTime").text(getHour(fasongshijian,shenheshijian));
  244. }
  245. if(date378[i].STATUES=="3"){
  246. $("#qianfa").text(personName);
  247. $("#qianfaTime").text(personDate);
  248. qianfashijian=personDate;
  249. $("#qfTime").text(getHour(shenheshijian,qianfashijian));
  250. $("#fabu").text(data.WRITER_365);
  251. fabushijian=data.UPDATEDATE_365;
  252. if(fabushijian.length==19){
  253. fabushijian = fabushijian.substring(0, 16);
  254. }
  255. $("#fabuTime").text(fabushijian);
  256. if(qianfashijian>fabushijian){
  257. $("#fbTime").text("已超时" + getHour(qianfashijian,fabushijian));
  258. }else{
  259. $("#fbTime").text(getHour(qianfashijian,fabushijian));
  260. }
  261. }
  262. }
  263. }
  264. }
  265. },error:function(e){
  266. alert("访问服务失败! ")
  267. }
  268. });
  269. });
  270. });
  271. function getHour(t1,t2){
  272. //var t1='2015-10-12 06:50';
  273. //var t2='2015-10-12 10:50';
  274. t1=t1.replace(new RegExp("-","gm"), "/");
  275. t1=(new Date(t1)).getTime();
  276. t2=t2.replace(new RegExp("-","gm"), "/");
  277. t2=(new Date(t2)).getTime();
  278. if(!t1 || !t2){
  279. return "";
  280. }else{
  281. var t3=t2-t1;
  282. // if(t3<0){
  283. // top.Dialog.alert("第二个时间参数比第一个时间参数早!");
  284. // var t3=t1-t2;
  285. // }
  286. var day=Math.floor(t3/1000/60/60/24);
  287. var hour=Math.floor((t3-day*1000*60*60*24)/1000/60/60);
  288. var minute=Math.ceil((t3-day*1000*60*60*24-hour*1000*60*60)/1000/60);
  289. var str='';
  290. str=day>0?day+"天" +hour+"小时"+minute+"分钟" : hour>0?hour+"小时" + minute+"分钟" : minute+"分钟";
  291. return str;
  292. }
  293. }
  294. </script>
  295. </head>
  296. <body>
  297. <div class="box1" id="formContent" style="overflow:false;height:100%;border: 1px solid #E4E4E4;background: #F8F8F8;">
  298. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="Warning.jsp"><img class="back" id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a>
  299. <font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow">状态查看</font></div>
  300. <div style="width:100%" align="center">
  301. <ul>
  302. <li>
  303. <div id="divbg1" class="c_img_state">
  304. <img src="/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png"/>
  305. <div class="c_fangxiang">
  306. <img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" />
  307. </div>
  308. </div><div id="tianbaoimg" class="c_img_people">
  309. <img id="divbg1" src="/nwyj/scripts/qui/libs/images/colorball/bc_09.png"/>
  310. <span id="tianbao" class="c_people_name"></span>
  311. </div><div class="c_text_time">
  312. <span class="c_tbTime">填报时间:</span><span id=tianbaoTime></span><br/>
  313. <hr/>
  314. <!-- <span class="c_gyTime">共用时:</span><span id="tbTime"></span> -->
  315. </div>
  316. </li>
  317. <!-- <li>
  318. <div id="divbg2" class="c_img_state">
  319. <img id="chuli_img2" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
  320. <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div>
  321. </div><div id="fasongimg" class="c_img_people">
  322. <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
  323. <span id="fasong" class="c_people_name"></span>
  324. </div><div class="c_text_time">
  325. <span class="c_tbTime">发送时间:</span><span id="fasongTime"></span><br/>
  326. <hr/>
  327. <span class="c_gyTime">共用时:</span><span id="fsTime"></span>
  328. </div>
  329. </li> -->
  330. <li>
  331. <div id="divbg3" class="c_img_state">
  332. <img id="div3" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
  333. <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div>
  334. </div><div id="shenheimg" class="c_img_people">
  335. <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
  336. <span id="shenhe" class="c_people_name"></span>
  337. </div><div class="c_text_time">
  338. <span class="c_tbTime">审核时间:</span><span id="shenheTime"></span><br/>
  339. <hr/>
  340. <span class="c_gyTime">共用时:</span><span id="shTime"></span>
  341. </div>
  342. </li>
  343. <li>
  344. <div id="divbg4" class="c_img_state">
  345. <img id="div4" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
  346. <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div>
  347. </div><div id="qianfaimg" class="c_img_people">
  348. <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
  349. <span id="qianfa" class="c_people_name"></span>
  350. </div><div class="c_text_time">
  351. <span class="c_tbTime">签发时间:</span><span id="qianfaTime"></span><br/>
  352. <hr/>
  353. <span class="c_gyTime">共用时:</span><span id="qfTime"></span>
  354. </div>
  355. </li>
  356. <li>
  357. <div id="divbg5" class="c_img_state">
  358. <img id="chuli_img5" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
  359. <!-- <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div> -->
  360. </div><div id="fabuimg" class="c_img_people">
  361. <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
  362. <span id="fabu" class="c_people_name"></span>
  363. </div><div class="c_text_time">
  364. <span class="c_tbTime">发布时间:</span><span id="fabuTime"></span><br/>
  365. <hr/>
  366. <span class="c_gyTime">共用时:</span><span id="fbTime"></span>
  367. </div>
  368. </li>
  369. </ul>
  370. </div>
  371. </body>
  372. </html>