0
点赞
收藏
分享

微信扫一扫

EAS   序时簿界面根据值设置颜色

蛇发女妖 2023-02-28 阅读 64


 EAS   序时簿界面根据值设置颜色

EAS   序时簿界面根据值设置颜色_Boo

@Override
protected void afterTableFillData(KDTDataRequestEvent e) {
// TODO Auto-generated method stub
super.afterTableFillData(e);

for(int i = e.getFirstRow();i<=e.getLastRow();i++){
IRow row = tblMain.getRow(i);
ICell cell = row.getCell("bizDate");
Boolean fivouchered = (Boolean) row.getCell("Fivouchered").getValue();
Date bizDate = (Date) cell.getValue();
row.getCell("bizDate");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
try {
Date parse = simpleDateFormat.parse("2021-03-23");
if(bizDate.compareTo(parse)<=0){
if(!fivouchered){
row.getCell("Fivouchered").getStyleAttributes().setBackground(Color.gray);
}
}



} catch (ParseException e1) {
e1.printStackTrace();
}

}

}

 

举报

相关推荐

0 条评论