<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>年度物资上报统计</title>
	<meta name="decorator" content="ani"/>
	<script type="text/javascript">

		$(document).ready(function() {
			// $('#startDate').datetimepicker({
			// 	format: "YYYY-MM-DD"
			// });
			// $('#endDate').datetimepicker({
			// 	format: "YYYY-MM-DD"
			// });
		});
		function save() {
            var isValidate = jp.validateForm('#inputForm');//校验表单
            if(!isValidate){
                return false;
			}else{
                jp.loading();
                jp.post("${ctx}/managementcenter/materialproject/save",$('#inputForm').serialize(),function(data){
                    if(data.success){
                        jp.getParent().refresh();
                        var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
                        parent.layer.close(dialogIndex);
                        jp.success(data.msg)

                    }else{
                        jp.error(data.msg);
                    }
                })
			}

        }
	</script>
</head>
<body class="bg-white">
		<form:form id="inputForm" modelAttribute="materialProject" class="form-horizontal">
		<form:hidden path="id"/>	
		<table class="table table-bordered">
		   <tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">储备项目暂定名称：</label></td>
					<td class="width-35">
						<form:input path="reserveProjectName" htmlEscape="false"    class="form-control required" readonly="true"/>
					</td>
					<td class="width-15 active"><label class="pull-right">项目名称：</label></td>
					<td class="width-35">
						<form:input path="projectName" htmlEscape="false"    class="form-control "/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">储备编码：</label></td>
					<td class="width-35">
						<form:input path="reserveCode" htmlEscape="false"    class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">项目编码：</label></td>
					<td class="width-35">
						<form:input path="projectCode" htmlEscape="false"    class="form-control "/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">项目定义：</label></td>
					<td class="width-35">
						<form:input path="projectDefine" htmlEscape="false"    class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">项目属性：</label></td>
					<td class="width-35">
						<form:input path="projectAttribute" htmlEscape="false"    class="form-control "/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">项目批次：</label></td>
					<td class="width-35">
						<form:input path="projectBatch" htmlEscape="false"    class="form-control required"/>
					</td>
					<%--<td class="width-15 active"><label class="pull-right">物料批次：</label></td>--%>
					<%--<td class="width-35">--%>
						<%--&lt;%&ndash;<form:input path="suppliesBatch" htmlEscape="false"    class="form-control required"/>&ndash;%&gt;--%>
						<%--<form:select path="suppliesBatch"  class="form-control   simple-select">--%>
							<%--<form:option value="" label=""/>--%>
							<%--<c:forEach var="item" items="${batch}">--%>
								<%--<form:option value="${item.suppliesBatch}" label="${item.suppliesBatch}"/>--%>
							<%--</c:forEach>--%>
						<%--</form:select>--%>
					<%--</td>--%>
				</tr>
		 	</tbody>
		</table>
	</form:form>
</body>
</html>