selectAll() {
+ return exportZdAssortMapper.selectAll();
+ }
+}
diff --git a/src/main/java/com/emr/util/PageNumUtils.java b/src/main/java/com/emr/util/PageNumUtils.java
new file mode 100644
index 00000000..834a3d30
--- /dev/null
+++ b/src/main/java/com/emr/util/PageNumUtils.java
@@ -0,0 +1,24 @@
+package com.emr.util;
+
+import com.emr.vo.ExportPdfVo;
+
+import com.itextpdf.kernel.pdf.PdfDocument;
+import com.itextpdf.kernel.pdf.PdfReader;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+
+/**
+ * @ClassName PageNumUyils
+ * @Description 获取页码工具
+ * @Author linjj
+ * @Date 2024/4/12 12:18
+ * @Version 1.0
+ */
+public class PageNumUtils {
+
+
+ //获取pdf页数
+
+}
diff --git a/src/main/java/com/emr/vo/ExportPdfVo.java b/src/main/java/com/emr/vo/ExportPdfVo.java
new file mode 100644
index 00000000..d41c49ff
--- /dev/null
+++ b/src/main/java/com/emr/vo/ExportPdfVo.java
@@ -0,0 +1,19 @@
+package com.emr.vo;
+
+import lombok.Data;
+
+/**
+ * @ClassName ExportPdfVo
+ * @Description 导出pdf返回
+ * @Author linjj
+ * @Date 2024/4/11 8:47
+ * @Version 1.0
+ */
+@Data
+public class ExportPdfVo {
+
+ private String pdfPath;
+ private String assortID;
+ private String assortSort;
+ private String assortName;
+}
diff --git a/src/main/java/com/emr/vo/ExportTaskVo.java b/src/main/java/com/emr/vo/ExportTaskVo.java
new file mode 100644
index 00000000..a08456f7
--- /dev/null
+++ b/src/main/java/com/emr/vo/ExportTaskVo.java
@@ -0,0 +1,26 @@
+package com.emr.vo;
+
+import lombok.Data;
+
+/**
+ * @ClassName ExportTaskVo
+ * @Description 导出任务主表
+ * @Author linjj
+ * @Date 2024/4/12 11:37
+ * @Version 1.0
+ */
+@Data
+public class ExportTaskVo {
+ //批次id
+ private int id;
+ //开始时间
+ private String startTime;
+ //结束时间
+ private String endTime;
+ //0未开始1正在下载2下载完成
+ private int taskState;
+ //完成数量
+ private int completeNum;
+ //需求数量
+ private int needNum;
+}
diff --git a/src/main/java/com/emr/vo/ExportZdAssortVo.java b/src/main/java/com/emr/vo/ExportZdAssortVo.java
new file mode 100644
index 00000000..22942c80
--- /dev/null
+++ b/src/main/java/com/emr/vo/ExportZdAssortVo.java
@@ -0,0 +1,19 @@
+package com.emr.vo;
+
+import lombok.Data;
+
+/**
+ * @ClassName ExportZdAssortVo
+ * @Description 导出分段详情
+ * @Author linjj
+ * @Date 2024/4/10 16:52
+ * @Version 1.0
+ */
+@Data
+public class ExportZdAssortVo {
+
+ private String assortId;
+ private String assortName;
+ private String assortSort;
+ private String exportFlag;
+}
diff --git a/src/main/resources/config/config.properties b/src/main/resources/config/config.properties
index c29aad63..80c1eac9 100644
--- a/src/main/resources/config/config.properties
+++ b/src/main/resources/config/config.properties
@@ -17,3 +17,5 @@ oracleUrl = 10.6.0.150:1521/jhemr
oracleUserName = jswzh
oraclePassWord = jswzh123
+
+
diff --git a/src/main/resources/config/jdbc.properties b/src/main/resources/config/jdbc.properties
index 9d86ac92..305253da 100644
--- a/src/main/resources/config/jdbc.properties
+++ b/src/main/resources/config/jdbc.properties
@@ -83,4 +83,7 @@ pdfWater = \u5E7F\u4E1C\u533B\u79D1\u5927\u5B66\u9644\u5C5E\u533B\u9662
PdfIsError = C:\\Users\\Administrator\\Desktop\\test\\test070802
-waterTifToJpgPath = D:/jiashi/tifToJpgLoad/
\ No newline at end of file
+waterTifToJpgPath = D:/jiashi/tifToJpgLoad/
+
+#\u5bfc\u51fa\u4fe1\u606f\u683c\u5f0f\u9700\u8981\u4e3aunicode\u683c\u5f0f\u4e0d\u7136\u4f1a\u4e71\u7801
+export_pdf_hospital_info = \u5e7f\u4e1c\u7701_\u5e7f\u4e1c\u533b\u79d1\u5927\u5b66\u9644\u5c5e\u533b\u9662
\ No newline at end of file
diff --git a/src/main/resources/mapper/BatchExpoerMapper.xml b/src/main/resources/mapper/BatchExpoerMapper.xml
new file mode 100644
index 00000000..3e447b03
--- /dev/null
+++ b/src/main/resources/mapper/BatchExpoerMapper.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ExportZdAssortMapper.xml b/src/main/resources/mapper/ExportZdAssortMapper.xml
new file mode 100644
index 00000000..c2b1a7f6
--- /dev/null
+++ b/src/main/resources/mapper/ExportZdAssortMapper.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/views/batchExport/batchExpoer.jsp b/src/main/webapp/WEB-INF/views/batchExport/batchExpoer.jsp
new file mode 100644
index 00000000..eda4dfa7
--- /dev/null
+++ b/src/main/webapp/WEB-INF/views/batchExport/batchExpoer.jsp
@@ -0,0 +1,446 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+
+
+ 国家病历批量导出
+
+
+
+
+
+ <%@include file="../../jspf/comm.jspf" %>
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp b/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp
index ee696e65..f0175bd8 100644
--- a/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp
+++ b/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp
@@ -78,7 +78,6 @@
}
-
.divCss4 {
border-top: 1px solid #e5e5e5;
width: 97.5%;
@@ -100,6 +99,7 @@
/*color: gainsboro;*/
color: #c1c3c4;
}
+
.labCss3 {
/*color: gainsboro;*/
color: #060606;
@@ -145,10 +145,10 @@
margin-left: -10px;
}
- #ztree{
+ #ztree {
overflow-x: hidden;
overflow-y: auto;
- max-height: calc(60vh );
+ max-height: calc(60vh);
!important;
}
@@ -182,20 +182,24 @@
!important;
}
- .img_div{
- overflow-y:auto; overflow-x:hidden; height:calc(75vh);
+ .img_div {
+ overflow-y: auto;
+ overflow-x: hidden;
+ height: calc(75vh);
!important;
}
- .img_div2{
- overflow-y:auto; overflow-x:hidden; height:calc(75vh);
+ .img_div2 {
+ overflow-y: auto;
+ overflow-x: hidden;
+ height: calc(75vh);
!important;
}
#imgDelPageModal .modal-content {
margin-left: 5%;
width: calc(200%); /*margin-left:-15%;*/
- height: calc(90vh );
+ height: calc(90vh);
overflow-x: hidden;
overflow-y: auto;
!important;
@@ -461,22 +465,22 @@
}
- #assortNameQX{
- width:600px;
+ #assortNameQX {
+ width: 600px;
!important;
}
- #tableQX{
+ #tableQX {
text-overflow: ellipsis;
white-space: nowrap;
/* width:100%;*/
- overflow:auto;
+ overflow: auto;
!important;
}
- #QXInfoModal .modal-content {
+ #QXInfoModal .modal-content {
margin-left: 5%;
width: calc(210%);
height: calc(100vh - 80px);
@@ -494,15 +498,15 @@
}
- .formCss{
- margin-top:0px;
- margin-left:20px;
+ .formCss {
+ margin-top: 0px;
+ margin-left: 20px;
}
- .tjCss{
- margin-left:10px;
- margin-right:20px;
- height:auto;
+ .tjCss {
+ margin-left: 10px;
+ margin-right: 20px;
+ height: auto;
}
@@ -544,9 +548,10 @@
<%--<%––%>--%>
<%--<%––%>--%>
<%----%>
-
@@ -568,8 +573,10 @@
<%--<%––%>--%>
<%--<%––%>--%>
<%----%>
-
@@ -650,7 +657,7 @@
<%----%>
-
+
-
+
<%--
--%>
@@ -774,7 +782,8 @@
-
+
@@ -1308,7 +1322,8 @@
-
+
";
img_div.append(img_html);
}
}
@@ -1646,12 +1662,12 @@
for (var j = 0; j < fileList.length; j++) {
//通过图片名判断图片在数组中的位置然后删除
// console.log(fileList[j].name + "111");
- if(fileList[j].name!=undefined)
- if (fileList[j].name == filename) {
- fileList.splice(j, 1);
- id--;
- break;
- }
+ if (fileList[j].name != undefined)
+ if (fileList[j].name == filename) {
+ fileList.splice(j, 1);
+ id--;
+ break;
+ }
}
files = fileList;
var id = $(r).parent().attr('id');
@@ -1694,13 +1710,13 @@
//遍历数组
for (var j = 0; j < fileList.length; j++) {
//通过图片名判断图片在数组中的位置然后删除
- if(fileList[j].name!=undefined)
- if (fileList[j].name == filename) {
- fileList.splice(j, 1);
- id--;
- files = fileList;
- break;
- }
+ if (fileList[j].name != undefined)
+ if (fileList[j].name == filename) {
+ fileList.splice(j, 1);
+ id--;
+ files = fileList;
+ break;
+ }
}
}
@@ -1735,7 +1751,8 @@
//初始化类别
var selectStr = "";
- var assortIdArr=[];
+ var assortIdArr = [];
+
function getAssortFun() {
$.ajax({
url: "${path}/zdAssort/getAssort",
@@ -1744,10 +1761,10 @@
async: true,
success: function (result) {
if (result != null && result.length > 0) {
- assortIdArr=[];
+ assortIdArr = [];
selectStr = "";
for (i = 0; i < result.length; i++) {
- selectStr += "";
+ selectStr += "";
$("#inpGl").append("");
$("#inpType").append("");
assortIdArr.push(result[i].assortId);
@@ -1948,9 +1965,9 @@
if (div_data[i].value != null && div_data[i].value != "") {
var obj = {};
//console.log("第select" + (i + 1) + "个的value=" + div_data[i].value);
- var selectedIndex=div_data[i].selectedIndex;
+ var selectedIndex = div_data[i].selectedIndex;
//console.log(div_data[i].options[index].getAttribute("title"));
- obj.selectName=div_data[i].options[selectedIndex].getAttribute("title");
+ obj.selectName = div_data[i].options[selectedIndex].getAttribute("title");
obj.selectVal = div_data[i].value;
if (b < div_data.length / 2) {
obj.id = div_p[b].id;
@@ -2034,7 +2051,7 @@
}
//打开一个不被拦截的新窗口
var newWindow = window.open();
- var titleName=document.getElementById("nameLab").innerText;
+ var titleName = document.getElementById("nameLab").innerText;
$.ajax({
url: "${path}/inHosp/getPdfToPdf",
type: "POST",
@@ -2043,7 +2060,7 @@
if (result != "") {
//绝对路径
var pdfPath = result;
- newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName);
+ newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath + "?titleName=" + titleName);
//相对路径
<%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%>
<%--newWindow.location.href = pdfUrl;--%>
@@ -2080,7 +2097,7 @@
//上传后预览pdf文件,根据id直接获取pdf并合成
//打开一个不被拦截的新窗口
var newWindow = window.open();
- var titleName=document.getElementById("nameLab").innerText;
+ var titleName = document.getElementById("nameLab").innerText;
$.ajax({
url: "${path}/inHosp/getPdfById",
type: "POST",
@@ -2089,7 +2106,7 @@
if (result != "") {
//绝对路径
var pdfPath = result;
- newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName);
+ newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath + "?titleName=" + titleName);
//相对路径
<%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%>
<%--newWindow.location.href = pdfUrl;--%>
@@ -2190,6 +2207,7 @@
format: "yyyy-mm-dd",
language: "zh-CN"
});
+
/*var currDate=getCurrDate();
var currDate30=getCurrDay30();
$('#startDate').val(currDate30);
@@ -2213,6 +2231,7 @@
}
});
}
+
getDept();
$("#imgsClearBtn2").click(function () {
@@ -2603,7 +2622,8 @@
$('#tableQX').bootstrapTable('refresh');
});
- var editId=null;
+ var editId = null;
+
function dealAndConcelFun() {
if (editId == null) {
toastr.warning("选中1条记录!");
@@ -2636,6 +2656,7 @@
var scollPostion = null;
var docNorFlag = 1;
+
function initTableQX() {
$("#QXDealCancelBtn").hide();
$("#QXDealBtn").show();
@@ -2643,11 +2664,11 @@
url: "${path}/fault/getFaultList", // 获取表格数据的url
queryParams: function (params) {
//console.log($("#archIdQX").val());
- var backFlag=1;
- if(docNorFlag==3){
- backFlag=3
- }else if(docNorFlag==4){
- backFlag=4
+ var backFlag = 1;
+ if (docNorFlag == 3) {
+ backFlag = 3
+ } else if (docNorFlag == 4) {
+ backFlag = 4
}
//(1,2,5,6)
/* if($("#backFlagQX").val()!=null && $("#backFlagQX").val()!=null){
@@ -2659,9 +2680,9 @@
//order: params.order, //排位命令(desc,asc)
//id: $("#id").val(),
archiveDetailId: $("#archIdQX").val(),
- backContent:$("#assortNameQX").val(),
- dealFlag:$("#dealFlagQX").val(),
- backFlag:backFlag,
+ backContent: $("#assortNameQX").val(),
+ dealFlag: $("#dealFlagQX").val(),
+ backFlag: backFlag,
//backFlag: 1
};
return temp;
@@ -2680,7 +2701,7 @@
//smartDisplay: false,
//height:'300',
//width:'100%',
- height: $(window).height() -150,//自定义高度
+ height: $(window).height() - 150,//自定义高度
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
columns: [
@@ -2787,17 +2808,17 @@
editId = null;
//console.log("====取消选中");
},
- onClickRow : function(row, tr,flied){
+ onClickRow: function (row, tr, flied) {
//console.log("====选中");
},
- onCheck:function(row){
+ onCheck: function (row) {
editId = row.id;
scollPostion = $('#tableQX').bootstrapTable('getScrollPosition');
- if(row!=null){
- if(row.dealFlag=="0"){
+ if (row != null) {
+ if (row.dealFlag == "0") {
$("#QXDealCancelBtn").hide();
$("#QXDealBtn").show();
- }else{
+ } else {
$("#QXDealCancelBtn").show();
$("#QXDealBtn").hide();
}
@@ -2811,7 +2832,7 @@
// }
}, onRefresh: function (result) {
- } , onLoadSuccess: function (result) { //加载成功时执行
+ }, onLoadSuccess: function (result) { //加载成功时执行
$('#tableQX').bootstrapTable('scrollTo', scollPostion); //注意此代码要在setTimeout里面执行,原因是重新获取数据后还要生成dom节
//console.log("====加载成功时执行"+editId);
if (editId != null) {
@@ -2827,7 +2848,7 @@
initTableQX();
- function getWzxFun(archiveDetailId){
+ function getWzxFun(archiveDetailId) {
//实时获取完整性
$.ajax({
url: "${path}/beHosp/wzByArchivId",
@@ -2841,8 +2862,6 @@
}
-
-
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
@@ -2946,7 +2965,7 @@
endDate: $("#endDate").val(),
bedNumber: $("#bedNumber").val(),
deathFlag: $("#deathFlag").val(),
- printNum:$("#printNum").val()
+ printNum: $("#printNum").val()
};
return temp;
@@ -3223,9 +3242,9 @@
if (redFlag == 0) {
if (value == 1) {
a = '已提交';
- } else if (value !=1 &&row.nurseName==null) {
+ } else if (value != 1 && row.nurseName == null) {
a = '未提交';
- }else {
+ } else {
a = '已提交';
}
@@ -3368,7 +3387,7 @@
}
return result;
}
- },{
+ }, {
title: '是否打印',
field: 'printNum',
align: 'center',
@@ -3376,9 +3395,9 @@
var printNum = row.printNum;
var html = '';
if (printNum == '未打印') {
- html = ''+printNum+'';
+ html = '' + printNum + '';
} else {
- html = ''+printNum+'';
+ html = '' + printNum + '';
}
return html;
}
@@ -3425,7 +3444,7 @@
} else if (value == "主任退回") {
a = '' + value + '';
}
- }else {
+ } else {
//有缺陷显示红色
a = '' + value + '';
}
@@ -3445,6 +3464,9 @@
if (index != null && index != "" && index.indexOf("select") != -1 && row.archivestate != "已封存") {
html = '';// '删除';
}
+ if (index != null && index != "" && index.indexOf("select") != -1 && row.archivestate != "已封存") {
+ html = html + '';// '删除';
+ }
if (index.indexOf("qxSel") != -1) {
var redFlag = row.numb;
var redFlagDoc = row.faultDoctorNum;
@@ -3452,17 +3474,23 @@
//有缺陷
if (redFlag != 0) {
//有退回给医生的缺陷
- if(redFlagDoc!= 0 && redFlagDoc!= null){
+ if (redFlagDoc != 0 && redFlagDoc != null) {
html = html + '';
}
//有退回给护士的缺陷
- if(redFlagNur!= 0 && redFlagNur!= null){
+ if (redFlagNur != 0 && redFlagNur != null) {
html = html + '';
}
}
}
return html;
}, events: {
+ 'click .downloadPdfBlood': function (e, value, row, index) {
+ var id = row.id;
+ var inpNo = row.inpNo;
+ var dischargeDateTime = row.dischargeDateTime;
+ downloadPdfBlood(id,inpNo,dischargeDateTime)
+ },
'click .selInfo': function (e, value, row, index) {
$("#printTableFlag").hide();
if (row.printNum == '已打印') {
@@ -3527,7 +3555,7 @@
//查看缺陷列表
//initTableQX(row.id);
$("#archIdQX").val(row.id);
- docNorFlag= 4;
+ docNorFlag = 4;
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
@@ -3539,14 +3567,14 @@
//查看缺陷列表
//initTableQX(row.id);
$("#archIdQX").val(row.id);
- docNorFlag= 3;
+ docNorFlag = 3;
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
- }
+ }
},
cellStyle: function (value, row, index) {
return {classes: 'success'}
@@ -3567,10 +3595,38 @@
}
}
- function getSourceFun(){
+ function downloadPdfBlood(id,inpNo,dischargeDateTime) {
+ post(path + '/unfile/downloadPdfBlood', {
+ "masterId": id,
+ "inpNo": inpNo,
+ "dischargeDateTime": dischargeDateTime
+ });
+ }
+
+ function post(url, params) {
+ // 创建form元素
+ var temp_form = document.createElement("form");
+ // 设置form属性
+ temp_form .action = url;
+ temp_form .target = "_self";
+ temp_form .method = "post";
+ temp_form .style.display = "none";
+ // 处理需要传递的参数
+ for (var x in params) {
+ var opt = document.createElement("textarea");
+ opt.name = x;
+ opt.value = params[x];
+ temp_form .appendChild(opt);
+ }
+ document.body.appendChild(temp_form);
+ // 提交表单
+ temp_form .submit();
+ }
+
+ function getSourceFun() {
//console.log("获取来源下拉框:sourceSearch");
var patientId = $("#idLab").html();
- var source=$("#sourceSearch").val();
+ var source = $("#sourceSearch").val();
var assortId = $("#assortId").html();
if (assortId == 0) assortId = null;
var temp = {
@@ -3590,23 +3646,23 @@
success: function (result) {
if (result != null) {
$("#sourceSearch").empty();
- if(source==""){
+ if (source == "") {
$("#sourceSearch").append("");
- }else {
+ } else {
$("#sourceSearch").append("");
}
- for(var i=0;i" + result[i].source + "");
- }else {
+ } else {
$("#sourceSearch").append("");
}
} else {
$("#sourceSearch").append("");
}
- }else{
+ } else {
$("#sourceSearch").append("");
}
}
@@ -3702,7 +3758,7 @@
//导出excel功能
$("#excelBtn").click(function () {
toastr.warning("正在导出,请稍等...");
- // var url = window.location.href;
+ // var url = window.location.href;
// var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
// if (deptName != null && deptName != '') {
// deptName += "," + $("#deptName").val();