排口排放量:前台创建并保存一个有list列表的实体(pems)

<!--
	time:2021-01-12 15:45:09
	desc:edit the dt_cems_emission_data
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:insert="~{templates/hcommon :: h-common}">
</head>
<body>
<div class="row">
	<div  class="toolbar-panel">
		<div class="toolbar-box">
			<div class="toolbar-head clearfix">
				<!-- 顶部按钮 -->
				<div class="buttons">
					<a class="btn btn-primary fa fa-save save-link"><span>保存</span></a>
					<a class="btn btn-primary fa fa-th-list return-link" th:href="${returnUrl}"><span>返回</span></a>
				</div>
			</div>
		</div>
	</div>
</div>


	<form role="form" class="search-form" id="cemsEmissionDataForm" action="save" method="post">
<!--		<div class="form-group">-->
<!--			<label th:text="'企业id*:'" class="red" />-->
<!--			<input type="text" class="form-control"  id="factoryId" name="factoryId" placeholder="请输入企业id" th:value="${data!=null}?${data.factoryId}"  validate="{required:true,number:true,maxIntLen:19}"/>-->
<!--		</div>-->
		<div class="form-inline p-xxs">
		<div class="form-group"style="display: inline;white-space:nowrap;">
			<label class="search-label font-color" th:text="'企业:'" />
			<select class="multiplEdit form-control multiple" name="factoryId" id="factoryId" style="upd">
				<optgroup th:each="town:${factoryList}" th:label="${town.text}">
					<option th:each="fact:${town.nodes}" th:value="${fact.id}" th:text="${fact.text}" th:selected="${fact.id==factoryId}"></option>
				</optgroup>
			</select>
		</div>
		</div>
			<div class="table-responsive">
				<table class="table table-striped jambo_table bulk_action" id="table-thead" >
					<thead>
					<tr>
						<th style="width: 20%">排口名称</th>
						<th style="width: 20%">监测时间</th>
						<th style="width: 20%" >VOCS</th>
						<th style="width: 10%">SO2</th>
						<th style="width: 10%">NO</th>
						<th style="width: 10%">颗粒物</th>
					</tr>
					</thead>
				</table>
				<div class="boxscroll">
					<table type="subtable"  class="table">
						<tbody id="tbody">
						<tr th:each="station,stat:${data.pointList}" type="subdata">
							<td style="width: 20%">
								<span th:text="${station.stationName}"></span>
								<input type="hidden" th:name="'pointList['+${stat.index}+'].stationId'" th:value="${station.stationId}">
							</td>
							<td style="width: 20%">
							<input style="border: none;" type="text" id="collectTime" name="collectTime" class="wdateTime dateRange form-control"  datefmt="yyyy-MM-dd HH:mm:ss" th:value="${#dates.format(data.collectTime,'yyyy-MM-dd HH:mm:ss')}"/>
							</td>
							<td style="width: 20%">
								<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].vocs'" validate="{required:false,number:true}"  th:value="${station?.vocs}">
							</td>
							<td style="width: 10%">
								<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].sox'" validate="{required:false,number:true}"  th:value="${station?.sox}">
							</td>
							<td style="width: 10%">
								<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].nox'" validate="{required:false,number:true}"  th:value="${station?.nox}">
							</td>
							<td style="width: 10%">
								<input type="text" class="form-control" th:name="'pointList['+${stat.index}+'].smoke'" validate="{required:false,number:true}"  th:value="${station?.smoke}">
							</td>
						</tr>
						</tbody>
					</table>

			</div>
		</div>
		<input type="hidden" name="id" th:value="${data!=null}?${data.id}" />
	</form>


<div th:insert="~{templates/fcommon :: f-common}"></div>
<script type="text/javascript" th:src="@{/js/platform/cemsEmissionData.js}"></script>
</body>
</html>

test指的是传递进来的参数,判断这个参数是否为空,不为空就进行下面的SQL语句

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值