<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<table class="table">
	<thead>
	<tr>
		<th class="choice check-box"><input type="checkbox" value="反选" id="acball" onclick="choiseAll_x('acball','aoids');">
			<label for="acball"></label>
		</th>
		<th>ID</th>
		<th>产品名称</th>
		<th>产品类型</th>
		<th>价格</th>
		<th>总返佣</th>
		<th>分配返佣</th>
		<th>供应商</th>
	</tr>
	</thead>
	<tbody>
	<input name="resellerID" value="${resellerID }" type="hidden">
	<c:choose>
		<c:when test="${empty assignedList }">
			<tr><td colspan="8" style="text-align: center;">无查询结果</td></tr>
		</c:when>
		<c:otherwise>
			<c:forEach items="${assignedList }" var="assigned">
				<tr>
					<td class="choice check-box">
						<input type="checkbox" id="checkbox${assigned.oid }" value="${assigned.oid }" name="aoids" onclick="choiseOid_x('acball','aoids')">
						<label for="checkbox${assigned.oid }"></label>
					</td>
					<td title="${assigned.oid }">${assigned.oid }</td>
					<td title="${assigned.productName }">${assigned.productName }</td>
					<td title="${fns:getDictLabel (assigned.productType,'product_type','')}">${fns:getDictLabel (assigned.productType,"product_type","")}</td>
					<td><%--${empty assigned.premiumMin ? '-' : assigned.premiumMin eq '0.00' ? '-' : assigned.premiumMin }--%></td>
					<td>${assigned.totalRebate }</td>
					<td>${assigned.brokerage }</td>
					<td title="${assigned.insuranceName }">${assigned.insuranceName }</td>
				</tr>
			</c:forEach>
		</c:otherwise>
	</c:choose>
	</tbody>
</table>
