public void onl oad() throws Exception { if ((!this.currentCompany.isIsBizUnit()) && (!"FINDVIEW".equalsIgnoreCase(getOprtState()))) { throw new NTException(NTException.CHANGE_TO_BIZUNIT); } super.onLoad(); this.tblMain.checkParsed(); init(); addLine(); setCellValue("exchangeRate", DEFAULT_EXCHANGERATE); int count = tblMain.getRowCount(); for (int i = 0; i <count; i++) { tblMain.getCell(i, "draftNumber").getStyleAttributes().setLocked(true); tblMain.getCell(i, "draftNumber").getStyleAttributes().setBackground(new Color(15263971)); } }
标签:onLoad,分录,int,NTException,单元格,tblMain,EAS From: https://www.cnblogs.com/ketoli/p/17693430.html