Commit 30829fb04a57b84112217c21a69b7286cd9634a0

Authored by fangcheng
1 parent ee4e62ba68
Exists in master

添加诊断版本、基础诊断项、自定义诊断项管理

Showing 22 changed files with 955 additions and 9 deletions

parent/base.common/src/main/java/com/lyms/base/common/entity/conf/DiagnoseConf.java View file @ 30829fb
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 *
23 23 */
24   - @TableId(value="ID")
  24 + @TableId(value="ID")
25 25 private String id;
26 26 /**
27 27 * 高危项定义资源表ID
parent/base.common/src/main/java/com/lyms/base/common/entity/conf/DiagnoseMaps.java View file @ 30829fb
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 *
23 23 */
24   - @TableField(value="ID")
  24 + @TableId(value="ID")
25 25 private String id;
26 26 /**
27 27 * 诊断ID
parent/base.common/src/main/java/com/lyms/base/common/entity/conf/DiagnoseSource.java View file @ 30829fb
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 *
23 23 */
24   - @TableField(value="ID")
  24 + @TableId(value="ID")
25 25 private String id;
26 26 /**
27 27 * 诊断项名称
... ... @@ -38,6 +38,8 @@
38 38 */
39 39 @TableField(value="ENABLE")
40 40 private Integer enable;
  41 + @TableField(value="ITEMORDER")
  42 + private Integer itemorder;
41 43  
42 44  
43 45 public String getId() {
... ... @@ -72,5 +74,13 @@
72 74 this.enable = enable;
73 75 }
74 76  
  77 + public Integer getItemorder() {
  78 + return itemorder;
  79 + }
  80 +
  81 + public void setItemorder(Integer itemorder) {
  82 + this.itemorder = itemorder;
  83 + }
  84 +
75 85 }
parent/base.common/src/main/java/com/lyms/base/common/entity/conf/DiagnoseVersion.java View file @ 30829fb
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 *
23 23 */
24   - @TableField(value="ID")
  24 + @TableId(value="ID")
25 25 private String id;
26 26 /**
27 27 * 高危版本名称
... ... @@ -33,6 +33,11 @@
33 33 */
34 34 @TableField(value="ENABLE")
35 35 private Integer enable;
  36 + /**
  37 + * 是否删除
  38 + */
  39 + @TableField(value="IFDEL")
  40 + private Integer ifdel;
36 41  
37 42  
38 43 public String getId() {
... ... @@ -58,6 +63,15 @@
58 63 public void setEnable(Integer enable) {
59 64 this.enable = enable;
60 65 }
  66 +
  67 + public Integer getIfdel() {
  68 + return ifdel;
  69 + }
  70 +
  71 + public void setIfdel(Integer ifdel) {
  72 + this.ifdel = ifdel;
  73 + }
  74 +
61 75  
62 76 }
parent/base.common/src/main/java/com/lyms/base/common/service/conf/DiagnoseVersionService.java View file @ 30829fb
... ... @@ -59,5 +59,16 @@
59 59 */
60 60 public String createVersion(DiagnoseVersion version) throws SystemException;
61 61  
  62 + /**
  63 + * <li>@Description:复制一个版本
  64 + * <li>@param id
  65 + * <li>@return
  66 + * <li>创建人:方承
  67 + * <li>创建时间:2017年4月7日
  68 + * <li>修改人:
  69 + * <li>修改时间:
  70 + */
  71 + public Integer copy(Serializable id);
  72 +
62 73 }
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseVersionServiceImpl.java View file @ 30829fb
... ... @@ -5,14 +5,20 @@
5 5  
6 6 import org.springframework.beans.factory.annotation.Autowired;
7 7 import org.springframework.stereotype.Service;
  8 +import org.springframework.transaction.annotation.Transactional;
8 9  
9 10 import com.baomidou.mybatisplus.mapper.EntityWrapper;
10 11 import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  12 +import com.lyms.base.common.dao.conf.DiagnoseConfMapper;
11 13 import com.lyms.base.common.dao.conf.DiagnoseVersionMapper;
  14 +import com.lyms.base.common.entity.conf.DiagnoseConf;
12 15 import com.lyms.base.common.entity.conf.DiagnoseVersion;
  16 +import com.lyms.base.common.entity.conf.HighriskConf;
  17 +import com.lyms.base.common.entity.conf.HighriskVersion;
13 18 import com.lyms.base.common.enums.StatusEnum;
14 19 import com.lyms.base.common.service.conf.DiagnoseVersionService;
15 20 import com.lyms.exception.SystemException;
  21 +import com.lyms.util.DateTimeUtils;
