234 lines
9.9 KiB
Plaintext
234 lines
9.9 KiB
Plaintext
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ 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" %>
|
|
<style type="text/css">
|
|
.select2-container .select2-selection--single {
|
|
height: 34px;
|
|
line-height: 34px;
|
|
}
|
|
|
|
.select2-selection__arrow {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.foot {
|
|
display: flex;
|
|
padding-left: 50px;
|
|
}
|
|
|
|
/
|
|
.layout {
|
|
/ / display: flex;
|
|
/ / padding-left: 15 px;
|
|
/ /
|
|
}
|
|
|
|
/
|
|
.form-horizontal {
|
|
padding-top: 20px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single {
|
|
border: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
|
|
border: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
|
border: none;
|
|
border-style: unset
|
|
}
|
|
|
|
.select2-container--default.select2-container--disabled .select2-selection--single {
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.right {
|
|
margin-left: 50px;
|
|
}
|
|
|
|
.buttonclass {
|
|
background-color: #ffffff;
|
|
color: black;
|
|
border-color: gray;
|
|
height: 30px;
|
|
width: 52px;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
});
|
|
function updataList6() {
|
|
$("#editForm").bootstrapValidator('validate');//提交验证
|
|
if ($("#editForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
|
var formData = new FormData($("#editForm")[0]);
|
|
$.ajax({
|
|
url: ext.contextPath + "",
|
|
type: 'POST',
|
|
data: formData,
|
|
async: false,
|
|
cache: false,
|
|
contentType: false,
|
|
processData: false,
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
// console.log(data)
|
|
if (data.code == 1) {
|
|
$("#tableFunList1").bootstrapTable('refresh');
|
|
closeModal('subEdit');
|
|
} else {
|
|
showAlert('d', '保存失败!' + data.msg);
|
|
}
|
|
},
|
|
error: function (data) {
|
|
}
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
<div class="modal fade" id="TtemWorView">
|
|
<div class="modal-dialog " style="width:75%">
|
|
<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">
|
|
<div class="row">
|
|
<div class="col-md-11 col-xs-13">
|
|
<!-- 新增界面formid强制为editForm -->
|
|
<form class="form-horizontal" id="editForm" enctype="multipart/form-data">
|
|
<div id="alertDiv"></div>
|
|
<%-- <input type="hidden" name="id" value="${user.id }" />--%>
|
|
<!-- 界面提醒div强制id为alertdiv -->
|
|
|
|
<input type="hidden" name="id" id="id" class="form-control" value="${bean.id}">
|
|
<input type="hidden" name="planCode" id="planCode" class="form-control" value="${bean.planCode}">
|
|
<input type="hidden" name="sampleCode" id="sampleCode" class="form-control" value="${bean.sampleCode}">
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label"> 采样单编号</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static">${bean.planCode}</p>
|
|
|
|
</div>
|
|
<label class="col-sm-2 control-label"> 检测项目</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static">${bean.testItemName}</p>
|
|
</div>
|
|
<label class="col-sm-2 control-label"> 结果公式</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static">${bean.workCurveName}</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label"> 样品编号</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static">${bean.sampleCode}</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group" id="cont">
|
|
<c:forEach items="${basiCurveslist}" var="item" varStatus="status">
|
|
|
|
<label style="margin-top: 13px;"
|
|
class="col-sm-2 control-label">${item.name}</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static"> ${item.default_value}
|
|
${item.unit}
|
|
</p>
|
|
</div>
|
|
|
|
</c:forEach>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label"> 常量:</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<c:forEach items="${contantCurveslist}" var="item" varStatus="status">
|
|
|
|
<label style=""
|
|
class="col-sm-2 control-label">${item.MPoint.parmname}</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static"> ${item.default_value} ${item.MPoint.unit}</p>
|
|
</div>
|
|
|
|
</c:forEach>
|
|
</div>
|
|
</form>
|
|
|
|
<c:forEach items="${processCurveslist}" var="item" varStatus="status">
|
|
<form class="form-horizontal" id="processcurve${status.index}"
|
|
enctype="multipart/form-data">
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label" style="margin-left: -9em;">${item.MPoint.disname}</label>
|
|
|
|
</div>
|
|
<div class="form-group">
|
|
|
|
<c:forEach items="${item.MPoint.mPointPropSource}" var="formuitem" varStatus="formustatus">
|
|
<label class="col-sm-2 control-label">${formuitem.indexDetails}</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static">${formuitem.mPoint.parmvalue}</p>
|
|
</div>
|
|
|
|
</c:forEach>
|
|
<label class="col-sm-2 control-label"> ${item.MPoint.disname}</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static"> ${item.MPoint.parmvalue}</p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</c:forEach>
|
|
<c:forEach items="${curve}" var="item" varStatus="status">
|
|
<form class="form-horizontal" id="curveeditForm${status.index}"
|
|
enctype="multipart/form-data">
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label">${item.MPoint.disname}</label>
|
|
|
|
</div>
|
|
<div class="form-group" >
|
|
|
|
<c:forEach items="${item.MPoint.mPointPropSource}" var="formuitem"
|
|
varStatus="formustatus">
|
|
<label class="col-sm-2 control-label">${formuitem.indexDetails}</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static">${formuitem.mPoint.parmvalue}</p>
|
|
</div>
|
|
</c:forEach>
|
|
<label class="col-sm-2 control-label"> ${item.MPoint.disname}</label>
|
|
<div class="col-sm-2">
|
|
<p class="form-control-static"> ${item.MPoint.parmvalue}</p>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</c:forEach>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default " data-dismiss="modal">关闭
|
|
</button>
|
|
<%-- <button type="button" class="btn btn-primary " style="margin-left: 10px"--%>
|
|
<%-- onclick="updataList6()">保存--%>
|
|
<%-- </button>--%>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|
|
|
|
|
|
|
|
|