<%@ 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" %>
<div class="increased-cont">
	<h2>企业人员变动-员工离职，可在保单中减少相应的被保险人。</h2>
	<form id="minus_detail_list_form">
		<input type="hidden" name="ins_insurance_slip_id" id="ins_insurance_slip_id" value="${policyId}">
		<%--<input type="hidden" name="inception_date" value="${nowDate}">--%>
		<input type="hidden" name="revise_type" value="2">
		<input type="hidden" name="sign" id="minus_sign" value="0"><%--0暂存，1提交--%>
		<div class="increased-time clearfix">
			<div class="time">
				<span>生效时间</span>
				<input title="生效时间" type="text" data-val="required" readonly id="minus_inception_date" name="inception_date" onclick="laydate({elem:'#minus_inception_date',istime: true,istoday: false,min: '${min}',max: '${max}', format: 'YYYY-MM-DD'})">
			</div>
		</div>

		<div class="increased-table redues-table">
			<div class="increased-thead redues-thead">
				<ul class="clearfix">
					<li class="s1">
						<span>姓名</span>
					</li>
					<li class="s2">
						<span>证件类型</span>
					</li>
					<li class="s3">
						<span>证件号</span>
					</li>
					<li class="s4">
						<span>手机号</span>
					</li>
					<li class="s5">
						<span>工种</span>
					</li>
					<%--<li class="s6">
						<span>方案</span>
					</li>--%>
					<li class="s7">
						<span>性别</span>
					</li>
					<li class="s8">
						<span>出生日期</span>
					</li>
					<li class="s9">
						<span>操作</span>
					</li>
				</ul>
			</div>
			<div class="increased-tbody redues-tbody">
				<ul>
					<c:choose>
						<c:when test="${empty preservationVo.insPreservationResultSetVoList }">
							<li >
								<p >暂无记录！！</p>
							</li>
						</c:when>
						<c:otherwise>
							<c:forEach items="${preservationVo.insPreservationResultSetVoList }" var="resultSet" varStatus="i">
								<li class="clearfix">
									<input name="insPreservationDetailVoList[${i.index}].business_id" type="hidden" value="${resultSet.belong_to_id}">
									<input name="insPreservationDetailVoList[${i.index}].business_type" type="hidden" value="${resultSet.belong_to_type}">
									<input name="insPreservationDetailVoList[${i.index}].prev_record_id" type="hidden" value="${resultSet.ins_preservation_record_id}">
									<input name="insPreservationDetailVoList[${i.index}].prev_card" type="hidden" value="${resultSet.id_card}">
									<div class="w1">
										<span>
											${empty resultSet.name ? '-' : resultSet.name}
											<input name="insPreservationDetailVoList[${i.index}].name" type="hidden" value="${resultSet.name}">
										</span>
									</div>
									<div class="w2">
										<span>
											<c:if test="${resultSet.id_type eq '0'}">身份证</c:if>
											<c:if test="${resultSet.id_type eq '3'}">护照</c:if>
											<c:if test="${resultSet.id_type eq '4'}">台胞证</c:if>
											<c:if test="${resultSet.id_type eq '5'}">回乡证</c:if>
											<input name="insPreservationDetailVoList[${i.index}].id_type" type="hidden" value="${resultSet.id_type}">
										</span>
									</div>
									<div class="w3">
										<span>
											${empty resultSet.id_card ? '-' : resultSet.id_card}
											<input name="insPreservationDetailVoList[${i.index}].id_card" type="hidden" value="${resultSet.id_card}">
										</span>
									</div>
									<div class="w4">
										<span>
											${empty resultSet.tel ? '-' : resultSet.tel}
											<input name="insPreservationDetailVoList[${i.index}].tel" type="hidden" value="${resultSet.tel}">
										</span>
									</div>
									<div class="w5">
										<span>
											${resultSet.career eq '1' ? '内勤人员' : resultSet.career eq '2' ? '保安人员' : resultSet.career eq '3' ? '武装押运人员' : resultSet.career eq '4' ? '保洁人员' : '-'}
											<input name="insPreservationDetailVoList[${i.index}].career" type="hidden" value="${resultSet.career}">
										</span>
									</div>
									<%--<div class="w6">
							<span>
								${empty resultSet.scheme ? '-' : resultSet.scheme}
								<input name="insPreservationDetailVoList[${i.index}].scheme" type="hidden" value="${resultSet.scheme}">
							</span>
									</div>--%>
									<div class="w7">
										<span>
											${empty resultSet.sex ? '-' : resultSet.sex eq '1' ? '男' : '女'}
											<input name="insPreservationDetailVoList[${i.index}].sex" type="hidden" value="${resultSet.sex}">
										</span>
									</div>
									<div class="w8">
										<span>
											${empty resultSet.birthday ? '-' : resultSet.birthday}
											<input name="insPreservationDetailVoList[${i.index}].birthday" type="hidden" value="${resultSet.birthday}">
										</span>
									</div>
									<div class="w9">
										<span class="shan" onclick="deleteUpdateDetail(this)">删除</span>
									</div>
								</li>
							</c:forEach>
						</c:otherwise>
					</c:choose>
				</ul>
			</div>

		</div>
	</form>
</div>
<div class="increased-foot">
	<span class="incre-cancel">取消</span>
	<span onclick="minus_save_preservation('0');" class="incre-ts">暂存</span>
	<span onclick="minus_save_preservation('1');" class="incre-confirm">确认减员</span>
</div>
<script>
    $('.increased-foot .incre-cancel').click(function () {
        $('.redues-increased').addClass('fadeOutUpBig').removeClass('fadeInDownBig');
        $('.black-mask').hide();
    });
</script>