16 22 import com.lyms.util.StrUtils;
17 23  
18 24 /**
... ... @@ -28,6 +34,8 @@
28 34  
29 35 @Autowired
30 36 private DiagnoseVersionMapper diagnoseVersionMapper;
  37 + @Autowired
  38 + private DiagnoseConfMapper confMapper;
31 39  
32 40 public Integer deleteLogicById(Serializable id) {
33 41 return baseMapper.deleteLogicById(id);
... ... @@ -85,5 +93,24 @@
85 93  
86 94 return tag != null && tag >= 1 ? id : null;
87 95 }
  96 +
  97 + @Override
  98 + @Transactional
  99 + public Integer copy(Serializable id) {
  100 + DiagnoseVersion version = baseMapper.selectById(id);
  101 + DiagnoseVersion newVersion = new DiagnoseVersion();
  102 + String time = DateTimeUtils.getDateTime("yyyy_MM_dd_HH_mm_ss");
  103 + String versionId = time;
  104 + newVersion.setId(versionId);
  105 + newVersion.setName(version.getName()+time);
  106 + Integer tag = baseMapper.insert(newVersion);
  107 + List<DiagnoseConf> confList = confMapper.selectList(new EntityWrapper<DiagnoseConf>().where("version_id={0}", version.getId()));
  108 + for(DiagnoseConf conf : confList){
  109 + conf.setId(StrUtils.uuid());
  110 + conf.setVersionId(versionId);
  111 + confMapper.insert(conf);
  112 + }
  113 + return tag;
  114 + }
88 115 }
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/DiagnoseConfController.java View file @ 30829fb
  1 +package com.lyms.cm.controller.conf;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import org.apache.commons.lang3.StringUtils;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Controller;
  8 +import org.springframework.ui.Model;
  9 +import org.springframework.web.bind.annotation.PathVariable;
  10 +import org.springframework.web.bind.annotation.RequestMapping;
  11 +import org.springframework.web.bind.annotation.RequestMethod;
  12 +import org.springframework.web.bind.annotation.ResponseBody;
  13 +
  14 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  15 +import com.baomidou.mybatisplus.plugins.Page;
  16 +import com.lyms.base.common.entity.conf.DiagnoseConf;
  17 +import com.lyms.base.common.service.conf.DiagnoseConfService;
  18 +import com.lyms.constants.OperationName;
  19 +import com.lyms.util.StrUtils;
  20 +import com.lyms.web.bean.AjaxResult;
  21 +import com.lyms.web.controller.BaseController;
  22 +
  23 +/**
  24 + * <p>
  25 + * 前端控制器
  26 + * </p>
  27 + *
  28 + * @author fangcheng
  29 + * @since 2017-04-07
  30 + */
  31 +@Controller
  32 +@RequestMapping("/diagnoseConf")
  33 +public class DiagnoseConfController extends BaseController {
  34 +
  35 + @Autowired
  36 + private DiagnoseConfService diagnoseConfService;
  37 +
  38 +
  39 + /**
  40 + * 跳转到列表页面
  41 + *
  42 + * @return
  43 + */
  44 + @RequestMapping(value = "/toList", method = { RequestMethod.GET })
  45 + public String toList() {
  46 + return "/conf/diagnose/conf_list";
  47 + }
  48 +
  49 + /**
  50 + * 列表
  51 + *
  52 + * @param page
  53 + * @param model
  54 + * @return
  55 + */
  56 + @RequestMapping(value = "/list", method = { RequestMethod.POST, RequestMethod.GET })
  57 + @ResponseBody
  58 + public Map<String, Object> list(Model model) {
  59 + Page<DiagnoseConf> page = getPage();
  60 + EntityWrapper<DiagnoseConf> ew = new EntityWrapper<DiagnoseConf>();
  61 +
  62 + String versionId = getParameter("versionId");
  63 + String searchName = getParameter("name");
  64 + if (StrUtils.isNotEmpty(searchName)) {
  65 + ew.and("name like {0}", searchName.trim() + "%");
  66 + }
  67 + if (StrUtils.isNotEmpty(versionId)) {
  68 + ew.and("version_id like {0}", versionId.trim() + "%");
  69 + }
  70 + ew.orderBy("grouporder,itemorder");
  71 + page = diagnoseConfService.selectPage(page,ew);
  72 + return toGridData(page);
  73 + }
  74 +
  75 + /**
  76 + * 跳转到编辑页面
  77 + *
  78 + * @return
  79 + */
  80 + @RequestMapping(value = { "/{id}/toEdit" }, method = RequestMethod.GET)
  81 + public String toEdit(@PathVariable String id, Model model) {
  82 + if (!StringUtils.isBlank(id) && !"0".equals(id)) {
  83 + DiagnoseConf entity = diagnoseConfService.selectById(id);
  84 + model.addAttribute("conf", entity);
  85 + }
  86 + return "/conf/diagnose/conf_edit";
  87 + }
  88 +
  89 + /**
  90 + * 创建
  91 + * <p>
  92 + * TODO
  93 + *
  94 + * @param user
  95 + * @return
  96 + */
  97 + @RequestMapping(value = "/create", method = RequestMethod.POST)
  98 + @ResponseBody
  99 + public AjaxResult create(DiagnoseConf DiagnoseConf, AjaxResult ajaxResult) {
  100 + DiagnoseConf.setId(StrUtils.uuid());
  101 + boolean tag = diagnoseConfService.insert(DiagnoseConf);
  102 + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE);
  103 + }
  104 +
  105 + /**
  106 + * 修改信息
  107 + */
  108 + @RequestMapping(value = "/update", method = { RequestMethod.POST })
  109 + @ResponseBody
  110 + public AjaxResult update(DiagnoseConf DiagnoseConf, AjaxResult ajaxResult) {
  111 + boolean tag = diagnoseConfService.updateById(DiagnoseConf);
  112 + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE);
  113 + }
  114 +
  115 + /**
  116 + * 删除
  117 + *
  118 + * @return
  119 + */
  120 + @RequestMapping(value = "/{id}/delete", method = { RequestMethod.GET, RequestMethod.POST })
  121 + @ResponseBody
  122 + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) {
  123 + int tag = diagnoseConfService.deleteLogicById(id);
  124 + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE);
  125 + }
  126 +
  127 +}
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/DiagnoseSourceController.java View file @ 30829fb
  1 +package com.lyms.cm.controller.conf;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import org.apache.commons.lang3.StringUtils;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Controller;
  8 +import org.springframework.ui.Model;
  9 +import org.springframework.web.bind.annotation.PathVariable;
  10 +import org.springframework.web.bind.annotation.RequestMapping;
  11 +import org.springframework.web.bind.annotation.RequestMethod;
  12 +import org.springframework.web.bind.annotation.ResponseBody;
  13 +
  14 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  15 +import com.baomidou.mybatisplus.plugins.Page;
  16 +import com.lyms.base.common.entity.conf.DiagnoseSource;
  17 +import com.lyms.base.common.service.conf.DiagnoseSourceService;
  18 +import com.lyms.constants.OperationName;
  19 +import com.lyms.util.StrUtils;
  20 +import com.lyms.web.bean.AjaxResult;
  21 +import com.lyms.web.controller.BaseController;
  22 +
  23 +/**
  24 + * <p>
  25 + * 前端控制器
  26 + * </p>
  27 + *
  28 + * @author fangcheng
  29 + * @since 2017-04-07
  30 + */
  31 +@Controller
  32 +@RequestMapping("/diagnoseSource")
  33 +public class DiagnoseSourceController extends BaseController {
  34 +
  35 + @Autowired
  36 + private DiagnoseSourceService diagnoseSourceService;
  37 +
  38 +
  39 + /**
  40 + * 跳转到列表页面
  41 + *
  42 + * @return
  43 + */
  44 + @RequestMapping(value = "/toList", method = { RequestMethod.GET })
  45 + public String toList() {
  46 + return "/conf/diagnose/source_list";
  47 + }
  48 +
  49 + /**
  50 + * 列表
  51 + *
  52 + * @param page
  53 + * @param model
  54 + * @return
  55 + */
  56 + @RequestMapping(value = "/list", method = { RequestMethod.POST, RequestMethod.GET })
  57 + @ResponseBody
  58 + public Map<String, Object> list(Model model) {
  59 + Page<DiagnoseSource> page = getPage();
  60 + EntityWrapper<DiagnoseSource> ew = new EntityWrapper<DiagnoseSource>();
  61 + String searchName = getParameter("name");
  62 + if (StrUtils.isNotEmpty(searchName)) {
  63 + ew.and("name like {0}", searchName.trim() + "%");
  64 + }
  65 + ew.orderBy("itemorder");
  66 + page = diagnoseSourceService.selectPage(page,ew);
  67 + return toGridData(page);
  68 + }
  69 +
  70 + /**
  71 + * 跳转到编辑页面
  72 + *
  73 + * @return
  74 + */
  75 + @RequestMapping(value = { "/{id}/toEdit" }, method = RequestMethod.GET)
  76 + public String toEdit(@PathVariable String id, Model model) {
  77 + if (!StringUtils.isBlank(id)&&!"0".equals(id)) {
  78 + DiagnoseSource entity = diagnoseSourceService.selectById(id);
  79 + model.addAttribute("source", entity);
  80 + }
  81 + return "/conf/diagnose/source_edit";
  82 + }
  83 +
  84 + /**
  85 + * 创建用户
  86 + * <p>
  87 + * TODO
  88 + *
  89 + * @param user
  90 + * @return
  91 + */
  92 + @RequestMapping(value = "/create", method = RequestMethod.POST)
  93 + @ResponseBody
  94 + public AjaxResult create(DiagnoseSource DiagnoseSource, AjaxResult ajaxResult) {
  95 + DiagnoseSource.setId(StrUtils.uuid());
  96 + boolean tag = diagnoseSourceService.insert(DiagnoseSource);
  97 + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE);
  98 + }
  99 +
  100 + /**
  101 + * 修改信息
  102 + */
  103 + @RequestMapping(value = "/update", method = { RequestMethod.POST })
  104 + @ResponseBody
  105 + public AjaxResult update(DiagnoseSource DiagnoseSource, AjaxResult ajaxResult) {
  106 + boolean tag = diagnoseSourceService.updateById(DiagnoseSource);
  107 + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE);
  108 + }
  109 +
  110 + /**
  111 + * 删除
  112 + *
  113 + * @return
  114 + */
  115 + @RequestMapping(value = "/{id}/delete", method = { RequestMethod.GET, RequestMethod.POST })
  116 + @ResponseBody
  117 + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) {
  118 + int tag = diagnoseSourceService.deleteLogicById(id);
  119 + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE);
  120 + }
  121 +
  122 +}
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/DiagnoseVersionController.java View file @ 30829fb
  1 +package com.lyms.cm.controller.conf;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import org.apache.commons.lang3.StringUtils;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Controller;
  8 +import org.springframework.ui.Model;
  9 +import org.springframework.web.bind.annotation.PathVariable;
  10 +import org.springframework.web.bind.annotation.RequestMapping;
  11 +import org.springframework.web.bind.annotation.RequestMethod;
  12 +import org.springframework.web.bind.annotation.ResponseBody;
  13 +
  14 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  15 +import com.baomidou.mybatisplus.plugins.Page;
  16 +import com.lyms.base.common.entity.conf.DiagnoseVersion;
  17 +import com.lyms.base.common.service.conf.DiagnoseVersionService;
  18 +import com.lyms.constants.OperationName;
  19 +import com.lyms.util.StrUtils;
  20 +import com.lyms.web.bean.AjaxResult;
  21 +import com.lyms.web.controller.BaseController;
  22 +
  23 +/**
  24 + * <p>
  25 + * 前端控制器
  26 + * </p>
  27 + *
  28 + * @author fangcheng
  29 + * @since 2017-04-07
  30 + */
  31 +@Controller
  32 +@RequestMapping("/diagnoseVersion")
  33 +public class DiagnoseVersionController extends BaseController {
  34 +
  35 + @Autowired
  36 + private DiagnoseVersionService diagnoseVersionService;
  37 +
  38 +
  39 + /**
  40 + * 跳转到列表页面
  41 + *
  42 + * @return
  43 + */
  44 + @RequestMapping(value = "/toList", method = { RequestMethod.GET })
  45 + public String toList() {
  46 + return "/conf/diagnose/version_list";
  47 + }
  48 +
  49 + /**
  50 + * 列表
  51 + *
  52 + * @param page
  53 + * @param model
  54 + * @return
  55 + */
  56 + @RequestMapping(value = "/list", method = { RequestMethod.POST, RequestMethod.GET })
  57 + @ResponseBody
  58 + public Map<String, Object> list(Model model) {
  59 + Page<DiagnoseVersion> page = getPage();
  60 + EntityWrapper<DiagnoseVersion> ew = new EntityWrapper<DiagnoseVersion>();
  61 + ew.where("ifDel=0");
  62 + String searchName = getParameter("name");
  63 + if (StrUtils.isNotEmpty(searchName)) {
  64 + ew.and("name like {0}", searchName.trim() + "%");
  65 + }
  66 + page = diagnoseVersionService.selectPage(page,ew);
  67 + return toGridData(page);
  68 + }
  69 +
  70 + /**
  71 + * 跳转到编辑页面
  72 + *
  73 + * @return
  74 + */
  75 + @RequestMapping(value = { "/{id}/toEdit" }, method = RequestMethod.GET)
  76 + public String toEdit(@PathVariable String id, Model model) {
  77 + if (!StringUtils.isBlank(id)&&!"0".equals(id)) {
  78 + DiagnoseVersion entity = diagnoseVersionService.selectById(id);
  79 + model.addAttribute("version", entity);
  80 + }
  81 + return "/conf/diagnose/version_edit";
  82 + }
  83 +
  84 + /**
  85 + * 创建用户
  86 + * <p>
  87 + * TODO
  88 + *
  89 + * @param user
  90 + * @return
  91 + */
  92 + @RequestMapping(value = "/create", method = RequestMethod.POST)
  93 + @ResponseBody
  94 + public AjaxResult create(DiagnoseVersion DiagnoseVersion, AjaxResult ajaxResult) {
  95 + boolean tag = diagnoseVersionService.insert(DiagnoseVersion);
  96 + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE);
  97 + }
  98 +
  99 + /**
  100 + * 修改信息
  101 + */
  102 + @RequestMapping(value = "/update", method = { RequestMethod.POST })
  103 + @ResponseBody
  104 + public AjaxResult update(DiagnoseVersion DiagnoseVersion, AjaxResult ajaxResult) {
  105 + boolean tag = diagnoseVersionService.updateById(DiagnoseVersion);
  106 + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE);
  107 + }
  108 +
  109 + /**
  110 + * 删除
  111 + *
  112 + * @return
  113 + */
  114 + @RequestMapping(value = "/{id}/delete", method = { RequestMethod.GET, RequestMethod.POST })
  115 + @ResponseBody
  116 + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) {
  117 + int tag = diagnoseVersionService.deleteLogicById(id);
  118 + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE);
  119 + }
  120 +
  121 + /**
  122 + * 复制
  123 + *
  124 + * @return
  125 + */
  126 + @RequestMapping(value = "/{id}/copy", method = { RequestMethod.GET, RequestMethod.POST })
  127 + @ResponseBody
  128 + public AjaxResult copy(@PathVariable String id, AjaxResult ajaxResult){
  129 + int tag = diagnoseVersionService.copy(id);
  130 + return handleAjaxResult(ajaxResult, tag, "复制");
  131 + }
  132 +
  133 +}
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/HighriskConfController.java View file @ 30829fb
... ... @@ -97,6 +97,7 @@
97 97 @RequestMapping(value = "/create", method = RequestMethod.POST)
98 98 @ResponseBody
99 99 public AjaxResult create(HighriskConf HighriskConf, AjaxResult ajaxResult) {
  100 + HighriskConf.setId(StrUtils.uuid());
100 101 boolean tag = highriskConfService.insert(HighriskConf);
101 102 return handleAjaxResult(ajaxResult, tag, OperationName.CREATE);
102 103 }
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/HighriskSourceController.java View file @ 30829fb
... ... @@ -94,6 +94,7 @@
94 94 @RequestMapping(value = "/create", method = RequestMethod.POST)
95 95 @ResponseBody
96 96 public AjaxResult create(HighriskSource HighriskSource, AjaxResult ajaxResult) {
  97 + HighriskSource.setId(StrUtils.uuid());
97 98 boolean tag = highriskSourceService.insert(HighriskSource);
98 99 return handleAjaxResult(ajaxResult, tag, OperationName.CREATE);
99 100 }
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/HighriskVersionController.java View file @ 30829fb
... ... @@ -37,7 +37,7 @@
37 37  
38 38  
39 39 /**
40   - * 跳转到用户列表页面
  40 + * 跳转到列表页面
41 41 *
42 42 * @return
43 43 */
parent/center.manager/src/main/webapp/WEB-INF/views/conf/diagnose/conf_edit.html View file @ 30829fb
  1 +#override("body")
  2 +<div class="ibox float-e-margins">
  3 + <div class="ibox-content">
  4 + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate">
  5 + <div class="form-group">
  6 + <label class="col-sm-3 control-label">id编号:</label>
  7 + <div class="col-sm-8">
  8 + <input type="text" placeholder="id编号" value="$!conf.id" readOnly="true" class="form-control" minlength="2" name="id" id="id">
  9 + </div>
  10 + </div>
  11 + <div class="form-group">
  12 + <label class="col-sm-3 control-label">source_id:</label>
  13 + <div class="col-sm-8">
  14 + <input type="text" placeholder="source_id" value="$!conf.sourceId" aria-required="true" required="true" class="form-control" minlength="2" name="sourceId" id="sourceId">
  15 + </div>
  16 + </div>
  17 + <div class="form-group">
  18 + <label class="col-sm-3 control-label">版本id:</label>
  19 + <div class="col-sm-8">
  20 + <input type="text" placeholder="version_id" value="$!conf.versionId" aria-required="true" required="true" class="form-control" minlength="2" name="versionId" id="versionId">
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="col-sm-3 control-label">自定义高危项名称:</label>
  25 + <div class="col-sm-8">
  26 + <input type="text" placeholder="自定义高危项名称" value="$!conf.name" aria-required="true" required="true" class="form-control" minlength="2" name="name" id="name">
  27 + </div>
  28 + </div>
  29 + <div class="form-group">
  30 + <label class="col-sm-3 control-label">诊断组名称:</label>
  31 + <div class="col-sm-8">
  32 + <input type="text" placeholder="诊断组名称" value="$!conf.groupname" aria-required="true" required="true" class="form-control" minlength="2" name="groupname" id="groupname">
  33 + </div>
  34 + </div>
  35 + <div class="form-group">
  36 + <label class="col-sm-3 control-label">组排序序号:</label>
  37 + <div class="col-sm-8">
  38 + <input type="text" placeholder="组排序序号:如‘1’" value="$!conf.grouporder" aria-required="true" required="true" class="form-control" minlength="2" name="grouporder" id="grouporder">
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="col-sm-3 control-label">项排序序号:</label>
  43 + <div class="col-sm-8">
  44 + <input type="text" placeholder="项排序序号:如‘2’" value="$!conf.itemorder" aria-required="true" required="true" class="form-control" minlength="2" name="itemorder" id="itemorder">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="col-sm-3 control-label"></label>
  49 + <div class="col-sm-8">
  50 + <label class="checkbox-inline i-checks">
  51 + <div class="icheckbox_square-green" style="position: relative;">
  52 + <input type="checkbox" value="0" name="enable" #if ($conf.enable == 0) checked="checked" #end
  53 + style="position: absolute; opacity: 0;" >
  54 + <ins class="iCheck-helper"
  55 + style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins>
  56 + </div>是否禁用(选中禁用,不选中可用)
  57 + </label>
  58 + </div>
  59 + </div>
  60 + <div class="hr-line-dashed"></div>
  61 + <div class="form-group">
  62 + <div class="col-sm-4 col-sm-offset-3 pull-right">
  63 + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i>&nbsp;提交</button>
  64 + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i>&nbsp;取消</button>
  65 + </div>
  66 + </div>
  67 + </form>
  68 + </div>
  69 +</div>
  70 +<script type="text/javascript">
  71 + function save(){
  72 + if($('#validForm').valid()){
  73 + var data = $('#validForm').serialize();
  74 + //console.log(data);
  75 + if("$!conf.id" == ""){
  76 + ajaxPost(APP.PATH + "/diagnoseConf/create",data);
  77 + }else{
  78 + ajaxPost(APP.PATH + "/diagnoseConf/update",data);
  79 + }
  80 + parent.reloadGrid('dataTable');
  81 + }
  82 + }
  83 +</script>
  84 +#end
  85 +#extends("/common/base_list.html")
