<%@ 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;
		$('#btnPresent').click(function () {
			$.ajax({
	             url:"${ctx}/workfullmeetingminutes/workFullMeetingminutes/present",
	             data:$('#loginForm').serialize(),
	             type:"post",
	             success:function(data){
	        
	             }					
			});
		});	
			
		$(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="workFullMeetingminutes"  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="${workFullMeetingminutes.act.status}" />
			<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
				<tbody>
				<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"></font>项目编号：</label></td>
					<td class="width-30">
							${workFullMeetingminutes.workFullManage.fullProjectNumber}
					</td>
					<td class="width-15 active"><label class="pull-right">项目名称：</label></td>
					<td class="width-30" colspan="3">
							${workFullMeetingminutes.workFullManage.fullProjectName}
					</td>
				</tr>
				<tr>
					<td class="width-15 active" rowspan="6"><label class="pull-right">会议信息</label></td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">来源单位：</label></td>
					<td class="width-30">
							${workFullMeetingminutes.sourceCompany}
					</td>
					<td class="width-15 active"><label class="pull-right">会议时间：</label></td>
					<td class="width-30">
						<fmt:formatDate value="${workFullMeetingminutes.meetingTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">会议地点：</label></td>
					<td class="width-40" colspan="3">
							${workFullMeetingminutes.meetingAddress}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">会议记录人：</label></td>
					<td class="width-30">
							${workFullMeetingminutes.meetingRecorder.name}
					</td>
					<td class="width-15 active"><label class="pull-right">召开部门：</label></td>
					<td class="width-30">
							${workFullMeetingminutes.office.name}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">与会人员：</label></td>
					<td class="width-40" colspan="3">
							${workFullMeetingminutes.meetingMembersNames}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">会议主题：</label></td>
					<td class="width-40" colspan="3">
							${workFullMeetingminutes.meetingTopic}
					</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="${workFullMeetingminutes.act.procInsId}"/>
		<act:histoicFlow procInsId="${workFullMeetingminutes.act.procInsId}"/>
	</form:form>
</body>
</html>