<%
layout("/include/_container.html", {title:"表单", parent:"薪酬调整申请"}){
%>
	<script type="text/javascript">

		$(document).ready(function() {
			jp.ajaxForm("#inputForm",function(data){
				if(data.success){
				    jp.toastr_success(data.msg);
				    jp.unblock("#inputForm", 0);//立即清除loading层
					jp.go("${ctx}"+ data.body.targetUrl);
				}else{
				    jp.toastr_error(data.msg);
				    $("#inputForm").find("button:submit").button("reset");
				}
			});

	        $('#exeDate').datetimepicker({
				 format:'Y-m-d H:i'
		    });
		});
	</script>
<div class="white-box">
		<form id="inputForm"  action="${ctx}/test/activiti/testActivitiAudit/save" method="post" class="form-horizontal">
		<input type="hidden" name="id" value="${testActivitiAudit.id!}"/>
		<input type="hidden" name="act.taskId" value="${testActivitiAudit.act.taskId!}"/>
		<input type="hidden" name="act.taskName" value="${testActivitiAudit.act.taskName!}"/>
		<input type="hidden" name="act.taskDefKey" value="${testActivitiAudit.act.taskDefKey!}"/>
		<input type="hidden" name="act.procInsId" value="${testActivitiAudit.act.procInsId!}"/>
		<input type="hidden" name="act.procDefId" value="${testActivitiAudit.act.procDefId!}"/>
		<input type="hidden"id="flag"  name="act.flag" value="${testActivitiAudit.act.flag!}"/>
		<div class="form-group text-center">
			<h3> 薪酬调整申请</h3>
		</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>变动用户：</label>
					<div class="col-sm-10">
					<#userselect id="user" name="user.id" value="${testActivitiAudit.user.id!}" labelName="user.name" labelValue="${testActivitiAudit.user.name!}"
						    class="jp-input required"/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>归属部门：</label>
					<div class="col-sm-10">
					<#treeselect id="office" name="office.id" value="${testActivitiAudit.office.id!}" labelName="office.name" labelValue="${testActivitiAudit.office.name!}"
						title="部门" url="/sys/office/treeData?type=2" class="jp-input required" allowClear="true" notAllowSelectParent="true"/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">岗位：</label>
					<div class="col-sm-10">
					<input name="post" value="${testActivitiAudit.post!}"    class="jp-input "/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">性别：</label>
					<div class="col-sm-10">
					<#radiobuttons path="sex" value="${testActivitiAudit.sex!}" items="${fn.getDictList('sex')}" itemLabel="label" itemValue="value" class=""/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">学历：</label>
					<div class="col-sm-10">
					<input name="edu" value="${testActivitiAudit.edu!}"    class="jp-input "/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>调整原因：</label>
					<div class="col-sm-10">
					<textarea name="content" rows="4"    class="jp-input required">${testActivitiAudit.content!}</textarea>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">现行标准 薪酬档级：</label>
					<div class="col-sm-10">
					<input name="olda" value="${testActivitiAudit.olda!}"    class="jp-input "/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>现行标准 月工资额：</label>
					<div class="col-sm-10">
					<input name="oldb" value="${testActivitiAudit.oldb!}"    class="jp-input required"/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">现行标准 年薪总额：</label>
					<div class="col-sm-10">
					<input name="oldc" value="${testActivitiAudit.oldc!}"    class="jp-input "/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">调整后标准 薪酬档级：</label>
					<div class="col-sm-10">
					<input name="newa" value="${testActivitiAudit.newa!}"    class="jp-input "/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>调整后标准 月工资额：</label>
					<div class="col-sm-10">
					<input name="newb" value="${testActivitiAudit.newb!}"    class="jp-input required"/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">调整后标准 年薪总额：</label>
					<div class="col-sm-10">
					<input name="newc" value="${testActivitiAudit.newc!}"    class="jp-input "/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>月增资：</label>
					<div class="col-sm-10">
					<input name="addNum" value="${testActivitiAudit.addNum!}"    class="jp-input required"/>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>执行时间：</label>
					<div class="col-sm-10">
		             <span class="jp-calendar-picker">
							<input readonly=""  id="exeDate" name="exeDate"  placeholder="请选择日期" class="jp-calendar-picker-input jp-input   required"   value="${fn.formatDate(testActivitiAudit.exeDate!, 'yyyy-MM-dd HH:mm:ss')}">
							<span class="jp-calendar-picker-icon"></span>
					</span>
					</div>
				</div>
			<hr>
				<div class="form-group">
					<label class="col-sm-2 control-label">备注信息：</label>
					<div class="col-sm-10">
					<textarea name="remarks" rows="4"    class="jp-input ">${testActivitiAudit.remarks!}</textarea>
					</div>
				</div>
			<hr>
		<div class="form-group">
		<div class="col-lg-3"></div>
		<% if(testActivitiAudit.act.taskDefKey! != '' && !testActivitiAudit.act.finishTask! && testActivitiAudit.act.isNextGatewaty!){ %>
			<div class="col-sm-6">
				<div class="form-group text-center">
					<input id="agree" class="btn  btn-primary btn-lg btn-parsley" type="submit" value="重新提交" onclick="$('#flag').val('yes')"/>&nbsp;
					<input id="reject" class="btn  btn-danger btn-lg btn-parsley" type="submit" value="销毁申请" onclick="$('#flag').val('no')"/>&nbsp;
				</div>
			</div>
		<% } %>
		<% if(testActivitiAudit.act.startTask!){ %>
		<div class="col-lg-6">
			 
		             <button class="jp-btn jp-btn-primary jp-btn-lg  btn-block btn-lg btn-parsley" data-loading-text="正在提交...">提 交</button>
			
		</div>
		<% } %>
		</div>
		</form>
			<%if(isNotEmpty(testActivitiAudit.id!)){ %>
			<#flowChart procInsId="${testActivitiAudit.act.procInsId}"/>
			<#histoicFlow procInsId="${testActivitiAudit.act.procInsId}" />
		<% } %>
		</div>				
	</div>
	</div>
</div>
<% } %>