parent/center.manager/src/main/webapp/WEB-INF/views/conf/diagnose/conf_list.html View file @ 30829fb
  1 +#override("body")
  2 +<div class="row wrapper border-bottom white-bg page-heading">
  3 + <div class="col-sm-10">
  4 + <div style="padding-top:30px;">
  5 + <form role="form" class="form-inline">
  6 + <div class="form-group">
  7 + <input type="text" placeholder="version_id" id="versionIdSearch" class="form-control">
  8 + </div>
  9 + <div class="form-group">
  10 + <input type="text" placeholder="请输入自定义诊断项名称" id="nameSearch" class="form-control">
  11 + </div>
  12 + </form>
  13 + </div>
  14 + </div>
  15 + <div class="col-sm-2">
  16 + <div class="title-action" onclick="search();">
  17 + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a>
  18 + </div>
  19 + </div>
  20 +</div>
  21 +<div class="wrapper wrapper-content">
  22 + <div class="row">
  23 + <div class="col-sm-12">
  24 + <div id="toolbar">
  25 + <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> 新增</button>
  26 + <button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button>
  27 + <!--
  28 + <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> 删除</button>
  29 + -->
  30 + </div>
  31 + <table id="dataTable"></table>
  32 + </div>
  33 + </div>
  34 +</div>
  35 +#end
  36 +#override("js")
  37 +<script type="text/javascript">
  38 +function search(){
  39 + var queryParams = {
  40 + query:{
  41 + versionId: $("#versionIdSearch").val(),
  42 + name:$("#nameSearch").val()
  43 + }
  44 + }
  45 + $('#dataTable').bootstrapTable('refresh', queryParams );
  46 +}
  47 +var controllerRequestMappint = "/diagnoseConf/";
  48 +
  49 +function add() {
  50 + fullWindow("新增自定义诊断项", APP.PATH + controllerRequestMappint + "0/toEdit");
  51 +}
  52 +
  53 +function edit(){
  54 + var id = getSingleSelectedValue("dataTable","id");
  55 + if(id){
  56 + fullWindow("修改自定义诊断项", APP.PATH + controllerRequestMappint + id + "/toEdit");
  57 + }
  58 +}
  59 +
  60 +function del(){
  61 + goDelete("dataTable","id", APP.PATH + controllerRequestMappint + "@value@/delete");
  62 +}
  63 +## 参考 base_table_init.js 或者根据empty_bootstrap_table_init.js 来自己创建特殊的table
  64 +## 注意:自己创建的特殊的table不能extends base_list.html
  65 +var default_dataUrl = APP.PATH + controllerRequestMappint + "list";
  66 +var default_dataColumns = [{
  67 + field: 'check_state',
  68 + title: '',
  69 + checkbox: true
  70 + },{
  71 + field: 'id',
  72 + title: '编号'
  73 + },{
  74 + field: 'sourceId',
  75 + title: 'source_id'
  76 + },{
  77 + field: 'versionId',
  78 + title: 'version_id'
  79 + },{
  80 + field: 'name',
  81 + title: '自定义诊断项名称'
  82 + },{
  83 + field: 'groupname',
  84 + title: '诊断组名称'
  85 + },{
  86 + field: 'grouporder',
  87 + title: 'grouporder'
  88 + },{
  89 + field: 'itemorder',
  90 + title: 'itemorder'
  91 + },{
  92 + field: 'enable',
  93 + title: '启/停用',
  94 + formatter:enableFormatter
  95 + }];
  96 +
  97 +</script>
  98 +#end
  99 +#extends("/common/base_list.html")
