87 lines
3.1 KiB
Plaintext
87 lines
3.1 KiB
Plaintext
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
||
|
|
<style type="text/css">
|
||
|
|
.select2-container .select2-selection--single{
|
||
|
|
height:34px;
|
||
|
|
line-height: 34px;
|
||
|
|
}
|
||
|
|
.select2-selection__arrow{
|
||
|
|
margin-top:3px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var showSelectFun = function() {
|
||
|
|
$.post(ext.contextPath + '/report/drainageDataomprehensiveTableConfigure/showListSelect.do', {formId:"subForm",hiddenId:"pid",textId:"_pname"} , function(data) {
|
||
|
|
$("#drainageDataomprehensiveTableConfigureSelectDiv").html(data);
|
||
|
|
openModal('configureSelectModal');
|
||
|
|
});
|
||
|
|
};
|
||
|
|
function dosave() {
|
||
|
|
//if ($("#subForm").form('validate')) {
|
||
|
|
$.post(ext.contextPath + "/report/drainageDataomprehensiveTableConfigure/dosave.do", $("#subForm").serialize(), function(result) {
|
||
|
|
if (result == 1) {
|
||
|
|
initTreeView();
|
||
|
|
//showAlert('s','保存成功');
|
||
|
|
}else{
|
||
|
|
showAlert('d','保存失败');
|
||
|
|
}
|
||
|
|
});
|
||
|
|
//}
|
||
|
|
}
|
||
|
|
|
||
|
|
var showMpidList = function() {
|
||
|
|
var bizid= $("#bizid").val();
|
||
|
|
$.post(ext.contextPath + '/data/measurepoint/selectMeasurepointByBizid.do', {formId:"subForm",bizid:bizid} , function(data) {
|
||
|
|
$("#showMpidListDiv").html(data);
|
||
|
|
openModal("showMpidListModal");
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
$(function() {
|
||
|
|
$("#active").select2({minimumResultsForSearch: 10});
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
<div class="box box-primary" >
|
||
|
|
<div class="box-header with-border">
|
||
|
|
<h3 class="box-title">新增</h3>
|
||
|
|
|
||
|
|
<div class="box-tools pull-right">
|
||
|
|
<a onclick="dosave()" class="btn btn-box-tool" data-toggle="tooltip" title="保存"><i class="glyphicon glyphicon-floppy-disk"></i></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- /.box-header -->
|
||
|
|
<div class="box-body ">
|
||
|
|
<form class="form-horizontal " id="subForm">
|
||
|
|
<input id="id" name="id" type="hidden" />
|
||
|
|
<input id="bizid" name="bizid" type="hidden" value="${bizid}" />
|
||
|
|
<input id="pid" name="pid" type="hidden" value="${pid}" />
|
||
|
|
|
||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
||
|
|
<div id="alertDiv"></div>
|
||
|
|
<div id="drainageDataomprehensiveTableConfigureSelectDiv"></div>
|
||
|
|
<div id="showMpidListDiv"></div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">名称</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<input type="text" class="form-control" id="name" name ="name" readonly>
|
||
|
|
</div>
|
||
|
|
<label class="col-sm-2 control-label">启用</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<select id ="active" name="active" class="form-control select2">
|
||
|
|
<option value="1" >启用</option>
|
||
|
|
<option value="0" >禁用</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">测量点</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<input type="text" class="form-control" id="mpid" name ="mpid" onfocus="this.blur();" placeholder="点击选择" onclick="showMpidList();">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|