开发2021-10-17issueLog

master
zengwh 4 years ago
parent 1bcac38a77
commit 55ebdef488

Binary file not shown.

@ -1,12 +1,12 @@
package com.emr.controller;
import com.emr.entity.ArchiveOther;
import com.emr.entity.ArchiveOtherExt;
import com.emr.entity.OffsetLimitPage;
import com.emr.service.ipml.ArchiveOtherExtService;
import com.emr.service.ipml.ArchiveOtherService;
import com.emr.util.ExceptionPrintUtil;
import com.emr.util.ExportExcelUtil;
import com.emr.util.Msg;
import com.emr.vo.ArchiveForceSumbitInfoVo;
import com.emr.vo.ArchiveOtherExtVo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
@ -14,11 +14,13 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Controller
@ -130,4 +132,58 @@ public class ArchiveOtherExtController {
String c1s = archiveOtherExtService.selectC1WithNotCollectFinishByPatientId(patientId);
return Msg.success().add("c1s",c1s);
}
/**
* his
* @return
*/
@RequestMapping("hisCallBackList")
private String hisCallBackList(){
return "/vCountDir/hisCallBackList";
}
/**
* his
* @param archiveOtherExtVo
* @param offset
* @param limit
* @return
* @throws Exception
*/
@ResponseBody
@RequestMapping(value = "getHisCallBackList")
public OffsetLimitPage getHisCallBackList(ArchiveOtherExtVo archiveOtherExtVo, Integer offset, Integer limit) throws Exception{
try {
return archiveOtherExtService.getHisCallBackListLimit(archiveOtherExtVo, offset, limit);
} catch (Exception e) {
ExceptionPrintUtil.printException(e);
e.printStackTrace();
return null;
}
}
/**
*
* @param response
* @param archiveOtherExtVo
*/
@ResponseBody
@RequestMapping(value = "/exportExcel")
public void exportExcel(HttpServletResponse response,ArchiveOtherExtVo archiveOtherExtVo){
String tableThNames = "申请时间,审批时间,住院号,患者姓名,住院次数,出院日期,出院科室,处理状态,开始时间,结束时间,归档状态";
String fieldCns = "sysupdatetimeStr,t2Str,zyh,c1,visitId,t1Str,deptName,statusFlagStr,stimeStr,etimeStr,n2Str";
//构造excel的数据
try {
List<ArchiveOtherExtVo> list = archiveOtherExtService.getHisCallBackList(archiveOtherExtVo);
//文件名
String fileName = "HIS退回日志" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
//ExportExcelUtil
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
//导出excel的操作
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
}catch (Exception e){
ExceptionPrintUtil.printException(e);
e.printStackTrace();
}
}
}

@ -0,0 +1,90 @@
package com.emr.controller;
import com.emr.entity.OffsetLimitPage;
import com.emr.service.ipml.ArchiveForceSumbitInfoService;
import com.emr.util.ExceptionPrintUtil;
import com.emr.util.ExportExcelUtil;
import com.emr.util.Msg;
import com.emr.vo.ArchiveForceSumbitInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletResponse;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* @ProjectName:
* @Description:
* @Param
* @Return
* @Author:
* @CreateDate: 2021/10/17 9:53
* @UpdateUser:
* @UpdateDate: 2021/10/17 9:53
* @UpdateRemark:
* @Version: 1.0
*/
@Controller
@RequestMapping("forceSumbit")
public class ForceSumbitController {
@Autowired
private ArchiveForceSumbitInfoService archiveForceSumbitInfoService;
/**
*
* @return
*/
@RequestMapping("forceSumbitList")
private String forSumbitList(){
return "/vCountDir/forceSumbitList";
}
/**
*
* @param archiveForceSumbitInfoVo
* @param offset
* @param limit
* @return
* @throws Exception
*/
@ResponseBody
@RequestMapping(value = "getForceSumbitList")
public OffsetLimitPage getForceSumbitList(ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo, Integer offset, Integer limit) throws Exception{
try {
return archiveForceSumbitInfoService.getForceSumbitList(archiveForceSumbitInfoVo, offset, limit);
} catch (Exception e) {
ExceptionPrintUtil.printException(e);
e.printStackTrace();
return null;
}
}
/**
*
* @param response
* @param archiveForceSumbitInfoVo
*/
@ResponseBody
@RequestMapping(value = "/exportExcel")
public void exportExcel(HttpServletResponse response,ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo){
String tableThNames = "住院号,住院次数,姓名,出院科室,出院日期,操作节点,操作人工号,操作人姓名,操作时间,缺失信息,状态";
String fieldCns = "inpNo,visitId,name,deptName,dischargeDateTime,operNodeCode,creater,createrName,createTimeStr,lockInfo,stateCode";
//构造excel的数据
try {
List<ArchiveForceSumbitInfoVo> list = archiveForceSumbitInfoService.getList(archiveForceSumbitInfoVo);
//文件名
String fileName = "强制提交质控列表" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
//ExportExcelUtil
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
//导出excel的操作
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
}catch (Exception e){
ExceptionPrintUtil.printException(e);
e.printStackTrace();
}
}
}