parent/center.manager/src/main/webapp/WEB-INF/views/conf/diagnose/source_edit.html View file @ 30829fb
  1 +#override("body")
  2 +<div class="ibox float-e-margins">
  3 + <div class="ibox-content">
  4 + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate">
  5 + <div class="form-group">
  6 + <label class="col-sm-3 control-label">id编号:</label>
  7 + <div class="col-sm-8">
  8 + <input type="text" placeholder="id编号" value="$!source.id" readOnly="true" class="form-control" minlength="2" name="id" id="id">
  9 + </div>
  10 + </div>
  11 + <div class="form-group">
  12 + <label class="col-sm-3 control-label">诊断项名称:</label>
  13 + <div class="col-sm-8">
  14 + <input type="text" placeholder="版本名称" value="$!source.name" aria-required="true" required="true" class="form-control" minlength="2" name="name" id="name">
  15 + </div>
  16 + </div>
  17 + <div class="form-group">
  18 + <label class="col-sm-3 control-label">诊断项类型:</label>
  19 + <div class="col-sm-8">
  20 + <select class="form-control m-b" name="type">
  21 + <option value="1" #if ($source.type == 1) selected="selected" #end >女性诊断</option>
  22 + <option value="0" #if ($source.type == 2) selected="selected" #end >男性诊断</option>
  23 + <option value="0" #if ($source.type == 3) selected="selected" #end >儿童诊断</option>
  24 + </select>
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="col-sm-3 control-label"></label>
  29 + <div class="col-sm-8">
  30 + <label class="checkbox-inline i-checks">
  31 + <div class="icheckbox_square-green" style="position: relative;">
  32 + <input type="checkbox" value="0" name="enable" #if ($source.enable == 0) checked="checked" #end
  33 + style="position: absolute; opacity: 0;" >
  34 + <ins class="iCheck-helper"
  35 + style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins>
  36 + </div>是否禁用(选中禁用,不选中可用)
  37 + </label>
  38 + </div>
  39 + </div>
  40 + <div class="hr-line-dashed"></div>
  41 + <div class="form-group">
  42 + <div class="col-sm-4 col-sm-offset-3 pull-right">
  43 + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i>&nbsp;提交</button>
  44 + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i>&nbsp;取消</button>
  45 + </div>
  46 + </div>
  47 + </form>
  48 + </div>
  49 +</div>
  50 +<script type="text/javascript">
  51 + function save(){
  52 + if($('#validForm').valid()){
  53 + var data = $('#validForm').serialize();
  54 + //console.log(data);
  55 + if("$!source.id" == ""){
  56 + ajaxPost(APP.PATH + "/diagnoseSource/create",data);
  57 + }else{
  58 + ajaxPost(APP.PATH + "/diagnoseSource/update",data);
  59 + }
  60 + parent.reloadGrid('dataTable');
  61 + }
  62 + }
  63 +</script>
  64 +#end
  65 +#extends("/common/base_list.html")
