更新版本20210113
parent
c862c23fe0
commit
2e5fdab853
@ -0,0 +1,13 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.Zd_Assort;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Zd_AssortMapper {
|
||||
/**
|
||||
* 全查
|
||||
* */
|
||||
List<Zd_Assort> selectAll(@Param("record") Zd_Assort record);
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/4/22 17:40
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/4/22 17:40
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
public class AssortTypeTree {
|
||||
private Integer id;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String selfId;
|
||||
|
||||
private String checked;
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.emr.entity;
|
||||
|
||||
public class Zd_Assort {
|
||||
private String assortId;
|
||||
|
||||
private String assortName;
|
||||
|
||||
private Short assortSort;
|
||||
|
||||
private String printFlag;
|
||||
|
||||
private Integer isCheck;
|
||||
|
||||
public String getAssortId() {
|
||||
return assortId;
|
||||
}
|
||||
|
||||
public void setAssortId(String assortId) {
|
||||
this.assortId = assortId == null ? null : assortId.trim();
|
||||
}
|
||||
|
||||
public String getAssortName() {
|
||||
return assortName;
|
||||
}
|
||||
|
||||
public void setAssortName(String assortName) {
|
||||
this.assortName = assortName == null ? null : assortName.trim();
|
||||
}
|
||||
|
||||
public Short getAssortSort() {
|
||||
return assortSort;
|
||||
}
|
||||
|
||||
public void setAssortSort(Short assortSort) {
|
||||
this.assortSort = assortSort;
|
||||
}
|
||||
|
||||
public String getPrintFlag() {
|
||||
return printFlag;
|
||||
}
|
||||
|
||||
public void setPrintFlag(String printFlag) {
|
||||
this.printFlag = printFlag == null ? null : printFlag.trim();
|
||||
}
|
||||
|
||||
public Integer getIsCheck() {
|
||||
return isCheck;
|
||||
}
|
||||
|
||||
public void setIsCheck(Integer isCheck) {
|
||||
this.isCheck = isCheck;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.Zd_AssortMapper;
|
||||
import com.emr.entity.Zd_Assort;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/4/22 15:47
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/4/22 15:47
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class ZdAssortService {
|
||||
@Autowired
|
||||
private Zd_AssortMapper assortMapper;
|
||||
public List<Zd_Assort> selectAll(Zd_Assort assort){
|
||||
return assortMapper.selectAll(assort);
|
||||
}
|
||||
public List<Zd_Assort> selectAllByIsCheck(){
|
||||
Zd_Assort assort = new Zd_Assort();
|
||||
assort.setPrintFlag("0");
|
||||
assort.setIsCheck(1);
|
||||
return assortMapper.selectAll(assort);
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.Zd_AssortMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.Zd_Assort" >
|
||||
<result column="assort_id" property="assortId" jdbcType="VARCHAR" />
|
||||
<result column="assort_name" property="assortName" jdbcType="VARCHAR" />
|
||||
<result column="assort_sort" property="assortSort" jdbcType="SMALLINT" />
|
||||
<result column="print_flag" property="printFlag" jdbcType="VARCHAR" />
|
||||
<result column="is_check" property="isCheck" jdbcType="INTEGER" />
|
||||
</resultMap>
|
||||
<!--查询全部-->
|
||||
<select id="selectAll" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
zd_assort
|
||||
<where>
|
||||
print_flag = 0
|
||||
<if test="record.assortName != '' and record.assortName != null">
|
||||
AND assort_name = #{record.assortName}
|
||||
</if>
|
||||
<if test="record.printFlag != '' and record.printFlag != null">
|
||||
AND print_flag = ${record.printFlag}
|
||||
</if>
|
||||
<if test="record.isCheck != null">
|
||||
AND is_check = 1
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
assort_sort
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,45 @@
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<link rel="stylesheet" href="${path}/static/js/confirm/jquery-confirm.min.css">
|
||||
<script src="${path}/static/js/confirm/jquery-confirm.min.js"></script>
|
||||
<input type="hidden" id="common_confirm_btn" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#common_confirm_model">
|
||||
<div id="common_confirm_model" class="modal" style="z-index: 99999">
|
||||
<div class="modal-dialog modal-sm">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
<h5 class="modal-title"><i class="fa fa-exclamation-circle"></i> <span class="title"></span></h5>
|
||||
</div>
|
||||
<div class="modal-body small">
|
||||
<p ><span class="message"></span></p>
|
||||
</div>
|
||||
<div class="modal-footer" >
|
||||
<button type="button" class="btn btn-primary ok" data-dismiss="modal">确认</button>
|
||||
<button type="button" class="btn btn-default cancel" data-dismiss="modal">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var Common = {
|
||||
confirm:function(params){
|
||||
var model = $("#common_confirm_model");
|
||||
model.find(".title").html(params.title)
|
||||
model.find(".message").html(params.message)
|
||||
|
||||
$("#common_confirm_btn").click()
|
||||
//每次都将监听先关闭,防止多次监听发生,确保只有一次监听
|
||||
model.find(".cancel").off("click")
|
||||
model.find(".ok").off("click")
|
||||
|
||||
model.find(".ok").on("click",function(){
|
||||
params.operate(true)
|
||||
})
|
||||
|
||||
model.find(".cancel").on("click",function(){
|
||||
params.operate(false)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,75 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ include file="/WEB-INF/jspf/comm.jspf" %>
|
||||
<%@ include file="/WEB-INF/jspf/ztreeCommom.jsp" %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>提示页面</title>
|
||||
<meta http-equiv=X-UA-Compatible IE=EmulateIE7>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<link rel="shortcut icon" href="${path}/static/favicon.ico">
|
||||
<link rel="stylesheet" href="${path }/static/css/layui.css" media="all" />
|
||||
<!--[if lt IE 9]>
|
||||
<![endif]-->
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
body{
|
||||
width:100%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
.main{
|
||||
width:100%;
|
||||
}
|
||||
/*
|
||||
*页头div
|
||||
*/
|
||||
.headDiv{
|
||||
height:43px;
|
||||
background-color: #1D9ED7;
|
||||
}
|
||||
/*
|
||||
*页头标题div
|
||||
*/
|
||||
.headSpanDiv{
|
||||
padding:10px 15px;
|
||||
}
|
||||
/*
|
||||
*页头标题
|
||||
*/
|
||||
.headspan{
|
||||
color: #fff;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
h4{
|
||||
color: #fff;
|
||||
font-size: 1.0em;
|
||||
font-weight: bold;
|
||||
}
|
||||
hr{
|
||||
margin:0!important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<div class="headDiv">
|
||||
<div class="headSpanDiv">
|
||||
<span class="headspan">
|
||||
错误提示
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div >
|
||||
<blockquote class="layui-elem-quote">${errorMsg}</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,171 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ include file="/WEB-INF/jspf/comm.jspf" %>
|
||||
<%@ include file="/WEB-INF/jspf/ztreeCommom.jsp" %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>病案浏览</title>
|
||||
<meta http-equiv=X-UA-Compatible IE=EmulateIE7>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<link rel="shortcut icon" href="${path}/static/favicon.ico">
|
||||
<!--[if lt IE 9]>
|
||||
<script type="text/javascript" src="${path}/static/js/html5shiv.min.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/jquery-1.11.3.min.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
body{
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
.main{
|
||||
width:100%;
|
||||
background-color: #c1d7e3;
|
||||
}
|
||||
/*
|
||||
*页头div
|
||||
*/
|
||||
.headDiv{
|
||||
height:43px;
|
||||
background-color: #1D9ED7;
|
||||
}
|
||||
/*
|
||||
*页头标题div
|
||||
*/
|
||||
.headSpanDiv{
|
||||
padding:10px 15px;
|
||||
}
|
||||
/*
|
||||
*页头标题
|
||||
*/
|
||||
.headspan{
|
||||
color: #fff;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.searchDiv{
|
||||
width:100%;
|
||||
height:13%;
|
||||
background-color: #FFF;
|
||||
}
|
||||
.contentDiv{
|
||||
width:100%;
|
||||
height: calc(100vh - 13% - 43px - 1vh);
|
||||
margin-top:1vh;
|
||||
background-color: #FFF;
|
||||
}
|
||||
.labelDiv{
|
||||
padding-top: 2%;
|
||||
padding-right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
.rowDiv{
|
||||
padding-top:0.5%;
|
||||
}
|
||||
.inputDiv{
|
||||
padding:0!important;
|
||||
margin-left: -3%!important;
|
||||
}
|
||||
h4{
|
||||
color: #fff;
|
||||
font-size: 1.0em;
|
||||
font-weight: bold;
|
||||
}
|
||||
hr{
|
||||
margin:0!important;
|
||||
}
|
||||
#iframe{
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="scroll:auto" onkeydown="disabledPrint()">
|
||||
<!--主键-->
|
||||
<input type="hidden" id="patientId" value="${patientId}">
|
||||
<!--记账号-->
|
||||
<input type="hidden" id="accountNumber" value="${accountNumber}">
|
||||
<input type="hidden" id="assortIds" value="${assortIds}">
|
||||
<!--业务识别码1:护理按需采集预览-->
|
||||
<input type="hidden" id="typeFlag" value="1">
|
||||
<div class="main">
|
||||
<div class="headDiv">
|
||||
<div class="headSpanDiv">
|
||||
<span class="headspan">
|
||||
病案浏览
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--病案详情-->
|
||||
<div class="searchDiv">
|
||||
<input type="hidden" id="admissId" value="${commom.admissId}">
|
||||
<div class="row rowDiv">
|
||||
<div class="col-sm-3 inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-5 control-label labelDiv">主管医生:</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" readonly class="form-control input input-sm input" id="doctorInCharge">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-5 control-label labelDiv">姓名:</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" readonly class="form-control input-sm input" id="name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-5 control-label labelDiv">住院号:</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" readonly class="form-control input-sm input" id="inpatientNo">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-5 control-label labelDiv">住院次数:</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" readonly class="form-control input-sm input" id="admissTimes">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row rowDiv">
|
||||
<div class="col-sm-3 inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-5 control-label labelDiv">出院科室:</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" readonly class="form-control input-sm input" id="disDeptName">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-5 control-label labelDiv">出院日期:</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" readonly class="form-control input-sm input" id="disDate">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contentDiv">
|
||||
<iframe width="100%" src="" id="iframe" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="${path}/static/js/showRecord/showRecord.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/showRecord/showRecordIframeCommom.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,94 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ include file="/WEB-INF/jspf/comm.jspf" %>
|
||||
<%@ include file="/WEB-INF/jspf/ztreeCommom.jsp" %>
|
||||
<%@ include file="/WEB-INF/jspf/confirmJsp.jspf" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>预览pdfIframe页面</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv=X-UA-Compatible IE=EmulateIE7>
|
||||
<!--[if lt IE 9]>
|
||||
<script type="text/javascript" src="${path}/static/js/html5shiv.min.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/jquery-1.11.3.min.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
body{
|
||||
width:100%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
.content-left{
|
||||
height:100%;
|
||||
width:16%;
|
||||
float:left;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.content-right{
|
||||
height:100%;
|
||||
width:83%;
|
||||
float:right;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.loading {
|
||||
width: 148px;
|
||||
height: 56px;
|
||||
position: absolute;
|
||||
top: 28px;
|
||||
right: 16px;
|
||||
line-height: 56px;
|
||||
color: red;
|
||||
padding-left: 60px;
|
||||
font-size: 7px;
|
||||
background: #000;
|
||||
opacity: 0.7;
|
||||
-moz-border-radius: 20px;
|
||||
-webkit-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="scroll:auto" onkeydown="disabledPrint()">
|
||||
<div id="loading" class="loading">正在采集,请稍等</div>
|
||||
<!--文件路径-->
|
||||
<input type="hidden" id="filePath">
|
||||
<input type="hidden" id="detailIds">
|
||||
<div class="content-left">
|
||||
<div class="row" style="margin-top: 5px">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0 2px">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="onloadPdf()">加载PDF</button>
|
||||
</div>
|
||||
<div class="col-md-4" style="padding:0 2px;" >
|
||||
<button type="button" class="btn btn-xs btn-primary" style="display: none" onclick="flashPdf()" id="freshBtnDiv">刷新</button>
|
||||
<button type="button" class="btn btn-xs btn-danger" style="display: none" id="delBtnDiv">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="zTreeDemo">
|
||||
<ul id="ztree" class="ztree"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-right">
|
||||
<iframe width="100%" src="" id="iframe1" frameborder="0" scrolling="yes"></iframe>
|
||||
</div>
|
||||
<script type="text/javascript" src="${path}/static/js/showRecord/showRecordIframe.js?time=2020-12-29_1"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/showRecord/showRecordIframeCommom.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,29 @@
|
||||
//初始化函数
|
||||
$(function(){
|
||||
//加载病案信息
|
||||
loadRecord();
|
||||
//加载iframe
|
||||
$("#iframe").prop("src",path+"/font/showRecordIframe?patientId="+$("#patientId").val())+"&assortIds="+assortIds;
|
||||
})
|
||||
|
||||
//加载病案信息
|
||||
function loadRecord(){
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:path+'/font/getRecord',
|
||||
data:{masterId:$("#patientId").val()},
|
||||
async:false,
|
||||
dataType:'json',
|
||||
success:function (data) {
|
||||
if(null != data && data != ''){
|
||||
$("#doctorInCharge").val(data.doctorInCharge);
|
||||
$("#inpatientNo").val(data.inpNo);
|
||||
$("#name").val(data.name);
|
||||
$("#admissTimes").val(data.visitId);
|
||||
$("#disDate").val(data.dischargeDateTime);
|
||||
$("#disDeptName").val(data.deptName);
|
||||
$("#archivestate").val(data.archivestate);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
//屏蔽鼠标右键
|
||||
document.oncontextmenu = function(e) {
|
||||
var e = e || window.event;
|
||||
e.returnValue = false;
|
||||
return false;
|
||||
}
|
||||
//禁止快捷键打印
|
||||
function disabledPrint(){
|
||||
if(event.keyCode==80 && event.ctrlKey){
|
||||
event.keyCode=0;
|
||||
event.returnValue=false;
|
||||
}
|
||||
if (event.ctrlKey && event.keyCode == 83) {
|
||||
event.preventDefault();
|
||||
event.returnValue = false;
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue