|  | @@ -0,0 +1,106 @@
 | 
	
		
			
				|  |  | +<%@ 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">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
 | 
	
		
			
				|  |  | +		   var stageId=$("#stageId").val();
 | 
	
		
			
				|  |  | +		   if(stageId==null||stageId==""){
 | 
	
		
			
				|  |  | +               top.layer.msg('阶段信息不能为空!', {icon: 0});
 | 
	
		
			
				|  |  | +               return false;
 | 
	
		
			
				|  |  | +		   }
 | 
	
		
			
				|  |  | +			//$("#inputForm").submit();
 | 
	
		
			
				|  |  | +		  return true;
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +        var validateForm;
 | 
	
		
			
				|  |  | +		$(document).ready(function() {
 | 
	
		
			
				|  |  | +		    if( $("#id").val()!=null&& $("#id").val()!=''){
 | 
	
		
			
				|  |  | +                $("#detailKey").attr("readonly",true);
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +			validateForm = $("#inputFormAdd").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);
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +			});
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            $("#typeName").blur(function(){
 | 
	
		
			
				|  |  | +                var typeName = $(this).val();
 | 
	
		
			
				|  |  | +				if("achievement_type" == typeName || "supporting_document_data_type" == typeName){
 | 
	
		
			
				|  |  | +                    $("#achievementParentIdDiv").show();
 | 
	
		
			
				|  |  | +                }else{
 | 
	
		
			
				|  |  | +                    $("#achievementParentIdDiv").hide();
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            $("#typeName").blur(function(){
 | 
	
		
			
				|  |  | +                var reviewStandard = $(this).val();
 | 
	
		
			
				|  |  | +                if("reviewStandard" == reviewStandard){
 | 
	
		
			
				|  |  | +                    $("#reviewStandardParentIdDiv").show();
 | 
	
		
			
				|  |  | +                }else{
 | 
	
		
			
				|  |  | +                    $("#reviewStandardParentIdDiv").hide();
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +		});
 | 
	
		
			
				|  |  | +	</script>
 | 
	
		
			
				|  |  | +</head>
 | 
	
		
			
				|  |  | +<body>
 | 
	
		
			
				|  |  | +<div class="single-form">
 | 
	
		
			
				|  |  | +	<div class="container view-form">
 | 
	
		
			
				|  |  | +		<form:form id="inputForm" modelAttribute="projectContentTreeData" action="${ctx}/projectreportnum/projectReportNum/saveReportNumOnStage" method="post" class="form-horizontal">
 | 
	
		
			
				|  |  | +			<input type="hidden" id="parentId" name="parentId" value="${reportNum.parentId}">
 | 
	
		
			
				|  |  | +			<input type="hidden" id="projectId" name="projectId" value="${reportNum.projectId}">
 | 
	
		
			
				|  |  | +		<sys:message content="${message}"/>
 | 
	
		
			
				|  |  | +			<div class="form-group layui-row first">
 | 
	
		
			
				|  |  | +				<div class="form-group-label"><h2>下载报告模板</h2></div>
 | 
	
		
			
				|  |  | +				<div class="layui-item layui-col-sm6"  style="width:50%">
 | 
	
		
			
				|  |  | +					<label class="layui-form-label double-line">阶段报告前缀:</label>
 | 
	
		
			
				|  |  | +					<div class="layui-input-block">
 | 
	
		
			
				|  |  | +						<input htmlEscape="false" name="num" readonly="true" class="form-control layui-input" value="${num}"/>
 | 
	
		
			
				|  |  | +					</div>
 | 
	
		
			
				|  |  | +				</div>
 | 
	
		
			
				|  |  | +				<div class="layui-item layui-col-sm6"  style="width:50%">
 | 
	
		
			
				|  |  | +					<label class="layui-form-label">阶段:</label>
 | 
	
		
			
				|  |  | +					<div class="layui-input-block">
 | 
	
		
			
				|  |  | +						<input htmlEscape="false" name="num" readonly="true" class="form-control layui-input" value="${num}"/>
 | 
	
		
			
				|  |  | +					</div>
 | 
	
		
			
				|  |  | +				</div>
 | 
	
		
			
				|  |  | +				<div class="layui-item layui-col-sm6"  style="width:50%">
 | 
	
		
			
				|  |  | +					<label class="layui-form-label">工作内容:</label>
 | 
	
		
			
				|  |  | +					<div class="layui-input-block">
 | 
	
		
			
				|  |  | +						<input htmlEscape="false" name="contentName" readonly="true" class="form-control layui-input" value="${contentName}"/>
 | 
	
		
			
				|  |  | +					</div>
 | 
	
		
			
				|  |  | +				</div>
 | 
	
		
			
				|  |  | +			</div>
 | 
	
		
			
				|  |  | +			<div class="form-group layui-row first">
 | 
	
		
			
				|  |  | +				<div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  | +					<label class="layui-form-label"><span class="require-item">*</span>模板信息:</label>
 | 
	
		
			
				|  |  | +					<div class="layui-input-block">
 | 
	
		
			
				|  |  | +						<select name="url" class="form-control editable-select layui-input">
 | 
	
		
			
				|  |  | +							<option value=""></option>
 | 
	
		
			
				|  |  | +							<c:forEach items="${projectContentTreeData}" var="content">
 | 
	
		
			
				|  |  | +								<option value="${content.url}">
 | 
	
		
			
				|  |  | +										${content.name }
 | 
	
		
			
				|  |  | +								</option>
 | 
	
		
			
				|  |  | +							</c:forEach>
 | 
	
		
			
				|  |  | +						</select>
 | 
	
		
			
				|  |  | +					</div>
 | 
	
		
			
				|  |  | +				</div>
 | 
	
		
			
				|  |  | +			</div>
 | 
	
		
			
				|  |  | +		</form:form>
 | 
	
		
			
				|  |  | +	</div>
 | 
	
		
			
				|  |  | +</div>
 | 
	
		
			
				|  |  | +</body>
 | 
	
		
			
				|  |  | +</html>
 |