<?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.Merge0027InventoryCountVarianceService">

    <!-- 导出：库存盘点差异表 -->
    <excel name="exportInventoryCountVariance" returnClass="void">
        <![CDATA[
            EXPORT WITH SHEET="库存盘点差异表", HEADER=true,
                MAPPING={"a":"仓库","b":"物料编码","c":"物料名称","d":"账面数量","e":"实盘数量","f":"单价","g":"差异数量","h":"差异金额"},
                FORMAT={"d":"#,##0","e":"#,##0","f":"#,##0.00","g":"#,##0","h":"#,##0.00"},
                FORMULAS={
                    G2:'E2-D2',H2:'G2*F2',
                    G3:'E3-D3',H3:'G3*F3',
                    G4:'E4-D4',H4:'G4*F4',
                    G5:'SUM(G2:G4)',H5:'SUM(H2:H4)',
                    G6:'E6-D6',H6:'G6*F6',
                    G7:'E7-D7',H7:'G7*F7',
                    G8:'SUM(G6:G7)',H8:'SUM(H6:H7)',
                    G9:'G5+G8',H9:'H5+H8'
                },
                STYLE={
                    ROW 5:{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 9:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center}
                },
                MERGE:{
                    RANGE A2:A4 WITH MERGE_WITH_FIRST,
                    RANGE A6:A7 WITH MERGE_WITH_FIRST
                }
        ]]>
    </excel>

    <!-- 导入解析：读取导出的库存盘点差异表 -->
    <excel name="importInventoryCountVariance" returnClass="java.util.List">
        <![CDATA[
            IMPORT WITH SHEET="库存盘点差异表", HEADER=true,
                MAPPING={"仓库":"warehouse","物料编码":"materialCode","物料名称":"materialName","账面数量":"bookQty","实盘数量":"actualQty","单价":"unitPrice","差异数量":"diffQty","差异金额":"diffAmount"}
        ]]>
    </excel>

</excels>