@ -7,6 +7,7 @@ import com.emr.service.ipml.RecordService;
import com.emr.service.ipml.WorkHomeService;
import com.emr.util.ExceptionPrintUtil;
import com.emr.util.ExportExcelUtil;
import com.emr.vo.ArchiveOtherExtVo;
import com.emr.vo.NotSubmitRecordVo;
import com.emr.vo.RecordSearch;
import com.emr.vo.ServerMachineVo;
@ -184,8 +185,8 @@ public class WorkHomeController {
*/
@RequestMapping("callBackStatisticsDetail")
@ResponseBody
public OffsetLimitPage callBackStatisticsDetail(Integer offset, Integer limit,String time,String startDateTo,String endDateTo) throws Exception{
return workHomeService.callBackStatisticsDetail(offset,limit,time,startDateTo,endDateTo);
public OffsetLimitPage callBackStatisticsDetail(Integer offset, Integer limit, ArchiveOtherExtVo archiveOtherExtVo) throws Exception{
return workHomeService.callBackStatisticsDetail(offset,limit,archiveOtherExtVo);
}
/**

@ -194,7 +194,10 @@ public class beHospitaledController {
@ResponseBody
@RequestMapping(value = "/checkSuccess")
private String checkSuccessMethod(String archiveDetailId){
String result = "";
//查询完整性
Archive_Master archiveMaster = archiveMasterService.selectByPrimaryKey(archiveDetailId);
return archiveMaster.getLockinfo();
/* String result = "";
String endpoint = HomepageDictionary;
//String endpoint = "http://localhost:8080/ca3/services/caSynrochnized?wsdl";
String method = HomepageMethod;
@ -220,7 +223,7 @@ public class beHospitaledController {
client.destroy();
}
}
return result;
return result;*/
}

@ -0,0 +1,22 @@
package com.emr.dao;
import com.emr.entity.ArchiveForceSumbitInfo;
import com.emr.vo.ArchiveForceSumbitInfoVo;
import java.util.List;
public interface ArchiveForceSumbitInfoMapper {
int deleteByPrimaryKey(Long id);
int insert(ArchiveForceSumbitInfo record);
int insertSelective(ArchiveForceSumbitInfo record);
ArchiveForceSumbitInfo selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(ArchiveForceSumbitInfo record);
int updateByPrimaryKey(ArchiveForceSumbitInfo record);
List<ArchiveForceSumbitInfoVo> getForceSumbitList(ArchiveForceSumbitInfoVo record);
}

@ -70,9 +70,8 @@ public interface ArchiveOtherExtMapper {
/**
* his
* @param time
* @param record
* @return
*/
List<ArchiveOtherExtVo> callBackStatisticsDetail(@Param("time") String time,@Param("startDateTo")String startDateTo,
@Param("endDateTo")String endDateTo);
List<ArchiveOtherExtVo> callBackStatisticsDetail(ArchiveOtherExtVo record);
}

@ -0,0 +1,106 @@
package com.emr.entity;
import java.io.Serializable;
import java.util.Date;
public class ArchiveForceSumbitInfo implements Serializable {
private Long id;
private String masterId;
private String operNodeCode;
private String creater;
private String createrName;
private Date createTime;
private String lockInfo;
private String stateCode;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getMasterId() {
return masterId;
}
public void setMasterId(String masterId) {
this.masterId = masterId == null ? null : masterId.trim();
}
public String getOperNodeCode() {
return operNodeCode;
}
public void setOperNodeCode(String operNodeCode) {
this.operNodeCode = operNodeCode == null ? null : operNodeCode.trim();
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater == null ? null : creater.trim();
}
public String getCreaterName() {
return createrName;
}
public void setCreaterName(String createrName) {
this.createrName = createrName == null ? null : createrName.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getLockInfo() {
return lockInfo;
}
public void setLockInfo(String lockInfo) {
this.lockInfo = lockInfo == null ? null : lockInfo.trim();
}
public String getStateCode() {
return stateCode;
}
public void setStateCode(String stateCode) {
this.stateCode = stateCode == null ? null : stateCode.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", masterId=").append(masterId);
sb.append(", operNodeCode=").append(operNodeCode);
sb.append(", creater=").append(creater);
sb.append(", createrName=").append(createrName);
sb.append(", createTime=").append(createTime);
sb.append(", lockInfo=").append(lockInfo);
sb.append(", stateCode=").append(stateCode);
sb.append("]");
return sb.toString();
}
}

@ -0,0 +1,86 @@
package com.emr.service.ipml;
import com.emr.dao.ArchiveForceSumbitInfoMapper;
import com.emr.entity.ArchiveForceSumbitInfo;
import com.emr.entity.OffsetLimitPage;
import com.emr.entity.Power_User;
import com.emr.service.Archive_MasterService;
import com.emr.util.IDHelper;
import com.emr.util.Msg;
import com.emr.vo.ArchiveForceSumbitInfoVo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.apache.shiro.util.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
/**
* @ProjectName:
* @Description:
* @Param
* @Return
* @Author:
* @CreateDate: 2021/10/29 14:31
* @UpdateUser:
* @UpdateDate: 2021/10/29 14:31
* @UpdateRemark:
* @Version: 1.0
*/
@Service
@Transactional
public class ArchiveForceSumbitInfoService {
@Autowired
private ArchiveForceSumbitInfoMapper archiveForceSumbitInfoMapper;
@Autowired
private Archive_MasterService archiveMasterService;
public OffsetLimitPage getForceSumbitList(ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<ArchiveForceSumbitInfoVo> list = getList(archiveForceSumbitInfoVo);
return new OffsetLimitPage((Page) list);
}
public List<ArchiveForceSumbitInfoVo> getList(ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo){
List<ArchiveForceSumbitInfoVo> list = archiveForceSumbitInfoMapper.getForceSumbitList(archiveForceSumbitInfoVo);
//转换状态
if(!CollectionUtils.isEmpty(list)){
Msg role = archiveMasterService.getRole();
if(null != role) {
for (ArchiveForceSumbitInfoVo vo : list) {
String stateCode = vo.getStateCode();
Integer status = Integer.valueOf(stateCode);
//组织已经审核的状态
stateCode = EnumVerify.DocState.GetStepName(status, role.getCode());
//组织未审核的状态
//String currentArchivestate = EnumVerify.DocState.GetCurrentStepName(status, role.getCode());
vo.setStateCode(stateCode);
}
}
}
return list;
}
public void saveForceSumbit(ArchiveForceSumbitInfo archiveForceSumbitInfo){
//获取request
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes())
.getRequest();
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
//获取id
try {
archiveForceSumbitInfo.setId(IDHelper.NewID());
} catch (Exception e) {
e.printStackTrace();
}
archiveForceSumbitInfo.setCreater(user.getUserName());
archiveForceSumbitInfo.setCreaterName(user.getUserPosition());
archiveForceSumbitInfo.setCreateTime(new Date());
archiveForceSumbitInfoMapper.insert(archiveForceSumbitInfo);
}
}

@ -7,8 +7,12 @@ import com.emr.dao.ArchiveOtherMapper;
import com.emr.entity.ArchiveOther;
import com.emr.entity.ArchiveOtherExt;
import com.emr.entity.ArchiveOtherExtSubmittime;
import com.emr.entity.OffsetLimitPage;
import com.emr.vo.ArchiveForceSumbitInfoVo;
import com.emr.vo.ArchiveOtherExtVo;
import com.emr.vo.KeyValue;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.util.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -376,4 +380,14 @@ public class ArchiveOtherExtService {
public void updateOtherDomForStatusFlag(String jzh, String detailIds) {
archiveOtherExtMapper.updateOtherDomForStatusFlag(jzh,detailIds,-100);
}
public OffsetLimitPage getHisCallBackListLimit(ArchiveOtherExtVo archiveOtherExtVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<ArchiveOtherExtVo> list = getHisCallBackList(archiveOtherExtVo);
return new OffsetLimitPage((Page) list);
}
public List<ArchiveOtherExtVo> getHisCallBackList(ArchiveOtherExtVo archiveOtherExtVo) {
return archiveOtherExtMapper.callBackStatisticsDetail(archiveOtherExtVo);
}
}