parent/center.manager/src/main/webapp/WEB-INF/views/conf/diagnose/source_list.html View file @ 30829fb
  1 +#override("body")
  2 +<div class="row wrapper border-bottom white-bg page-heading">
  3 + <div class="col-sm-10">
  4 + <div style="padding-top:30px;">
  5 + <form role="form" class="form-inline">
  6 + <div class="form-group">
  7 + <input type="text" placeholder="请输入诊断项名称" id="nameSearch" class="form-control">
  8 + </div>
  9 + </form>
  10 + </div>
  11 + </div>
  12 + <div class="col-sm-2">
  13 + <div class="title-action" onclick="search();">
  14 + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a>
  15 + </div>
  16 + </div>
  17 +</div>
  18 +<div class="wrapper wrapper-content">
  19 + <div class="row">
  20 + <div class="col-sm-12">
  21 + <div id="toolbar">
  22 + <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> 新增</button>
  23 + <button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button>
  24 + <!--
  25 + <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> 删除</button>
  26 + -->
  27 + </div>
  28 + <table id="dataTable"></table>
  29 + </div>
  30 + </div>
  31 +</div>
  32 +#end
  33 +#override("js")
  34 +<script type="text/javascript">
  35 +function search(){
  36 + var queryParams = {
  37 + query:{
  38 + name: $("#nameSearch").val()
  39 + }
  40 + }
  41 + $('#dataTable').bootstrapTable('refresh', queryParams );
  42 +}
  43 +var controllerRequestMappint = "/diagnoseSource/";
  44 +
  45 +function add() {
  46 + fullWindow("新增诊断项", APP.PATH + controllerRequestMappint + "0/toEdit");
  47 +}
  48 +
  49 +function edit(){
  50 + var id = getSingleSelectedValue("dataTable","id");
  51 + if(id){
  52 + fullWindow("修改诊断项", APP.PATH + controllerRequestMappint + id + "/toEdit");
  53 + }
  54 +}
  55 +
  56 +function del(){
  57 + goDelete("dataTable","id", APP.PATH + controllerRequestMappint + "@value@/delete");
  58 +}
  59 +## 参考 base_table_init.js 或者根据empty_bootstrap_table_init.js 来自己创建特殊的table
  60 +## 注意:自己创建的特殊的table不能extends base_list.html
  61 +var default_dataUrl = APP.PATH + controllerRequestMappint + "list";
  62 +var default_dataColumns = [{
  63 + field: 'check_state',
  64 + title: '',
  65 + checkbox: true
  66 + },{
  67 + field: 'id',
  68 + title: '编号'
  69 + },{
  70 + field: 'name',
  71 + title: '高危项名称'
  72 + },{
  73 + field: 'type',
  74 + title: '类型',
  75 + formatter:function(value,row,index){
  76 + if(value == 1){
  77 + return '女性诊断'
  78 + }else if(value == 2){
  79 + return '男性诊断'
  80 + }else if(value == 3){
  81 + return '儿童诊断'
  82 + }
  83 + }
  84 + },{
  85 + field: 'enable',
  86 + title: '启/停用',
  87 + formatter:enableFormatter
  88 + }];
  89 +
  90 +</script>
  91 +#end
  92 +#extends("/common/base_list.html")
