diff --git a/doc/归档系统备忘.txt b/doc/归档系统备忘.txt index 05be11a..d622644 100644 --- a/doc/归档系统备忘.txt +++ b/doc/归档系统备忘.txt @@ -12,7 +12,7 @@ END select * from sys.sql_modules where definition like '%FUNCTION%' -#################################################################################################### +############################################################################## #ҽArchiveStateֵ '1','16','48','512','256','272','304','768' @@ -33,4 +33,26 @@ select * from sys.sql_modules where definition like '%FUNCTION%' #ҴArchiveStateֵ '64','1024' +############################################################################## +#ҽArchiveStateֵ +'2','18','50','514','768','6','22','54','518','14','30','62','526','64','1024' + +#ҽʿԱArchiveStateֵ +'6','22','54','518','14','30','62','526','64','1024' + +#ArchiveStateֵ +'14','30','62','526','64','1024' + +#ʿArchiveStateֵ +'16','18','22','40','528','768','48','50','54','62','304','64','1024' + +#ʿʿԱArchiveStateֵ +'48','50','54','62','304','64','1024' + +#ʿArchiveStateֵ +'64' + +#ArchiveStateֵ +'128' + diff --git a/src/main/java/com/emr/controller/ArchiveOtherExtController.java b/src/main/java/com/emr/controller/ArchiveOtherExtController.java index dd9f977..3e1b77f 100644 --- a/src/main/java/com/emr/controller/ArchiveOtherExtController.java +++ b/src/main/java/com/emr/controller/ArchiveOtherExtController.java @@ -1,6 +1,7 @@ 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; @@ -12,6 +13,8 @@ import com.github.pagehelper.PageHelper; 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; @@ -114,4 +117,17 @@ public class ArchiveOtherExtController { return Msg.fail("参数ids不能为空"); } } + + /** + * 查询未同步更新完成的文件名称集合 + * @param patientId 记账号 + * @return + * @throws Exception + */ + @RequestMapping("selectC1WithNotCollectFinishByPatientId/{patientId}") + @ResponseBody + public Msg selectC1WithNotCollectFinishByPatientId(@PathVariable("patientId") String patientId) throws Exception{ + String c1s = archiveOtherExtService.selectC1WithNotCollectFinishByPatientId(patientId); + return Msg.success().add("c1s",c1s); + } } diff --git a/src/main/java/com/emr/controller/FontController.java b/src/main/java/com/emr/controller/FontController.java index a3a072a..f195f8a 100644 --- a/src/main/java/com/emr/controller/FontController.java +++ b/src/main/java/com/emr/controller/FontController.java @@ -470,4 +470,16 @@ public class FontController { List list = archiveFlowInfoService.selectFlowInfoByMasterId(masterId,userName); return Msg.success().add("list",list); } + + /** + * 根据masterId查询流程明细 + * @return + * @throws Exception + */ + @RequestMapping("selectDeptList") + @ResponseBody + public Msg selectDeptList() throws Exception{ + List list = dictionaryMapper.selectAllByParentId("dept_code",null); + return Msg.success().add("list",list); + } } diff --git a/src/main/java/com/emr/controller/RecordController.java b/src/main/java/com/emr/controller/RecordController.java index 3acc29e..6d11430 100644 --- a/src/main/java/com/emr/controller/RecordController.java +++ b/src/main/java/com/emr/controller/RecordController.java @@ -11,13 +11,16 @@ import com.emr.vo.SubmitRecord; import com.emr.vo.SubmitRecordStatistics; 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.Controller; 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.ArrayList; import java.util.Date; import java.util.List; @@ -43,12 +46,29 @@ public class RecordController { @ResponseBody public OffsetLimitPage getSubmitRecordList(Integer offset, Integer limit, - RecordSearch recordSearch){ - if(offset != null && limit != null) { - PageHelper.offsetPage(offset, limit); + RecordSearch recordSearch, + HttpServletRequest request){ + List submitRecords = (List)request.getSession().getAttribute("unSubmitRecords"); + try { + if(CollectionUtils.isEmpty(submitRecords)){ + submitRecords = recordService.selectUnCountGroupDept(recordSearch,request); + } + }catch (Exception e){ + e.printStackTrace(); + ExceptionPrintUtil.printException(e); } - List submitRecords = recordService.selectUnCountGroupDept(recordSearch); - return new OffsetLimitPage((Page) submitRecords); + OffsetLimitPage offsetLimitPage = new OffsetLimitPage(); + offsetLimitPage.setTotal((long) submitRecords.size()); + List list = new ArrayList<>(); + for (int i = offset; i < submitRecords.size(); i++) { + list.add(submitRecords.get(i)); + if(list.size() == limit){ + break; + } + } + offsetLimitPage.setRows(list); + request.getSession().removeAttribute("unSubmitRecords"); + return offsetLimitPage; } /** @@ -68,7 +88,8 @@ public class RecordController { @ResponseBody @RequestMapping(value = "/exportExcelSubmit") public void exportExcelSubmit(HttpServletResponse response, - RecordSearch recordSearch){ + RecordSearch recordSearch, + HttpServletRequest request){ String tableThNames = "科室名称,出院人数,医生已提交,医生未提交,医生提交率," + "医生质控员已提交,医生质控员未提交,医生质控员提交率," + "科主任已提交,科主任未提交,科主任提交率," + @@ -83,7 +104,7 @@ public class RecordController { "headNurseCount,unHeadNurseCount,headNursePercent"; //构造excel的数据 try { - List list = recordService.selectUnCountGroupDept(recordSearch); + List list = recordService.selectUnCountGroupDept(recordSearch,request); //文件名 String fileName = "病案提交统计" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls"; //ExportExcelUtil @@ -110,8 +131,8 @@ public class RecordController { */ @RequestMapping("selectOvertimeCount") @ResponseBody - public Msg selectOvertimeCount(RecordSearch recordSearch) throws Exception{ - SubmitRecordStatistics recordStatistics = recordService.selectOvertimeCount(recordSearch); + public Msg selectOvertimeCount(RecordSearch recordSearch,HttpServletRequest request) throws Exception{ + SubmitRecordStatistics recordStatistics = recordService.selectOvertimeCount(recordSearch,request); return Msg.success().add("record",recordStatistics); } @@ -145,14 +166,15 @@ public class RecordController { @ResponseBody @RequestMapping(value = "/exportExcelDeptOverTime") public void exportExcelDeptOverTime(HttpServletResponse response, - RecordSearch recordSearch){ + RecordSearch recordSearch, + HttpServletRequest request){ String tableThNames = "科室名称,超期份數,医生未提交,医生质控员未提交,科主任未提交,护士未提交,"+ "护士质控员未提交,护士长未提交,病案室未提交"; String fieldCns = "deptNameCn,count,unDoctorSubmitCount,unDoctorCheckCount,unDirectorCheckCount," + "unNurseSubmitCount,unNurseCheckCount,unHeadNurseCount,headNurseCount"; //构造excel的数据 try { - List list = recordService.selectUnCountGroupDept(recordSearch); + List list = recordService.selectUnCountGroupDept(recordSearch,request); //文件名 String fileName = "科室病案超期" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls"; //ExportExcelUtil @@ -166,7 +188,7 @@ public class RecordController { } /** - * 病案签收页面 + * 病案提交明细页面 * @return */ @RequestMapping("signedRecord") @@ -175,7 +197,7 @@ public class RecordController { } /** - * 病案签收统计分页查询 + * 病案提交明细分页查询 * @return */ @RequestMapping("getSignedRecordList") @@ -184,8 +206,14 @@ public class RecordController { if(offset != null && limit != null) { PageHelper.offsetPage(offset, limit); } - List submitRecords = recordService.getSignedRecordList(recordSearch); - return new OffsetLimitPage((Page) submitRecords); + List submitRecords = new Page<>(); + try { + submitRecords = recordService.getSignedRecordList(recordSearch); + }catch (Exception e){ + e.printStackTrace(); + ExceptionPrintUtil.printException(e); + } + return new OffsetLimitPage((Page)submitRecords); } /** diff --git a/src/main/java/com/emr/dao/ArchiveOtherExtMapper.java b/src/main/java/com/emr/dao/ArchiveOtherExtMapper.java index 21ea4b7..a3c18b0 100644 --- a/src/main/java/com/emr/dao/ArchiveOtherExtMapper.java +++ b/src/main/java/com/emr/dao/ArchiveOtherExtMapper.java @@ -32,4 +32,17 @@ public interface ArchiveOtherExtMapper { * @return */ List selectAllByIdsAndSubmitTime(@Param("ids")String ids); + + /** + * 查询未同步更新完成的文件名称集合 + * @param patientId + * @return + */ + List selectC1WithNotCollectFinishByPatientId(@Param("patientId")String patientId); + + /** + * 查询校验不完整的集合 + * @return + */ + List selectNotCompleteMidList(); } \ No newline at end of file diff --git a/src/main/java/com/emr/dao/EmrHolidaySetMapper.java b/src/main/java/com/emr/dao/EmrHolidaySetMapper.java index ad8e18b..c9e2d3b 100644 --- a/src/main/java/com/emr/dao/EmrHolidaySetMapper.java +++ b/src/main/java/com/emr/dao/EmrHolidaySetMapper.java @@ -35,4 +35,6 @@ public interface EmrHolidaySetMapper { List selectWorkDayByDate(@Param("startDate")String startDate, @Param("endDate")String endDate, @Param("order")String order); + + List selectNotHolidayList(); } \ No newline at end of file diff --git a/src/main/java/com/emr/dao/Emr_DictionaryMapper.java b/src/main/java/com/emr/dao/Emr_DictionaryMapper.java index df515a2..51d68c4 100644 --- a/src/main/java/com/emr/dao/Emr_DictionaryMapper.java +++ b/src/main/java/com/emr/dao/Emr_DictionaryMapper.java @@ -1,6 +1,7 @@ package com.emr.dao; import com.emr.entity.Emr_Dictionary; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -39,4 +40,13 @@ public interface Emr_DictionaryMapper { * @return */ int updateCloById(Emr_Dictionary emrDictionary); + + /** + * 根据父id查询字典结合 + * @param parentId 父id即分类id + * @param orderSql 是否排序,排序语句 + * @return + */ + List selectAllByParentId(@Param("parentId")String parentId, + @Param("orderSql")String orderSql); } \ No newline at end of file diff --git a/src/main/java/com/emr/dao/RecordMapper.java b/src/main/java/com/emr/dao/RecordMapper.java index 77c0e4e..30907ff 100644 --- a/src/main/java/com/emr/dao/RecordMapper.java +++ b/src/main/java/com/emr/dao/RecordMapper.java @@ -22,4 +22,8 @@ public interface RecordMapper { List selectRecordGroupDeptAndRole(RecordSearch recordSearch); int selectCountOverTimeByRoleId(RecordSearch recordSearch); + //查询按日期分组 + List selectGroupDate(RecordSearch recordSearch); + //查询属于需要校验完整的带分类的集合 + List selectAllWithCompleteAssort(RecordSearch recordSearch); } diff --git a/src/main/java/com/emr/entity/Archive_Master_Vo.java b/src/main/java/com/emr/entity/Archive_Master_Vo.java index 5026251..43fa84a 100644 --- a/src/main/java/com/emr/entity/Archive_Master_Vo.java +++ b/src/main/java/com/emr/entity/Archive_Master_Vo.java @@ -59,6 +59,10 @@ public class Archive_Master_Vo extends Archive_Master{ private Integer isSign;//是否查询纸质签收状态 private List patientIdsForSign;//已纸质签收集合 + + private String assortId;//分段id + + private Integer count;//数量 } diff --git a/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java b/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java index 643bb80..06e437d 100644 --- a/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java +++ b/src/main/java/com/emr/service/ipml/ArchiveOtherExtService.java @@ -4,6 +4,7 @@ import com.emr.dao.ArchiveOtherExtMapper; import com.emr.dao.ArchiveOtherExtSubmittimeMapper; import com.emr.dao.ArchiveOtherMapper; import com.emr.entity.ArchiveOther; +import com.emr.entity.ArchiveOtherExt; import com.emr.entity.ArchiveOtherExtSubmittime; import com.emr.vo.ArchiveOtherExtVo; import com.emr.vo.KeyValue; @@ -303,4 +304,33 @@ public class ArchiveOtherExtService { public List selectAllByIdsAndSubmitTime(String ids) { return archiveOtherExtMapper.selectAllByIdsAndSubmitTime(ids); } + + /** + * 查询未同步更新完成的文件名称集合 + * @param patientId 记账号 + * @return + */ + public String selectC1WithNotCollectFinishByPatientId(String patientId) { + List archiveOtherExts = archiveOtherExtMapper.selectC1WithNotCollectFinishByPatientId(patientId); + StringBuilder c1s = new StringBuilder(); + if(!CollectionUtils.isEmpty(archiveOtherExts)){ + for(ArchiveOtherExt archiveOtherExt : archiveOtherExts){ + if(StringUtils.isNotBlank(archiveOtherExt.getC1())){ + if(StringUtils.isNotBlank(c1s)){ + c1s.append(","); + } + c1s.append(archiveOtherExt.getC1()); + } + } + } + return c1s.toString(); + } + + /** + * 查询校验不完整的集合 + * @return + */ + public List selectNotCompleteMidList(){ + return archiveOtherExtMapper.selectNotCompleteMidList(); + } } diff --git a/src/main/java/com/emr/service/ipml/Emr_Fault_DetailServiceImpl.java b/src/main/java/com/emr/service/ipml/Emr_Fault_DetailServiceImpl.java index 9be637c..f59da66 100644 --- a/src/main/java/com/emr/service/ipml/Emr_Fault_DetailServiceImpl.java +++ b/src/main/java/com/emr/service/ipml/Emr_Fault_DetailServiceImpl.java @@ -91,6 +91,7 @@ public class Emr_Fault_DetailServiceImpl implements Emr_Fault_DetailService { dept2 = dept2.replace(dept2, dictionary.getName()); emr_fault_vo.setDeptAdmissionTo(dept2); + break; } } diff --git a/src/main/java/com/emr/service/ipml/RecordService.java b/src/main/java/com/emr/service/ipml/RecordService.java index 914f6bf..5761a40 100644 --- a/src/main/java/com/emr/service/ipml/RecordService.java +++ b/src/main/java/com/emr/service/ipml/RecordService.java @@ -1,9 +1,9 @@ package com.emr.service.ipml; +import com.emr.dao.EmrHolidaySetMapper; import com.emr.dao.Emr_DictionaryMapper; import com.emr.dao.RecordMapper; -import com.emr.entity.Archive_Master_Vo; -import com.emr.entity.Emr_Dictionary; +import com.emr.entity.*; import com.emr.service.Archive_MasterService; import com.emr.util.Msg; import com.emr.vo.*; @@ -12,7 +12,9 @@ import org.apache.shiro.util.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import java.util.List; +import javax.servlet.http.HttpServletRequest; +import java.text.SimpleDateFormat; +import java.util.*; @Service public class RecordService { @@ -24,11 +26,171 @@ public class RecordService { private CommomService commomService; @Autowired private Archive_MasterService archiveMasterService; + @Autowired + private EmrOvertimeSetService overtimeSetService; + @Autowired + private EmrHolidaySetMapper holidaySetMapper; + @Autowired + private ZdAssortService assortService; + @Autowired + private ArchiveOtherExtService otherExtService; /** * 病案提交统计 * @return */ - public List selectUnCountGroupDept(RecordSearch recordSearch){ + public List selectUnCountGroupDept(RecordSearch recordSearch, HttpServletRequest request) throws Exception{ + /*Integer infoId = recordSearch.getInfoId(); + if(null != infoId){ + //有按审核角色查询 + if(infoId < 5){ + //医生支线 + recordSearch.setOperRole(1); + }else if(infoId == 5 || infoId == 6){ + //护士支线 + recordSearch.setOperRole(2); + }else if(infoId == 8){ + recordSearch.setOperRole(4); + } + }*/ + //按科室查询总出院人数 + List unSubmitRecords = recordMapper.selectUnCountGroupDept(recordSearch); + if (!CollectionUtils.isEmpty(unSubmitRecords)) { + if(null != recordSearch.getFlag() && recordSearch.getFlag() == 2){ + //过滤超期 + unSubmitRecords = selectOvertimeRecord(unSubmitRecords); + } + //按科室填充数据 + unSubmitRecords = selectUnSubmitCountGroupDept(unSubmitRecords); + //填充各个角色数据、主要填充已提交的 + selectList(unSubmitRecords); + } + request.getSession().setAttribute("unSubmitRecords",unSubmitRecords); + return unSubmitRecords; + } + + /** + * 过滤未过期的 + * @param unSubmitRecords + * @return + */ + private List selectOvertimeRecord(List unSubmitRecords) throws Exception{ + //查询超期参数 + EmrOvertimeSet overtimeSet = overtimeSetService.selectByPrimaryKey(1); + //获取未超期列表 + List unHolidays = holidaySetMapper.selectNotHolidayList(); + Iterator iterator = unSubmitRecords.iterator(); + //获取非死亡工作日 + String date = unHolidays.get(overtimeSet.getDays()).getDate(); + //获取非死亡工作日 + String deadDate = unHolidays.get(overtimeSet.getDeadDays()).getDate(); + //定义格式化日期 + SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd"); + while (iterator.hasNext()) { + SubmitRecord record = (SubmitRecord) iterator.next(); + //获取是否死亡 + String dischargeDisposition = record.getDischargeDisposition(); + String dischargeDateTime = record.getDischargeDateTime(); + long time = fmt.parse(dischargeDateTime).getTime(); + if(StringUtils.isNotBlank(dischargeDisposition) && "5".equals(dischargeDisposition)){ + //死亡 + if(time >= fmt.parse(deadDate).getTime()){ + iterator.remove(); + } + }else{ + //非死亡 + if(time >= fmt.parse(date).getTime()){ + iterator.remove(); + } + } + } + return unSubmitRecords; + } + + /** + * 按科室查询总出院人数 + * @param unSubmitRecords 出院列表 + * @return + */ + private List selectUnSubmitCountGroupDept(List unSubmitRecords) { + //查询科室集合 + List depts = dictionaryMapper.selectAllByParentId("dept_code", "CODE"); + //医生未提交状态码集合 + String[] unDoctorSubmitArr = {"1","16","48","512","256","272","304","768"}; + List unDoctorSubmitStr = Arrays.asList(unDoctorSubmitArr); + //医生质控员未提交状态码集合 + String[] unDoctorCheckArr = {"2","18","50","514"}; + List unDoctorCheckStr = Arrays.asList(unDoctorCheckArr); + //科主任未提交状态码集合 + String[] unDirectorCheckArr = {"6","22","54","518"}; + List unDirectorCheckStr = Arrays.asList(unDirectorCheckArr); + //护士未提交状态码集合 + String[] unNurseSubmitArr = {"1","2","6","14","256","512","514","518","526","768"}; + List unNurseSubmitStr = Arrays.asList(unNurseSubmitArr); + //护士质控员未提交状态码集合 + String[] unNurseCheckArr = {"16","18","22","30","272"}; + List unNurseCheckStr = Arrays.asList(unNurseCheckArr); + //护士长未提交状态码集合 + String[] unHeadNurseArr = {"62"}; + List unHeadNurseStr = Arrays.asList(unHeadNurseArr); + //病案室未提交状态码集合 + String[] unRecordRoomArr = {"64","1024"}; + List unRecordRoomStr = Arrays.asList(unRecordRoomArr); + List list = new ArrayList<>(); + for(Emr_Dictionary dept : depts) { + int allCount = 0; + //定义医生未提交数量 + int unDoctorSubmitCount = 0; + int unDoctorCheckCount = 0; + int unDirectorCheckCount = 0; + int unNurseSubmitCount = 0; + int unNurseCheckCount = 0; + int unHeadNurseCount = 0; + int unRecordRoomCount = 0; + for (SubmitRecord obj : unSubmitRecords) { + if(dept.getCode().equals(obj.getDeptName())) { + allCount++; + //判断属于哪个审核角色未提交状态 + if (unDoctorSubmitStr.contains(obj.getArchivestate())) { + unDoctorSubmitCount++; + } + if (unDoctorCheckStr.contains(obj.getArchivestate())) { + unDoctorCheckCount++; + } + if (unDirectorCheckStr.contains(obj.getArchivestate())) { + unDirectorCheckCount++; + } + if (unNurseSubmitStr.contains(obj.getArchivestate())) { + unNurseSubmitCount++; + } + if (unNurseCheckStr.contains(obj.getArchivestate())) { + unNurseCheckCount++; + } + if (unHeadNurseStr.contains(obj.getArchivestate())) { + unHeadNurseCount++; + } + if (unRecordRoomStr.contains(obj.getArchivestate())) { + unRecordRoomCount++; + } + } + } + if(allCount != 0){ + SubmitRecord record = new SubmitRecord(); + record.setCount(allCount); + record.setUnDoctorSubmitCount(unDoctorSubmitCount); + record.setUnDoctorCheckCount(unDoctorCheckCount); + record.setUnDirectorCheckCount(unDirectorCheckCount); + record.setUnNurseSubmitCount(unNurseSubmitCount); + record.setUnNurseCheckCount(unNurseCheckCount); + record.setUnHeadNurseCount(unHeadNurseCount); + record.setUnRecordRoomCount(unRecordRoomCount); + record.setDeptNameCn(dept.getName()); + record.setDeptName(dept.getCode()); + list.add(record); + } + } + return list; + } + /*public List selectUnCountGroupDept(RecordSearch recordSearch){ Integer infoId = recordSearch.getInfoId(); if(null != infoId){ //有按审核角色查询 @@ -47,13 +209,13 @@ public class RecordService { //填充各个角色数据 selectList(unSubmitRecords); return unSubmitRecords; - } + }*/ /** * 填充集合数据 * @param unSubmitRecords */ - private void selectList( List unSubmitRecords) { + private void selectList(List unSubmitRecords) { if(!CollectionUtils.isEmpty(unSubmitRecords)) { for (SubmitRecord obj : unSubmitRecords) { int count = obj.getCount(); @@ -63,7 +225,6 @@ public class RecordService { obj.setDoctorSubmitCount(doctorSubmitCount); obj.setDoctorSubmitPercent(Math.round(doctorSubmitCount * 100 / count) + "%"); - //医生质控员提交= 医生提交 - 医生质控员未提交 int doctorCheckCount = doctorSubmitCount - obj.getUnDoctorCheckCount(); obj.setDoctorCheckCount(doctorCheckCount); @@ -109,11 +270,103 @@ public class RecordService { } /** - * 病案室签收统计 + * 病案提交明细,按时间统计 + * @return + */ + public List getSignedRecordList(RecordSearch recordSearch){ + //按日期查询 + List dateList = recordMapper.selectGroupDate(recordSearch); + if(!CollectionUtils.isEmpty(dateList)){ + //查询属于需要校验完整的带分类的集合 + //设置查询的前后日期 + recordSearch.setEndDate(dateList.get(0).getDisDate()); + recordSearch.setStartDate(dateList.get(dateList.size()-1).getDisDate()); + List masterVoList = recordMapper.selectAllWithCompleteAssort(recordSearch); + //组织masterId分组数据 + List masterIdVoList = selectGroupDataByMasterId(masterVoList); + //按日期分组和masterId分组组织已提交和已归档的数量 + selectGroupDateByMasterIdList(dateList,masterIdVoList); + //转换百分比并有按科室查询时转换科室名称 + setDeptNameAndPercent(recordSearch, dateList); + } + return dateList; + } + + /** + * 按日期分组和masterId分组组织已提交和已归档的数量 + * @param dateSet 日期分组 + * @param masterIdVoList masterId分组数据 + * @return + */ + private void selectGroupDateByMasterIdList(List dateSet, List masterIdVoList) { + for(SubmitRecordStatistics submitRecordStatistics : dateSet){ + //定义该日期总数量 + int allCount = 0; + //定义已提交份数 + int count1 = 0; + //定义已归档份数 + int count2 = 0; + //定义完整份数 + int count3 = 0; + for (Archive_Master_Vo obj : masterIdVoList){ + if(obj.getDischargeDateTime().equals(submitRecordStatistics.getDisDate())){ + allCount++; + //获取状态码 + String archivestate = obj.getArchivestate(); + if("64".equals(archivestate) || "128".equals(archivestate) || "1024".equals(archivestate)){ + count1++; + } + if("128".equals(archivestate)){ + count2++; + } + if("1".equals(obj.getIsSuccess())){ + count3++; + } + } + } + submitRecordStatistics.setAllCount(allCount); + submitRecordStatistics.setCount1(count1); + submitRecordStatistics.setCount2(count2); + submitRecordStatistics.setCount3(count3); + } + } + + /** + * 组织masterId分组数据,带状态码,日期,是否完整 + * @param masterVoList * @return */ - public List getSignedRecordList(RecordSearch recordSearch) { - List list = recordMapper.selectCountWithDate(recordSearch); + private List selectGroupDataByMasterId(List masterVoList) { + //查询需要校验的分类集合 + List assortList = assortService.selectAllByIsCheck(); + //查询ext表的不完整的集合 + List archiveOtherExts = otherExtService.selectNotCompleteMidList(); + //组织masterId分组数据,带状态码,日期,是否完整 + for(Archive_Master_Vo obj : masterVoList) { + //定义ext表中不存在 + boolean exist = false; + if (!CollectionUtils.isEmpty(archiveOtherExts)) { + for (ArchiveOtherExt archiveOtherExt : archiveOtherExts) { + if (obj.getId().equals(archiveOtherExt.getId())) { + exist = true; + break; + } + } + } + //如果数量相等,且在ext表中不存在则isSuccess置为1 + if (obj.getCount() == assortList.size() && !exist) { + obj.setIsSuccess("1"); + } + } + return masterVoList; + } + + /** + * 转换百分比并有按科室查询时转换科室名称 + * @param recordSearch + * @param list + */ + private void setDeptNameAndPercent(RecordSearch recordSearch, List list) { String deptNameCn = "全部"; String deptName = recordSearch.getDeptName(); if(StringUtils.isNotBlank(deptName)){ @@ -132,7 +385,6 @@ public class RecordService { obj.setDeptNameCn(deptNameCn); } } - return list; } /** @@ -157,9 +409,9 @@ public class RecordService { * @param recordSearch * @return */ - public SubmitRecordStatistics selectOvertimeCount(RecordSearch recordSearch) { + public SubmitRecordStatistics selectOvertimeCount(RecordSearch recordSearch,HttpServletRequest request) throws Exception{ //查询超期记录数 - List submitRecords = selectUnCountGroupDept(recordSearch); + List submitRecords = selectUnCountGroupDept(recordSearch,request); //定义接收返回对象 SubmitRecordStatistics recordStatistics = new SubmitRecordStatistics(); if(!CollectionUtils.isEmpty(submitRecords)){ diff --git a/src/main/java/com/emr/service/ipml/ZdAssortService.java b/src/main/java/com/emr/service/ipml/ZdAssortService.java index 5b3c8e5..eaca284 100644 --- a/src/main/java/com/emr/service/ipml/ZdAssortService.java +++ b/src/main/java/com/emr/service/ipml/ZdAssortService.java @@ -28,4 +28,10 @@ public class ZdAssortService { public List selectAll(Zd_Assort assort){ return assortMapper.selectAll(assort); } + public List selectAllByIsCheck(){ + Zd_Assort assort = new Zd_Assort(); + assort.setPrintFlag("0"); + assort.setIsCheck(1); + return assortMapper.selectAll(assort); + } } diff --git a/src/main/java/com/emr/vo/SubmitRecord.java b/src/main/java/com/emr/vo/SubmitRecord.java index 65966bc..c52a454 100644 --- a/src/main/java/com/emr/vo/SubmitRecord.java +++ b/src/main/java/com/emr/vo/SubmitRecord.java @@ -7,6 +7,12 @@ public class SubmitRecord { private String deptName; private String deptNameCn; private Integer count; + private String archivestate; + private String dischargeDateTime; + /** + * 是否死亡 等于5是死亡 + */ + private String dischargeDisposition; private Integer doctorSubmitCount; private Integer unDoctorSubmitCount; diff --git a/src/main/resources/mapper/ArchiveOtherExtMapper.xml b/src/main/resources/mapper/ArchiveOtherExtMapper.xml index 5b20e66..3c5bda7 100644 --- a/src/main/resources/mapper/ArchiveOtherExtMapper.xml +++ b/src/main/resources/mapper/ArchiveOtherExtMapper.xml @@ -535,4 +535,32 @@ eTime > create_time AND archive_other_ext.ID IN ( ${ids} ) + + + + diff --git a/src/main/resources/mapper/Archive_DetailMapper.xml b/src/main/resources/mapper/Archive_DetailMapper.xml index 3c765fd..03f06d6 100644 --- a/src/main/resources/mapper/Archive_DetailMapper.xml +++ b/src/main/resources/mapper/Archive_DetailMapper.xml @@ -112,13 +112,10 @@ + + \ No newline at end of file diff --git a/src/main/resources/mapper/Emr_DictionaryMapper.xml b/src/main/resources/mapper/Emr_DictionaryMapper.xml index cd20161..5d3e3be 100644 --- a/src/main/resources/mapper/Emr_DictionaryMapper.xml +++ b/src/main/resources/mapper/Emr_DictionaryMapper.xml @@ -368,9 +368,19 @@ update_time = #{updateTime,jdbcType=NCHAR}, - - where id = #{id,jdbcType=NVARCHAR} + + \ No newline at end of file diff --git a/src/main/resources/mapper/RecordMapper.xml b/src/main/resources/mapper/RecordMapper.xml index 306fc08..910a9c7 100644 --- a/src/main/resources/mapper/RecordMapper.xml +++ b/src/main/resources/mapper/RecordMapper.xml @@ -5,19 +5,8 @@ - + AND CONVERT(varchar(10),archive_master.discharge_date_time, 23) != '1801-02-03' - - - - - AND archive_master.DOCTOR_IN_CHARGE in (#{doctorInCharge}) - - - - AND archive_master.ArchiveState != '128' - - AND archive_master.dept_name in (${deptName}) @@ -34,8 +23,22 @@ + + + + + + + AND archive_master.DOCTOR_IN_CHARGE in (#{doctorInCharge}) + + + + AND archive_master.ArchiveState != '128' + + + - AND CONVERT(varchar(10),archive_master.discharge_date_time, 23) != '1801-02-03' + AND archive_master.discharge_date_time != '1801-02-03 00:00:00' AND archive_master.discharge_date_time != '' AND archive_master.discharge_date_time is not null AND archive_master.dept_name in (${deptName}) @@ -85,6 +88,88 @@ + + + and datediff( @@ -336,52 +422,52 @@ LEFT JOIN ( + SELECT + MasterID, + case + when + substring(inp_no,len(inp_no),len(inp_no)+1) = 'B' + then + COUNT( AssortID ) + 2 + else + COUNT( AssortID ) + end count + FROM + ( SELECT - MasterID, - case - when - substring(inp_no,len(inp_no),len(inp_no)+1) = 'B' - then - COUNT( AssortID ) + 2 - else - COUNT( AssortID ) - end count - FROM - ( - SELECT - archive_detail.MasterID, - archive_master.inp_no, - dbo.archive_detail.AssortID - FROM - dbo.archive_detail - INNER JOIN dbo.zd_assort ON dbo.archive_detail.AssortID = dbo.zd_assort.assort_id - AND dbo.zd_assort.print_flag = 0 - AND dbo.zd_assort.is_check = 1 - inner join archive_master - on archive_detail.MasterID = archive_master.id - WHERE - ( dbo.archive_detail.flag = 0 ) - GROUP BY - archive_detail.MasterID, - archive_master.inp_no, - dbo.archive_detail.AssortID - ) temp - GROUP BY - MasterID,inp_no - ) temp ON archive_master.id = temp.MasterID - LEFT JOIN ( - SELECT - MID, - COUNT( MID ) inspectionCount + archive_detail.MasterID, + archive_master.inp_no, + dbo.archive_detail.AssortID FROM - archive_other_ext + dbo.archive_detail + INNER JOIN dbo.zd_assort ON dbo.archive_detail.AssortID = dbo.zd_assort.assort_id + AND dbo.zd_assort.print_flag = 0 + AND dbo.zd_assort.is_check = 1 + inner join archive_master + on archive_detail.MasterID = archive_master.id WHERE - sysFlag IN ( 3, 6 ) - AND ISNULL( DID, '' )= '' - AND ISNULL( MID, '' )!= '' + ( dbo.archive_detail.flag = 0 ) GROUP BY - MID - ) archive_other_ext ON archive_master.id = archive_other_ext.MID + archive_detail.MasterID, + archive_master.inp_no, + dbo.archive_detail.AssortID + ) temp + GROUP BY + MasterID,inp_no + ) temp ON archive_master.id = temp.MasterID + LEFT JOIN ( + SELECT + MID, + COUNT( MID ) inspectionCount + FROM + archive_other_ext + WHERE + sysFlag IN ( 3, 6 ) + AND ISNULL( DID, '' )= '' + AND ISNULL( MID, '' )!= '' + GROUP BY + MID + ) archive_other_ext ON archive_master.id = archive_other_ext.MID WHERE ISNULL( count, 0 ) = ( SELECT COUNT( assort_id ) FROM zd_assort WHERE print_flag = 0 AND is_check = 1 ) AND inspectionCount IS NULL @@ -419,7 +505,7 @@ from archive_master - inner join v_overtime_record + LEFT JOIN v_overtime_record on archive_master.id = v_overtime_record.id inner join (select DOCTOR_IN_CHARGE,COUNT(DOCTOR_IN_CHARGE) overTimeCounts from archive_master @@ -442,4 +528,64 @@ + + + + \ No newline at end of file diff --git a/src/main/resources/mapper/V_CountMapper.xml b/src/main/resources/mapper/V_CountMapper.xml index 01cb1bb..2609284 100644 --- a/src/main/resources/mapper/V_CountMapper.xml +++ b/src/main/resources/mapper/V_CountMapper.xml @@ -201,6 +201,7 @@ + order by deptCode \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jspf/comm.jspf b/src/main/webapp/WEB-INF/jspf/comm.jspf index de0ff04..f69066c 100644 --- a/src/main/webapp/WEB-INF/jspf/comm.jspf +++ b/src/main/webapp/WEB-INF/jspf/comm.jspf @@ -58,6 +58,6 @@ - + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp b/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp index ef5fccb..7594c47 100644 --- a/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp +++ b/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp @@ -653,7 +653,11 @@ - - + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp b/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp index beca809..5399f31 100644 --- a/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp +++ b/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp @@ -448,5 +448,5 @@ - + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp b/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp index d4900e1..716d26a 100644 --- a/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp +++ b/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp @@ -655,7 +655,7 @@ - + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/record/deptOverTimeInfo.jsp b/src/main/webapp/WEB-INF/views/record/deptOverTimeInfo.jsp index 7b5bbde..cd840d9 100644 --- a/src/main/webapp/WEB-INF/views/record/deptOverTimeInfo.jsp +++ b/src/main/webapp/WEB-INF/views/record/deptOverTimeInfo.jsp @@ -38,6 +38,7 @@ +
@@ -142,6 +143,7 @@
- + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/record/submitRecord.jsp b/src/main/webapp/WEB-INF/views/record/submitRecord.jsp index a37b25e..d3c4569 100644 --- a/src/main/webapp/WEB-INF/views/record/submitRecord.jsp +++ b/src/main/webapp/WEB-INF/views/record/submitRecord.jsp @@ -31,45 +31,45 @@ width: 168px !important; } - /* .table{ - overflow: hidden; - }*/ - thead>tr:first-child>th:nth-child(8){ + /* .table{ + overflow: hidden; + }*/ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:first-child>th:nth-child(9){ background:green } - thead>tr:first-child>th:nth-child(7){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:first-child>th:nth-child(8){ background:mediumseagreen; } - thead>tr:first-child>th:nth-child(6){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:first-child>th:nth-child(7){ background:limegreen; } - thead>tr:first-child>th:nth-child(5){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:first-child>th:nth-child(6){ background:springgreen; } - thead>tr:first-child>th:nth-child(4){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:first-child>th:nth-child(5){ background:lawngreen; } - thead>tr:first-child>th:nth-child(3){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:first-child>th:nth-child(4){ background:palegreen; } - thead>tr:last-child>th:nth-child(-n+18){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:last-child>th:nth-child(-n+18){ background:green } - thead>tr:last-child>th:nth-child(-n+15){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:last-child>th:nth-child(-n+15){ background:mediumseagreen; } - thead>tr:last-child>th:nth-child(-n+12){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:last-child>th:nth-child(-n+12){ background:limegreen; } - thead>tr:last-child>th:nth-child(-n+9){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:last-child>th:nth-child(-n+9){ background:springgreen; } - thead>tr:last-child>th:nth-child(-n+6){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:last-child>th:nth-child(-n+6){ background:lawngreen; } - thead>tr:last-child>th:nth-child(-n+3){ + #tableDiv>.bootstrap-table>.fixed-table-container>.fixed-table-header .table>thead>tr:last-child>th:nth-child(-n+3){ background:palegreen; } @@ -79,13 +79,9 @@ -<%-- - - - - - ---%> + + +
@@ -111,9 +107,9 @@
- +
@@ -150,8 +146,25 @@
+<%--查看流程弹窗--%> + - + + \ 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 0cc1e5e..a473d3e 100644 --- a/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp +++ b/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp @@ -588,6 +588,6 @@ var path = "${path}"; - + \ No newline at end of file diff --git a/src/main/webapp/static/js/beHospList/beHospList.js b/src/main/webapp/static/js/beHospList/beHospList.js index c79d257..18fd483 100644 --- a/src/main/webapp/static/js/beHospList/beHospList.js +++ b/src/main/webapp/static/js/beHospList/beHospList.js @@ -153,8 +153,6 @@ function initTable() { align: 'left', valign: 'middle', formatter: function (value, row) { - var url = window.location.href; - var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", ""); var html = ""; if (selectPower == 1) { html += ''; @@ -468,8 +466,13 @@ $("#verifyBtn").on('click', function () { //归档状态改为初审还是有就是初审内容保存 //判断完整性 var result = checkSuccessMethod(id); - if (result != '完整') { - $("#resultLabel").text("完整性未通过:" + result + ",是否强制提交?"); + if(result != '完整'){ + result = "完整性未通过:"+result+";"; + } + $("#resultLabel1").text(result); + var c1s = selectC1WithNotCollectFinishByPatientId(); + $("#resultLabel2").text(c1s); + if (result != '' || c1s != '') { $('#WZModal').modal({ backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。 keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。 diff --git a/src/main/webapp/static/js/comm.js b/src/main/webapp/static/js/comm.js index c4d0e55..bee1d13 100644 --- a/src/main/webapp/static/js/comm.js +++ b/src/main/webapp/static/js/comm.js @@ -107,7 +107,7 @@ $(document).keyup(function(event){ * 判断出院日期是否是1801-02-03 * */ function operDisDate(value){ - if(value != ''){ + if(value != '' && value != null){ if(value.length >= 10){ value = value.substring(0, 10); } diff --git a/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js b/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js index 23d8a50..ae9d216 100644 --- a/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js +++ b/src/main/webapp/static/js/hospitalCommom/hospitalCommom.js @@ -14,6 +14,25 @@ function checkSuccessMethod(masterId){ }); return returnStr; } +//查询根据记账号查询重新采集未完成的文件名称集合 +function selectC1WithNotCollectFinishByPatientId(){ + var masterId = $("#archiveId").val(); + $.ajaxSetup({ //ajax异步转同步 + async : false + }); + var returnStr = ''; + var checkData=$("#table").bootstrapTable('getRowByUniqueId',masterId); + var patientId = checkData.patientId; + $.get(path+"/archiveExt/selectC1WithNotCollectFinishByPatientId/"+patientId,function(result){ + if(result.code == 100){ + var resultSuccess = result.extend.c1s; + if(resultSuccess != ''){ + returnStr += '重新采集未完成:'+resultSuccess+";"; + } + } + },'json'); + return returnStr; +} //加载科室内主管医生列表 function loadDoctorInCharge(){ var deptName = getDeptNameForQuery(); @@ -617,7 +636,7 @@ function initTable2() { checkbox: true, width: 25, align: 'center', - hidden: true, + hidden: true }, { title: '序', field: 'id', @@ -645,23 +664,14 @@ function initTable2() { align: 'left', valign: 'middle', sortable: true, - width: 150, // 定义列的宽度,单位为像素px - formatter: function (value, row, index) { - //是否同步过 - var createTime = row.createTime; - if(createTime != null){ - return selectTimeColor(createTime,row.uploaddatetime,2); - }else{ - return value; - } - } + width: 150 }, { title: '来源', field: 'source', align: 'center', valign: 'middle', - width: 50, // 定义列的宽度,单位为像素px + width: 50 // 定义列的宽度,单位为像素px }, { title: '状态', @@ -1111,6 +1121,7 @@ function loadTable5Table(rows){ } } //任务详情 +var pageNumber; function initTable5(data,sidePagination) { var option = {}; $("#table5").bootstrapTable("destroy"); @@ -1296,7 +1307,11 @@ function initTable5(data,sidePagination) { return operDisTime(value); } } - ] + ], + //监听分页点击事件 + onPageChange: function(num, type) { + pageNumber = num; + }, }; if(data == ''){ option.url = path+"/archiveExt/getArchiveExtInfo"; @@ -1388,11 +1403,13 @@ function submitUpdate(ids,notNursingIds,detailIds,sysFlag) { data:{ids:ids,notNursingIds:notNursingIds,detailIds:detailIds,jzh:jzh,masterId:$("#idLab").text(),sysFlag:sysFlag}, dataType:'json', success:function (data) { - debugger if(data.code == 100){ toastr.success("同步更新已发送,请耐心等待!"); //刷新列表 initTable5('','server'); + setTimeout(function() { + $('#table5').bootstrapTable('selectPage', pageNumber); + },500); $("#loading").show(); timeInterval = setInterval(function () { if(otherExtIds != '') { @@ -1411,6 +1428,9 @@ function submitUpdate(ids,notNursingIds,detailIds,sysFlag) { setTimeout(function(){ //刷新列表 initTable5('','server'); + setTimeout(function() { + $('#table5').bootstrapTable('selectPage', pageNumber); + },500); },times*1000); //撤销监听 cancleListentingSuccess(); @@ -1472,8 +1492,3 @@ $("#searchBtn6").click(function(){ submitUpdate(ids,notNursingIds,detailIds,sysflag); } }) - -//模态框 关闭前事件关闭任务详情,刷新表格2 -$('#workDetailModal').on('hide.bs.modal', function () { - initTable2(); -}); \ No newline at end of file diff --git a/src/main/webapp/static/js/record/deptOverTimeInfo.js b/src/main/webapp/static/js/record/deptOverTimeInfo.js index 8663db4..e5e5f0f 100644 --- a/src/main/webapp/static/js/record/deptOverTimeInfo.js +++ b/src/main/webapp/static/js/record/deptOverTimeInfo.js @@ -12,26 +12,7 @@ $(function(){ //加载病案统计 selectOvertimeCount(); }) -//未终审页面、在院浏览、出院浏览查看病历时按审核角色查询分类,主要查询checker=2护士的只查看护理记录单和体温表 -function getChecker(){ - $.get(path+'/beHosp/getChecker',function(data){ - if(data.code == 100){ - var checker = data.extend.checker; - $("#checker").val(checker); - //根据操作角色显示退回角色 - if(checker == 1){ - $("#returnDoctor").show(); - }else if(checker == 2){ - $("#returnNurse").show(); - }else{ - $("#returnDoctor").show(); - $("#returnNurse").show(); - } - }else{ - toastr.error(data.msg); - } - },'json'); -} + //加载科室内主管医生列表 function loadOverTimeDoctorInCharge(){ $.ajax({ @@ -62,6 +43,7 @@ function selectOvertimeCount(){ type:'get', url:path+'/record/selectOvertimeCount', dataType:'json', + async:false, data:{ startDate: $("#startTime1").val(), endDate: $("#endTime1").val(), @@ -258,269 +240,17 @@ function initTable() { }, //展开详情事件 onExpandRow: function (index, row, $detail) {//點擊datagrid 展開按鈕事件 + var tableId = "table1_" + row.deptName; var html = '
\n' + - '
\n' + + '
\n' + '
'; $detail.html(html); var table1Data = getTable1Data(row); - initTable1(table1Data); + initTable1(table1Data,tableId); } }); } -/** - * 组织表1审核角色表的数据 - * @param table1Data - */ -function getTable1Data(row){ - var data = []; - //查询是否带审核节点查询 - var infoId = $("#infoId").val(); - var count2 = row.unDoctorSubmitCount; - var map2 = getDataMap(2,'医生未提交',count2,row); - var count3 = row.unDoctorCheckCount; - var map3 = getDataMap(3,'医生质控员未提交',count3,row); - var count4 = row.unDirectorCheckCount; - var map4 = getDataMap(4,'科主任未提交',count4,row); - var count5 = row.unNurseSubmitCount; - var map5 = getDataMap(5,'护士未提交',count5,row); - var count6 = row.unNurseCheckCount; - var map6 = getDataMap(6,'护士质控员未提交',count6,row); - var count7 = row.unHeadNurseCount; - var map7 = getDataMap(7,'护士长未提交',count7,row); - var count8 = row.headNurseCount; - var map8 = getDataMap(8,'病案室未提交',count8,row); - if(infoId == ''){ - if(count2 > 0) { - data.push(map2); - } - if(count3 > 0) { - data.push(map3); - } - if(count4 > 0) { - data.push(map4); - } - if(count5 > 0) { - data.push(map5); - } - if(count6 > 0) { - data.push(map6); - } - if(count7 > 0) { - data.push(map7); - } - if(count8 > 0) { - data.push(map8); - } - }else{ - if(infoId == '2' && count2 > 0){ - data.push(map2); - } - if(infoId == '3' && count3 > 0){ - data.push(map3); - } - if(infoId == '4' && count4 > 0){ - data.push(map4); - } - if(infoId == '5' && count5 > 0){ - data.push(map5); - } - if(infoId == '6' && count6 > 0){ - data.push(map6); - } - if(infoId == '7' && count7 > 0){ - data.push(map7); - } - if(infoId == '8' && count8 > 0){ - data.push(map8); - } - } - return data; -} - - -/** - * 组织map - * @param roleId - * @param title - * @param count - * @param row - * @returns {*} - */ -function getDataMap(roleId,title,count,row){ - if(count != 0){ - var map = new Map(); - map['deptCode'] = row.deptName; - map['deptNameCn'] = row.deptNameCn; - map['unCount'] = count; - map['role'] = title; - map['infoId'] = roleId; - return map; - }else{ - return []; - } -} -//第二层,按审核角色分层 -function initTable1(table1Data) { - $("#table1").bootstrapTable({ // 对应table标签的id - data:table1Data, - sidePagination: 'client', // 设置为服务器端分页 客户端:client - cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true - striped: true, //表格显示条纹,默认为false - pagination: true, // 在表格底部显示分页组件,默认false - paginationShowPageGo: true, - pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。 - searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 - detailView: true,//是否可展开 - undefinedText: '--', //当数据为 undefined 时显示的字符 - singleSelect: false,//设置True 将禁止多选 - clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox - paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。 - height:300, - searchTimeOut: 500,// 默认500 设置搜索超时时间。 - showHeader: true,//是否显示列头。 - columns: [ - { - title: '序号', - formatter: function (value, row, index) { - return index + 1; - } - }, - { - title: '出院科室', - field: 'deptNameCn' - }, - { - title: '审核角色', - field: 'role' - }, - { - title: '未提交份数', - field: 'unCount' - } - ], - onLoadSuccess: function (result) { //加载成功时执行 - $(".page-list").show(); - //reloadTableHeight("table1"); - }, - //展开详情事件 - onExpandRow: function (index, row, $detail) {//點擊datagrid 展開按鈕事件 - var html = '
\n' + - '
\n' + - '
'; - $detail.html(html); - initTable2(row); - } - }); -} -//第三层,按科室审核角色分组查 -function initTable2(rows) { - $("#table2").bootstrapTable({ // 对应table标签的id - url: path + "/record/getRecordGroupDeptAndRole", // 获取表格数据的url - sidePagination: 'server', // 设置为服务器端分页 客户端:client - cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true - striped: true, //表格显示条纹,默认为false - pagination: true, // 在表格底部显示分页组件,默认false - paginationShowPageGo: true, - pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。 - searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 - detailView: false,//是否可展开 - undefinedText: '--', //当数据为 undefined 时显示的字符 - singleSelect: false,//设置True 将禁止多选 - clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox - paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。 - height:553, - searchTimeOut: 500,// 默认500 设置搜索超时时间。 - showHeader: true,//是否显示列头。 - //查询条件 - queryParams: function (params) { - return queryParamsInitTable2(params,this,rows); - }, - columns: [ - { - title: '序号', - formatter: function (value, row, index) { - return index + 1; - } - }, - { - title: '主管医生', - field: 'doctorInCharge' - }, - { - title: '医生工号', - field: 'doctorInChargeCode' - }, - { - title: '超期份数', - field: 'overTimeCounts' - }, - { - title: '出院科室', - field: '', - formatter: function (value, row, index) { - return rows.deptNameCn; - } - - }, - { - title: '患者姓名', - field: 'name' - }, - { - title: '住院号', - field: 'inpNo' - }, - { - title: '住院次数', - field: 'visitId' - }, - { - title: '出院日期', - field: 'dischargeDateTime', - formatter: function (value, row, index) { - return operDisDate(value); - } - }, - { - title: '超期天数', - field: 'overtimeDays' - }, - { - title: '状态', - field: 'status' - }, - { - title:'操作', - align: 'center', - valign: 'middle', - formatter: function (value, row, index) { - return ''; - }, - events:{ - //查看流程 - 'click .showFlowInfo': function (e, value, row) { - $('#showFlowInfo').modal({ - backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。 - keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。 - show: true//弹出对话框 - }); - var masterId = row.id; - var name = encodeURI(row.name); - var inpNo = row.inpNo; - var visitId = row.visitId; - var dischargeDateTime = row.dischargeDateTime; - $("#showFlowInfoIframe").prop("src",path+"/beHosp/toShowFlowInfo?id="+masterId+"&name="+name+"&inpNo="+inpNo+"&visitId="+visitId+"&dischargeDateTime="+dischargeDateTime+"&role="+$("#checker").val()); - } - } - } - ], - onLoadSuccess: function (result) { //加载成功时执行 - $(".page-list").show(); - //reloadTableHeight("table1"); - }, - }); -} //各表格查询条件 function queryParams(params,_this,deptName){ var currPageSize = _this.pageSize; @@ -554,69 +284,6 @@ function queryParams(params,_this,deptName){ return temp; } -/** - * 明细表格查询条件 - * @param params - * @param queryParamsInitTable2 - * @returns {{deptName, flag: number, infoId: (*|jQuery|*|*|*|*), offset: *, endDate: (*|jQuery|*|*|*|*), limit: (*|number), startDate: (*|jQuery|*|*|*|*), doctorInCharge}} - */ -function queryParamsInitTable2(params,_this,row){ - 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 infoId = row.infoId; - var deptName = row.deptCode; - var operRole = 0; - if(infoId < 5){ - operRole = 1; - }else if(infoId == 5 || infoId == 6){ - operRole = 2; - }else{ - operRole = 4; - } - var temp = { - offset:offset, - limit:limit, - startDate: $("#startTime1").val(), - endDate: $("#endTime1").val(), - flag:2, - deptName:deptName, - doctorInCharge:getSelecteds("doctorInCharge"), - infoId:infoId, - operRole:operRole - }; - return temp; -} -//封装展开显示按钮方法 -/*function showDetail(level,deptName){ - return '展开显示'} -//封装展开显示跳转方法 -function showDetailMethod(level,deptName){ - var startDate =$("#startTime1").val(); - var endDate = $("#endTime1").val(); - var timeInterval = $("#timeInterval").val(); - var name = $("#name").val(); - var inpNo = $("#inpNo").val(); - if(deptName == null){ - deptName = getDeptName(); - } - var urlTemp = url + level + "?deptName="+deptName+"&startDate="+ startDate - + "&endDate="+endDate+"&timeInterval="+timeInterval+"&name="+name - +"&inpNo="+inpNo; - window.open(urlTemp); -}*/ //查询按钮 $('#searchBtnStatistics').click(function () { //查询之后重新从第一页算起 diff --git a/src/main/webapp/static/js/record/expandRowCommom.js b/src/main/webapp/static/js/record/expandRowCommom.js new file mode 100644 index 0000000..af3e897 --- /dev/null +++ b/src/main/webapp/static/js/record/expandRowCommom.js @@ -0,0 +1,319 @@ +//未终审页面、在院浏览、出院浏览查看病历时按审核角色查询分类,主要查询checker=2护士的只查看护理记录单和体温表 +function getChecker(){ + $.get(path+'/beHosp/getChecker',function(data){ + if(data.code == 100){ + var checker = data.extend.checker; + $("#checker").val(checker); + //根据操作角色显示退回角色 + if(checker == 1){ + $("#returnDoctor").show(); + }else if(checker == 2){ + $("#returnNurse").show(); + }else{ + $("#returnDoctor").show(); + $("#returnNurse").show(); + } + }else{ + toastr.error(data.msg); + } + },'json'); +} + +/** + * 组织表1审核角色表的数据 + * @param table1Data + */ +function getTable1Data(row){ + var data = []; + //查询是否带审核节点查询 + var infoId = $("#infoId").val(); + var count2 = row.unDoctorSubmitCount; + var map2 = getDataMap(2,'医生未提交',count2,row); + var count3 = row.unDoctorCheckCount; + var map3 = getDataMap(3,'医生质控员未提交',count3,row); + var count4 = row.unDirectorCheckCount; + var map4 = getDataMap(4,'科主任未提交',count4,row); + var count5 = row.unNurseSubmitCount; + var map5 = getDataMap(5,'护士未提交',count5,row); + var count6 = row.unNurseCheckCount; + var map6 = getDataMap(6,'护士质控员未提交',count6,row); + var count7 = row.unHeadNurseCount; + var map7 = getDataMap(7,'护士长未提交',count7,row); + var count8 = row.headNurseCount; + var map8 = getDataMap(8,'病案室未提交',count8,row); + if(infoId == '' || infoId == undefined){ + if(count2 > 0) { + data.push(map2); + } + if(count3 > 0) { + data.push(map3); + } + if(count4 > 0) { + data.push(map4); + } + if(count5 > 0) { + data.push(map5); + } + if(count6 > 0) { + data.push(map6); + } + if(count7 > 0) { + data.push(map7); + } + if(count8 > 0) { + data.push(map8); + } + }else{ + if(infoId == '2' && count2 > 0){ + data.push(map2); + } + if(infoId == '3' && count3 > 0){ + data.push(map3); + } + if(infoId == '4' && count4 > 0){ + data.push(map4); + } + if(infoId == '5' && count5 > 0){ + data.push(map5); + } + if(infoId == '6' && count6 > 0){ + data.push(map6); + } + if(infoId == '7' && count7 > 0){ + data.push(map7); + } + if(infoId == '8' && count8 > 0){ + data.push(map8); + } + } + return data; +} + +/** + * 组织map + * @param roleId + * @param title + * @param count + * @param row + * @returns {*} + */ +function getDataMap(roleId,title,count,row){ + if(count != 0){ + var map = new Map(); + map['deptCode'] = row.deptName; + map['deptNameCn'] = row.deptNameCn; + map['unCount'] = count; + map['role'] = title; + map['infoId'] = roleId; + return map; + }else{ + return []; + } +} + +//第二层,按审核角色分层 +function initTable1(table1Data,tableId) { + $("#"+tableId).bootstrapTable({ // 对应table标签的id + data:table1Data, + sidePagination: 'client', // 设置为服务器端分页 客户端:client + cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true + striped: true, //表格显示条纹,默认为false + pagination: true, // 在表格底部显示分页组件,默认false + paginationShowPageGo: true, + pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。 + searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 + detailView: true,//是否可展开 + undefinedText: '--', //当数据为 undefined 时显示的字符 + singleSelect: false,//设置True 将禁止多选 + clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox + paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。 + height:300, + searchTimeOut: 500,// 默认500 设置搜索超时时间。 + showHeader: true,//是否显示列头。 + columns: [ + { + title: '序号', + formatter: function (value, row, index) { + return index + 1; + } + }, + { + title: '出院科室', + field: 'deptNameCn' + }, + { + title: '审核角色', + field: 'role' + }, + { + title: '未提交份数', + field: 'unCount' + } + ], + onLoadSuccess: function (result) { //加载成功时执行 + $(".page-list").show(); + }, + //展开详情事件 + onExpandRow: function (index, row, $detail) { + var tableId = "table2_"+row.deptCode + "_" + row.infoId; + //點擊datagrid 展開按鈕事件 + var html = '
\n' + + '
\n' + + '
'; + $detail.html(html); + initTable2(row,tableId); + } + }); +} +//第三层,按科室审核角色分组查 +function initTable2(rows,tableId) { + $("#"+tableId).bootstrapTable({ // 对应table标签的id + url: path + "/record/getRecordGroupDeptAndRole", // 获取表格数据的url + sidePagination: 'server', // 设置为服务器端分页 客户端:client + cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true + striped: true, //表格显示条纹,默认为false + pagination: true, // 在表格底部显示分页组件,默认false + paginationShowPageGo: true, + pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。 + searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 + detailView: false,//是否可展开 + undefinedText: '--', //当数据为 undefined 时显示的字符 + singleSelect: false,//设置True 将禁止多选 + clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox + paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。 + height:553, + searchTimeOut: 500,// 默认500 设置搜索超时时间。 + showHeader: true,//是否显示列头。 + //查询条件 + queryParams: function (params) { + return queryParamsInitTable2(params,this,rows); + }, + columns: [ + { + title: '序号', + formatter: function (value, row, index) { + return index + 1; + } + }, + { + title: '主管医生', + field: 'doctorInCharge' + }, + { + title: '医生工号', + field: 'doctorInChargeCode' + }, + { + title: '超期份数', + field: 'overTimeCounts' + }, + { + title: '出院科室', + formatter: function (value, row, index) { + return rows.deptNameCn; + } + + }, + { + title: '患者姓名', + field: 'name' + }, + { + title: '住院号', + field: 'inpNo' + }, + { + title: '住院次数', + field: 'visitId' + }, + { + title: '出院日期', + field: 'dischargeDateTime', + formatter: function (value, row, index) { + return operDisDate(value); + } + }, + { + title: '超期天数', + field: 'overtimeDays' + }, + { + title: '状态', + field: 'status' + }, + { + title:'操作', + align: 'center', + valign: 'middle', + formatter: function (value, row, index) { + return ''; + }, + events:{ + //查看流程 + 'click .showFlowInfo': function (e, value, row) { + $('#showFlowInfo').modal({ + backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。 + keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。 + show: true//弹出对话框 + }); + var masterId = row.id; + var name = encodeURI(row.name); + var inpNo = row.inpNo; + var visitId = row.visitId; + var dischargeDateTime = row.dischargeDateTime; + $("#showFlowInfoIframe").prop("src",path+"/beHosp/toShowFlowInfo?id="+masterId+"&name="+name+"&inpNo="+inpNo+"&visitId="+visitId+"&dischargeDateTime="+dischargeDateTime+"&role="+$("#checker").val()); + } + } + } + ], + onLoadSuccess: function (result) { //加载成功时执行 + $(".page-list").show(); + } + }); +} + +/** + * 明细表格查询条件 + * @param params + * @param queryParamsInitTable2 + * @returns {{deptName, flag: number, infoId: (*|jQuery|*|*|*|*), offset: *, endDate: (*|jQuery|*|*|*|*), limit: (*|number), startDate: (*|jQuery|*|*|*|*), doctorInCharge}} + */ +function queryParamsInitTable2(params,_this,row){ + 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 infoId = row.infoId; + var deptName = row.deptCode; + var operRole = 0; + if(infoId < 5){ + operRole = 1; + }else if(infoId == 5 || infoId == 6){ + operRole = 2; + }else{ + operRole = 4; + } + var temp = { + offset:offset, + limit:limit, + startDate: $("#startTime1").val(), + endDate: $("#endTime1").val(), + flag:$("#flag").val(), + deptName:deptName, + doctorInCharge:getSelecteds("doctorInCharge"), + infoId:infoId, + operRole:operRole + }; + return temp; +} \ No newline at end of file diff --git a/src/main/webapp/static/js/record/signedRecord.js b/src/main/webapp/static/js/record/signedRecord.js index bcc4533..0714c4d 100644 --- a/src/main/webapp/static/js/record/signedRecord.js +++ b/src/main/webapp/static/js/record/signedRecord.js @@ -175,7 +175,7 @@ function formatPercent(value){ return value; } } -//第二层,按科室分组查 +//按日期分组查 function initTable() { $("#table").bootstrapTable({ // 对应table标签的id url: path + "/record/getSignedRecordList", // 获取表格数据的url diff --git a/src/main/webapp/static/js/record/submitRecord.js b/src/main/webapp/static/js/record/submitRecord.js index e88ef0c..bce4055 100644 --- a/src/main/webapp/static/js/record/submitRecord.js +++ b/src/main/webapp/static/js/record/submitRecord.js @@ -8,19 +8,8 @@ $(function(){ initTable(); //加载病案统计 selectCount(); - //获取加载层数级 - /*var level = $("#level").val(); - switch (level) { - case '1': - initTable(); - break; - case '2': - initTable1(); - break; - case '3': - initTable2(getDeptName(),'table2'); - break; - }*/ + //赋值审核角色 + getChecker(); }) //加载病案统计 function selectCount(){ @@ -163,7 +152,7 @@ function initTable() { sidePagination: 'server', // 设置为服务器端分页 客户端:client toolbar: '#toolbar',//指定工具栏 searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 - detailView:false,//是否可展开 + detailView:true,//是否可展开 undefinedText: '--', //当数据为 undefined 时显示的字符 singleSelect: false,//设置True 将禁止多选 clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox @@ -335,227 +324,24 @@ function initTable() { return formatPercent(value); } }, - /*{ - title:'操作', - align: 'center', - valign: 'middle', - formatter: function (value, row, index) { - var allRecordCount = row.allRecordCount; - if(allRecordCount != 0){ - return showDetail('2',null); - } - } - }*/ ]], onLoadSuccess: function (result) { //加载成功时执行 $(".page-list").show(); }, - /*//展开详情事件 - onExpandRow: function (index, row, $detail) {//點擊datagrid 展開按鈕事件 - var html = '
\n' + - '
\n' + - '
'; - $detail.html(html); - initTable1(); - }*/ - }); -} - -//第二层,按科室分组查 -/*function initTable1() { - $("#table1").bootstrapTable({ // 对应table标签的id - url: path + "/statistics/getRecordStatisticsGroupDept", // 获取表格数据的url - cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true - striped: true, //表格显示条纹,默认为false - pagination: true, // 在表格底部显示分页组件,默认false - paginationShowPageGo: true, - pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。 - sidePagination: 'server', // 设置为服务器端分页 客户端:client - searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 - detailView: true,//是否可展开 - undefinedText: '--', //当数据为 undefined 时显示的字符 - singleSelect: false,//设置True 将禁止多选 - clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox - paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。 - height:514, - searchTimeOut: 500,// 默认500 设置搜索超时时间。 - showHeader: true,//是否显示列头。 - //查询条件 - queryParams: function (params) { - return queryParams(params,this,''); - }, - columns: [ - { - title: '序号', - align: 'center', - formatter: function (value, row, index) { - return index + 1; - } - }, - { - title: '出院科室', - field: 'deptNameCn', - align: 'left' - }, - { - title: '出院人数', - field: 'allRecordCount', - align: 'center' - }, - { - title: '总文件数', - field: 'allFileCount', - align: 'center' - }, - { - title: '总页数', - field: 'allPageCount', - align: 'center' - }, - { - title: '自动采集总文件数', - field: 'autoCollectionFileCount', - align: 'center' - }, - { - title: '自动采集总页数', - field: 'autoCollectionPageCount', - align: 'center' - }, - { - title: '扫描上传总文件数', - field: 'manualScanFileCount', - align: 'center' - }, - { - title: '扫描上传总页数', - field: 'manualScanPageCount', - align: 'center' - }, - { - title:'操作', - align: 'center', - valign: 'middle', - formatter: function (value, row, index) { - return showDetail('3',row.deptName); - } - } - ], - onLoadSuccess: function (result) { //加载成功时执行 - $(".page-list").show(); - //reloadTableHeight("table1"); - }, //展开详情事件 onExpandRow: function (index, row, $detail) {//點擊datagrid 展開按鈕事件 - var deptName = row.deptName; - var tableId = 'table_'+deptName; - var html = '
\n' + - '
\n' + + var tableId = "table1_"+row.deptName; + var html = '
\n' + + '
\n' + '
'; $detail.html(html); - initTable2(deptName,tableId); + var table1Data = getTable1Data(row); + initTable1(table1Data,tableId); } }); } -//第三层,根据科室查询病患详情 -function initTable2(deptName,tableId) { - $("#"+tableId).bootstrapTable({ // 对应table标签的id - url: path+"/statistics/getRecordStatisticsByDeptName", // 获取表格数据的url - cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true - striped: true, //表格显示条纹,默认为false - sidePagination: 'server', // 设置为服务器端分页 客户端:client - pagination: true, // 在表格底部显示分页组件,默认false - paginationShowPageGo: true, - pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。 - toolbar: '#toolbar',//指定工具栏 - searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法 - //detailView:true,//是否可展开 - undefinedText: '--', //当数据为 undefined 时显示的字符 - singleSelect: false,//设置True 将禁止多选 - clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox - paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。 - height:475, - searchTimeOut: 500,// 默认500 设置搜索超时时间。 - showHeader: true,//是否显示列头。 - //是否显示导出按钮 - queryParams: function (params) { - return queryParams(params,this,deptName); - }, - columns: [ - { - title: '序号', - align: 'center', - formatter: function (value, row, index) { - return index + 1; - } - }, - { - title: '住院号', - field: 'inpNo', - align: 'left' - }, - { - title: '姓名', - field: 'name', - align: 'left' - }, - { - title: '住院次数', - field: 'visitId', - align: 'center' - }, - { - title: '出院科室', - field: 'deptNameCn', - align: 'left' - }, - { - title: '出院日期', - field: 'dischargeDateTime', - align: 'center', - formatter: function (value) { - return operDisDate(value); - } - }, - { - title: '总文件数', - field: 'allFileCount', - align: 'center' - }, - { - title: '总页数', - field: 'allPageCount', - align: 'center' - }, - { - title: '自动采集总文件数', - field: 'autoCollectionFileCount', - align: 'center' - }, - { - title: '自动采集总页数', - field: 'autoCollectionPageCount', - align: 'center' - }, - { - title: '扫描上传总文件数', - field: 'manualScanFileCount', - align: 'center' - }, - { - title: '扫描上传总页数', - field: 'manualScanPageCount', - align: 'center' - } - ], - onLoadSuccess: function (result) { //加载成功时执行 - $(".page-list").show(); - //reloadTableHeight("table2"); - } - }); -}*/ //各表格查询条件 function queryParams(params,_this,deptName){ var currPageSize = _this.pageSize; @@ -585,24 +371,6 @@ function queryParams(params,_this,deptName){ }; return temp; } -//封装展开显示按钮方法 -/*function showDetail(level,deptName){ - return '展开显示'} -//封装展开显示跳转方法 -function showDetailMethod(level,deptName){ - var startDate =$("#startTime1").val(); - var endDate = $("#endTime1").val(); - var timeInterval = $("#timeInterval").val(); - var name = $("#name").val(); - var inpNo = $("#inpNo").val(); - if(deptName == null){ - deptName = getDeptName(); - } - var urlTemp = url + level + "?deptName="+deptName+"&startDate="+ startDate - + "&endDate="+endDate+"&timeInterval="+timeInterval+"&name="+name - +"&inpNo="+inpNo; - window.open(urlTemp); -}*/ //查询按钮 $('#searchBtnStatistics').click(function () { //查询之后重新从第一页算起 diff --git a/src/main/webapp/static/json/dictionary.json b/src/main/webapp/static/json/dictionary.json index fed3654..61d273a 100644 --- a/src/main/webapp/static/json/dictionary.json +++ b/src/main/webapp/static/json/dictionary.json @@ -1,42 +1,42 @@ [ { "code": 1, - "name": "护理", + "name": "护理文书", "type": "otherExtSysFlag" }, { "code": 2, - "name": "His", + "name": "电子病历", "type": "otherExtSysFlag" }, { "code": 3, - "name": "Pasc", + "name": "Pacs检查", "type": "otherExtSysFlag" }, { "code": 4, - "name": "心电", + "name": "心电图", "type": "otherExtSysFlag" }, { "code": 5, - "name": "手麻", + "name": "手麻信息", "type": "otherExtSysFlag" }, { "code": 6, - "name": "Lis", + "name": "Lis检验", "type": "otherExtSysFlag" }, { "code": 7, - "name": "首页", + "name": "病案首页", "type": "otherExtSysFlag" }, { "code": 8, - "name": "医嘱", + "name": "长临医嘱", "type": "otherExtSysFlag" }, { diff --git a/src/test/java/com/emr/MapperTest.java b/src/test/java/com/emr/MapperTest.java index 96e9a31..d18a5e8 100644 --- a/src/test/java/com/emr/MapperTest.java +++ b/src/test/java/com/emr/MapperTest.java @@ -13,6 +13,8 @@ import javax.xml.soap.*; import javax.xml.ws.Dispatch; import javax.xml.ws.Service; import java.net.URL; +import java.text.SimpleDateFormat; +import java.util.Date; import java.util.HashMap; import java.util.Map; @@ -28,26 +30,13 @@ public class MapperTest { * 测试mapper */ @Test - public void testCRUD(){ - Integer[] a = {0,1,2,4,8,16,32,64,128}; - int temp1 = 2; - long start = System.currentTimeMillis(); - aa: - for (int i = 0; i < a.length; i++) { - for (int j = 0; j < a.length; j++) { - int value = a[i] ^ a[j]; - if(temp1 == value){ - System.out.println(a[i]); - System.out.println(a[j]); - break aa; - } - } - } - long end = System.currentTimeMillis(); - System.out.println((end-start)/1000.0+"s"); - int b = 8 ^ 0; - System.out.println(b); - //getProject("123","456"); + public void testCRUD() throws Exception{ + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + String date = "2020-11-17"; + String date1 = "2020-11-17"; + Date parse = sdf.parse(date); + Date parse1 = sdf.parse(date1); + System.out.println(parse.getTime() >= parse1.getTime()); } private String userName; private String password;