<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE excels PUBLIC "-//PAOHAIJIAO//DTD API EXCEL 1.0//EN"
        "classpath:paohaijiao/dtd/Jquick-excel.dtd">
<excels namespace="com.github.paohaijiao.biz.formulas.Formulas0004CashFlowStatementService">

    <!-- 导出：现金流量表 -->
    <excel name="exportCashFlow" returnClass="void">
        <![CDATA[
            EXPORT WITH SHEET="现金流量表", HEADER=true,
                MAPPING={"a":"项目","b":"类别","c":"流入","d":"流出","e":"净额"},
                FORMAT={"c":"#,##0.00","d":"#,##0.00","e":"#,##0.00"},
                FORMULAS={E2:'C2-D2',E3:'C3-D3',E4:'C4-D4',C5:'SUM(C2:C4)',D5:'SUM(D2:D4)',E5:'C5-D5'},
                STYLE={ROW 5:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center}}
        ]]>
    </excel>

    <!-- 导入解析：读取导出的 Excel -->
    <excel name="importCashFlow" returnClass="java.util.List">
        <![CDATA[
            IMPORT WITH SHEET="现金流量表", HEADER=true,
                MAPPING={"项目":"item","类别":"category","流入":"inflow","流出":"outflow","净额":"net"}
        ]]>
    </excel>

</excels>
