分录计算逻辑

		// 保存的时候计算百分比
		KDTFootManager footManager = kdtE1.getFootManager();
		IRow footRow = footManager.getFootRow(0);
		Double sctlsl = Double.valueOf(footRow.getCell("sctlsl").getValue()
				.toString());
		for (int i = 0; i < this.kdtE1.getRowCount(); i++) {
			if (!"".equals(this.kdtE1.getCell(i, "yuanliao").getValue())
					&& null != this.kdtE1.getCell(i, "yuanliao").getValue()) {
				double kkzb = Double.parseDouble(this.kdtE1
						.getCell(i, "sctlsl").getValue().toString());
				Double bfb = Double.valueOf(kkzb / sctlsl);
				this.kdtE1.getCell(i, "bfb").setValue(bfb);
			}
		}

 

你可能感兴趣的:(BOS项目)