zhangzhanping 5 vuotta sitten
vanhempi
commit
eb670effbb
1 muutettua tiedostoa jossa 15 lisäystä ja 2 poistoa
  1. 15 2
      DataFusion/src/com/zskk/task/DataTask.java

+ 15 - 2
DataFusion/src/com/zskk/task/DataTask.java

@@ -42,7 +42,7 @@ public class DataTask implements ITask {
 				report.setDescription(record.getStr("IMPRESSION"));
 				report.setExamId(exams2.getId());
 				report.setCreatedAt(new Date());
-				//报告医生
+				/*//报告医生
 				report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
 				//审核医生
 				report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
@@ -58,8 +58,21 @@ public class DataTask implements ITask {
 				//患者姓名
 				patientInfos.setName(record.getStr("PATIENTNAME"));
 				patientInfos.setPhone(record.getStr("PHONE"));
-//				patientInfos.setCardNum(record.getStr("IDCARD"));
+/				patientInfos.setCardNum(record.getStr("IDCARD"));
+				patientInfos.update();*/
+				report.setReportDoctorId(getDoctorIdByName(new String(record.getStr("REPORTDOCTOR").getBytes("windows-1252"),"GBK")));
+				report.setReviewDoctorId(getDoctorIdByName(new String(record.getStr("REVIEWDOCTOR").getBytes("windows-1252"),"GBK")));
+				report.setReviewDatetime(parseStringToDate(new String(record.getStr("REPORTDATE").getBytes("windows-1252"),"GBK")));
+				report.setConfirmDoctorId(getDoctorIdByName(new String(record.getStr("REVIEWDOCTOR").getBytes("windows-1252"),"GBK")));
+				report.setConfirmDatetime(parseStringToDate(new String(record.getStr("REPORTDATE").getBytes("windows-1252"),"GBK")));
+				report.save();
+				PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
+				patientInfos.setName(new String(record.getStr("PATIENTNAME").getBytes("windows-1252"),"GBK"));
+				patientInfos.setPhone(record.getStr("PHONE"));
+				patientInfos.setCardNum(record.getStr("IDCARD"));
 				patientInfos.update();
+				exams2.setClinDoctors(new String(record.getStr("CLINICALDOCTOR").getBytes("windows-1252"),"GBK"));
+
 				//修改完成状态 9
 				exams2.setExamStatus(9);
 				exams2.update();