@ -57,7 +57,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
@Autowired
private PaperPostionService paperPostionService;
@Autowired
private TUuPrintMapper tUuPrintMapper;
private ArchiveForceSumbitInfoService archiveForceSumbitInfoService;
/**
*
* */
@ -937,11 +937,23 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
String[] roleCodes = master.getStatus().split(",");
//获取资料完整标识集合
String[] isSuccesses = master.getIsSuccess().split(",");
//获取request
for (int i = 0; i < archivestates.length; i++) {
if(StringUtils.isNotBlank(archivestates[i])){
//完整或只有一个
if("1".equals(isSuccesses[i]) || ids.length == 1){
updateApprove(ids[i],master.getRemark(), roleArr[i], archiveFlowRoles, archivestates[i], roleCodes[i]);
//插入强制提交的记录
String lockInfo = master.getLockInfo();
if(!"完整".equals(lockInfo)){
//插入强制提交记录
ArchiveForceSumbitInfo archiveForceSumbitInfo = new ArchiveForceSumbitInfo();
archiveForceSumbitInfo.setMasterId(master.getId());
archiveForceSumbitInfo.setLockInfo(lockInfo);
archiveForceSumbitInfo.setOperNodeCode(master.getStatus());
archiveForceSumbitInfo.setStateCode(master.getArchivestate());
archiveForceSumbitInfoService.saveForceSumbit(archiveForceSumbitInfo);
}
}else{
if(StringUtils.isBlank(masterIds)){
masterIds.append("'").append(ids[i]).append("'");

@ -519,12 +519,12 @@ public class WorkHomeService {
* HIS退
* @param offset
* @param limit
* @param time
* @param archiveOtherExtVo
* @return
*/
public OffsetLimitPage callBackStatisticsDetail(Integer offset, Integer limit, String time,String startDateTo,String endDateTo) {
public OffsetLimitPage callBackStatisticsDetail(Integer offset, Integer limit,ArchiveOtherExtVo archiveOtherExtVo) {
PageHelper.offsetPage(offset, limit);
List<ArchiveOtherExtVo> list = archiveOtherExtMapper.callBackStatisticsDetail(time,startDateTo,endDateTo);
List<ArchiveOtherExtVo> list = archiveOtherExtMapper.callBackStatisticsDetail(archiveOtherExtVo);
return new OffsetLimitPage((Page) list);
}
}

@ -0,0 +1,40 @@
package com.emr.vo;
/**
* @ProjectName:
* @Description:
* @Param
* @Return
* @Author:
* @CreateDate: 2021/10/29 15:08
* @UpdateUser:
* @UpdateDate: 2021/10/29 15:08
* @UpdateRemark:
* @Version: 1.0
*/
import com.emr.entity.ArchiveForceSumbitInfo;
import lombok.Data;
@Data
public class ArchiveForceSumbitInfoVo extends ArchiveForceSumbitInfo {
private String inpNo;
private Integer visitId;
private String name;
private String deptName;
private String dischargeDateTime;
private String createTimeStr;
private String startDate;
private String endDate;
private String startDate1;
private String endDate1;
}

@ -2,6 +2,7 @@ package com.emr.vo;
import com.emr.entity.ArchiveOtherExt;
import lombok.Data;
import org.apache.ibatis.annotations.Param;
/**
* @ProjectName:
@ -44,4 +45,26 @@ public class ArchiveOtherExtVo extends ArchiveOtherExt {
private String t2Str;
private String n2Str;
private String time;
private String startDateTo;
private String endDateTo;
private String startDateTo1;
private String endDateTo1;
private String startDateTo2;
private String endDateTo2;
private String inpNo;
private Integer visitId;
private String name;
private String deptName;
}

@ -1,10 +1,10 @@
#power\u6743\u9650\u7CFB\u7EDFIP\u548C\u7AEF\u53E3
#POWER_IP = localhost
#POWER_PORT = 8081
POWER_IP = 200.100.104.40
POWER_IP = localhost
POWER_PORT = 8081
#POWER_IP = 200.100.104.40
#POWER_PORT = 8081
#power\u6743\u9650\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
POWER_URLHEAD = http://${POWER_IP}:${POWER_PORT}/power

@ -0,0 +1,202 @@
<?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.ArchiveForceSumbitInfoMapper" >
<resultMap id="BaseResultMap" type="com.emr.entity.ArchiveForceSumbitInfo" >
<id column="id" property="id" jdbcType="BIGINT" />
<result column="master_id" property="masterId" jdbcType="NVARCHAR" />
<result column="oper_node_code" property="operNodeCode" jdbcType="NVARCHAR" />
<result column="creater" property="creater" jdbcType="NVARCHAR" />
<result column="creater_name" property="createrName" jdbcType="NVARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="lock_info" property="lockInfo" jdbcType="NVARCHAR" />
<result column="state_code" property="stateCode" jdbcType="NVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, master_id, oper_node_code, creater, creater_name, create_time, lock_info, state_code
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from archive_force_sumbit_info
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from archive_force_sumbit_info
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
insert into archive_force_sumbit_info (id, master_id, oper_node_code,
creater, creater_name, create_time,
lock_info, state_code)
values (#{id,jdbcType=BIGINT}, #{masterId,jdbcType=NVARCHAR}, #{operNodeCode,jdbcType=NVARCHAR},
#{creater,jdbcType=NVARCHAR}, #{createrName,jdbcType=NVARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lockInfo,jdbcType=NVARCHAR}, #{stateCode,jdbcType=NVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
insert into archive_force_sumbit_info
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="masterId != null" >
master_id,
</if>
<if test="operNodeCode != null" >
oper_node_code,
</if>
<if test="creater != null" >
creater,
</if>
<if test="createrName != null" >
creater_name,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="lockInfo != null" >
lock_info,
</if>
<if test="stateCode != null" >
state_code,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="masterId != null" >
#{masterId,jdbcType=NVARCHAR},
</if>
<if test="operNodeCode != null" >
#{operNodeCode,jdbcType=NVARCHAR},
</if>
<if test="creater != null" >
#{creater,jdbcType=NVARCHAR},
</if>
<if test="createrName != null" >
#{createrName,jdbcType=NVARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lockInfo != null" >
#{lockInfo,jdbcType=NVARCHAR},
</if>
<if test="stateCode != null" >
#{stateCode,jdbcType=NVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
update archive_force_sumbit_info
<set >
<if test="masterId != null" >
master_id = #{masterId,jdbcType=NVARCHAR},
</if>
<if test="operNodeCode != null" >
oper_node_code = #{operNodeCode,jdbcType=NVARCHAR},
</if>
<if test="creater != null" >
creater = #{creater,jdbcType=NVARCHAR},
</if>
<if test="createrName != null" >
creater_name = #{createrName,jdbcType=NVARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lockInfo != null" >
lock_info = #{lockInfo,jdbcType=NVARCHAR},
</if>
<if test="stateCode != null" >
state_code = #{stateCode,jdbcType=NVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
update archive_force_sumbit_info
set master_id = #{masterId,jdbcType=NVARCHAR},
oper_node_code = #{operNodeCode,jdbcType=NVARCHAR},
creater = #{creater,jdbcType=NVARCHAR},
creater_name = #{createrName,jdbcType=NVARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
lock_info = #{lockInfo,jdbcType=NVARCHAR},
state_code = #{stateCode,jdbcType=NVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<!--查询列表-->
<select id="getForceSumbitList" resultType="com.emr.vo.ArchiveForceSumbitInfoVo">
SELECT
archive_force_sumbit_info.id,
archive_master.inp_no,
archive_master.visit_id,
archive_master.NAME,
emr_dictionary.NAME dept_name,
CONVERT(varchar(19),archive_master.discharge_date_time,23) discharge_date_time,
archive_flow_role.NAME oper_node_code,
archive_force_sumbit_info.creater,
archive_force_sumbit_info.creater_name,
CONVERT(varchar(19),archive_force_sumbit_info.create_time,120) create_time_str,
archive_force_sumbit_info.lock_info,
archive_force_sumbit_info.state_code
FROM
archive_force_sumbit_info
INNER JOIN archive_master ON archive_master.id = archive_force_sumbit_info.master_id
LEFT JOIN emr_dictionary ON archive_master.dept_name = emr_dictionary.CODE
AND emr_dictionary.parent_id = 'dept_code'
LEFT JOIN archive_flow_role ON archive_flow_role.CODE = archive_force_sumbit_info.oper_node_code
<where>
<if test="inpNo != null and inpNo != ''">
AND inp_no LIKE '%' + #{inpNo} + '%'
</if>
<if test="visitId != null">
AND visit_id = #{visitId}
</if>
<if test="name != null and name != ''">
AND archive_master.NAME LIKE '%' + #{name} + '%'
</if>
<if test="deptName!= null and deptName!= ''">
and dept_name in
<foreach item="item" collection="deptName.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="operNodeCode != null and operNodeCode != ''">
AND oper_node_code = #{operNodeCode}
</if>
<if test="creater != null and creater != ''">
AND archive_force_sumbit_info.creater LIKE '%' + #{creater} + '%'
</if>
<if test="createrName != null and createrName != ''">
AND creater_name LIKE '%' + #{createrName} + '%'
</if>
<choose>
<when test="startDate != null and startDate != '' and endDate != null and endDate != ''">
and archive_force_sumbit_info.create_time between CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120) and
#{endDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDate != null and startDate != ''">
and archive_force_sumbit_info.create_time >= CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120)
</when>
<when test="endDate != null and endDate != ''">
and archive_force_sumbit_info.create_time &lt;= #{endDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<choose>
<when test="startDate1 != null and startDate1 != '' and endDate1 != null and endDate1 != ''">
and discharge_date_time between CONVERT(VARCHAR(10),#{startDate1,jdbcType=NCHAR},120) and
#{endDate1,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDate1 != null and startDate1 != ''">
and discharge_date_time >= CONVERT(VARCHAR(10),#{startDate1,jdbcType=NCHAR},120)
</when>
<when test="endDate1 != null and endDate1 != ''">
and discharge_date_time &lt;= #{endDate1,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
</where>
ORDER BY archive_force_sumbit_info.create_time DESC
</select>
</mapper>

@ -716,7 +716,9 @@
CONVERT ( VARCHAR ( 100 ), archive_other_ext.T2, 120 ) t2Str,
zyh,
archive_other_ext.C1,
CONVERT ( VARCHAR ( 100 ), archive_other_ext.T1, 120 ) t1Str,
CONVERT ( VARCHAR ( 100 ), archive_other_ext.T1, 23 ) t1Str,
visit_id,
emr_dictionary.NAME dept_name,
CASE
WHEN statusFlag = 0 THEN
@ -737,25 +739,82 @@
END n2Str
FROM
archive_other_ext
INNER JOIN archive_master ON archive_master.patient_id = archive_other_ext.jzh
INNER JOIN archive_master ON archive_master.patient_id = archive_other_ext.jzh
LEFT JOIN emr_dictionary ON archive_master.dept_name = emr_dictionary.CODE
AND emr_dictionary.parent_id = 'dept_code'
WHERE
CONVERT ( VARCHAR ( 100 ), archive_other_ext.T2, 23 ) = #{time}
AND sysFlag = - 300
<include refid="disDateRangeWhereSql"></include>
sysFlag = - 300
<include refid="hisCallBackWhereSql"></include>
ORDER BY sysUpdateTime DESC
</select>
<!--出院日期范围的功能查询语句-->
<sql id="disDateRangeWhereSql">
<!--his退回的功能查询语句-->
<sql id="hisCallBackWhereSql">
<if test="time != null and time != ''">
AND CONVERT ( VARCHAR ( 100 ), archive_other_ext.T2, 23 ) = #{time}
</if>
<if test="zyh != null and zyh != ''">
AND zyh LIKE '%' + #{zyh} + '%'
</if>
<if test="visitId != null">
AND visit_id = #{visitId}
</if>
<if test="c1 != null and c1 != ''">
AND archive_other_ext.C1 LIKE '%' + #{c1} + '%'
</if>
<if test="deptName!= null and deptName!= ''">
and dept_name in
<foreach item="item" collection="deptName.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<choose>
<when test="startDateTo != null and startDateTo != '' and endDateTo != null and endDateTo != ''">
AND discharge_date_time between CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120) and
AND archive_other_ext.T1 between CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120) and
#{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDateTo != null and startDateTo != ''">
AND discharge_date_time >= CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120)
AND archive_other_ext.T1 >= CONVERT(VARCHAR(10),#{startDateTo,jdbcType=NCHAR},120)
</when>
<when test="endDateTo != null and endDateTo != ''">
AND discharge_date_time &lt;= #{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
AND archive_other_ext.T1 &lt;= #{endDateTo,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<choose>
<when test="startDateTo1 != null and startDateTo1 != '' and endDateTo1 != null and endDateTo1 != ''">
AND archive_other_ext.sysUpdateTime between CONVERT(VARCHAR(10),#{startDateTo1,jdbcType=NCHAR},120) and
#{endDateTo1,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDateTo1 != null and startDateTo1 != ''">
AND archive_other_ext.sysUpdateTime >= CONVERT(VARCHAR(10),#{startDateTo1,jdbcType=NCHAR},120)
</when>
<when test="endDateTo1 != null and endDateTo1 != ''">
AND archive_other_ext.sysUpdateTime &lt;= #{endDateTo1,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<choose>
<when test="startDateTo2 != null and startDateTo2 != '' and endDateTo2 != null and endDateTo2 != ''">
AND archive_other_ext.T2 between CONVERT(VARCHAR(10),#{startDateTo2,jdbcType=NCHAR},120) and
#{endDateTo2,jdbcType=NCHAR}+ ' 23:59:59'
</when>
<when test="startDateTo2 != null and startDateTo2 != ''">
AND archive_other_ext.T2 >= CONVERT(VARCHAR(10),#{startDateTo2,jdbcType=NCHAR},120)
</when>
<when test="endDateTo2 != null and endDateTo2 != ''">
AND archive_other_ext.T2 &lt;= #{endDateTo2,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
<if test="statusflag != null">
AND statusFlag = #{statusflag}
</if>
<if test="n2 != null">
<choose>
<when test="n2 == 0">
AND archive_other_ext.N2 = 1.0000
</when>
<otherwise>
AND archive_other_ext.N2 != 1.0000
</otherwise>
</choose>
</if>
</sql>
</mapper>

@ -58,6 +58,6 @@
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/js/fileinput.min.js"></script>
<script type="text/javascript" src="${path}/static/js/hospitalCommom/pinying.js"></script>
<script type="text/javascript" src="${path}/static/js/comm.js?t=2021-10-27"></script>
<script type="text/javascript" src="${path}/static/js/comm.js?t=2021-12-29"></script>
<script type="text/javascript" src="${path}/static/js/md5.js"></script>
<input type="hidden" id="userId" value="${CURRENT_USER.userId}">

@ -677,6 +677,7 @@
<p id="resultLabel2"></p>
<p>是否强制提交?</p>
</label>
<input id="result" hidden/>
<textarea hidden id="WzRsult"></textarea>
</div>
</form>
@ -855,7 +856,7 @@
</div>
</div>
</body>
<script src="${path}/static/js/beHospList/beHospList.js?time=2021-10-27"></script>
<script src="${path}/static/js/beHospList/beHospList.js?time=2021-10-29"></script>
<script src="${path}/static/js/hospitalCommom/hospitalCommom.js?time=2021-08-01"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-10-16"></script>
</html>

@ -138,7 +138,7 @@
<script>
var path = "${path}";
</script>
<script src="${path}/static/js/faultList/faultList.js?time=2020-10-13"></script>
<script src="${path}/static/js/faultList/faultList.js?time=2021-12-29"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-08-21"></script>
</body>
</html>

@ -127,7 +127,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/flowInfo/flowInfoList.js?time=2020-08-18"></script>
<script src="${path}/static/js/flowInfo/flowInfoList.js?time=2021-10-29"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
</body>

@ -446,7 +446,7 @@
<script type="text/javascript">
var path = "${path}";
</script>
<script src="${path}/static/js/inHospList/inHospList.js?time=2020-10-16"></script>
<script src="${path}/static/js/inHospList/inHospList.js?time=2021-12-29"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-10-16"></script>
<script src="${path}/static/js/hospitalCommom/hospitalCommom.js?time=2020-11-16"></script>
</html>

@ -687,7 +687,7 @@
</div>
</div>
</body>
<script src="${path}/static/js/lastVerifyList/lastVerifyList.js?time=2021-10-27"></script>
<script src="${path}/static/js/lastVerifyList/lastVerifyList.js?time=2021-10-29"></script>
<script src="${path}/static/js/hospitalCommom/hospitalCommom.js?time=2021-08-01"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-10-16"></script>

@ -143,7 +143,7 @@
</div>
<script src="${path}/static/js/statistics/getDeptCommom.js?time=2020-08-18"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
<script src="${path}/static/js/record/deptOverTimeInfo.js?time=2021-07-30"></script>
<script src="${path}/static/js/record/deptOverTimeInfo.js?time=2021-10-29"></script>
<script src="${path}/static/js/record/expandRowCommom.js?time=2021-05-17"></script>
</body>
</html>

@ -129,7 +129,7 @@
</div>
<script src="${path}/static/js/statistics/getDeptCommom.js?time=2020-08-18"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
<script src="${path}/static/js/record/signedRecord.js?time=2020-11-25"></script>
<script src="${path}/static/js/record/signedRecord.js?time=2021-12-29"></script>
<script src="${path}/static/js/record/getStartDateAndEndDateGroupbyDayMonthYear.js"></script>
</body>
</html>

@ -163,7 +163,7 @@
</div>
</div>
<script src="${path}/static/js/statistics/getDeptCommom.js?time=2020-08-18"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2021-12-29"></script>
<script src="${path}/static/js/record/submitRecord.js?time=2021-07-30"></script>
<script src="${path}/static/js/record/expandRowCommom.js?time=2021-05-17"></script>
</body>

@ -128,7 +128,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/finalStatisticsDetail.js?time=2020-08-18"></script>
<script src="${path}/static/js/statistics/finalStatisticsDetail.js?time=2021-10-29"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
</body>

@ -135,6 +135,6 @@
</div>
<script src="${path}/static/js/statistics/getDeptCommom.js?time=2020-08-18"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
<script src="${path}/static/js/statistics/recordStatistics.js?time=2020-08-21"></script>
<script src="${path}/static/js/statistics/recordStatistics.js?time=2021-10-29"></script>
</body>
</html>

@ -122,7 +122,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/scanCount.js?time=2021-07-30"></script>
<script src="${path}/static/js/statistics/scanCount.js?time=2021-10-29"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?time=2020-07-24"></script>
<script src="${path}/static/js/record/getStartDateAndEndDateGroupbyDayMonthYear.js"></script>
</body>

@ -128,7 +128,7 @@
</div>
</div>
</div>
<script src="${path}/static/js/statistics/statisticsDetail.js?time=2020-08-18"></script>
<script src="${path}/static/js/statistics/statisticsDetail.js?time=2021-10-29"></script>
<script src="${path}/static/js/statistics/getDeptCommom.js"></script>
<script src="${path}/static/js/statistics/statisticsCommom.js?t=2020-07-24"></script>
</body>

@ -587,7 +587,7 @@
<script type="text/javascript">
var path = "${path}";
</script>
<script src="${path}/static/js/unfileMedicalList/unfileMedicalList.js?time=2020-10-13"></script>
<script src="${path}/static/js/unfileMedicalList/unfileMedicalList.js?time=2021-10-29"></script>
<script src="${path}/static/js/hospitalCommom/hospitalCommom.js?time=2020-11-16"></script>
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-10-16"></script>
</html>

@ -92,5 +92,5 @@
</div>
</div>
</body>
<script src="${path}/static/js/vCount/doctorFileList.js?time=2020-08-18"></script>
<script src="${path}/static/js/vCount/doctorFileList.js?time=2021-10-29"></script>
</html>

@ -0,0 +1,161 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<html>
<head>
<title>强制提交病案列表</title>
<meta charset="utf-8">
<!-- 解决部分兼容性问题如果安装了GCF则使用GCF来渲染页面如果未安装GCF则使用最高版本的IE内核进行渲染。 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 页面按原比例显示 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@include file="../../jspf/comm.jspf" %>
<style>
.divCss {
margin-top: 5px;
}
.divCss2 {
margin-top: 5px;
margin-left: 20px;
}
.divCss8 {
margin-top: 5px;
margin-right: 20px;
}
/* dataTables表头居中 */
.table > thead:first-child > tr:first-child > th {
text-align: center !important;
}
.hidden-xs {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/**
*多选下拉框
*/
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
width: 168px !important;
}
.filter-option-inner-inner {
font-size: 12px;
}
.hidden-xs {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
</head>
<body>
<div class="mainBody">
<div class="main">
<div class="headDiv">
<div class="headSpanDiv">
<span class="headspan">
强制提交病案列表
</span>
</div>
</div>
<div class="mainDiv">
<!--搜索-->
<form style="margin-top:5px;margin-bottom: 0!important;">
<div class="form-inline">
<div class="form-group divCss8">
<label for="inpNo">&emsp;住院号:</label>
<input type="text" class="input-sm form-control" id="inpNo" placeholder="请输入住院号">
</div>
<div class="form-group divCss8">
<label for="visitId">住院次数:</label>
<input type="number" class="input-sm form-control" min="1" id="visitId" placeholder="请输入次数">
</div>
<div class="form-group divCss8">
<label for="name">姓&emsp;&emsp;名:</label>
<input type="text" class="input-sm form-control" id="name" placeholder="请输入姓名">
</div>
<div class="form-group divCss8" id="deptDiv" style="height: 18px;margin-top: -7px;">
<label>出院科室:</label>
<select class="selectpicker bla bla bli" multiple data-live-search="true" data-actions-box="true" name="deptName" id="deptName" title="请输入科室">
</select>
</div>
<div class="form-group divCss">
<label>出院日期:</label>
<div class="input-group input-daterange">
<input type="text" class="input-sm form-control" name="start" id="startDate1" maxlength="10"
autocomplete="off"/>
<span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" name="end" id="endDate1" maxlength="10"
autocomplete="off"/>
</div>
</div>
<div class="form-group divCss">
<label>操作节点:</label>
<select class="form-control input-sm" id="operNodeCode">
<option value="">全部</option>
<option value="2">医生提交</option>
<option value="4">医生质控员质控</option>
<option value="8">科主任审核</option>
<option value="16">护士提交</option>
<option value="32">护士质控员质控</option>
<option value="64">护士长审核</option>
</select>
</div>
<div class="form-group divCss8">
<label for="creater">&emsp;操作人工号:</label>
<input type="text" class="input-sm form-control" id="creater" placeholder="请输入操作人工号">
</div>
<div class="form-group divCss8">
<label for="creater">&emsp;操作人姓名:</label>
<input type="text" class="input-sm form-control" id="createrName" placeholder="请输入操作人姓名">
</div>
<div class="form-group divCss">
<label>操作日期:</label>
<div class="input-group input-daterange">
<input type="text" class="input-sm form-control" name="start" id="startDate" maxlength="10"
autocomplete="off"/>
<span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" name="end" id="endDate" maxlength="10"
autocomplete="off"/>
</div>
</div>
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtn">查询</button>
<button type="button" class="btn btn-info btn-sm divCss" id="excelBtn">条件导出</button>
</div>
</form>
<!--数据表格-->
<div class="table-responsive">
<table id="table" class="table text-nowrap"></table>
</div>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div class="columns columns-right btn-group pull-right">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                
<option value="">导出当前页面数据</option>
<option value="all">导出全部数据</option>
<option value="selected">导出选中数据</option>
</select>
</div>
<button class=" btn btn-success" style="height: 34px" type="button" id="refreshBtn" name="refresh"
aria-label="Refresh"
title="Refresh">
<i class="glyphicon glyphicon-refresh icon-refresh"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
var path = "${path}";
</script>
<script src="${path}/static/js/vCount/forceSumbitList.js?time=2020-09-11"></script>
</html>

@ -0,0 +1,163 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<html>
<head>
<title>HIS退回日志</title>
<meta charset="utf-8">
<!-- 解决部分兼容性问题如果安装了GCF则使用GCF来渲染页面如果未安装GCF则使用最高版本的IE内核进行渲染。 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 页面按原比例显示 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@include file="../../jspf/comm.jspf" %>
<style>
.divCss {
margin-top: 5px;
}
.divCss2 {
margin-top: 5px;
margin-left: 20px;
}
.divCss8 {
margin-top: 5px;
margin-right: 20px;
}
/* dataTables表头居中 */
.table > thead:first-child > tr:first-child > th {
text-align: center !important;
}
.hidden-xs {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/**
*多选下拉框
*/
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
width: 168px !important;
}
.filter-option-inner-inner {
font-size: 12px;
}
</style>
</head>
<body>
<div class="mainBody">
<div class="main">
<div class="headDiv">
<div class="headSpanDiv">
<span class="headspan">
HIS退回日志
</span>
</div>
</div>
<div class="mainDiv">
<!--搜索-->
<form style="margin-top:5px;margin-bottom: 0!important;">
<div class="form-inline">
<div class="form-group divCss8">
<label for="zyh">&emsp;住院号:</label>
<input type="text" class="input-sm form-control" id="zyh" placeholder="请输入住院号">
</div>
<div class="form-group divCss8">
<label for="visitId">住院次数:</label>
<input type="number" class="input-sm form-control" min="1" id="visitId" placeholder="请输入次数">
</div>
<div class="form-group divCss8">
<label for="c1">姓&emsp;&emsp;名:</label>
<input type="text" class="input-sm form-control" id="c1" placeholder="请输入姓名">
</div>
<div class="form-group divCss8" id="deptDiv" style="height: 18px;margin-top: -7px;">
<label>出院科室:</label>
<select class="selectpicker bla bla bli" multiple data-live-search="true" data-actions-box="true" name="deptName" id="deptName" title="请输入科室">
</select>
</div>
<div class="form-group divCss">
<label>出院日期:</label>
<div class="input-group input-daterange">
<input type="text" class="input-sm form-control" name="start" id="startDateTo" maxlength="10"
autocomplete="off"/>
<span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" name="end" id="endDateTo" maxlength="10"
autocomplete="off"/>
</div>
</div>
<div class="form-group divCss">
<label>申请日期:</label>
<div class="input-group input-daterange">
<input type="text" class="input-sm form-control" name="start" id="startDateTo1" maxlength="10"
autocomplete="off"/>
<span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" name="end" id="endDateTo1" maxlength="10"
autocomplete="off"/>
</div>
</div>
<div class="form-group divCss">
<label>审批日期:</label>
<div class="input-group input-daterange">
<input type="text" class="input-sm form-control" name="start" id="startDateTo2" maxlength="10"
autocomplete="off"/>
<span class="input-group-addon">-</span>
<input type="text" class="input-sm form-control" name="end" id="endDateTo2" maxlength="10"
autocomplete="off"/>
</div>
</div>
<div class="form-group divCss">
<label>处理状态:</label>
<select class="form-control input-sm" id="statusflag">
<option value="">全部</option>
<option value="0">未处理</option>
<option value="1">处理出错</option>
<option value="2">处理中</option>
<option value="3">处理完成</option>
</select>
</div>
<div class="form-group divCss">
<label>归档状态:</label>
<select class="form-control input-sm" id="n2">
<option value="">全部</option>
<option value="1">已归档</option>
<option value="0">未归档</option>
</select>
</div>
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtn">查询</button>
<button type="button" class="btn btn-info btn-sm divCss" id="excelBtn">条件导出</button>
</div>
</form>
<!--数据表格-->
<div class="table-responsive">
<table id="table" class="table text-nowrap"></table>
</div>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div class="columns columns-right btn-group pull-right">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                
<option value="">导出当前页面数据</option>
<option value="all">导出全部数据</option>
<option value="selected">导出选中数据</option>
</select>
</div>
<button class=" btn btn-success" style="height: 34px" type="button" id="refreshBtn" name="refresh"
aria-label="Refresh"
title="Refresh">
<i class="glyphicon glyphicon-refresh icon-refresh"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
var path = "${path}";
</script>
<script src="${path}/static/js/vCount/hisCallBackList.js?time=2021-10-29"></script>
</html>

@ -129,5 +129,5 @@
<script>
var path = "${path}";
</script>
<script src="${path}/static/js/vCount/vCountList.js?time=2021-07-30"></script>
<script src="${path}/static/js/vCount/vCountList.js?time=2021-10-29"></script>
</html>

@ -40,7 +40,7 @@
"count":3
},
]*/
//出院列表
//HIS退回病历统计
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
@ -101,7 +101,7 @@
valign: 'middle'
},
{
title: '日期',
title: '审批日期',
field: 'time',
align: 'left',
valign: 'middle'

@ -57,8 +57,8 @@
$(function(){
loadTimeInterval();
initDateInput('startDateTo','endDateTo');
$("#startDateTo").val(getHisDay(15));
$("#endDateTo").val(getHisDay(8));
//设置默认起止日期
setDate('startDateTo','endDateTo');
})
//出院时段触发查询
function loadTableByTime(value,startDateId,endDateId,tableId){

@ -414,6 +414,12 @@ function initTable4(data) {
align: 'left',
valign: 'middle'
},
{
title: '出院日期',
field: 'dischargeDateTime',
align: 'left',
valign: 'middle'
},
{
title: '出院日期',
field: 'dischargeDateTime',
@ -498,6 +504,8 @@ $("#verifyBtn").on('click', function () {
//归档状态改为初审还是有就是初审内容保存
//判断完整性
var result = checkSuccessMethod(id);
//记录单条完整性
$("#result").val(result);
if(result != '完整'){
result = "完整性未通过:"+result+";";
}
@ -628,7 +636,7 @@ function save(successCount,failSelects){
$.ajax({
url: path+"/beHosp/updateStateByArchivId",
type: "POST",
data: {id: id, remark: firstTrial,archivestate:archivestate, isSuccess:isSuccess,status: roleCode,roles:role,formToken:$("#formToken").val()},
data: {id: id, remark: firstTrial,archivestate:archivestate, isSuccess:isSuccess,status: roleCode,roles:role,formToken:$("#formToken").val(),lockInfo:$("#result").val()},
dataType:'json',
success: function (data) {
if(data.code == 100){
@ -823,8 +831,8 @@ $(function () {
} else {
$('#deptDiv').hide();
}
$("#startDateTo").val(getHisDay(15));
$("#endDateTo").val(getHisDay(8));
//设置默认起止日期
setDate('startDateTo','endDateTo');
});
//导出excel功能

@ -401,3 +401,8 @@ function setSearchWhere(startDateId,endDateId){
}
}
}
function setDate(startInputId,endInputId) {
$("#" + startInputId).val(getHisDay(14));
$("#" + endInputId).val(getNowDay());
}

@ -233,6 +233,8 @@ function initTable() {
}
$(function () {
//设置默认起止日期
setDate('startDateTo','endDateTo');
//加载权限科室
getPowerDept();
var url = window.location.href;

@ -3,6 +3,8 @@ var tipLoad = 1;
var maxHeight = 0;
$(function(){
getDept();
//设置默认起止日期
setDate('startTime2','endTime2');
})
function initTable() {
if(tipLoad == 1){

@ -3,6 +3,8 @@ var tipLoad = 1;
//定义表格内容最大高度
var maxHeight = 0;
$(function () {
//设置默认起止日期
setDate('startDateTo','endDateTo');
//加载主管医生列表
loadDoctorInCharge();
//加载权限科室

@ -650,8 +650,8 @@ $("#getRecallBtn").on('click', function () {
});
$(function () {
$("#startDateTo").val(getHisDay(15));
$("#endDateTo").val(getHisDay(8));
//设置默认起止日期
setDate('startDateTo','endDateTo');
//加载科室
getDept();
$(".modal-dialog").draggable();//为模态对话框添加拖拽

@ -11,6 +11,8 @@ $(function(){
getChecker();
//加载病案统计
selectOvertimeCount();
//设置默认起止日期
setDate('startTime1','endTime1');
})
//加载科室内主管医生列表

@ -6,6 +6,8 @@ $(function(){
//加载科室
getDeptStatistics();
initTable();
//设置默认起止日期
setDate('startTime1','endTime1');
})
//出院时段触发查询

@ -10,6 +10,8 @@ $(function(){
selectCount();
//赋值审核角色
getChecker();
//设置默认起止日期
setDate('startTime1','endTime1');
})
//加载病案统计
function selectCount(){

@ -3,6 +3,8 @@ var tipLoad = 1;
var maxHeight = 0;
$(function(){
getDept();
//设置默认起止日期
setDate('startTime2','endTime2');
})
function initTable() {
if(tipLoad == 1){

@ -18,6 +18,8 @@ $(function(){
initTable2(getDeptName(),'table2');
break;
}
//设置默认起止日期
setDate('startTime1','endTime1');
})
//加载科室
function getDeptStatistics() {

@ -1,6 +1,10 @@
var tipLoad = 1;
//定义表格内容最大高度
var maxHeight = 0;
$(function () {
//设置默认起止日期
setDate('startTime1','endTime1');
})
//按日期查询变更事件
$("#dateFlag").change(function(){
var value = $(this).val();

@ -3,6 +3,8 @@ var tipLoad = 1;
var maxHeight = 0;
$(function(){
getDept();
//设置默认起止日期
setDate('startTime2','endTime2');
})
function initTable() {
if(tipLoad == 1){

@ -39,6 +39,8 @@ $(function () {
} else {
$("#updateStateBtn2").hide();
}
//设置默认起止日期
setDate('startDateTo','endDateTo');
});
function initTable() {

@ -2,22 +2,8 @@ $(function () {
getDept();
//日期控件
initDateInput('startDate','endDate');
var nowdays = new Date();
var year = nowdays.getFullYear();
var month = nowdays.getMonth();
if(month==0)
{
month=12;
year=year-1;
}
if (month < 10) {
month = "0" + month;
}
var firstDay = year + "-" + month + "-" + "01";//上个月的第一天
var myDate = new Date(year, month, 0);
var lastDay = year + "-" + month + "-" + myDate.getDate();//上个月的最后一天
$("#startDate").val(firstDay);
$("#endDate").val(lastDay);
//设置默认起止日期
setDate('startDate','endDate');
})
//查询
function searchBtn(){

@ -0,0 +1,234 @@
var tipLoad = 1;
//定义表格内容最大高度
var maxHeight = 0;
$(function () {
getDept();
initDateInput('startDate', 'endDate');
initDateInput('startDate1', 'endDate1');
//设置默认起止日期
setDate('startDate1','endDate1');
//日期控件
var url = window.location.href;
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
if (index != null && index != "" && index.indexOf("export") != -1) {
$("#excelBtn").show();
$("#toolbar").show();
} else {
$("#excelBtn").hide();
$(".columns-right").hide();
}
});
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: path+"/forceSumbit/getForceSumbitList", // 获取表格数据的url
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求注释掉这句话也能拿到数据
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
pageList: [10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
sidePagination: 'server', // 设置为服务器端分页 客户端client
search: false,
showColumns: true,
paginationShowPageGo: true,
// sortable: true,
// sortOrder: "asc",
toolbar: '#toolbar',//指定工具栏
searchOnEnterKey: true, //设置为 true时按回车触发搜索方法否则自动触发搜索方法
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
//height: getHeight(220), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
showHeader: true,//是否显示列头。
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
//是否显示导出按钮
showExport: true,
//导出表格方式默认basic只导出当前页的表格数据all导出所有数据selected导出选中的数据
exportDataType: "basic",
//导出文件类型
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
exportOptions: {
fileName: document.title
},
queryParams: function (params) {
var currPageSize = this.pageSize;
if (currPageSize == 2) {
currPageSize = 10;
}
var limit = null;
var offset = params.offset;
//判断是否导出全部all
if ($("#sel_exportoption").val() == "all") {
offset = 0;
limit = this.totalRows;
this.pageSize = limit;
} else {
limit = currPageSize;
this.pageSize = currPageSize;
}
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令descasc
inpNo: $("#inpNo").val(),
visitId: $("#visitId").val(),
name: $("#name").val(),
startDate: $("#startDate").val(),
endDate: $("#endDate").val(),
startDate1: $("#startDate1").val(),
endDate1: $("#endDate1").val(),
deptName: $("#deptName").val().toString(),
operNodeCode: $("#operNodeCode").val(),
creater: $("#creater").val(),
createrName: $("#createrName").val()
};
return temp;
},
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
columns: [{
title: '全选',
field: 'select', //复选框
checkbox: true,
width: 25,
align: 'center',
valign: 'middle',
},
{
title: '序号',
field: 'id',
align: 'center',
valign: 'middle',
formatter: function (value, row, index) {
return index + 1;
}
},
{
title: '住院号',
field: 'inpNo',
align: 'center',
valign: 'middle',
},
{
title: '住院次数',
field: 'visitId',
align: 'center',
valign: 'middle'
},
{
title: '姓名',
field: 'name',
align: 'center',
valign: 'middle'
},
{
title: '出院科室',
field: 'deptName',
align: 'center',
valign: 'middle'
},
{
title: '出院日期',
field: 'dischargeDateTime',
align: 'center',
valign: 'middle'
},
{
title: '操作节点',
field: 'operNodeCode',
align: 'center',
valign: 'middle'
},
{
title: '操作人工号',
field: 'creater',
align: 'center',
valign: 'middle'
},
{
title: '操作人姓名',
field: 'createrName',
align: 'center',
valign: 'middle'
},
{
title: '操作时间',
field: 'createTimeStr',
align: 'center',
valign: 'middle'
},
{
title: '缺失信息',
field: 'lockInfo',
align: 'center',
valign: 'middle',
formatter: function (value) {
return '<p class="hidden-xs" title="' + value + '">' + value + '</p>';
}
},
{
title: '状态',
field: 'stateCode',
align: 'center',
valign: 'middle'
}
],
onLoadSuccess: function (result) { //加载成功时执行
//console.info("加载成功");
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");
tipLoad = 0;
}
});
}
}
//查询
$('#searchBtn').click(function () {
//查询之后重新从第一页算起
if (tipLoad == 0) {
$("#table").bootstrapTable("refreshOptions", {pageNumber: 1});
} else {
toastr.warning("正在查询,请稍等...");
}
});
initTable();
//2.初始化select的change事件
$("#sel_exportoption").change(function () {
$('#table').bootstrapTable('refreshOptions', {
exportDataType: $(this).val()
});
});
$("#refreshBtn").click(function () {
//刷新
$('#table').bootstrapTable('refresh');
});
//导出excel功能
$("#excelBtn").click(function () {
var url = path+"/forceSumbit/exportExcel";
post(url, {
"inpNo": $("#inpNo").val(),
"visitId": $("#visitId").val(),
"name": $("#name").val(),
"startDate": $("#startDate").val(),
"endDate": $("#endDate").val(),
"startDate1": $("#startDate1").val(),
"endDate1": $("#endDate1").val(),
"deptName": $("#deptName").val().toString(),
"operNodeCode": $("#operNodeCode").val(),
"creater": $("#creater").val(),
"createrName": $("#createrName").val()
});
});

@ -0,0 +1,230 @@
var tipLoad = 1;
//定义表格内容最大高度
var maxHeight = 0;
$(function () {
getDept();
initDateInput('startDateTo', 'endDateTo');
initDateInput('startDateTo1', 'endDateTo1');
initDateInput('startDateTo2', 'endDateTo2');
//设置默认起止日期
setDate('startDateTo','endDateTo');
//日期控件
var url = window.location.href;
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
if (index != null && index != "" && index.indexOf("export") != -1) {
$("#excelBtn").show();
$("#toolbar").show();
} else {
$("#excelBtn").hide();
$(".columns-right").hide();
}
});
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: path+"/archiveExt/getHisCallBackList", // 获取表格数据的url
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求注释掉这句话也能拿到数据
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
pageList: [10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
sidePagination: 'server', // 设置为服务器端分页 客户端client
search: false,
showColumns: true,
paginationShowPageGo: true,
// sortable: true,
// sortOrder: "asc",
toolbar: '#toolbar',//指定工具栏
searchOnEnterKey: true, //设置为 true时按回车触发搜索方法否则自动触发搜索方法
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
//height: getHeight(220), //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
showHeader: true,//是否显示列头。
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
//是否显示导出按钮
showExport: true,
//导出表格方式默认basic只导出当前页的表格数据all导出所有数据selected导出选中的数据
exportDataType: "basic",
//导出文件类型
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
exportOptions: {
fileName: document.title
},
queryParams: function (params) {
var currPageSize = this.pageSize;
if (currPageSize == 2) {
currPageSize = 10;
}
var limit = null;
var offset = params.offset;
//判断是否导出全部all
if ($("#sel_exportoption").val() == "all") {
offset = 0;
limit = this.totalRows;
this.pageSize = limit;
} else {
limit = currPageSize;
this.pageSize = currPageSize;
}
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令descasc
zyh: $("#zyh").val(),
c1: $("#c1").val(),
visitId: $("#visitId").val(),
startDateTo: $("#startDateTo").val(),
endDateTo: $("#endDateTo").val(),
startDateTo1: $("#startDateTo1").val(),
endDateTo1: $("#endDateTo1").val(),
startDateTo2: $("#startDateTo2").val(),
endDateTo2: $("#endDateTo2").val(),
deptName: $("#deptName").val().toString(),
statusflag: $("#statusflag").val(),
n2: $("#n2").val()
};
return temp;
},
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
columns: [{
title: '全选',
field: 'select', //复选框
checkbox: true,
width: 25,
align: 'center',
valign: 'middle',
},
{
title: '序号',
field: 'id',
align: 'center',
valign: 'middle',
formatter: function (value, row, index) {
return index + 1;
}
},
{
title: '申请时间',
field: 'sysupdatetimeStr',
align: 'center'
},
{
title: '审批时间',
field: 't2Str',
align: 'center'
},
{
title: '住院号',
field: 'zyh',
align: 'center'
},
{
title: '患者姓名',
field: 'c1',
align: 'center'
},
{
title: '住院次数',
field: 'visitId',
align: 'center'
},
{
title: '出院日期',
field: 't1Str',
align: 'center'
},
{
title: '出院科室',
field: 'deptName',
align: 'center'
},
{
title: '处理状态',
field: 'statusFlagStr',
align: 'center'
},
{
title: '开始时间',
field: 'stimeStr',
align: 'center'
},
{
title: '结束时间',
field: 'etimeStr',
align: 'center'
},
{
title: '归档状态',
field: 'n2Str',
align: 'center',
formatter: function (value, row, index) {
var color = 'red';
if (value == '已归档') {
color = 'green';
}
return "<span style=color:" + color + ">" + value + "</span>";
}
}
],
onLoadSuccess: function (result) { //加载成功时执行
//console.info("加载成功");
$(".page-list").show();
tipLoad = 0;
reloadTableHeight("table");
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");
tipLoad = 0;
}
});
}
}
//查询
$('#searchBtn').click(function () {
//查询之后重新从第一页算起
if (tipLoad == 0) {
$("#table").bootstrapTable("refreshOptions", {pageNumber: 1});
} else {
toastr.warning("正在查询,请稍等...");
}
});
initTable();
//2.初始化select的change事件
$("#sel_exportoption").change(function () {
$('#table').bootstrapTable('refreshOptions', {
exportDataType: $(this).val()
});
});
$("#refreshBtn").click(function () {
//刷新
$('#table').bootstrapTable('refresh');
});
//导出excel功能
$("#excelBtn").click(function () {
var url = path+"/archiveExt/exportExcel";
post(url, {
"zyh": $("#zyh").val(),
"c1": $("#c1").val(),
"visitId": $("#visitId").val(),
"startDateTo": $("#startDateTo").val(),
"endDateTo": $("#endDateTo").val(),
"startDateTo1": $("#startDateTo1").val(),
"endDateTo1": $("#endDateTo1").val(),
"startDateTo2": $("#startDateTo2").val(),
"endDateTo2": $("#endDateTo2").val(),
"deptName": $("#deptName").val().toString(),
"statusflag": $("#statusflag").val(),
"n2": $("#n2").val()
});
});

@ -6,6 +6,8 @@ $(function () {
getDept();
//日期控件
initDateInput('startDate', 'endDate');
//设置默认起止日期
setDate('startDate','endDate');
var url = window.location.href;
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
/* if (index != null && index != "" && index.indexOf("excel") != -1) {

Loading…
Cancel
Save