eas之设置单元格可编辑

for(int i=0;i<kdtEntrys.getRowCount();i++){
    kdtEntrys.getRow(i).getCell("orgUnit").getStyleAttributes().setLocked(false);
    kdtEntrys.getRow(i).getCell("bizMan).getStyleAttribute().setLocked(false);
}
//如果折扣金额为null则初始化为0
if(kdtEntrys.getRow(i).getCell("discountAmount").getValue()==null){
    kdtEntrys.getRow(0).getCell("discountAmount").setValue(new BigDecimal("0.0"));
}
//汇总分录行金额
BigDecimal amount=new BigDecimal("0");
for(int i=0,n=kdtEntrys.getRowCount();i<n;i++){
    amount=amount.add(......)
}

posted @ 2019-06-05 00:59  一条有梦想的海洋咸鱼  阅读(386)  评论(0编辑  收藏  举报