<?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.merge.Merge0032SupplierReconciliationService">

    <!-- 导出：供应商往来对账表 -->
    <excel name="exportSupplierReconciliation" returnClass="void">
        <![CDATA[
            EXPORT WITH SHEET="供应商往来对账表", HEADER=true,
                MAPPING={"a":"供应商","b":"对账月份","c":"我方应付","d":"供方对账","e":"差异金额","f":"差异说明"},
                FORMAT={"c":"#,##0.00","d":"#,##0.00","e":"#,##0.00"},
                FORMULAS={
                    E2:'C2-D2',E3:'C3-D3',
                    E4:'SUM(E2:E3)',
                    E5:'C5-D5',E6:'C6-D6',E7:'C7-D7',
                    E8:'SUM(E5:E7)',
                    E9:'C9-D9',E10:'C10-D10',
                    E11:'SUM(E9:E10)',
                    E12:'E4+E8+E11'
                },
                STYLE={
                    ROW 4:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center},
                    ROW 8:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center},
                    ROW 11:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center},
                    ROW 12:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center}
                },
                MERGE:{
                    RANGE A2:A3 WITH MERGE_WITH_FIRST,
                    RANGE A5:A7 WITH MERGE_WITH_FIRST,
                    RANGE A9:A10 WITH MERGE_WITH_FIRST
                }
        ]]>
    </excel>

    <!-- 导入解析：读取导出的供应商往来对账表 -->
    <excel name="importSupplierReconciliation" returnClass="java.util.List">
        <![CDATA[
            IMPORT WITH SHEET="供应商往来对账表", HEADER=true,
                MAPPING={"供应商":"supplier","对账月份":"period","我方应付":"ourPayable","供方对账":"supplierStatement","差异金额":"diffAmount","差异说明":"diffRemark"}
        ]]>
    </excel>

</excels>
