|
|
|
@ -0,0 +1,148 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
|
<head>
|
|
|
|
|
<th:block th:include="include :: header('修改实验结果')" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body class="white-bg">
|
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
|
|
|
<form class="form-horizontal m" id="form-experiment_request-edit" th:object="${experimentRequest}">
|
|
|
|
|
<input name="objid" th:field="*{objid}" type="hidden">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">客户名称:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="customerName" th:field="*{customerName}" class="form-control" type="text" disabled>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">项目名称:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="projectName" th:field="*{projectName}" class="form-control" type="text" disabled>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">实验创建时间:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div class="input-group date">
|
|
|
|
|
<input name="creationTime" th:value="${#dates.format(experimentRequest.creationTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" disabled>
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">实验执行时间:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div class="input-group date">
|
|
|
|
|
<input name="executionTime" th:value="${#dates.format(experimentRequest.executionTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" disabled>
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">实验设备1:</label>
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<select name="deviceName" class="form-control m-b"
|
|
|
|
|
th:with="type=${@baseDeviceInfoServiceImpl.selectBaseDeviceInfoList(null)}"
|
|
|
|
|
disabled>
|
|
|
|
|
<option value="">无</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.deviceName}"
|
|
|
|
|
th:value="${dict.deviceName}" th:selected="${dict.deviceName == experimentRequest.deviceName}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
<input type="hidden" name="deviceName" th:value="*{deviceName}">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<label class="col-sm-2 control-label">实验设备2:</label>
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<select name="device2Name" class="form-control m-b readonly-select"
|
|
|
|
|
th:with="type=${@baseDeviceInfoServiceImpl.selectBaseDeviceInfoList(null)}"
|
|
|
|
|
readonly onfocus="this.blur()" style="pointer-events: none; background-color: #eee;">
|
|
|
|
|
<option value="">无</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.deviceName}"
|
|
|
|
|
th:value="${dict.deviceName}" th:selected="${dict.deviceName == experimentRequest.device2Name}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">实验内容:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="experimentDesc" class="form-control" readonly>[[*{experimentDesc}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">实验方案:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="experimentContent" class="form-control" readonly>[[*{experimentContent}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">准备工具:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="preparationTools" class="form-control" readonly>[[*{preparationTools}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">交流内容:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="communicationContent" class="form-control" readonly>[[*{communicationContent}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">实验结果:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="experimentResult" class="form-control">[[*{experimentResult}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" style="display: none;">
|
|
|
|
|
<label class="col-sm-3 control-label">实验请求状态:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="status" class="form-control m-b" th:field="*{status}" th:with="type=${@dict.getType('process_status')}">
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
<input type="hidden" name="status" value="5">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var prefix = ctx + "activiti/experiment_request";
|
|
|
|
|
$("#form-experiment_request-edit").validate({
|
|
|
|
|
focusCleanup: true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function submitHandler() {
|
|
|
|
|
if ($.validate.form()) {
|
|
|
|
|
$.operate.save(prefix + "/edit", $('#form-experiment_request-edit').serialize());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("input[name='creationTime']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("input[name='executionTime']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.readonly-select {
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
-moz-appearance: none;
|
|
|
|
|
appearance: none;
|
|
|
|
|
}
|
|
|
|
|
</style>
|