<link rel="stylesheet" type="text/css" href="/css/external/fileUploadBase.css">
<div class="modal fade businessDialog" id="myModal-financeReportModelImport" data-backdrop="static">
	<div class="modal-dialog" style="width:9rem;">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">
				<span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
			</button>
			<span class="modal-title">Excel导入</span>
		</div>
		<div class="modal-content" style="max-height:4.7rem;overflow-y:auto;overflow-x:hidden;">
			<form class="form-horizontal businessClass-form" id="excelImportForm" action="/enterpriseFinanceReport/importForExcel" method="post" autocomplete="off">
				<input type="hidden" name="id" class="reportid">
				<input type="hidden" name="enterpriseBusinessInfo.id" th:value="${financeReport?.enterpriseBusinessInfo?.id}">
				<div class="newTabAddUpdateBox" style="position:static;border:none;padding-left:0.2rem;padding-right:0.2rem;padding-bottom:0;">
					<span tag:token/>
					<div class="row">
						<table>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">报表类型</span>：
								</td>
								<td width="35%" class="enter">
									<select class="form-control selection" id="financeReportTimeTypeSelect" name="reportType.id" 
										tag:option="financeReportTimeType"
										th:value="${financeReport?.reportType?.id}"></select>
								</td>
								<td width="15%">
									<span class="required_fileds_star">报表年月</span>：
								</td>
								<td width="35%" colspan="2" class="enter">
									<input type="text" th:value="${financeReport?.reportTime}" id="reportTimeInput" name="reportTime"
										readOnly class="form-control form-date formdate"
										placeholder="请选择报表年月">
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">金额单位</span>：
								</td>
								<td width="35%" class="enter">
									<select class="form-control selection" id="amountUnitSelect" name="amountUnit.id" 
											tag:option="amountUnit" 
											th:value="${financeReport?.amountUnit?.id}"></select>
								</td>
								<td width="15%" th:if="${is_institution != 1}">
									<span class="required_fileds_star">资产负债表</span>：
								</td>
								<td width="35%" colspan="2" class="enter" th:if="${is_institution != 1}">
									<select data-index=0 class="reportSelect form-control" id="balanceSheetSelect" name="balanceSheet">
										<option value="">请选择资产负债表模版</option>
										<option
									       	th:each="balanceSheet,balanceSheetStat:${balanceSheetList}"
									      	th:value="${balanceSheet.id}"
									      	th:text="${balanceSheet.name}"
									      	th:selected="${financeReport?.balanceSheet==balanceSheet.id}"/>
									</select>
								</td>
								<td width="15%" th:if="${is_institution == 1}">
									<span class="required_fileds_star">事业单位资产负债表</span>：
								</td>
								<td width="35%" class="enter" th:if="${is_institution == 1}">
									<select data-index=3 class="reportSelect form-control" id="insBalanceSheetSelect" name="insBalanceSheet">
										<option value="">请选择事业单位资产负债表模版</option>
										<option
												th:each="balanceSheet,balanceSheetStat:${insBalanceSheetList}"
												th:value="${balanceSheet.id}"
												th:text="${balanceSheet.name}"
												th:selected="${financeReport?.insBalanceSheet==balanceSheet.id}"/>
									</select>
								</td>
							</tr>
							<tr>
								<td width="15%" th:if="${is_institution != 1}">
									<span class="required_fileds_star">利润表</span>：
								</td>
								<td width="35%" class="enter" th:if="${is_institution != 1}">
									<select data-index=1 class="reportSelect form-control" id="profitStatementSelect" name="profitStatement">
										<option value="">请选择利润表模版</option>
										<option
									       	th:each="profitStatment,profitStatmentStat:${profitStatementList}"
									      	th:value="${profitStatment.id}"
									      	th:text="${profitStatment.name}"
									      	th:selected="${financeReport?.profitStatement==profitStatment.id}"/>
									</select>
								</td>
								<td width="15%" th:if="${is_institution != 1}">
									<span class="required_fileds_star">现金流量表</span>：
								</td>
								<td width="35%" colspan="2" class="enter" th:if="${is_institution != 1}">
									<select data-index=2 class="reportSelect form-control" id="cashFlowSelect" name="cashFlow">
										<option value="">请选择现金流量表模版</option>
										<option
									       	th:each="cashFlow,cashFlowStat:${cashFlowList}"
									      	th:value="${cashFlow.id}"
									      	th:text="${cashFlow.name}"
									      	th:selected="${financeReport?.cashFlow==cashFlow.id}"/>
									</select>
								</td>
								<td width="15%" th:if="${is_institution == 1}">
									<span class="required_fileds_star">事业单位收入支出表</span>：
								</td>
								<td colspan="3" class="enter" th:if="${is_institution == 1}">
									<select data-index=4 class="reportSelect form-control" id="insIncomeExpListSelect" name="insIncomeExpenditure">
										<option value="">请选择事业单位收入支出表模版</option>
										<option
												th:each="balanceSheet,balanceSheetStat:${insIncomeExpList}"
												th:value="${balanceSheet.id}"
												th:text="${balanceSheet.name}"
												th:selected="${financeReport?.insIncomeExpenditure==balanceSheet.id}"/>
									</select>
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">选择文件</span>：
								</td>
								<td colspan="3" width="70%" class="enter fileUploadGroup">
									<input class="uploaderFile_hidden" id="fileSelect" style="display:none" type="file" name="file" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
									<div class="uploaderFile" style="display: block;border-bottom:0">
										<div class="fileContent">
											<span class="spanHolder">上传文件</span>
										</div>
									</div>
									<span class="error" style="display:none">附件不能为空</span>
								</td>
								<td width="15%">
									<span class="choiceFile">+请上传附件</span>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</form>
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-white btn-info colorbtn importSure">保存</button>
			<button type="button" class="btn btn-white btn-info canclebtn" data-dismiss="modal">关闭</button>
		</div>
	</div>
</div>
<script src="/js/enterPriseBusiness/financeReport/enterpriseFinanceReportImport.js"></script>