feiyu02
2022-11-15 909fd8929d7906f1dca68acc05e36e29b0b9192c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package cn.flightfeather.supervision.business.report.cols
 
import cn.flightfeather.supervision.business.report.BaseCols
import cn.flightfeather.supervision.business.report.DataSource
import cn.flightfeather.supervision.common.utils.ExcelUtil
 
//场景基础信息
class ColSceneBaseInfo(chooseIndexList: List<Int> = emptyList()) : BaseCols(chooseIndexList) {
    override fun onHeads(dataSource: DataSource): MutableList<MutableList<ExcelUtil.MyCell>> {
        return mutableListOf(
            mutableListOf(
                ExcelUtil.MyCell("地址"),
//                ExcelUtil.MyCell("业主单位"),
//                ExcelUtil.MyCell("施工单位"),
//                ExcelUtil.MyCell("建筑面积(m²)"),
//                ExcelUtil.MyCell("施工起始时间"),
//                ExcelUtil.MyCell("施工结束时间"),
//                ExcelUtil.MyCell("工程类型"),
//                ExcelUtil.MyCell("联系人"),
//                ExcelUtil.MyCell("联系方式"),
            )
        )
    }
 
    override fun onOneRow(rowData: DataSource.RowData): List<Any> {
//        return listOf(rowData.scene?.index ?: -99, rowData.scene?.extension2 ?: "", rowData.scene?.name ?: "")
        return listOf(
            rowData.scene?.location ?: ""
        )
    }
}