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(......)
}

上一篇:CF1033G Chip Game


下一篇:NPOI之Excel——合并单元格、设置样式、输入公式