parent/center.manager/src/main/webapp/WEB-INF/views/conf/diagnose/version_edit.html View file @ 30829fb
  1 +#override("body")
  2 +<div class="ibox float-e-margins">
  3 + <div class="ibox-content">
  4 + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate">
  5 + <div class="form-group">
  6 + <label class="col-sm-3 control-label">id编号:</label>
  7 + <div class="col-sm-8">
  8 + <input type="text" placeholder="id编号" value="$!version.id" #if ($version.id) readOnly="true" #end aria-required="true" required="true" class="form-control" minlength="2" name="id" id="id">
  9 + </div>
  10 + </div>
  11 + <div class="form-group">
  12 + <label class="col-sm-3 control-label">版本名称:</label>
  13 + <div class="col-sm-8">
  14 + <input type="text" placeholder="版本名称" value="$!version.name" aria-required="true" required="true" class="form-control" minlength="2" name="name" id="name">
  15 + </div>
  16 + </div>
  17 + <div class="form-group">
  18 + <label class="col-sm-3 control-label"></label>
  19 + <div class="col-sm-8">
  20 + <label class="checkbox-inline i-checks">
  21 + <div class="icheckbox_square-green" style="position: relative;">
  22 + <input type="checkbox" value="0" name="enable" #if ($version.enable == 0) checked="checked" #end
  23 + style="position: absolute; opacity: 0;" >
  24 + <ins class="iCheck-helper"
  25 + style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins>
  26 + </div>是否禁用(选中禁用,不选中可用)
  27 + </label>
  28 + </div>
  29 + </div>
  30 + <div class="hr-line-dashed"></div>
  31 + <div class="form-group">
  32 + <div class="col-sm-4 col-sm-offset-3 pull-right">
  33 + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i>&nbsp;提交</button>
  34 + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i>&nbsp;取消</button>
  35 + </div>
  36 + </div>
  37 + </form>
  38 + </div>
  39 +</div>
  40 +<script type="text/javascript">
  41 + function save(){
  42 + if($('#validForm').valid()){
  43 + var data = $('#validForm').serialize();
  44 + //console.log(data);
  45 + if("$!version.id" == ""){
  46 + ajaxPost(APP.PATH + "/diagnoseVersion/create",data);
  47 + }else{
  48 + ajaxPost(APP.PATH + "/diagnoseVersion/update",data);
  49 + }
  50 + parent.reloadGrid('dataTable');
  51 + }
  52 + }
  53 +</script>
  54 +#end
  55 +#extends("/common/base_list.html")
