var bh = getItemValueAsString("编号");
var state = getCurrentDocument().getStateInt();
var col=bh;
var flowType= getCurrentDocument().getLastFlowOperation();
println(getCurrentDocument());
if(flowType==8){//表示流程终止
col += "<div class='changeColor_red' style='display:none;'></div><script><script>";
}else if(state==256){//审批中
col += "<div class='changeColor_blue' style='display:none;'></div>";
}else if(state==1048576){//审批通过
col += "<div class='changeColor_green' style='display:none;'></div>";
}else{
col += "<div class='changeColor_black' style='display:none;'></div>";
}