123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <%@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="../../../../include.jsp" %>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
- <script language="javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
-
- <style>
- /* .roundedRectangle{
- background: #FFFFCE;//背景色
- border-style: solid;
- border-radius: 5px; //圆角的大小
- border-color: #000 #000 #000 #000; //边框颜色,依次为上、右、下、左
- } */
- .abc{
- position:relative;
- left: 128px;
- top: 200px;
- }
- ul{width: 80%;margin: auto;min-width:800px;}
- ul li{margin-top: 40px;vertical-align: top;}
- .c_img_state{display: inline-block;width: 10%;margin-left: 2.5%;vertical-align: top;position: relative;}
- .c_img_people{display: inline-block;width: 10%;margin-left: 2.5%;vertical-align: top;text-align: left;}
- .c_img_people img{display: block;}
- .c_text_time{display: inline-block;width: 50%;margin-left: 2.5%;vertical-align: top;text-align: left;}
- .c_tbTime{margin-left:30px; font-size: 17px;color:#4b4a4a}
- .c_gyTime{margin: 20px;color:#009ADB;font-size: 15px;}
- .c_fangxiang{ position: absolute; top: 95px; left: 42px;}
- .c_people_name{position: absolute;margin-top: -30px;width: 91px;margin-left:5px;text-align: center;}
- </style>
-
-
- <script>
- var eventId = "<%=request.getParameter("fd_id")%>";
- var is_adjust = "<%=request.getParameter("is_adjust")%>";
- //是否动态页签 true为是动态页签
- var isActivePage = "<%=request.getParameter("isActivePage")%>";
- var tianbaoshijian = '';
- var fasongshijian='';
- var shenheshijian='';
- var qianfashijian='';
- var fabushijian='';
- $(function(){
- if(isActivePage=="true"){
- //如果是动态页签,则隐藏返回按钮
- $("#back").parent().hide();
- }
-
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : eventId
- };
- //通过通知单id 获取通知单相关信息
- $.request.query(url,params,function(data){
-
- var url1 = $.pathname() + '/ws/qdbbi/QueryDataByBusinessId/query/';
- var params1 = {
- 'businessId' :eventId
- };
- //var is_send = data.IS_SEND_365;
- //通过通知单id,获取378表中相关的处理人信息
- $.ajax({
- url:url1,
- type:"post",
- data:params1,
- dataType : "json",
- success : function(date378) {
-
- //判断是不是解除
- if(data.CHECK_STATUS_365==43){
- tianbaoshijian=data.RELEASE_RELIEVE_DATE_365;
- //alert(tianbaoshijian);
- }else{
- tianbaoshijian = data.WRITE_TIME_365;
- }
- if(tianbaoshijian.length==19){//将秒去掉
- tianbaoshijian = tianbaoshijian.substring(0, 16);
- }
- $("#tianbao").text(data.WRITER_365);
- $("#tianbaoTime").html(tianbaoshijian);
-
- if(data.IS_SEND_365 == 0){//待发送
- for (var i = 0; i < date378.length; i++) {
- if(date378[i].EXPLAIN !=""){
- /* $("#chushi").append("<sapn style='color:ab3a9'> 撤回人:</sapn><span style='color:ab3a9' id='chehuiman'><hr/> </span>");
- $("#chehuiman").text(date378[i].PERSON_NAME); */
- $("#chushi").append("<sapn style='color:ab3a9'> 退回原因:</sapn><span style='color:ab3a9' id='chehuiinfo'><hr/> </span>");
- $("#chehuiinfo").text(date378[i].EXPLAIN);
- }
- }
- }
-
-
- if(data.IS_SEND_365 == 0){//待发送
- if(date378!=''){
- $("#fasong").text(data.WRITER_365);
- }
- }
-
- if(data.IS_SEND_365 == 1){//待审核
- //$("#divbg2").css("background-color","#FF0000");
- // $("#chuli2").html("已处理");
- $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#fasong").text(data.WRITER_365);
- var personDate = (date378[0].UPDATEDATE).split(".")[0];
- var time = (date378[0].UPDATEDATE).split(".")[0];
- if(personDate.length==19){
- personDate = personDate.substring(0, 16);
- }
- $("#fasongTime").text(personDate);
- fasongshijian=personDate;
- $("#fasongTime").html(fasongshijian);
- $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
- if(data.IS_SEND_365 == 1)
- $("#shenhe").text(date378[0].PERSON_NAME);
- }
-
- if(data.IS_SEND_365 == 3){//待签发
- $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#div3").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#fasong").text(data.WRITER_365);
- // fasongshijian=(data.SENT_TIME_365).split(".")[0];
- // if(fasongshijian.length==19){
- // fasongshijian = fasongshijian.substring(0, 16);
- // }
-
- fasongshijian=(date378[0].UPDATEDATE).substring(0,16);
-
- $("#fasongTime").html(fasongshijian);
- $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
- for (var i = 0; i < date378.length; i++) {
- var personName = date378[i].PERSON_NAME;
- var personDate = (date378[i].UPDATEDATE).split(".")[0];
- var time = (date378[i].UPDATEDATE).split(".")[0];
- if(personDate.length==19){
- personDate = personDate.substring(0, 16);
- }
- if(date378[i].STATUES=="1"){//审核
- //alert(personName)
- $("#shenhe").text(personName);
- $("#shenheTime").text(personDate);
- shenheshijian=personDate;
- $("#shTime").html(getHour(fasongshijian,shenheshijian));
- }
- if(date378[i].STATUES=="3"){
- $("#qianfa").text(date378[1].PERSON_NAME);
- // $("#qianfaTime").text(personDate);
- // $("#qfTime").html(getHour(fasongshijian,shenheshijian));
- }
- }
- }
- if(data.IS_SEND_365 == 4){//待分发---待发布
- $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#div3").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#div4").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#qianfaimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#fasong").text(data.WRITER_365);
- fasongshijian=(data.SENT_TIME_365).split(".")[0];
- if(fasongshijian.length==19){
- fasongshijian = fasongshijian.substring(0, 16);
- }
- $("#fasongTime").html(fasongshijian);
- $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
- for (var i = 0; i < date378.length; i++) {
- var personName = date378[i].PERSON_NAME;
- var personDate = (date378[i].UPDATEDATE).split(".")[0];
- var time = (date378[i].UPDATEDATE).split(".")[0];
- if(personDate.length==19){
- personDate = personDate.substring(0, 16);
- }
- if(date378[i].STATUES=="1"){//审核
- $("#shenhe").text(personName);
- $("#shenheTime").text(personDate);
- shenheshijian=personDate;
- $("#shTime").text(getHour(fasongshijian,shenheshijian));
- }
- if(date378[i].STATUES=="3"){//签发
- $("#qianfa").text(personName);
- $("#qianfaTime").text(personDate);
- qianfashijian=personDate;
- $("#qfTime").text(getHour(shenheshijian,qianfashijian));
- $("#fabu").text(data.WRITER_365);
- }
- }
- }
- if(data.IS_SEND_365 == 5){//已发布
- if(date378==''){
- $("#chuli_img5").eq(0).attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#fabuimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#fabu").text(data.WRITER_365);
- tianbaoshijian=(data.WRITE_TIME_365).split(".")[0];
- if(tianbaoshijian.length==19){
- tianbaoshijian = tianbaoshijian.substring(0, 16);
- }
- fabushijian=(data.UPDATEDATE_365).split(".")[0];
- if(fabushijian.length==19){
- fabushijian = fabushijian.substring(0, 16);
- }
-
-
- $("#div3").eq(0).attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#div4").eq(0).attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#qianfaimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#shenhe").text(data.WRITER_365);
- $("#shenheTime").text(fabushijian);
- $("#shTime").text("0分钟");
- $("#qianfa").text(data.AGREE_ISSUE_LEADER_NAME_365);
- $("#qianfaTime").text(fabushijian+"(口头授权签发人)");
- $("#qfTime").text("0分钟");
-
- $("#fabuTime").text(fabushijian);
- $("#fbTime").text(getHour(tianbaoshijian,fabushijian));
- }else{
- $("#chuli_img2").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#div3").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#div4").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#chuli_img5").attr("src","/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png");
- $("#fasongimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#shenheimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#qianfaimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#fabuimg img").attr("src","/nwyj/scripts/qui/libs/images/colorball/bc_09.png");
- $("#fasong").text(data.WRITER_365);
- fasongshijian=(data.SENT_TIME_365).split(".")[0];
- if(fasongshijian.length==19){
- fasongshijian = fasongshijian.substring(0, 16);
- }
- $("#fasongTime").html(fasongshijian);
- $("#fsTime").html( getHour(tianbaoshijian,fasongshijian));
- for (var i = 0; i < date378.length; i++) {
- var personName = date378[i].PERSON_NAME;
- var personDate = (date378[i].UPDATEDATE).split(".")[0];
- var time = (date378[i].UPDATEDATE).split(".")[0];
- var $_faburen = $("#fabu").prop("outerHTML");
- if(personDate.length==19){
- personDate = personDate.substring(0, 16);
- }
- if(date378[i].STATUES=="1"){
- $("#shenhe").text(personName);
- $("#shenheTime").text(personDate);
- shenheshijian=personDate;
- $("#shTime").text(getHour(fasongshijian,shenheshijian));
- }
- if(date378[i].STATUES=="3"){
- $("#qianfa").text(personName);
- $("#qianfaTime").text(personDate);
- qianfashijian=personDate;
- $("#qfTime").text(getHour(shenheshijian,qianfashijian));
- $("#fabu").text(data.WRITER_365);
- fabushijian=data.UPDATEDATE_365;
- if(fabushijian.length==19){
- fabushijian = fabushijian.substring(0, 16);
- }
- $("#fabuTime").text(fabushijian);
- if(qianfashijian>fabushijian){
- $("#fbTime").text("已超时" + getHour(qianfashijian,fabushijian));
- }else{
- $("#fbTime").text(getHour(qianfashijian,fabushijian));
- }
- }
- }
- }
- }
- },error:function(e){
- alert("访问服务失败! ")
- }
- });
-
- });
-
- });
- function getHour(t1,t2){
- //var t1='2015-10-12 06:50';
- //var t2='2015-10-12 10:50';
- t1=t1.replace(new RegExp("-","gm"), "/");
- t1=(new Date(t1)).getTime();
-
- t2=t2.replace(new RegExp("-","gm"), "/");
- t2=(new Date(t2)).getTime();
- if(!t1 || !t2){
- return "";
- }else{
- var t3=t2-t1;
- // if(t3<0){
- // top.Dialog.alert("第二个时间参数比第一个时间参数早!");
- // var t3=t1-t2;
- // }
- var day=Math.floor(t3/1000/60/60/24);
- var hour=Math.floor((t3-day*1000*60*60*24)/1000/60/60);
- var minute=Math.ceil((t3-day*1000*60*60*24-hour*1000*60*60)/1000/60);
- var str='';
- str=day>0?day+"天" +hour+"小时"+minute+"分钟" : hour>0?hour+"小时" + minute+"分钟" : minute+"分钟";
- return str;
- }
- }
- </script>
- </head>
- <body>
- <div class="box1" id="formContent" style="overflow:false;height:100%;border: 1px solid #E4E4E4;background: #F8F8F8;">
- <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>
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow">状态查看</font></div>
- <div style="width:100%" align="center">
- <ul>
- <li>
- <div id="divbg1" class="c_img_state">
- <img src="/nwyj/scripts/qui/libs/images/colorball/yichuli_06.png"/>
- <div class="c_fangxiang">
- <img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" />
- </div>
- </div><div id="tianbaoimg" class="c_img_people">
- <img id="divbg1" src="/nwyj/scripts/qui/libs/images/colorball/bc_09.png"/>
- <span id="tianbao" class="c_people_name"></span>
- </div><div class="c_text_time">
- <span class="c_tbTime">填报时间:</span><span id=tianbaoTime></span><br/>
- <hr/>
- <!-- <span class="c_gyTime">共用时:</span><span id="tbTime"></span> -->
- </div>
- </li>
- <!-- <li>
- <div id="divbg2" class="c_img_state">
- <img id="chuli_img2" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
- <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div>
- </div><div id="fasongimg" class="c_img_people">
- <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
- <span id="fasong" class="c_people_name"></span>
- </div><div class="c_text_time">
- <span class="c_tbTime">发送时间:</span><span id="fasongTime"></span><br/>
- <hr/>
- <span class="c_gyTime">共用时:</span><span id="fsTime"></span>
- </div>
- </li> -->
- <li>
- <div id="divbg3" class="c_img_state">
- <img id="div3" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
- <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div>
- </div><div id="shenheimg" class="c_img_people">
- <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
- <span id="shenhe" class="c_people_name"></span>
- </div><div class="c_text_time">
- <span class="c_tbTime">审核时间:</span><span id="shenheTime"></span><br/>
- <hr/>
- <span class="c_gyTime">共用时:</span><span id="shTime"></span>
- </div>
- </li>
- <li>
- <div id="divbg4" class="c_img_state">
- <img id="div4" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
- <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div>
- </div><div id="qianfaimg" class="c_img_people">
- <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
- <span id="qianfa" class="c_people_name"></span>
- </div><div class="c_text_time">
- <span class="c_tbTime">签发时间:</span><span id="qianfaTime"></span><br/>
- <hr/>
- <span class="c_gyTime">共用时:</span><span id="qfTime"></span>
- </div>
- </li>
- <li>
- <div id="divbg5" class="c_img_state">
- <img id="chuli_img5" src="/nwyj/scripts/qui/libs/images/colorball/121_03.png"/>
- <!-- <div class="c_fangxiang"><img src="/nwyj/scripts/qui/libs/images/colorball/jiantou_11.png" /></div> -->
- </div><div id="fabuimg" class="c_img_people">
- <img src="/nwyj/scripts/qui/libs/images/colorball/hui_03.png"/>
- <span id="fabu" class="c_people_name"></span>
- </div><div class="c_text_time">
- <span class="c_tbTime">发布时间:</span><span id="fabuTime"></span><br/>
- <hr/>
- <span class="c_gyTime">共用时:</span><span id="fbTime"></span>
- </div>
- </li>
- </ul>
-
- </div>
- </body>
- </html>
|