parent/center.manager/src/main/webapp/WEB-INF/views/conf/diagnose/version_list.html View file @ 30829fb
  1 +#override("body")
  2 +<div class="row wrapper border-bottom white-bg page-heading">
  3 + <div class="col-sm-10">
  4 + <div style="padding-top:30px;">
  5 + <form role="form" class="form-inline">
  6 + <div class="form-group">
  7 + <input type="text" placeholder="请输入版本名称" id="versionSearch" class="form-control">
  8 + </div>
  9 + </form>
  10 + </div>
  11 + </div>
  12 + <div class="col-sm-2">
  13 + <div class="title-action" onclick="search();">
  14 + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a>
  15 + </div>
  16 + </div>
  17 +</div>
  18 +<div class="wrapper wrapper-content">
  19 + <div class="row">
  20 + <div class="col-sm-12">
  21 + <div id="toolbar">
  22 + <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> 新增</button>
  23 + <button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button>
  24 + <button class="btn btn-info " type="button" onclick="copy();"><i class="fa fa-paste"></i> 复制</button>
  25 + <!--
  26 + <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> 删除</button>
  27 + -->
  28 + </div>
  29 + <table id="dataTable"></table>
  30 + </div>
  31 + </div>
  32 +</div>
  33 +#end
  34 +#override("js")
  35 +<script type="text/javascript">
  36 +function search(){
  37 + var queryParams = {
  38 + query:{
  39 + name: $("#versionSearch").val()
  40 + }
  41 + }
  42 + $('#dataTable').bootstrapTable('refresh', queryParams );
  43 +}
  44 +var controllerRequestMappint = "/diagnoseVersion/";
  45 +
  46 +function add() {
  47 + fullWindow("新增诊断版本", APP.PATH + controllerRequestMappint + "0/toEdit");
  48 +}
  49 +
  50 +function edit(){
  51 + var id = getSingleSelectedValue("dataTable","id");
  52 + if(id){
  53 + fullWindow("修改诊断版本", APP.PATH + controllerRequestMappint + id + "/toEdit");
  54 + }
  55 +}
  56 +function copy() {
  57 + var val = getSelectedValue("dataTable","id");
  58 + if(val){
  59 + layer.confirm('确定复制选中的数据', {
  60 + btn: ['确定','取消'] //按钮
  61 + }, function(){
  62 + url = APP.PATH + controllerRequestMappint + val + "/copy";
  63 + ajaxPost(url,null,function(r){
  64 + if(r.success){
  65 + reloadGrid("dataTable");
  66 + }
  67 + msg(r.message);
  68 + });
  69 + }, function(){
  70 +
  71 + });
  72 + }else{
  73 + msg("请选择需要复制的数据");
  74 + }
  75 +}
  76 +
  77 +function del(){
  78 + goDelete("dataTable","id", APP.PATH + controllerRequestMappint + "@value@/delete");
  79 +}
  80 +## 参考 base_table_init.js 或者根据empty_bootstrap_table_init.js 来自己创建特殊的table
  81 +## 注意:自己创建的特殊的table不能extends base_list.html
  82 +var default_dataUrl = APP.PATH + controllerRequestMappint + "list";
  83 +var default_dataColumns = [{
  84 + field: 'check_state',
  85 + title: '',
  86 + checkbox: true
  87 + },{
  88 + field: 'id',
  89 + title: '编号'
  90 + },{
  91 + field: 'name',
  92 + title: '版本名称'
  93 + },{
  94 + field: 'enable',
  95 + title: '启/停用',
  96 + formatter:enableFormatter
  97 + }];
  98 +
  99 +</script>
  100 +#end
  101 +#extends("/common/base_list.html")
