##1.添加一個lastMonthissue 的字段到 組報表的 field 中 this
##2.單擊子報表 屬性設置。 new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(Arrays.asList($F{lastMonthissue})) code
##3.打開子報表 orm
##4. 在子報表中添加兩個字段 ,這兩個字段 屬於 LastMonthissue 這個Bean的, 在ireport的類型是你這個bean的類型。圖片
private List elecFaultAndAbnormalGridDataSource; private List elecCostGridDataSource;
new net.sf.jasperreports.engine.data.JRmapCollectionDataSource($F{elecFaultAndAbnormalGridDataSource})it
這裏表格的自增序號 能夠用 $V{index}.valueOf(1) 的方式io
##7. 表格裏面添加字段, 這個字段屬於 elecFaultAndAbnormalGridDataSource 裏面的Map集合的字段。table