diff --git a/src/main/java/com/emr/controller/ScientificResearchController.java b/src/main/java/com/emr/controller/ScientificResearchController.java index 4f72d085..f061d0d7 100644 --- a/src/main/java/com/emr/controller/ScientificResearchController.java +++ b/src/main/java/com/emr/controller/ScientificResearchController.java @@ -23,4 +23,15 @@ public class ScientificResearchController { public String scientificTemplate(Model model) { return "scientificResearch/scientificTemplate"; } + + + @RequestMapping(value = "/researchList") + public String researchList(Model model) { + return "scientificResearch/research"; + } + + @RequestMapping(value = "/scientificRecord") + public String scientificRecord(Model model) { + return "scientificResearch/scientificRecord"; + } } diff --git a/src/main/java/com/emr/controller/beHospitaledController.java b/src/main/java/com/emr/controller/beHospitaledController.java index c5918db8..692c5756 100644 --- a/src/main/java/com/emr/controller/beHospitaledController.java +++ b/src/main/java/com/emr/controller/beHospitaledController.java @@ -155,7 +155,11 @@ public class beHospitaledController { Date doctorTime=null; Date nurseTime=null; Date lastTime=null; - String MID = entityFault.getArchiveDetailId(); + String result1=""; + String result2=""; + String result3=""; + String MID = emrFaultDetail.getArchiveDetailId(); + System.out.println("病案号"+MID); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); List archiveOtherExts = archiveOtherExtService.selectExtTime(MID); if (!CollectionUtils.isEmpty(archiveOtherExts)) { @@ -184,107 +188,117 @@ public class beHospitaledController { doctorTime = (Date) map.get("FINISHED_DATE_TIME"); nurseTime = (Date) map.get("MR_COMMIT_NURSE_DATE_TIME"); lastTime = (Date) map.get("FIRST_PAGE_FINISHED_SAVE_TIME"); + System.out.println("医生文书提交时间(视图)"+doctorTime); + System.out.println("医生文书提交时间(提交)"+c1); + System.out.println("护士文书提交时间(视图)"+nurseTime); + System.out.println("医生文书提交时间(提交)"+c2); + System.out.println("首页文书提交时间(视图)"+lastTime); + System.out.println("医生文书提交时间(提交)"+c9); + if (doctorTime!=null && nurseTime!=null && lastTime!=null ) { + if (c1.compareTo(doctorTime) < 0) { + result1 = "①检查文书有过修改,麻烦医生在电子病历系统重新提交医生文书"; + } + if (c2.compareTo(nurseTime) < 0) { + result2 = "②检查文书有过修改,麻烦护士在电子病历系统重新提交护士文书"; + } + if (c9.compareTo(lastTime) < 0) { + result3 = "③检查首页有过修改,麻烦医生在电子病历系统重新提交首页"; + } + result = result1 + result2 + result3; + System.out.println("result1"+result1); + System.out.println("result2"+result2); + System.out.println("result3"+result3); + System.out.println("医生文书"+c2.compareTo(nurseTime)); + System.out.println("护士文书"+c2.compareTo(nurseTime)); + System.out.println("首页"+c9.compareTo(lastTime)); + if (result.equals("")) { + if (flagNum == 0) { + try { + String endpoint = HomepageDictionary; + //String endpoint = "http://localhost:8080/ca3/services/caSynrochnized?wsdl"; + String method = HomepageMethod; + JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance(); + Client client = factory.createClient(endpoint); + String temp = emrFaultDetail.getArchiveDetailId(); + Object[] res = null; + res = client.invoke(method, temp); + result = (String) res[0]; + //给方法传递参数,并且调用方法 + //System.out.println("result is " + result); + } catch (Exception e) { + System.err.println(e.toString()); + return "连接不到完整性接口!"; + } + if (result.equals("完整")) { + //修改病案归档状态 + Archive_Master archiveMaster = new Archive_Master(); + archiveMaster.setId(emrFaultDetail.getArchiveDetailId()); + archiveMaster.setArchivestate(emrFaultDetail.getState()); + archiveMaster.setLockinfo(result); + archiveMaster.setCmtDoctor(1); + archiveMaster.setCmtNurse(1); + int bol = archiveMasterService.updateByClo(archiveMaster); + //添加初审内容 + if (bol == 1) { + //参数输入 + archiveMaster.setFirstInstance(username); + emrFaultDetail.setCreater(username); + emrFaultDetail.setCreateTime(nowTime); + emrFaultDetail.setState("未召回"); + bol = emrFaultDetailService.insertSel(emrFaultDetail); + + //初审成功日志 + String handleName = user.getUserPosition();//姓名 + Archive_Master_Following archive_master_following = new Archive_Master_Following(); + archive_master_following.setMasterId(emrFaultDetail.getArchiveDetailId()); + //following表中添加科主任审核操作记录 + archive_master_following.setFollowingType("5"); + archive_master_following.setFollowingContent("科主任审核"); + archive_master_following.setHandleTime(nowTime); + archive_master_following.setHandleId(username); + archive_master_following.setHandleName(handleName); + archive_master_followingService.insertSelective(archive_master_following); + } + } else { + //修改病案归档完整内容Lockinfo + Archive_Master archiveMaster = new Archive_Master(); + emrFaultDetail.setCreater(username); + emrFaultDetail.setCreateTime(nowTime); + archiveMaster.setFirstInstance(username); + //archiveMaster.setArchivestate(emrFaultDetail.getState()); + archiveMaster.setId(emrFaultDetail.getArchiveDetailId()); + archiveMaster.setLockinfo("强制提交," + result); + archiveMaster.setCmtDoctor(1); + archiveMaster.setCmtNurse(1); + archiveMasterService.updateByClo(archiveMaster); + } + } else { + result = "提交失败,存在缺陷未处理!"; + } + } + } } } } catch (Exception e) { e.printStackTrace(); } } - String result1=""; - String result2=""; - String result3=""; - if (doctorTime!=null || nurseTime!=null || lastTime!=null ) { - if (c1.compareTo(doctorTime) < 0) { - result1 = "①检查文书有过修改,麻烦医生在电子病历系统重新提交医生文书"; - } - if (c2.compareTo(nurseTime) < 0) { - result2 = "②检查文书有过修改,麻烦护士在电子病历系统重新提交护士文书"; - } - if (c9.compareTo(lastTime) < 0) { - result3 = "③检查首页有过修改,麻烦医生在电子病历系统重新提交首页"; - } - if (result1 != "" || result2 != "" || result3 != "") { - result = result1 + result2 + result3; - } - if (c1.compareTo(doctorTime)>=0 && c2.compareTo(nurseTime)>=0 && c9.compareTo(lastTime)>=0 ){ - if(flagNum==0) { - try { - String endpoint = HomepageDictionary; - //String endpoint = "http://localhost:8080/ca3/services/caSynrochnized?wsdl"; - String method = HomepageMethod; - JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance(); - Client client = factory.createClient(endpoint); - String temp = emrFaultDetail.getArchiveDetailId(); - Object[] res = null; - res = client.invoke(method, temp); - result = (String) res[0]; - //给方法传递参数,并且调用方法 - //System.out.println("result is " + result); - } catch (Exception e) { - System.err.println(e.toString()); - return "连接不到完整性接口!"; - } - if (result.equals("完整")) { - //修改病案归档状态 - Archive_Master archiveMaster = new Archive_Master(); - archiveMaster.setId(emrFaultDetail.getArchiveDetailId()); - archiveMaster.setArchivestate(emrFaultDetail.getState()); - archiveMaster.setLockinfo(result); - archiveMaster.setCmtDoctor(1); - archiveMaster.setCmtNurse(1); - int bol = archiveMasterService.updateByClo(archiveMaster); - //添加初审内容 - if (bol == 1) { - //参数输入 - archiveMaster.setFirstInstance(username); - emrFaultDetail.setCreater(username); - emrFaultDetail.setCreateTime(nowTime); - emrFaultDetail.setState("未召回"); - bol = emrFaultDetailService.insertSel(emrFaultDetail); - - //初审成功日志 - String handleName = user.getUserPosition();//姓名 - Archive_Master_Following archive_master_following = new Archive_Master_Following(); - archive_master_following.setMasterId(emrFaultDetail.getArchiveDetailId()); - //following表中添加科主任审核操作记录 - archive_master_following.setFollowingType("5"); - archive_master_following.setFollowingContent("科主任审核"); - archive_master_following.setHandleTime(nowTime); - archive_master_following.setHandleId(username); - archive_master_following.setHandleName(handleName); - archive_master_followingService.insertSelective(archive_master_following); - } - } else { - //修改病案归档完整内容Lockinfo - Archive_Master archiveMaster = new Archive_Master(); - emrFaultDetail.setCreater(username); - emrFaultDetail.setCreateTime(nowTime); - archiveMaster.setFirstInstance(username); - //archiveMaster.setArchivestate(emrFaultDetail.getState()); - archiveMaster.setId(emrFaultDetail.getArchiveDetailId()); - archiveMaster.setLockinfo("强制提交," + result); - archiveMaster.setCmtDoctor(1); - archiveMaster.setCmtNurse(1); - archiveMasterService.updateByClo(archiveMaster); - } - }else{ - result = "提交失败,存在缺陷未处理!"; - } - } - }else { - if (doctorTime==null) { - result1 = "①文书提交时间为空,麻烦医生在电子病历系统重新提交医生文书"; - } - if (nurseTime==null) { - result2 = "②文书提交时间为空,麻烦护士在电子病历系统重新提交护士文书"; - } - if (lastTime==null) { - result3 = "③首页提交时间为空,麻烦医生在电子病历系统重新提交首页"; - } - if (result1 != "" || result2 != "" || result3 != "") { - result = result1 + result2 + result3; - } - } + + +// }else { +// if (doctorTime==null ) { +// result1 = "①文书提交时间为空,麻烦医生在电子病历系统重新提交医生文书"; +// } +// if (nurseTime==null) { +// result2 = "②文书提交时间为空,麻烦护士在电子病历系统重新提交护士文书"; +// } +// if (lastTime==null) { +// result3 = "③首页提交时间为空,麻烦医生在电子病历系统重新提交首页"; +// } +// if (result1 != "" || result2 != "" || result3 != "") { +// result = result1 + result2 + result3; +// } +// } return result; } diff --git a/src/main/resources/mapper/ArchiveOtherExtMapper.xml b/src/main/resources/mapper/ArchiveOtherExtMapper.xml index a167f75d..b50fc3fd 100644 --- a/src/main/resources/mapper/ArchiveOtherExtMapper.xml +++ b/src/main/resources/mapper/ArchiveOtherExtMapper.xml @@ -98,7 +98,7 @@ where ID = #{id,jdbcType=BIGINT} delete from archive_other_ext diff --git a/src/main/webapp/WEB-INF/views/followDir/followDetailst.jsp b/src/main/webapp/WEB-INF/views/followDir/followDetailst.jsp index 0deec6b4..aaa94fcd 100644 --- a/src/main/webapp/WEB-INF/views/followDir/followDetailst.jsp +++ b/src/main/webapp/WEB-INF/views/followDir/followDetailst.jsp @@ -114,6 +114,7 @@ + @@ -135,6 +136,41 @@ + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/scientificResearch/scientificList.jsp b/src/main/webapp/WEB-INF/views/scientificResearch/scientificList.jsp index 00745d65..3d57aab4 100644 --- a/src/main/webapp/WEB-INF/views/scientificResearch/scientificList.jsp +++ b/src/main/webapp/WEB-INF/views/scientificResearch/scientificList.jsp @@ -102,6 +102,7 @@ + diff --git a/src/main/webapp/WEB-INF/views/scientificResearch/scientificRecord.jsp b/src/main/webapp/WEB-INF/views/scientificResearch/scientificRecord.jsp new file mode 100644 index 00000000..83a9e836 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/scientificResearch/scientificRecord.jsp @@ -0,0 +1,568 @@ +<%@ page import="java.util.ResourceBundle" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + +<% + ResourceBundle res = ResourceBundle.getBundle("config.jdbc"); +%> +<%--<%@ include file="/WEB-INF/jspf/common.jspf" %>--%> + + + 科研记录 + + + + + + <%@include file="../../jspf/comm.jspf" %> + + + +
+ +
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ +
+ + - + +
+
+
+ + +
+
+ + +
+ + +
+
+ +
+
+
+
+ +
+ +
+
+
+ + + + + + + + + + + + + \ No newline at end of file