170 lines
7.2 KiB
Plaintext
170 lines
7.2 KiB
Plaintext
|
|
<%@ 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.process.LibraryProcessManage" %>
|
|||
|
|
<% request.setAttribute("ControlLogic_H", LibraryProcessManage.ControlLogic_H); %>
|
|||
|
|
<% request.setAttribute("ControlLogic_L", LibraryProcessManage.ControlLogic_L); %>
|
|||
|
|
<% request.setAttribute("ControlLogic_I", LibraryProcessManage.ControlLogic_I); %>
|
|||
|
|
<% request.setAttribute("Cycle_Day", LibraryProcessManage.Cycle_Day); %>
|
|||
|
|
<% request.setAttribute("Cycle_Month", LibraryProcessManage.Cycle_Month); %>
|
|||
|
|
|
|||
|
|
<style type="text/css">
|
|||
|
|
|
|||
|
|
</style>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
function doSubmit() {
|
|||
|
|
$("#subForm").bootstrapValidator('validate');//提交验证
|
|||
|
|
if ($("#subForm").data('bootstrapValidator').isValid()) {
|
|||
|
|
//获取验证结果,如果成功,执行下面代码
|
|||
|
|
$.post(ext.contextPath + "/process/libraryProcessManageWorkOrder/doSubmit.do", $("#subForm").serialize(), function (data) {
|
|||
|
|
if (data.code == 1) {
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
closeModal("execModal");
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.msg);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$("#subForm").bootstrapValidator({
|
|||
|
|
live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
|||
|
|
fields: {
|
|||
|
|
trueValue: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '实际值不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
controlMeasures: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '控制措施不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$(function (){
|
|||
|
|
var controlLogicV= '${libraryProcessManageWorkOrder.libraryProcessManage.controlLogic}';
|
|||
|
|
if(controlLogicV=='${ControlLogic_H}'||controlLogicV=='${ControlLogic_L}'){
|
|||
|
|
$('#targetValueSt1').css('display','block');
|
|||
|
|
$('#targetValueSt2').css('display','none');
|
|||
|
|
}else if(controlLogicV=='${ControlLogic_I}'){
|
|||
|
|
$('#targetValueSt1').css('display','none');
|
|||
|
|
$('#targetValueSt2').css('display','block');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
<div class="modal fade" id="execModal">
|
|||
|
|
<div class="modal-dialog">
|
|||
|
|
<div class="modal-content">
|
|||
|
|
<div class="modal-header">
|
|||
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|||
|
|
<span aria-hidden="true">×</span></button>
|
|||
|
|
<h4 class="modal-title">实施</h4>
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-body">
|
|||
|
|
<!-- 新增界面formid强制为subForm -->
|
|||
|
|
<form class="form-horizontal" id="subForm" autocomplete="off">
|
|||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|||
|
|
<div id="alertDiv"></div>
|
|||
|
|
<input type="hidden" name="id" id="id" value="${libraryProcessManageWorkOrder.id}" />
|
|||
|
|
<input type="hidden" name="insuser" id="insuser" value="${libraryProcessManageWorkOrder.insuser}" />
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">指标编号</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.code}
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">指标名称</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.name}
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">控制区</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.area}
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">单位</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.unit}
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">周期</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
<c:if test="${libraryProcessManageWorkOrder.libraryProcessManage.cycle==Cycle_Day}">天</c:if>
|
|||
|
|
<c:if test="${libraryProcessManageWorkOrder.libraryProcessManage.cycle==Cycle_Month}">月</c:if>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">额定分值</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.baseHours}
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">控制逻辑</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
<c:if test="${libraryProcessManageWorkOrder.libraryProcessManage.controlLogic==ControlLogic_H}">高于</c:if>
|
|||
|
|
<c:if test="${libraryProcessManageWorkOrder.libraryProcessManage.controlLogic==ControlLogic_L}">低于</c:if>
|
|||
|
|
<c:if test="${libraryProcessManageWorkOrder.libraryProcessManage.controlLogic==ControlLogic_I}">区间内</c:if>
|
|||
|
|
</div>
|
|||
|
|
<div id="targetValueSt1" style="display: block;">
|
|||
|
|
<label class="col-sm-2 control-label">目标值</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.targetValue}
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="targetValueSt2" class="form-group" style="display: none;">
|
|||
|
|
<label class="col-sm-2 control-label">最小值</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.minValue}
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">最大值</label>
|
|||
|
|
<div class="col-sm-4" style="padding-top:7px">
|
|||
|
|
${libraryProcessManageWorkOrder.libraryProcessManage.maxValue}
|
|||
|
|
</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="trueValue" name="trueValue" placeholder="实际值"
|
|||
|
|
value="${libraryProcessManageWorkOrder.trueValue}">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*控制措施</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<textarea class="form-control" name="controlMeasures" id="controlMeasures" cols="30" rows="3">${libraryProcessManageWorkOrder.controlMeasures}</textarea>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-footer">
|
|||
|
|
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
|||
|
|
<button type="button" class="btn btn-primary" onclick="doSubmit()" id="btn_save">提交</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-content -->
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-dialog -->
|
|||
|
|
</div>
|