//获得调入时间
var indate = record.get("loadIndate");
indate = indate.replace(/-/g,"/");
var date = new Date(indate );
var inDateObj = Ext.util.Format.date(indate.replace(" ","T"),"Y-m-d H:i:s");
var inHours = ((indate.split(" "))[1].split(":"))[1];
var FinishHours = ((value.split(" "))[1].split(":"))[1];
if(parseInt(FinishHours)-parseInt(inHours) > 2){
return '<font color=blue></font><span style="color:red;">' + value + '</span>';
}else{
return value;
}
获得日期差 //获得调入时间
var indate = record.get("inDate");
indate = indate.replace(/-/g,"/");
value = value.replace(/-/g,"/");
var inHours = new Date(indate);
var FinishHours = new Date(value);
var day = (FinishHours - inHours)/(24*60*60*1000);//天数
var hours = (FinishHours - inHours)/(60*60*1000);//小时
if(day>=0 && hours > 2){
return '<font color=blue></font><span style="color:red;">' + value + '</span>';
}else{
return value;
}