first commit
This commit is contained in:
111
WebRoot/jsp/data/dataCleaningConfigureAdd.jsp
Normal file
111
WebRoot/jsp/data/dataCleaningConfigureAdd.jsp
Normal file
@ -0,0 +1,111 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8" %>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||||
<%@ page import="com.sipai.entity.base.ServerObject" %>
|
||||
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
|
||||
|
||||
<%@page import="com.sipai.entity.data.DataCleaningConfigure" %>
|
||||
<%request.setAttribute("ReplaceType_previous", DataCleaningConfigure.ReplaceType_previous); %>
|
||||
<%request.setAttribute("ReplaceType_avg", DataCleaningConfigure.ReplaceType_avg); %>
|
||||
<%request.setAttribute("ReplaceType_none", DataCleaningConfigure.ReplaceType_none); %>
|
||||
<%request.setAttribute("ReplaceType_max", DataCleaningConfigure.ReplaceType_previous); %>
|
||||
<%request.setAttribute("ReplaceType_min", DataCleaningConfigure.ReplaceType_avg); %>
|
||||
<%request.setAttribute("ReplaceType_same", DataCleaningConfigure.ReplaceType_none); %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!-- <html lang="zh-CN"> -->
|
||||
<!-- BEGIN HEAD -->
|
||||
<head>
|
||||
<title><%= ServerObject.atttable.get("TOPTITLE")%>
|
||||
</title>
|
||||
|
||||
<!-- 引用页头及CSS页-->
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style type="text/css">
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var selelct_replacetype = $("#replacetype").select2({
|
||||
minimumResultsForSearch: 10
|
||||
});
|
||||
});
|
||||
|
||||
function dosave() {
|
||||
$("#subForm").bootstrapValidator('validate');//提交验证
|
||||
if ($("#subForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
||||
$.post(ext.contextPath + "/data/dataCleaningConfigure/dosave.do", $("#subForm").serialize(), function (data) {
|
||||
if (data.code == 1) {
|
||||
// showAlert('s', '保存成功');
|
||||
self.location.reload();
|
||||
} else if (data.code == 0) {
|
||||
showAlert('d', '保存失败');
|
||||
} else {
|
||||
showAlert('d', data.res);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<!-- 引用top -->
|
||||
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
||||
<!-- 菜单栏 -->
|
||||
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<%-- <section class="content-header">--%>
|
||||
<%-- <h1 id ="head_title"></h1>--%>
|
||||
<%-- <ol class="breadcrumb">--%>
|
||||
<%-- <li><a id ='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>--%>
|
||||
<%-- <!-- <li class="active">Here</li> -->--%>
|
||||
<%-- </ol>--%>
|
||||
<%-- </section>--%>
|
||||
<!-- Main content -->
|
||||
<section class="content container-fluid">
|
||||
<div id="mainAlertdiv"></div>
|
||||
<div id="subDiv"></div>
|
||||
|
||||
<div>
|
||||
<form class="form-horizontal" id="subForm">
|
||||
<!-- 界面提醒div强制id为alertDiv -->
|
||||
<div id="alertDiv"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">*时间范围(天)</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control" id="timerange" name="timerange" placeholder="时间范围" value="1"
|
||||
readonly>
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">*替换类型</label>
|
||||
<div class="col-sm-3">
|
||||
<select class="form-control select2" id="replacetype"
|
||||
name="replacetype">
|
||||
<option value="${ReplaceType_previous}" selected="selected">第一条</option>
|
||||
<option value="${ReplaceType_avg}">均值</option>
|
||||
<option value="${ReplaceType_none}">删除</option>
|
||||
<option value="${ReplaceType_max}">最大值</option>
|
||||
<option value="${ReplaceType_min}">最小值</option>
|
||||
<option value="${ReplaceType_same}">去除相同数据</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" onclick="dosave()" id="btn_save">保存</button>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
||||
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user