检查,资产,文件

master
20918 11 months ago
parent 438458756c
commit 705d16733d

@ -57,7 +57,6 @@ public class TdCheckResultController extends BaseController {
return util.exportExcel(list, "检查结果管理数据"); return util.exportExcel(list, "检查结果管理数据");
} }
/** /**
* *
*/ */
@ -97,11 +96,12 @@ public class TdCheckResultController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:checkresult:edit") @RequiresPermissions("system:checkresult:check")
@GetMapping("/checkresult/{checkId}") @GetMapping("/checkresult/{checkId}")
public String selfcheck(@PathVariable("checkId") Long checkId, ModelMap mmap) public String selfcheck(@PathVariable("checkId") Long checkId, ModelMap mmap)
{ {
TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId); TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId);
mmap.put("sysuser",getSysUser());
mmap.put("tdCheck", tdCheck); mmap.put("tdCheck", tdCheck);
return prefix + "/docheck"; return prefix + "/docheck";
} }
@ -115,10 +115,16 @@ public class TdCheckResultController extends BaseController {
@ResponseBody @ResponseBody
public AjaxResult selfcheckSave(TdCheck tdCheck) public AjaxResult selfcheckSave(TdCheck tdCheck)
{ {
if (tdCheck.getCheckresult1().equals("0")&&tdCheck.getCheckresult2().equals("0")
&&tdCheck.getCheckresult3().equals("0")&&tdCheck.getCheckresult4().equals("0")
&&tdCheck.getCheckresult5().equals("0")&&tdCheck.getCheckresult6().equals("0")){
tdCheck.setCheckState("0");
}else {
tdCheck.setCheckState("1");
}
return toAjax(tdCheckService.updateTdCheck(tdCheck)); return toAjax(tdCheckService.updateTdCheck(tdCheck));
} }
/** /**
* *
*/ */
@ -128,10 +134,7 @@ public class TdCheckResultController extends BaseController {
{ {
TdCheck tdCheckResult = tdCheckService.selectTdCheckByCheckId(checkId); TdCheck tdCheckResult = tdCheckService.selectTdCheckByCheckId(checkId);
mmap.put("tdCheckResult", tdCheckResult); mmap.put("tdCheckResult", tdCheckResult);
return prefix + "/CheckResultPrint"; return prefix + "/checkresultprint";
} }
} }

@ -1,114 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<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-check-add">
<div class="form-group">
<label class="col-sm-3 control-label">报告人:</label>
<div class="col-sm-8">
<input name="user" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">报告人单位:</label>
<div class="col-sm-8">
<input name="depart" class="form-control" type="text">
</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="checkStartTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
<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">
<input name="framework" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属区县:</label>
<div class="col-sm-8">
<input name="area" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">人员检查:</label>
<div class="col-sm-8">
<textarea name="checkcontentry" class="form-control" ></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文件检查:</label>
<div class="col-sm-8">
<textarea name="checkcontentrywj" class="form-control" ></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">资产检查:</label>
<div class="col-sm-8">
<textarea name="checkcontentrysb" class="form-control" ></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">管理制度检查:</label>
<div class="col-sm-8">
<textarea name="checkcontentryglzd" class="form-control" ></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">泄密事件检查:</label>
<div class="col-sm-8">
<textarea name="checkcontentryxmsj" class="form-control" ></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">其他项目检查:</label>
<div class="col-sm-8">
<textarea name="checkcontentryother" class="form-control" ></textarea>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/check"
$("#form-check-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-check-add').serialize());
}
}
$("input[name='checkStartTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='checkEndTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='checkownresulttime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -41,17 +41,18 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">内容</label> <label class="col-sm-3 control-label">被通知人</label>
<div class="col-sm-8"> <div class="col-sm-8">
<textarea name="notifyContent" class="form-control"></textarea> <input name="notifyBeuser" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">被通知人</label> <label class="col-sm-3 control-label">内容</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="notifyBeuser" class="form-control" type="text"> <textarea name="notifyContent" class="form-control"></textarea>
</div> </div>
</div> </div>
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">发出状态:</label>--> <!-- <label class="col-sm-3 control-label">发出状态:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->

@ -102,14 +102,14 @@
field: 'notifyTime', field: 'notifyTime',
title: '时间' title: '时间'
}, },
{
field: 'notifyContent',
title: '内容'
},
{ {
field: 'notifyBeuser', field: 'notifyBeuser',
title: '被通知人' title: '被通知人'
}, },
{
field: 'notifyContent',
title: '通知内容'
},
{ {
field: 'notifyState', field: 'notifyState',
title: '发出状态', title: '发出状态',

Loading…
Cancel
Save