parent/center.manager/src/main/webapp/WEB-INF/views/conf/highrisk/conf_edit.html View file @ 30829fb
... ... @@ -5,7 +5,7 @@
5 5 <div class="form-group">
6 6 <label class="col-sm-3 control-label">id编号:</label>
7 7 <div class="col-sm-8">
8   - <input type="text" placeholder="id编号" value="$!conf.id" #if ($conf.id) readOnly="true" #end aria-required="true" required="true" class="form-control" minlength="2" name="id" id="id">
  8 + <input type="text" placeholder="id编号" value="$!conf.id" readOnly="true" class="form-control" minlength="2" name="id" id="id">
9 9 </div>
10 10 </div>
11 11 <div class="form-group">
parent/center.manager/src/main/webapp/WEB-INF/views/conf/highrisk/source_edit.html View file @ 30829fb
... ... @@ -5,7 +5,7 @@
5 5 <div class="form-group">
6 6 <label class="col-sm-3 control-label">id编号:</label>
7 7 <div class="col-sm-8">
8   - <input type="text" placeholder="id编号" value="$!source.id" #if ($source.id) readOnly="true" #end aria-required="true" required="true" class="form-control" minlength="2" name="id" id="id">
  8 + <input type="text" placeholder="id编号" value="$!source.id" readOnly="true" class="form-control" minlength="2" name="id" id="id">
9 9 </div>
10 10 </div>
11 11 <div class="form-group">
parent/center.manager/src/main/webapp/WEB-INF/views/conf/highrisk/source_list.html View file @ 30829fb
... ... @@ -77,7 +77,7 @@
77 77 return '女性高危'
78 78 }else if(value == 2){
79 79 return '男性高危'
80   - }else if(value == 1){
  80 + }else if(value == 3){
81 81 return '儿童高危'
82 82 }
83 83 }
parent/center.manager/src/main/webapp/WEB-INF/views/conf/highrisk/version_list.html View file @ 30829fb
... ... @@ -62,7 +62,7 @@
62 62 url = APP.PATH + controllerRequestMappint + val + "/copy";
63 63 ajaxPost(url,null,function(r){
64 64 if(r.success){
65   - reloadGrid(gridId);
  65 + reloadGrid("dataTable");
66 66 }
67 67 msg(r.message);
68 68 });