<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>转正申请管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
        var validateForm;
        var count = 0;
        $(document).ready(function() {
        });
	</script>
	<style>
		/*超过5个汉字，调整label的长度，以下是配套的*/
		.layui-item .layui-form-label{
			width:90px;
		}
		.form-group .layui-item .layui-input-block,
		.query .layui-input-block {
			margin-left: 116px;
		}
	</style>
</head>
<body>
<div class="single-form">
	<div class="container view-form">
		<form:form id="inputForm" modelAttribute="workRegularApply" action="${ctx}/workregularapply/workRegularApply/save" method="post" class="form-horizontal" >
			<form:hidden path="id"/>
			<form:hidden path="basicInfoId" id="basicInfoId"/>
			<div class="form-group layui-row first">
				<div class="form-group-label"><h2>基础信息</h2></div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>姓名：</label>
					<div class="layui-input-block">
						<div class="input-group">
							<form:input id="userId" readonly="true" path="workStaffBasicInfo.name" htmlEscape="false" class="form-control layui-input"/>
						</div>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>工号：</label>
					<div class="layui-input-block">
						<div class="input-group">
							<form:input id="no" path="workStaffBasicInfo.no" htmlEscape="false"  readonly="true"  class="form-control  layui-input"/>
							<span class="input-group-btn">
                                <label class="form-status"><c:choose><c:when test="${not empty workRegularApply.state}">${fns:getDictLabel(workRegularApply.state, 'audit_state', '')}</c:when><c:otherwise>新增</c:otherwise></c:choose></label>
                             </span>
						</div>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>员工状态：</label>
					<div class="layui-input-block">
						<form:input id="status" path="workStaffBasicInfo.status" htmlEscape="false" readonly="true"  class="form-control layui-input" value="${fns:getDictLabel(workRegularApply.workStaffBasicInfo.status, 'staff_status', '')}"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>身份证号：</label>
					<div class="layui-input-block">
						<form:input id="idCard" readonly="true" path="workStaffBasicInfo.idCard" htmlEscape="false" class="form-control layui-input"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>部门：</label>
					<div class="layui-input-block">
						<form:input id="officeName" readonly="true" path="workStaffBasicInfo.office.name" htmlEscape="false" class="form-control layui-input"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>职级：</label>
					<div class="layui-input-block">
						<form:input id="jobName" readonly="true" path="jobName" htmlEscape="false" class="form-control layui-input"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>基本工资：</label>
					<div class="layui-input-block">
						<input id="pay" name="pay" value="${workRegularApply.pay}" readonly="true" htmlEscape="false" class="form-control layui-input"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>入职日期：</label>
					<div class="layui-input-block">
						<input id="entryDate" name="workStaffBasicInfo.entryDate" readonly="true" type="text"  maxlength="20" class="laydate-icondate form-control layer-date  layui-input laydate-icon"
							   value="<fmt:formatDate value="${workRegularApply.workStaffBasicInfo.entryDate}" pattern="yyyy-MM-dd"/>"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label double-line"><span class="require-item">*</span>试用期结束日期：</label>
					<div class="layui-input-block">
						<input id="endDate" name="" type="text"  maxlength="20" class="laydate-icondate form-control layer-date  layui-input laydate-icon"
							   value="<fmt:formatDate value="${workRegularApply.workStaffBasicInfo.entryDate}" pattern="yyyy-MM-dd"/>"/>
					</div>
				</div>
				<div class="layui-item layui-col-sm6">
					<label class="layui-form-label"><span class="require-item">*</span>申请日期：</label>
					<div class="layui-input-block">
						<input id="applyDate" name="applyDate" type="text"  maxlength="20" class="laydate-icondate form-control layer-date  layui-input laydate-icon"
							   value="<fmt:formatDate value="${workRegularApply.applyDate}" pattern="yyyy-MM-dd"/>"/>
					</div>
				</div>
			</div>
			<div class="form-group layui-row">
				<div class="form-group-label"><h2>个人总结</h2></div>
				<div class="layui-item layui-col-sm12  with-textarea">
					<label class="layui-form-label">个人总结：</label>
					<div class="layui-input-block">
						<form:textarea path="summary" cssStyle="resize: none" readonly="true" htmlEscape="false" rows="6"    maxlength="500" class="form-control "/>
					</div>
				</div>
			</div>

			<div class="form-group layui-row">
				<div class="form-group-label"><h2>部门鉴定</h2></div>
				<div class="layui-item layui-col-sm12  with-textarea"style="margin-top: 20px">
					<label class="layui-form-label">部门评语：</label>
					<div class="layui-input-block">
								<form:textarea path="comment" htmlEscape="false" rows="4" readonly="true"   maxlength="255" class="form-control "/>
					</div>
				</div>
						<%--<div class="layui-item layui-col-sm6">--%>
							<%--<label class="layui-form-label"><span class="require-item">*</span>转正意见：</label>--%>
							<%--<div class="layui-input-block">--%>
								<%--<input  htmlEscape="false" readonly="true" class="form-control layui-input" value="${fns:getDictLabel(workRegularApply.correctOpinion, 'correct_opinion', '')}"/>--%>
							<%--</div>--%>
						<%--</div>--%>
						<%--<div class="layui-item layui-col-sm6">--%>
							<%--<label class="layui-form-label"><span class="require-item">*</span>新职级：</label>--%>
							<%--<div class="layui-input-block  with-icon">--%>
								<%--<div class="input-group">--%>
									<%--<input id="jobGradeName" name="jobGrade.name" value="${workRegularApply.jobGrade.name}" readonly="true"  htmlEscape="false" class="form-control layui-input"/>--%>
								<%--</div>--%>
							<%--</div>--%>
						<%--</div>--%>
						<%--<div class="layui-item layui-col-sm6">--%>
							<%--<label class="layui-form-label double-line"><span class="require-item">*</span>新试用期结束日期：</label>--%>
							<%--<div class="layui-input-block">--%>
								<%--<input id=""  readonly="true" name="correctDate" type="text"  maxlength="20" class="laydate-icondate form-control layer-date  layui-input laydate-icon"--%>
									   <%--value="<fmt:formatDate value="${workRegularApply.correctDate}" pattern="yyyy-MM-dd"/>"/>--%>
							<%--</div>--%>
						<%--</div>--%>

				<div class="layui-item layui-col-xs12 form-table-container" >
					<%--<table id="contentTable1" class="table table-bordered table-condensed can-edit no-bottom-margin">--%>
						<%--<thead>--%>
						<%--<tr>--%>
							<%--<th width="400px">鉴定内容</th>--%>
							<%--<th width="200px">评价得分</th>--%>
						<%--</tr>--%>
						<%--</thead>--%>
						<%--<tbody id="workRegularScoreList">--%>
						<%--<c:if test="${not empty workRegularApply.workRegularScoreList}">--%>
							<%--<c:forEach items="${workRegularApply.workRegularScoreList}" var="workRegularScore" varStatus="index">--%>
								<%--<tr id="workRegularScoreList${index.index}">--%>
									<%--<td class="hide">--%>
										<%--<input id="workRegularScoreList${index.index}_id" name="workRegularScoreList[${index.index}].id" type="hidden" value="${workRegularScore.id}"/>--%>
										<%--<input id="workRegularScoreList${index.index}_regularContentId" name="workRegularScoreList[${index.index}].regularContentId" type="hidden" value="${workRegularScore.regularContentId}"/>--%>
										<%--<input id="workRegularScoreList${index.index}_delFlag" name="workRegularScoreList[${index.index}].delFlag" type="hidden" value="0"/>--%>
									<%--</td>--%>
									<%--<td>--%>
										<%--<input id="workRegularScoreList${index.index}_content"  readonly="true"   name="workRegularScoreList[${index.index}].content" type="text" value="${workRegularScore.content}"   class="form-control "/>--%>
									<%--</td>--%>
									<%--<td>--%>
										<%--<input id="workRegularScoreList${index.index}_score" readonly="true"   name="workRegularScoreList[${index.index}].score" type="text" value="${workRegularScore.score}"   class="form-control number "/>--%>
									<%--</td>--%>
								<%--</tr>--%>
							<%--</c:forEach>--%>
							<%--<tr >--%>
								<%--<td  style="vertical-align:middle;text-align: center;"><label><font color="red">*</font>合计得分：</label></td>--%>
								<%--</td>--%>
								<%--<td>--%>
									<%--<input id="score"  readonly="true"   name="score" type="text" value="${workRegularApply.score}"   class="form-control "/>--%>
								<%--</td>--%>
							<%--</tr>--%>
						<%--</c:if>--%>
						<%--</tbody>--%>
					<%--</table>--%>
				</div>
			</div>
			<div class="form-group layui-row page-end"></div>
		</form:form>
	</div>
</div>

</body>
</html>