王新海的版本加借阅工号转姓名
parent
a995e23397
commit
458dfc5839
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
package com.emr.vo.commomSearch;
|
||||
|
||||
/**
|
||||
* @program: emr_record
|
||||
* @description
|
||||
* @author: wangsiyi
|
||||
* @create: 2020-10-23 10:44
|
||||
**/
|
||||
public class ScanAssortVo {
|
||||
private String oldPatientId;
|
||||
|
||||
private String newPatientId;
|
||||
|
||||
private String newAssortId;
|
||||
|
||||
private String scanPage;
|
||||
|
||||
|
||||
public String getOldPatientId() {
|
||||
return oldPatientId;
|
||||
}
|
||||
|
||||
public void setOldPatientId(String oldPatientId) {
|
||||
this.oldPatientId = oldPatientId;
|
||||
}
|
||||
|
||||
public String getNewPatientId() {
|
||||
return newPatientId;
|
||||
}
|
||||
|
||||
public void setNewPatientId(String newPatientId) {
|
||||
this.newPatientId = newPatientId;
|
||||
}
|
||||
|
||||
public String getNewAssortId() {
|
||||
return newAssortId;
|
||||
}
|
||||
|
||||
public void setNewAssortId(String newAssortId) {
|
||||
this.newAssortId = newAssortId;
|
||||
}
|
||||
|
||||
public String getScanPage() {
|
||||
return scanPage;
|
||||
}
|
||||
|
||||
public void setScanPage(String scanPage) {
|
||||
this.scanPage = scanPage;
|
||||
}
|
||||
}
|
||||
@ -1,70 +1,82 @@
|
||||
<?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.commomSearch.ScanPathMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.vo.commomSearch.ScanPathVo" >
|
||||
<result column="patient_id" property="patientId" jdbcType="VARCHAR" />
|
||||
<result column="inpatient_no" property="inpatientNo" jdbcType="VARCHAR" />
|
||||
<result column="assort_id" property="assortId" jdbcType="VARCHAR" />
|
||||
<result column="scan_page" property="scanPage" jdbcType="VARCHAR" />
|
||||
<result column="dis_date" property="disDate" jdbcType="TIMESTAMP" />
|
||||
<result column="fileRealPath" property="fileRealPath" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<!--湛江、英德根据patientId集合查询图片路径-->
|
||||
<select id="selectScanFileByPatientIds" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
SELECT
|
||||
<mapper namespace="com.emr.dao.commomSearch.ScanPathMapper">
|
||||
<resultMap id="BaseResultMap" type="com.emr.vo.commomSearch.ScanPathVo">
|
||||
<result column="patient_id" property="patientId" jdbcType="VARCHAR"/>
|
||||
<result column="inpatient_no" property="inpatientNo" jdbcType="VARCHAR"/>
|
||||
<result column="assort_id" property="assortId" jdbcType="VARCHAR"/>
|
||||
<result column="scan_page" property="scanPage" jdbcType="VARCHAR"/>
|
||||
<result column="dis_date" property="disDate" jdbcType="TIMESTAMP"/>
|
||||
<result column="fileRealPath" property="fileRealPath" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!--湛江、英德根据patientId集合查询图片路径-->
|
||||
<select id="selectScanFileByPatientIds" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
SELECT
|
||||
dbo.t_scan_assort.assort_id,
|
||||
dbo.t_scan_assort.scan_page,
|
||||
(dbo.t_gdh_index.file_path+'\'+dbo.t_scan_assort.scan_page) fileRealPath
|
||||
FROM
|
||||
FROM
|
||||
dbo.t_gdh_index
|
||||
LEFT OUTER JOIN
|
||||
LEFT OUTER JOIN
|
||||
dbo.t_scan_assort
|
||||
ON
|
||||
ON
|
||||
dbo.t_gdh_index.patient_id = dbo.t_scan_assort.patient_id
|
||||
<where>
|
||||
dbo.t_scan_assort.patient_id in (${patientIds})
|
||||
<if test="assortIds != null">
|
||||
AND dbo.t_scan_assort.assort_id in (${assortIds})
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
<where>
|
||||
dbo.t_scan_assort.patient_id in (${patientIds})
|
||||
<if test="assortIds != null">
|
||||
AND dbo.t_scan_assort.assort_id in (${assortIds})
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
dbo.t_scan_assort.assort_id
|
||||
</select>
|
||||
</select>
|
||||
|
||||
|
||||
<!--脐血库、祈福根据patientId集合查询图片路径-->
|
||||
<select id="selectScanFileByBloodPatientIds" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
SELECT
|
||||
<!--脐血库、祈福根据patientId集合查询图片路径-->
|
||||
<select id="selectScanFileByBloodPatientIds" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
SELECT
|
||||
commomtable.patient_id,
|
||||
commomtable.name,
|
||||
commomtable.inpatient_no,
|
||||
commomtable.dis_date,
|
||||
dbo.t_scan_assort.assort_id,
|
||||
dbo.t_scan_assort.scan_page,
|
||||
case
|
||||
when t_scan_assort.source = 1
|
||||
then convert(nvarchar(255),dbo.commomtable.${flag})+'\'+dbo.t_scan_assort.scan_page
|
||||
when t_scan_assort.source = 2
|
||||
then convert(nvarchar(255),dbo.commomtable.new_path)+'\'+dbo.t_scan_assort.scan_page
|
||||
end fileRealPath
|
||||
FROM
|
||||
case
|
||||
when t_scan_assort.source = 1
|
||||
then convert(nvarchar(255),dbo.commomtable.${flag})+'\'+dbo.t_scan_assort.scan_page
|
||||
when t_scan_assort.source = 2
|
||||
then convert(nvarchar(255),dbo.commomtable.new_path)+'\'+dbo.t_scan_assort.scan_page
|
||||
end fileRealPath
|
||||
FROM
|
||||
dbo.commomtable
|
||||
LEFT OUTER JOIN
|
||||
LEFT OUTER JOIN
|
||||
dbo.t_scan_assort
|
||||
ON
|
||||
ON
|
||||
dbo.commomtable.patient_id = dbo.t_scan_assort.patient_id
|
||||
LEFT OUTER JOIN
|
||||
LEFT OUTER JOIN
|
||||
dbo.zd_assort
|
||||
ON
|
||||
ON
|
||||
dbo.zd_assort.assort_id = dbo.t_scan_assort.assort_id
|
||||
<where>
|
||||
dbo.commomtable.patient_id in (${patientIds})
|
||||
AND t_scan_assort.is_del != 1
|
||||
<if test="assortIds != null">
|
||||
AND dbo.t_scan_assort.scan_page in (${assortIds})
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
<where>
|
||||
dbo.commomtable.patient_id in (${patientIds})
|
||||
AND t_scan_assort.is_del != 1
|
||||
<if test="assortIds != null">
|
||||
AND dbo.t_scan_assort.scan_page in (${assortIds})
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
dbo.zd_assort.assort_sort
|
||||
</select>
|
||||
</select>
|
||||
|
||||
<update id="updateScanFileByPatientIdAndScanPage" parameterType="java.lang.String">
|
||||
${sql}
|
||||
</update>
|
||||
|
||||
<select id="selectCountPh" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*) FROM dbo.t_gdh_index GROUP BY ph
|
||||
</select>
|
||||
|
||||
<select id="selectCountPdf" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*) FROM dbo.t_scan_assort
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,184 @@
|
||||
<%@ 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}"/>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>预览PDF</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">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="${path}/static/js/jquery-1.11.3.min.js"></script>
|
||||
<script src="${path}/static/js/html5shiv.js"></script>
|
||||
<script src="${path}/static/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<link rel="shortcut icon" href="${path}/static/js/favicon.ico">
|
||||
<link rel="stylesheet" href="${path}/static/css/comm.css"/>
|
||||
<script src="${path}/static/js/jquery-1.11.3.min.js"></script>
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
html,body{
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
.searchDiv{
|
||||
width:100%;
|
||||
height:87px;
|
||||
background-color: #FFF;
|
||||
}
|
||||
.contentDiv{
|
||||
width:100%;
|
||||
height:calc(100% - 135px);
|
||||
margin-top:5px;
|
||||
background-color: #FFF;
|
||||
}
|
||||
.labelDiv{
|
||||
width:41.66%;
|
||||
text-align: right;
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.textInputDiv{
|
||||
width:58.33%;
|
||||
float: left;
|
||||
}
|
||||
.rowDiv{
|
||||
padding-top:10px;
|
||||
width:100%;
|
||||
height:30px;
|
||||
}
|
||||
.inputDiv{
|
||||
width:24%;
|
||||
float: left;
|
||||
}
|
||||
h4{
|
||||
color: #fff;
|
||||
font-size: 1.0em;
|
||||
font-weight: bold;
|
||||
}
|
||||
hr{
|
||||
margin:0!important;
|
||||
}
|
||||
.seal-result{
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
transform: rotate(30deg);
|
||||
border: solid 2px red;
|
||||
border-radius: 100%;
|
||||
text-align: center;
|
||||
color: red;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
line-height: 60px;
|
||||
left: 20%;
|
||||
top: 6%;
|
||||
position: absolute;
|
||||
background-color: rgba(255,255,255,0.8);
|
||||
z-index: 1000;
|
||||
}
|
||||
.main{
|
||||
width: 100%;
|
||||
height:100%;
|
||||
background-color: #c1d7e3;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="scroll:auto" onkeydown="disabledPrint()">
|
||||
<input hidden type="hidden" id="patientId" value="${patientId}">
|
||||
<input type="hidden" id="userName" value="${userName}">
|
||||
<input type="hidden" id="deptName" value="${deptName}">
|
||||
<!--174、祈福医院扫描图片存放根目录的字段-->
|
||||
<input hidden type="hidden" id="flag" value="file_path">
|
||||
<!--存放扫描图片和新上传图片根目录的集合-->
|
||||
<input hidden type="hidden" id="rootPaths">
|
||||
<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="rowDiv">
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">病案号:</label>
|
||||
<div class="textInputDiv">
|
||||
<input type="text" readonly class="form-control input input-sm inpatientNo" id="inpatientNo" onmouseover="this.title=this.value">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">姓名:</label>
|
||||
<div class="textInputDiv">
|
||||
<input type="text" readonly class="form-control input-sm input" id="name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">住院次数:</label>
|
||||
<div class="textInputDiv">
|
||||
<select class="form-control input input-sm admissTimes" id="admissTimes" disabled></select>
|
||||
</div>
|
||||
<div type="hidden" id="admissTimesValue"></div>
|
||||
</div>
|
||||
</div>
|
||||
<c:if test="${printCount == '1'}">
|
||||
<div class="seal-result">已打印</div>
|
||||
</c:if>
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">出院日期:</label>
|
||||
<div class="textInputDiv">
|
||||
<input type="text" readonly class="form-control input-sm input" id="disDate">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rowDiv" style="padding-top:20px;">
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">出院科室:</label>
|
||||
<div class="textInputDiv">
|
||||
<input type="text" readonly class="form-control input-sm input" id="disDeptName">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">主要诊断:</label>
|
||||
<div class="textInputDiv">
|
||||
<input type="text" readonly class="form-control input-sm input" id="diagName">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputDiv">
|
||||
<div class="form-group">
|
||||
<label class="control-label labelDiv">其他诊断:</label>
|
||||
<div class="textInputDiv">
|
||||
<input type="text" readonly class="form-control input-sm input otherDiagName" id="otherDiagName">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contentDiv">
|
||||
<iframe width="100%" height="100%" src="" id="iframe" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="${path}/static/js/font/showRecordFontSouth.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/font/showRecordIframeBloodCommom.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,115 @@
|
||||
<%@ 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}"/>
|
||||
<!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.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]-->
|
||||
<%--<%@ include file="/WEB-INF/jspf/common.jspf" %>--%>
|
||||
<link rel="stylesheet" href="${path}/static/css/comm.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/js/font/style.min.css" />
|
||||
<script type="text/javascript" src="${path}/static/js/jquery-1.11.3.min.js"></script>
|
||||
<script src="${path}/static/js/font/jstree.min.js"></script>
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
html,body{
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
.content-left{
|
||||
height:100%;
|
||||
width:23%;
|
||||
float:left;
|
||||
background-color: #FFFFFF;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.content-right{
|
||||
height:100%;
|
||||
width:76%;
|
||||
float:right;
|
||||
padding-left:5px;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.btnDiv{
|
||||
text-align: right;
|
||||
}
|
||||
.btn{
|
||||
background-color: #1D9ED7;
|
||||
}
|
||||
.loading {
|
||||
width: 160px;
|
||||
height: 56px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
line-height: 56px;
|
||||
color: #fff;
|
||||
padding-left: 60px;
|
||||
font-size: 15px;
|
||||
background: #000;
|
||||
opacity: 0.7;
|
||||
z-index: 9999;
|
||||
-moz-border-radius: 20px;
|
||||
-webkit-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="scroll:auto" onkeydown="disabledPrint()">
|
||||
<div id="myModal" class="modal fade" data-keyboard="false"
|
||||
data-backdrop="static" data-role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div id="loading1" class="loading">加载中。。。</div>
|
||||
</div>
|
||||
<input hidden type="hidden" id="patientId" value="${patientId}">
|
||||
<input type="hidden" id="userName" value="${userName}">
|
||||
<input type="hidden" id="deptName" value="${deptName}">
|
||||
<!--初始化及树复选框勾选的文件名称集合-->
|
||||
<input hidden type="hidden" id="assortIds">
|
||||
<!--初始化及树复选框勾选的文件来源集合-->
|
||||
<input hidden type="hidden" id="sources">
|
||||
<!--树节点点击选中的文件名称-->
|
||||
<input hidden type="hidden" id="assortIdByClick">
|
||||
<!--树节点点击选中的文件来源-->
|
||||
<input hidden type="hidden" id="sourceByClick">
|
||||
<input hidden type="hidden" id="flag" value="${flag}">
|
||||
<!--是否有打印权限-->
|
||||
<input hidden type="hidden" id="print" value="${printFlag}">
|
||||
<!--文件路径-->
|
||||
<input hidden type="hidden" id="filePath">
|
||||
<!--定义iframe1加载完成标识-->
|
||||
<input hidden type="hidden" id="iframeLoad">
|
||||
<!--定义打印预览的图片加载完成标识-->
|
||||
<input hidden type="hidden" id="printPicLoaded">
|
||||
<!--定义打印预览的图片加载进度-->
|
||||
<input type="hidden" id="loading">
|
||||
<div class="content-left">
|
||||
<div class="form-group">
|
||||
<div class="btnDiv">
|
||||
<button type="button" class="btn" onclick="onloadPdf()">加载PDF</button>
|
||||
</div>
|
||||
<div id="data" class="demo"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-right">
|
||||
<iframe width="100%" height="100%" src="" id="iframe1" frameborder="0" onkeydown="disabledPrint()"></iframe>
|
||||
</div>
|
||||
<script type="text/javascript" src="${path}/static/js/font/showRecordIframeSouthFont.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/font/showRecordIframeBloodCommom.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,163 @@
|
||||
<%@ 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/common.jspf" %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>其他管理</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">
|
||||
.mainDiv {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/**搜索区*/
|
||||
.searchDiv {
|
||||
padding-top: 10px;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.dateSearchDiv {
|
||||
width: 29%;
|
||||
}
|
||||
|
||||
.dateSearchInput {
|
||||
width: 30%;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.dateLabelDiv {
|
||||
width: 30%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.searchInput {
|
||||
width: 21%;
|
||||
margin-left: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.searchElement {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.searchInputElement {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.labelDiv {
|
||||
padding-top: 4%;
|
||||
margin-left: 2%;
|
||||
}
|
||||
|
||||
/**查询按钮组*/
|
||||
.btnsDiv {
|
||||
margin-top: 15px;
|
||||
height: 35px;
|
||||
text-align: right;
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
.btns {
|
||||
margin-left: 2%;
|
||||
}
|
||||
|
||||
/**表格div*/
|
||||
.tableDiv {
|
||||
margin-left: 1%;
|
||||
margin-top: -15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<div class="headDiv">
|
||||
<div class="headSpanDiv">
|
||||
<span class="headspan">
|
||||
接口日志管理
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mainDiv">
|
||||
<div class="searchDiv">
|
||||
<div class="searchInput left" style="margin-left: 10px;">
|
||||
<div class="searchElement left">
|
||||
<label class="labelDiv">日志主题:</label>
|
||||
</div>
|
||||
<div class="searchInputElement left">
|
||||
<input type="text" class="form-control input-sm" id="logTitle">
|
||||
</div>
|
||||
</div>
|
||||
<div class="searchInput left">
|
||||
<div class="searchElement left">
|
||||
<label class="labelDiv">日志内容:</label>
|
||||
</div>
|
||||
<div class="searchInputElement left">
|
||||
<input type="text" class="form-control input-sm" id="logContent">
|
||||
</div>
|
||||
</div>
|
||||
<div class="searchInput left">
|
||||
<div class="searchElement left">
|
||||
<label class="labelDiv">操作人:</label>
|
||||
</div>
|
||||
<div class="searchInputElement left">
|
||||
<input type="text" class="form-control input-sm" id="creater">
|
||||
</div>
|
||||
</div>
|
||||
<div class="dateSearchDiv left">
|
||||
<div class="dateLabelDiv left">
|
||||
<label class="labelDiv">操作时间:</label>
|
||||
</div>
|
||||
<div class="dateSearchInput left">
|
||||
<input type="text" class="form-control input-sm" id="startTime1" placeholder="开始时间"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
<div class="dateSearchInput left">
|
||||
<input type="text" class="form-control input-sm" id="endTime1" placeholder="结束时间"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="left">
|
||||
<button type="button" class="btn btn-sm btn-primary" onclick="refreshTable()">查询</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnsDiv">
|
||||
<shiro:hasPermission name="/otherManage/exportExcel">
|
||||
<button type="button" class="btn btn-sm btn-primary btns" onclick="exportExcel()"><i
|
||||
class="fa fa-reply"></i>导出
|
||||
</button>
|
||||
</shiro:hasPermission>
|
||||
<shiro:hasPermission name="/otherManage/deleteLogByIds">
|
||||
<button type="button" class="btn btn-sm btn-danger btns" onclick="deleteLogByIds()">批量删除</button>
|
||||
</shiro:hasPermission>
|
||||
</div>
|
||||
<!--数据表格-->
|
||||
<div id="tableDiv" class="tableDiv">
|
||||
<input type="hidden" id="checks">
|
||||
<table id="mytab" class="table text-nowrap table-bordered">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<%-- <div class="tab-pane fade" id="tab3">
|
||||
<p>通知管理</p>
|
||||
</div>
|
||||
</div>--%>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="${path}/static/js/otherManage/interfaceDatabase.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/dateUtil.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,91 @@
|
||||
//判断是否是ie8
|
||||
var isIE = function(ver) {
|
||||
var b = document.createElement('b')
|
||||
b.innerHTML = '<!--[if IE ' + ver + ']><i></i><![endif]-->'
|
||||
return b.getElementsByTagName('i').length === 1
|
||||
}
|
||||
//初始化函数
|
||||
$(function(){
|
||||
$('.contentDiv').css('height', '100%').css('height', '-=140px');
|
||||
var ie = isIE(8);
|
||||
debugger
|
||||
if(ie) {
|
||||
//ie8加载iframe
|
||||
console.log("ssd");
|
||||
$("#iframe").prop("src",path+"/font/showRecordIframeFontSouth?patientId="+$("#patientId").val()+"&flag=file_path");
|
||||
}else{
|
||||
//谷歌
|
||||
$("#iframe").prop("src",path+"/commom/showRecordIframeSouth?patientId="+$("#patientId").val()+"&flag=file_path"+"&rootPaths="+$("#rootPaths").val());
|
||||
}
|
||||
//加载其他诊断名称鼠标滑过显示全部文本
|
||||
//loadQtip('.otherDiagName');
|
||||
//加载病案信息
|
||||
loadRecord();
|
||||
//加载住院次数
|
||||
loadAdmissTimes();
|
||||
})
|
||||
|
||||
//加载病案信息
|
||||
function loadRecord(){
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:path+'/commom/getRecord',
|
||||
data:{patientId:$("#patientId").val(),flag:$("#flag").val()},
|
||||
async:false,
|
||||
dataType:'json',
|
||||
success:function (data) {
|
||||
if(null != data && data != ''){
|
||||
$("#inpatientNo").val(data.inpatientNo);
|
||||
$("#name").val(data.name);
|
||||
$("#admissTimes1").val(data.admissTimes);
|
||||
$("#inpatientNo1").val(data.inpatientNo);
|
||||
$("#name1").val(data.name);
|
||||
$("#admissTimesValue").val(data.admissTimes);
|
||||
$("#disDate").val(data.disDate);
|
||||
$("#disDeptName").val(data.disDept);
|
||||
$("#diagName").val(data.mainDiagName);
|
||||
$("#otherDiagName").val(data.otherDiagName);
|
||||
//判断哪家医院赋值扫描图片和新上传图片的根目录集合
|
||||
var flag = $("#flag").val();
|
||||
var rootPaths = "";
|
||||
if(flag != '' && flag == 'home_addr'){
|
||||
//脐血库
|
||||
rootPaths = data.homeAddr + ",";
|
||||
}else if(flag != '' && flag == 'file_path'){
|
||||
//祈福医院
|
||||
rootPaths = data.filePath + ",";
|
||||
}
|
||||
//拼接新上传图片根目录
|
||||
if(data.newFile != null && data.newFile != ''){
|
||||
rootPaths += data.newFile;
|
||||
}
|
||||
$("#rootPaths").val(rootPaths);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//加载住院次数
|
||||
function loadAdmissTimes(){
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:path+'/commom/getAdmissTimes',
|
||||
data:{name:$("#name").val(),inpatientNo:$("#inpatientNo").val()},
|
||||
dataType:'json',
|
||||
success:function (data) {
|
||||
if(null != data && data != ''){
|
||||
$("#admissTimes").empty();
|
||||
var html = '';
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
if($("#admissTimesValue").val() == (data[i].admissTimes)){
|
||||
html += '<option value="'+data[i].admissTimes+'" selected>'+data[i].admissTimesName+'</option>';
|
||||
}else{
|
||||
html += '<option value="'+data[i].admissTimes+'">'+data[i].admissTimesName+'</option>';
|
||||
}
|
||||
}
|
||||
$("#admissTimes").append(html);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -0,0 +1,159 @@
|
||||
//下载adobe地址
|
||||
//http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.3/chs/AdbeRdr930_zh_CN.exe
|
||||
window.onload = function () {
|
||||
var checkAdobeReader = Check_AdobeReader();
|
||||
if(checkAdobeReader != 'Acrobat Version: 6.0'){
|
||||
alert("对不起,您还没有安装PDF阅读器软件呢,为了方便预览PDF文档,请选择安装!");
|
||||
location = path + "/static/js/font/AdbeRdr60_chs_full.exe";
|
||||
}
|
||||
}
|
||||
var tree = $('#data').data('jstree', false).empty().jstree({
|
||||
'core': {
|
||||
"data" : function (obj, callback){
|
||||
$.ajax({
|
||||
type : "post",
|
||||
url : path+'/font/getFontBloodRecordTree?patientId='+$("#patientId").val(),
|
||||
dataType : "json",
|
||||
success : function(data) {
|
||||
var assortList = data[0].children;
|
||||
var assortIds = '';
|
||||
var sources = '';
|
||||
if(assortList != '') {
|
||||
for (var i = 0; i < assortList.length; i++) {
|
||||
var picList = assortList[i].children;
|
||||
for (var j = 0; j < picList.length; j++) {
|
||||
assortIds += picList[j].newName + ",";
|
||||
sources += picList[j].source + ",";
|
||||
}
|
||||
}
|
||||
if(assortIds != ''){
|
||||
assortIds = assortIds.substring(0,assortIds.length-1);
|
||||
}
|
||||
if(sources != ''){
|
||||
sources = sources.substring(0,sources.length-1);
|
||||
}
|
||||
$("#assortIds").val(assortIds);
|
||||
$("#sources").val(sources);
|
||||
onloadPdf();
|
||||
}else{
|
||||
$("#jstree").html("暂无数据!");
|
||||
}
|
||||
if(data){
|
||||
callback.call(this, data);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
"check_callback": true
|
||||
},
|
||||
|
||||
plugins: ["checkbox"],
|
||||
"checkbox": {
|
||||
"keep_selected_style": false,//是否默认选中
|
||||
"three_state": true,//父子级别级联选择
|
||||
"tie_selection": false
|
||||
},
|
||||
});
|
||||
function Check_AdobeReader() {
|
||||
var displayString;
|
||||
var acrobat = new Object();
|
||||
acrobat.installed = false;
|
||||
acrobat.version = "0.0";
|
||||
if (navigator.plugins && navigator.plugins.length) {
|
||||
for (x = 0; x < navigator.plugins.length; x++) {
|
||||
if (navigator.plugins[x].description.indexOf("Adobe Acrobat") != -1) {
|
||||
acrobat.version = parseFloat(navigator.plugins[x].description.split("Version ")[1]);
|
||||
if (acrobat.version.toString().length == 1) acrobat.version += ".0";
|
||||
acrobat.installed = true;
|
||||
displayString = "Acrobat Version: " + acrobat.version;
|
||||
break;
|
||||
} else if (navigator.plugins[x].description.indexOf("Adobe PDF Plug-In") != -1) {
|
||||
acrobat.installed = true;
|
||||
acrobat.version = "8+";
|
||||
displayString = "Acrobat Version 8 or Above";
|
||||
}
|
||||
}
|
||||
} else if (window.ActiveXObject) {
|
||||
for (x = 2; x < 10; x++) {
|
||||
try {
|
||||
oAcro = eval("new ActiveXObject('PDF.PdfCtrl." + x + "');");
|
||||
if (oAcro) {
|
||||
acrobat.installed = true;
|
||||
acrobat.version = x + ".0";
|
||||
displayString = "Acrobat Version: " + acrobat.version;
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
}
|
||||
try {
|
||||
oAcro4 = new ActiveXObject("PDF.PdfCtrl.1");
|
||||
if (oAcro4) {
|
||||
acrobat.installed = true;
|
||||
acrobat.version = '4.0';
|
||||
displayString = 'Acrobat Version: ' + acrobat.version;
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
try {
|
||||
oAcro7 = new ActiveXObject('AcroPDF.PDF.1');
|
||||
if (oAcro7) {
|
||||
acrobat.installed = true;
|
||||
acrobat.version = '7.0';
|
||||
displayString = 'Acrobat Version: ' + acrobat.version;
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
}
|
||||
return displayString;
|
||||
}
|
||||
//checkBox选中、取消选中逻辑
|
||||
function selectAssortIds(){
|
||||
var instance = $('#data').jstree(true);//获取jstree对象
|
||||
var nodes = instance.get_checked(true);
|
||||
var assortIds = '';
|
||||
var sources = '';
|
||||
for(var i = 0;i < nodes.length;i++){
|
||||
if(nodes[i].children == ''){
|
||||
assortIds += nodes[i].original.newName + ",";
|
||||
sources += nodes[i].original.source + ",";
|
||||
}
|
||||
}
|
||||
if(assortIds != ''){
|
||||
assortIds = assortIds.substring(0,assortIds.length - 1);
|
||||
}
|
||||
if(sources != ''){
|
||||
sources = sources.substring(0,sources.length - 1);
|
||||
}
|
||||
$("#assortIds").val(assortIds);
|
||||
$("#sources").val(sources);
|
||||
}
|
||||
//checkbox 选中事件
|
||||
$('#data').on("check_node.jstree", function (node, data, event) {
|
||||
selectAssortIds();
|
||||
});
|
||||
tree.on('uncheck_node.jstree', function(node, data, event) {
|
||||
selectAssortIds();
|
||||
});
|
||||
//加载pdf按钮功能
|
||||
function onloadPdf(){
|
||||
$("#loading1").css("background","url("+path+"/static/img/load.gif) no-repeat 10px 50%");
|
||||
var patientId = $("#patientId").val();
|
||||
var assortIds = $("#assortIds").val();
|
||||
var sources = $("#sources").val();
|
||||
var flag = $("#flag").val();
|
||||
var url = path+"/font/showRecordContentSouthFont?flag="+flag+"&patientId="+patientId+"&scanPages="+assortIds+"&sources="+sources;
|
||||
$("#iframe1").prop("src",url);
|
||||
}
|
||||
|
||||
//记录打印记录
|
||||
function printInfoBlood(){
|
||||
var patientId = "'"+$("#patientId").val()+"'";
|
||||
var assortIds = $("#assortIds").val();
|
||||
var typeId = $("#typeId").val();
|
||||
if(typeId == undefined){
|
||||
typeId = '';
|
||||
}
|
||||
var flag = $("#flag").val();
|
||||
post(path+'/template/printInfoBlood',{"patientIds":patientId,"assortIds":assortIds,"typeId":typeId,"flag":flag});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue