<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<tbody>
<tr>
	<td class="col-sm-1 col-xs-1">序号</td>
	<td class="col-sm-1 col-xs-1">*姓名</td>
	<td class="col-sm-1 col-xs-1">*证件类型</td>
	<td class="col-sm-2 col-xs-2">*证件号码</td>
	<td class="col-sm-2 col-xs-2">*出生日期</td>
	<td class="col-sm-1 col-xs-1">*性别</td>
	<td class="col-sm-1 col-xs-1">*职业</td>
	<td class="col-sm-2 col-xs-2">*手机</td>
	<td class="col-sm-1 col-xs-1">操作</td>
</tr>
<c:if test="${ rsVoList!=null}">
	<input type="hidden" name="role_num" id="role_num" value="${rsVoList.size()}">
	<c:forEach items="${rsVoList}" var="rsvo" varStatus="index">
		<c:set var="doIndex" value="${index.index+1}"/>
		<tr class="role_num_${doIndex}">
			<input type="hidden" name="roleSubjectList[${doIndex}].oid" id="role_oid_${doIndex}" value="">
			<input type="hidden" name="roleSubjectList[${doIndex}].kind" id="role_kind_${doIndex}" value="2"/>
			<td class="col-sm-1 col-xs-1 signIndex">${doIndex}</td>
			<td class="col-sm-1 col-xs-1">
				<input Data-Val="Required" type="text" name="roleSubjectList[${doIndex}].name_cn" id="role_namecn_${doIndex}" value="${ rsvo.name_cn}" class="form-control" placeholder="" />
			</td>
			<td class="col-sm-1 col-xs-1">
				<select Data-Val="Required" class="form-control" name="roleSubjectList[${doIndex}].id_type" id="role_idType_${doIndex}" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
					<option value="">-请选择-</option>
					<c:forEach items="${personTypeList }" var="list">
						<option value="${list.value }" <c:if test="${rsvo.id_type eq list.value }"> selected="selected"</c:if>>${list.name }</option>
					</c:forEach>
				</select>
			</td>
			<td class="col-sm-2 col-xs-2">
				<input Data-Val="Required" type="text" name="roleSubjectList[${doIndex}].organization_code" GIST-ID="role_idType_${doIndex}" id="role_organizationCode_${doIndex}" value="${ rsvo.organization_code}" class="form-control" placeholder="" />
			</td>
			<td class="col-sm-2 col-xs-2">
				<input Data-Val="Required" type="text" name="roleSubjectList[${doIndex}].birth_date" GIST-ID="role_organizationCode_${doIndex}" id="role_birthDate_${doIndex}" value="${ rsvo.birth_date}" class="laydate-icon form-control" onclick="laydate({elem: '#role_birthDate_${doIndex}',format: 'YYYY-MM-DD'});" />
			</td>
			<td class="col-sm-1 col-xs-1">
				<select Data-Val="Required" class="form-control" name="roleSubjectList[${doIndex}].sex" GIST-ID="role_organizationCode_${doIndex}" id="role_sex_${doIndex}" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
					<option value="">-请选择-</option>
					<option value="1" <c:if test="${rsvo.sex eq '1' }"> selected="selected"</c:if> >男</option>
					<option value="2" <c:if test="${rsvo.sex eq '2' }"> selected="selected"</c:if> >女</option>
				</select>
			</td>
			<td class="col-sm-1 col-xs-1">
				<select Data-Val="Required" class="form-control" name="roleSubjectList[${doIndex}].major_group" id="role_majorGroup_${doIndex}" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
					<c:if test="${!fn:contains(productCode,'TYX-QH-DQ')}">
					<option value="1" <c:if test="${rsvo.major_group eq '1' }"> selected="selected"</c:if> >内勤人员</option>
					<option value="2" <c:if test="${rsvo.major_group eq '2' }"> selected="selected"</c:if> >保安人员</option>
					<c:if test="${!fn:contains(productCode,'TYX-RB')}"><option value="3" <c:if test="${rsvo.major_group eq '3' }"> selected="selected"</c:if> >武装押运人员</option></c:if>
					<c:if test="${fn:contains(productCode,'TYX-CA')}"><option value="4" <c:if test="${rsvo.major_group eq '4' }"> selected="selected"</c:if> >保洁人员</option></c:if>
					</c:if>
					<c:if test="${fn:contains(productCode,'TYX-QH-DQ')}">
						<option value="2" <c:if test="${rsvo.major_group eq '2' }"> selected="selected"</c:if> >保安人员</option>
					</c:if>
				</select>
			</td>
			<td class="col-sm-2 col-xs-2">
				<input Data-Val="Required" type="text" name="roleSubjectList[${doIndex}].mobile" id="role_mobile_${doIndex}" value="${ rsvo.mobile}" class="form-control" placeholder="" />
			</td>
			<td class="col-sm-1 col-xs-1">
				<label><a href="javascript:;" onclick="deleteThisRow('role_num_${doIndex}','2000','add-a-line')">删除</a></label>
			</td>
		</tr>
	</c:forEach>
</c:if>
</tbody>
