<%@ 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">

	</script>
</head>
<body class="hideScroll">
		<form:form id="inputForm" modelAttribute="workFullDesignchange"   method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<form:hidden path="workFullManageId"/>
		<sys:message content="${message}"/>	
		<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
		   		<tr>
					<td class="width-15 active" rowspan="10"><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>
				<tr>
					<td class="width-15 active"><label class="pull-right">文件上传：</label></td>
					<td class="width-40" colspan="3">
						<div>
							<div style="float:left; height: 100%; width: 100%; ">
								<table id="listManuscriptFile"  style="text-align: center;width: 100%;margin-top:10px;"  class="table table-striped table-bordered table-condensed" >
									<tr>
										<%--<td>序号</td>--%><td>文件名</td><td>上传人</td><td>上传时间</td><td>操作</td>
									</tr>
										<c:if test="${not empty workFullDesignchange.workAttachments}">
											<c:forEach items="${workFullDesignchange.workAttachments}" var="workAttachment" varStatus="varStatus">
												<tr>
													<%--<td>${varStatus.index+1}</td>--%>
													<c:choose>
														<c:when test="${fn:containsIgnoreCase(workAttachment.attachmentName,'jpg')
															   or fn:containsIgnoreCase(workAttachment.attachmentName,'png')
															   or fn:containsIgnoreCase(workAttachment.attachmentName,'gif')
															   or fn:containsIgnoreCase(workAttachment.attachmentName,'jpeg')}">
															<td><img src="${workAttachment.url}" onclick="openDialogView(' ','${ctx}/sys/picturepreview/picturePreview?url=${workAttachment.url}','860px','600px')" width="50" height="50" alt="${workAttachment.attachmentName}"/></td>
														</c:when>
														<c:otherwise>
															<c:choose>
																<c:when test="${fn:containsIgnoreCase(workAttachment.attachmentName,'pdf')}">
																	<td><a href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','80%','80%','1')">
																		<span title="${workAttachment.attachmentName}">${fns:abbr(workAttachment.attachmentName, 20)}</span></a></td>
																	<%--<td><a href="${workFullDesignchange.workattachment.url}"><span title="${workFullDesignchange.workattachment.attachmentName}">${fns:abbr(workFullDesignchange.workattachment.attachmentName, 20)}</span></a></td>--%>
																</c:when>
																<c:otherwise>
																	<td><a href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','80%','80%')">
																		<span title="${workAttachment.attachmentName}">${fns:abbr(workAttachment.attachmentName, 20)}</span></a></td>
																	<%--<td><a href="javascript:void(0)" onclick="openDialogViewPre('预览','${ctx}/previewController/previewUrl?fileUrl=${workFullDesignchange.workattachment.url}','80%','80%')"><span title="${workFullDesignchange.workattachment.attachmentName}">${fns:abbr(workFullDesignchange.workattachment.attachmentName, 20)}</span></a></td>--%>
																</c:otherwise>
															</c:choose>
														</c:otherwise>
													</c:choose>
													<td>${workAttachment.attachmentUser}</td>
													<td><fmt:formatDate value="${workAttachment.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
													<td>
														<a href="${ctx}/workfullmanage/workFullManage/downLoadAttach?file=${workAttachment.url}" class="btn btn-success btn-xs">下载</a>
													</td>
												</tr>
											</c:forEach>
									   </c:if>
								</table>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td class="width-15 active" rowspan="5"><label class="pull-right">项目信息:</label></td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">项目编号：</label></td>
					<td class="width-30">
						${workFullManage.fullProjectNumber}
					</td>
					<td class="width-15 active"><label class="pull-right">项目来源：</label></td>
					<td class="width-30">
							${fns:getDictLabel(workFullManage.fullProjectSource, 'full_project_source', '')}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">项目名称：</label></td>
					<td class="width-30" colspan="3">
						${workFullManage.fullProjectName}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">行业分类：</label></td>
					<td class="width-30">
						${fns:getDictLabel(workFullManage.fullIndustryType, 'full_industry_type', '')}
					</td>
					<td class="width-15 active"><label class="pull-right">结构类型：</label></td>
					<td class="width-30">
						${fns:getDictLabel(workFullManage.fullStructureType, 'full_structure_type', '')}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">投资额(元)：</label></td>
					<td class="width-40">
						${workFullManage.fullInvestMoney}
					</td>
				</tr>
				<tr>
					<td class="width-15 active" rowspan="5"><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">
						${workFullManage.workClientInfo.name}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">客户信用等级：</label></td>
					<td class="width-30">
						${workFullManage.workClientInfo.creditRank}
					</td>
					<td class="width-15 active"><label class="pull-right">业主联系人：</label></td>
					<td class="width-30">
						${workFullManage.workClientInfo.workClientLinkman.name}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">职务：</label></td>
					<td class="width-30">
						${workFullManage.workClientInfo.workClientLinkman.position}
					</td>
					<td class="width-15 active"><label class="pull-right">联系方式：</label></td>
					<td class="width-30">
						${workFullManage.workClientInfo.workClientLinkman.linkPhone}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">QQ：</label></td>
					<td class="width-30">
						${workFullManage.workClientInfo.workClientLinkman.qq}
					</td>
					<td class="width-15 active"><label class="pull-right">Email：</label></td>
					<td class="width-30">
						${workFullManage.workClientInfo.workClientLinkman.email}
					</td>
				</tr>
				<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">
						${workFullManage.hostCompany}
					</td>
					<td class="width-15 active"><label class="pull-right">协办公司/部门：</label></td>
					<td class="width-30">
						${workFullManage.followCompany}
					</td>
				</tr>
				<tr>
					<td class="width-15 active" rowspan="3"><label class="pull-right">人员安排:</label></td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">主办公司/部门负责人：</label></td>
					<td class="width-30">
						${workFullManage.hostMasterName}
					</td>
					<td class="width-15 active"><label class="pull-right">主办公司/部门项目组成员：</label></td>
					<td class="width-30">
						${workFullManage.hostMemberName}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">协办公司/部门负责人：</label></td>
					<td class="width-30">
						${workFullManage.followMasterName}
					</td>
					<td class="width-15 active"><label class="pull-right">协办公司/部门项目组成员：</label></td>
					<td class="width-30">
						${workFullManage.followMemberName}
					</td>
				</tr>
		 	</tbody>
		</table>
	</form:form>
</body>
</html>