<%@ 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;
		$(document).ready(function() {
			validateForm = $("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>

<body class="hideScroll">
		<form:form id="inputForm" modelAttribute="workFullDesignchange"  method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<form:hidden path="act.taskId"/>
		<form:hidden path="act.taskName"/>
		<form:hidden path="act.taskDefKey"/>
		<form:hidden path="act.procInsId"/>
		<form:hidden path="act.procDefId"/>
		<form:hidden id="flag" path="act.flag"/>
		<sys:message content="${message}"/>
		<c:set var="status" value="${workFullDesignchange.act.status}" />
			<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
				<tbody>
				<tr>
					<td class="width-15 active" rowspan="9"><label class="pull-right">文件信息：</label></td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">单位工程名称：</label></td>
					<td class="width-40" colspan="3">
							${workFullDesignchange.unitProjectName}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">项目编号：</label></td>
					<td class="width-30">
							${workFullDesignchange.projectNumber}
					</td>
					<td class="width-15 active"><label class="pull-right">变更编号：</label></td>
					<td class="width-30">
							${workFullDesignchange.changeNumber}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">设计单位：</label></td>
					<td class="width-40" colspan="3">
							${workFullManage.designId.unitName}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">执行单位：</label></td>
					<td class="width-40" colspan="3">
							${workFullDesignchange.performer}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">设计变更来源：</label></td>
					<td class="width-30">
							${workFullDesignchange.changeSource}
					</td>
					<td class="width-15 active"><label class="pull-right">设计变更时间：</label></td>
					<td class="width-30">
						<fmt:formatDate value="${workFullDesignchange.changeTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">施工标段：</label></td>
					<td class="width-30">
							${workFullDesignchange.constructSection}
					</td>
					<td class="width-15 active"><label class="pull-right">是否涉及造价变更：</label></td>
					<td class="width-30">
							${fns:getDictLabel(workFullDesignchange.costVariation,'cost_variation' ,'' )}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">变更原因及主要内容：</label></td>
					<td class="width-40" colspan="3">
							${workFullDesignchange.changeContext}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">备注信息：</label></td>
					<td class="width-40" colspan="3">
							${workFullDesignchange.remarks}
					</td>
				</tr>
				<c:if test="${not empty status}">
					<tr>
						<td class="width-15 active" rowspan="2"><label class="pull-right">审批意见:</label></td>
					</tr>
					<tr>
						<td class="width-15 active"><label class="pull-right">意见：</label></td>
						<td class="width-30" colspan="3">
							<form:textarea path="act.comment" class="form-control " rows="3" maxlength="20"/>
						</td>
					</tr>
				</c:if>

				</tbody>
			</table>

		<act:flowChart procInsId="${workFullDesignchange.act.procInsId}"/>
		<act:histoicFlow procInsId="${workFullDesignchange.act.procInsId}"/>
	</form:form>
</body>
</html>