|
|
@ -355,20 +355,18 @@
|
|
|
|
var edt = work.SDTOfNode.replace(/\-/g, "/");
|
|
|
|
var edt = work.SDTOfNode.replace(/\-/g, "/");
|
|
|
|
edt = new Date(Date.parse(edt.replace(/-/g, "/")));
|
|
|
|
edt = new Date(Date.parse(edt.replace(/-/g, "/")));
|
|
|
|
passTime = GetSpanTime(date, edt);
|
|
|
|
passTime = GetSpanTime(date, edt);
|
|
|
|
//判断流程是否逾期
|
|
|
|
//判断流程是否逾期 @BKGY
|
|
|
|
if (date.getTime() > edt.getTime())//&& work.WFState == 2 && entStr != "01" && work.RDT != work.SDT
|
|
|
|
var node = new Entity("BP.WF.Node", work.FK_Node);
|
|
|
|
//&& paras.indexOf("&IsCC=1") == -1)
|
|
|
|
if (node.CHWay == 1) { //时效判断
|
|
|
|
{
|
|
|
|
var TianShu = node.TimeLimit;
|
|
|
|
listbox += "<td><font color=red>" + window.lang.yuqi + "</font></td>";
|
|
|
|
if (passTime >= 0 && passTime < TianShu * 24 * 3600 * 1000) {
|
|
|
|
}
|
|
|
|
listbox += "<td><font color='#ffac38'>" + window.lang.jinggao + "</font></td>";
|
|
|
|
else {
|
|
|
|
} else {
|
|
|
|
if (passTime >= 0 && passTime < 2 * 24 * 3600 * 1000) {
|
|
|
|
listbox += "<td><font color=green>" + window.lang.zhengchang + "</font></td>";
|
|
|
|
listbox += "<td><font color='#ffac38'>" + window.lang.jinggao + "</font></td>";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
}else {
|
|
|
|
listbox += "<td><font color=green>" + window.lang.zhengchang + "</font></td>";
|
|
|
|
listbox += "<td><font color=green>" + window.lang.zhengchang + "</font></td>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
listbox += "<td>" + GetState(work.WFState, work.Auther) + "</td>";
|
|
|
|
listbox += "<td>" + GetState(work.WFState, work.Auther) + "</td>";
|
|
|
|
listbox += "<td>" + GetPRI(work.PRI) + "</td>";
|
|
|
|
listbox += "<td>" + GetPRI(work.PRI) + "</td>";
|
|
|
|
|
|
|
|
|
|
|
|