新增对外浏览病案接口页面
parent
35b4e1c5d5
commit
eb9bc60a0a
@ -0,0 +1,65 @@
|
||||
package com.emr.entity;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/4/22 17:40
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/4/22 17:40
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public class AssortTypeTree {
|
||||
private Integer id;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String selfId;
|
||||
|
||||
private String checked;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getSelfId() {
|
||||
return selfId;
|
||||
}
|
||||
|
||||
public void setSelfId(String selfId) {
|
||||
this.selfId = selfId;
|
||||
}
|
||||
|
||||
public String getChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(String checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.emr.util;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/8/4 14:18
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/8/4 14:18
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public class ExceptionPrintUtil {
|
||||
private static Logger log = Logger.getLogger("errorMsg");
|
||||
public static void printException(Exception e){
|
||||
//方法名
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
e.printStackTrace(new PrintStream(baos));
|
||||
String exception = baos.toString();
|
||||
log.error(exception);
|
||||
try {
|
||||
baos.flush();
|
||||
baos.close();
|
||||
} catch (IOException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,187 @@
|
||||
package com.emr.util;
|
||||
|
||||
import com.lowagie.text.Document;
|
||||
import com.lowagie.text.DocumentException;
|
||||
import com.lowagie.text.Element;
|
||||
import com.lowagie.text.Image;
|
||||
import com.lowagie.text.pdf.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.awt.*;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2019/6/6 9:07
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2019/6/6 9:07
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public class Jpg2PdfUtil {
|
||||
private static Logger log = Logger.getLogger("myMsg");
|
||||
/**
|
||||
* 利用itext打开pdf文档
|
||||
*/
|
||||
private PdfReader check(String file) {
|
||||
if(StringUtils.isNotBlank(file)) {
|
||||
PdfReader pdfReader = null;
|
||||
try {
|
||||
pdfReader = new PdfReader(file);
|
||||
if (pdfReader.getNumberOfPages() != 0) {
|
||||
return pdfReader;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String logStr = "'"+ file + "'"+"文件损坏或不存在";
|
||||
log.info(logStr);
|
||||
System.out.println(fmt.format(new Date()) + ":" + logStr);
|
||||
} finally {
|
||||
if (null != pdfReader) {
|
||||
pdfReader.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private Jpg2PdfUtil(){};
|
||||
|
||||
public static Jpg2PdfUtil getInstance(){
|
||||
return ContainerHolder.HOLDER.jpg2PdfUtil;
|
||||
}
|
||||
|
||||
private enum ContainerHolder{
|
||||
HOLDER;
|
||||
private Jpg2PdfUtil jpg2PdfUtil;
|
||||
ContainerHolder(){
|
||||
jpg2PdfUtil = new Jpg2PdfUtil();
|
||||
}
|
||||
}
|
||||
|
||||
public void mulFile2One(HttpServletResponse response, List<String> files, String waterMarkName) {
|
||||
List<PdfReader> list = new ArrayList<>();
|
||||
//遍历删除,除去损坏,文件不存在,抛异常就是空白页
|
||||
Iterator<String> iterator = files.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
PdfReader check = check(iterator.next());
|
||||
if(null != check){
|
||||
list.add(check);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
// pdf合并工具类
|
||||
Document document = null;
|
||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||
PdfCopy copy = null;
|
||||
try {
|
||||
response.reset();
|
||||
document = new Document(list.get(0).getPageSize(1));
|
||||
copy = new PdfCopy(document, response.getOutputStream());
|
||||
document.open();
|
||||
for (PdfReader reader : list) {
|
||||
bos.flush();
|
||||
//判断是否加水印
|
||||
if (StringUtils.isNotBlank(waterMarkName)) {
|
||||
setWatermark(bos, reader, waterMarkName, null);
|
||||
reader = new PdfReader(bos.toByteArray());
|
||||
}
|
||||
int n = reader.getNumberOfPages();
|
||||
for (int j = 1; j <= n; j++) {
|
||||
document.newPage();
|
||||
PdfImportedPage page = null;
|
||||
if (StringUtils.isNotBlank(waterMarkName)) {
|
||||
page = copy.getImportedPage(reader, j);
|
||||
} else {
|
||||
page = copy.getImportedPage(reader, j);
|
||||
}
|
||||
copy.addPage(page);
|
||||
}
|
||||
reader.close();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//e.printStackTrace();
|
||||
} finally {
|
||||
if (null != copy) {
|
||||
copy.close();
|
||||
}
|
||||
try {
|
||||
bos.flush();
|
||||
bos.close();
|
||||
} catch (Exception e) {
|
||||
//e.printStackTrace();
|
||||
}
|
||||
if (null != document) {
|
||||
document.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//加水印
|
||||
private void setWatermark(ByteArrayOutputStream bos, PdfReader reader, String waterMarkName, String imgPath) {
|
||||
PdfStamper stamper = null;
|
||||
try {
|
||||
stamper = new PdfStamper(reader, bos);
|
||||
//stamper.setEncryption(null, null, ~(PdfWriter.ALLOW_COPY | PdfWriter.ALLOW_PRINTING), PdfWriter.STANDARD_ENCRYPTION_128);
|
||||
int total = reader.getNumberOfPages() + 1;
|
||||
PdfContentByte content;
|
||||
BaseFont base = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.EMBEDDED);
|
||||
PdfGState gs = new PdfGState();
|
||||
for (int i = 1; i < total; i++) {
|
||||
content = stamper.getOverContent(i);// 在内容上方加水印
|
||||
//加文字水印
|
||||
if (StringUtils.isNotBlank(waterMarkName)) {
|
||||
gs.setFillOpacity(0.3f);
|
||||
gs.setStrokeOpacity(0.3f);
|
||||
content.setGState(gs);
|
||||
content.beginText();
|
||||
content.setColorFill(Color.LIGHT_GRAY);
|
||||
content.setFontAndSize(base, 50);
|
||||
content.setTextMatrix(70, 200);
|
||||
//v:距左 v1:距下 v2:
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 300, 600, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 300, 200, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 800, 600, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 800, 200, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 300, 1100, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 300, 1500, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 800, 1100, 40);
|
||||
content.showTextAligned(Element.ALIGN_CENTER, waterMarkName, 800, 1500, 40);
|
||||
content.endText();
|
||||
}
|
||||
if (StringUtils.isNotBlank(imgPath)) {
|
||||
Image image = Image.getInstance(imgPath);
|
||||
image.setAbsolutePosition(200, 206); // set the first background
|
||||
image.scaleToFit(200, 200);
|
||||
content.addImage(image);
|
||||
}
|
||||
content.setColorFill(Color.BLACK);
|
||||
content.setFontAndSize(base, 8);
|
||||
}
|
||||
} catch (IOException | DocumentException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
assert stamper != null;
|
||||
stamper.close();
|
||||
} catch (DocumentException | IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package com.emr.util;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>Title:Msg </p>
|
||||
* <p>Description:common return class </p>
|
||||
* <p>Company: </p>
|
||||
* @author hu
|
||||
* @date
|
||||
*/
|
||||
public class Msg {
|
||||
//state:100-success 200-fail
|
||||
private int code;
|
||||
//提示信息
|
||||
private String msg;
|
||||
//用户要返回给浏览器的数据
|
||||
private Map<String,Object> extend=new HashMap<String,Object>();
|
||||
|
||||
public static Msg success(){
|
||||
Msg result=new Msg();
|
||||
result.setCode(100);
|
||||
result.setMsg("success");
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Msg fail(){
|
||||
Msg result=new Msg();
|
||||
result.setCode(200);
|
||||
result.setMsg("fail");
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Msg fail(String msg){
|
||||
Msg result=new Msg();
|
||||
result.setCode(200);
|
||||
result.setMsg(msg);
|
||||
return result;
|
||||
}
|
||||
|
||||
public Msg add(String key, Object value){
|
||||
this.getExtend().put(key, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Map<String, Object> getExtend() {
|
||||
return extend;
|
||||
}
|
||||
|
||||
public void setExtend(Map<String, Object> extend) {
|
||||
this.extend = extend;
|
||||
}
|
||||
|
||||
}
|
@ -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=2021-02-07"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/showRecord/showRecordIframeCommom.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -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