查询的是同样的数据,但是每查询一次,样式就变化了
{"company":"宜春","people":"李四","date":"2020-5-01","principle":"张三","inspectPeople":"张三、李四","inspectDetail":"完成 正常","DataSet":[{"id":"03","name":"安全生产检查月报","date":"2020/5/1 0:00:00","num":1,"item":"aa","measure":"aa1","complete":"aa2","updateDate":"2020/5/9 17:50:38"},{"id":"03","name":"安全生产检查月报","date":"2020/5/1 0:00:00","num":2,"item":"bb","measure":"bb1","complete":"bb2","updateDate":"2020/5/9 17:50:38"},{"id":"03","name":"安全生产检查月报","date":"2020/5/1 0:00:00","num":3,"item":"cc","measure":"aa1","complete":"aa2","updateDate":"2020/5/9 17:50:38"},{"id":"03","name":"安全生产检查月报","date":"2020/5/1 0:00:00","num":4,"item":"dd","measure":"bb1","complete":"bb2","updateDate":"2020/5/9 17:50:38"},{"id":"03","name":"安全生产检查月报","date":"2020/5/1 0:00:00","num":0,"item":" ","measure":" ","complete":" ","updateDate":"2020/5/19 9:42:04"}]}
data数据如上,每次查询都是5行数据
source = new GC.Spread.Sheets.Bindings.CellBindingSource(data);
sheet.setDataSource(source);
sheet.resizeTable(table, new GcSpread.Sheets.Range(4, 1, tableRows + 1, sheet.getColumnCount() - 1));
sheet.addSpan(4, 0, tableRows, 1);
for (i = 5; i < 4 + tableRows; i++) {
sheet.setRowHeight(i, 80);
}
sheet.isPaintSuspended(false);
tableRows 为获取到的每次查询的行数
但是查询后是这样的:
第一次查询如下:
第二次查询:
第三次查询:
第四次查询:
|