颜色尺寸二维数组交叉表格(DataSet实现垂直水平分组合计)

最后更新:2024-03-15 13:39:04 | 状态:未完成

    <table>
        <tr class="stat">
            <td>尺寸</td>
            <c:forEach var="size" items="${sizes}">
                <td class="number-cell">${size.NM}</td>
            </c:forEach>
            <td class="number-cell">合计</td>
        </tr>
        <c:forEach var="color" items="${colors}">
            <tr>
                <td class="stat">${color.NM_CN}</td>
                <c:forEach var="size" items="${sizes}">
                    <td class="number-cell">
                        <al:text data="${all}" var="q" selector="SUIT_ID:${suit.ID},COLOR_ID:${color.ID},SIZE_ID:${size.ID}" property="${col}"></al:text>
                        ${q}
                    </td>
                </c:forEach>
                <td class="color-stat stat number-cell" data-suit="${suit.ID}" data-color="${color.ID}">
                    <span><al:sum data="${all}" var="sumColorQ" selector="SUIT_ID:${suit.ID},COLOR_ID:${color.ID}" property="${col}"></al:sum></span>
                    ${sumColorQ}
                </td>
            </tr>

        </c:forEach>
        <tr>
            <td class="stat">合计</td>
            <c:forEach var="size" items="${sizes}">
                <td class="stat size-stat number-cell"  data-suit="${suit.ID}" data-size="${size.ID}">
                    <span><al:sum data="${all}" selector="SUIT_ID:${suit.ID},SIZE_ID:${size.ID}" property="${col}"></al:sum></span>
                </td>
            </c:forEach>
            <td class="stat all-stat number-cell"  data-suit="${suit.ID}">
                <span><al:sum property="${col}" data="${all}" selector="SUIT_ID:${suit.ID}"></al:sum></span>
            </td>
        </tr>
    </table>

首页 最近更新 搜索 提交 回复