<%@ 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-2 col-xs-2">*证件类型</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-1 col-xs-1">*手机</td>
	<td class="col-sm-1 col-xs-1">操作</td>
</tr>
<c:if test="${ rsVoList!=null}">
	<input type="hidden" name="hire_num" id="hire_num" value="${rsVoList.size()}">
	<c:forEach items="${rsVoList}" var="rsvo" varStatus="index">
		<c:set var="doIndex" value="${index.index}"/>
		<tr class="hire_num_${doIndex}">
			<input type="hidden" name="hirelingVoList[${doIndex}].oid" id="hire_oid_${doIndex}" value="">
			<td class="col-sm-1 col-xs-1 signIndex">${doIndex+1}</td>
			<td class="col-sm-1 col-xs-1">
				<input Data-Val="Required" type="text" name="hirelingVoList[${doIndex}].name" id="hire_name_${doIndex}" value="${ rsvo.name}" class="form-control" placeholder="" />
			</td>
			<td class="col-sm-2 col-xs-2">
				<select Data-Val="Required" class="form-control" name="hirelingVoList[${doIndex}].id_type" id="hire_id_type_${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="hirelingVoList[${doIndex}].id_card" GIST-ID="hire_id_type_${doIndex}" id="hire_id_card_${doIndex}" value="${ rsvo.id_card}" class="form-control" placeholder="" />
			</td>
			<td class="col-sm-2 col-xs-2">
				<input Data-Val="Required" type="text" name="hirelingVoList[${doIndex}].birth_date" GIST-ID="hire_id_card_${doIndex}" id="hire_birth_date_${doIndex}" value="${ rsvo.birth_date}" class="laydate-icon form-control" onclick="laydate({elem: '#hire_birth_date_${doIndex}',format: 'YYYY-MM-DD'});" />
			</td>
			<td class="col-sm-1 col-xs-1">
				<select Data-Val="Required" class="form-control" name="hirelingVoList[${doIndex}].sex" GIST-ID="hire_id_card_${doIndex}" id="hire_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="hirelingVoList[${doIndex}].career" id="hire_career_${doIndex}" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
					<option value="1" <c:if test="${rsvo.career eq '1' }"> selected="selected"</c:if> >内勤人员</option>
					<option value="2" <c:if test="${rsvo.career eq '2' }"> selected="selected"</c:if> >保安人员</option>
					<c:if test="${fn:contains(product_code,'GZZRX-CA')||fn:contains(product_code,'TYX-CA')}">
						<option value="3" <c:if test="${rsvo.career eq '3' }"> selected="selected"</c:if> >武装押运人员</option>
					</c:if>
					<c:if test="${fn:contains(product_code,'GZZRX-TB')||fn:contains(product_code,'GZZRX-QH')||fn:contains(product_code,'GZZRX-PAC')||fn:contains(product_code,'GZZRX-CA')}">
						<option value="4" <c:if test="${rsvo.career eq '4' }"> selected="selected"</c:if> >保洁人员</option>
					</c:if>
				</select>
			</td>
			<td class="col-sm-1 col-xs-1">
				<input Data-Val="Required" type="text" name="hirelingVoList[${doIndex}].mobile" id="hire_mobile_${doIndex}" value="${ rsvo.mobile}" class="form-control" placeholder="" />
			</td>
			<td class="col-sm-1 col-xs-1">
				<label><a href="javascript:;" onclick="deleteThisRow('hire_num_${doIndex}','2000','add-a-line')">删除</a></label>
			</td>
		</tr>
	</c:forEach>
</c:if>
</tbody>
