|
|
|
@ -117,7 +117,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
|
// 试剂 |
|
|
|
if(template.getProduct().equals(ProductEnum.Sj.getValue())){ |
|
|
|
sjService.startConfiguration(form); |
|
|
|
sjService.startConfiguration(form,studyFormFill); |
|
|
|
} |
|
|
|
// 给药制剂 |
|
|
|
if(template.getProduct().equals(ProductEnum.Gyzj.getValue())){ |
|
|
|
@ -140,7 +140,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
|
// 试剂 |
|
|
|
if(template.getProduct().equals(ProductEnum.Sj.getValue())){ |
|
|
|
sjService.configurationCompleted(form); |
|
|
|
sjService.configurationCompleted(form,studyFormFill); |
|
|
|
} |
|
|
|
// 给药制剂 |
|
|
|
if(template.getProduct().equals(ProductEnum.Gyzj.getValue())){ |
|
|
|
@ -167,7 +167,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
|
// 试剂 |
|
|
|
if(template.getProduct().equals(ProductEnum.Sj.getValue())){ |
|
|
|
sjService.subpackage(form); |
|
|
|
sjService.subpackage(form,studyFormFill); |
|
|
|
} |
|
|
|
// 给药制剂 |
|
|
|
if(template.getProduct().equals(ProductEnum.Gyzj.getValue())){ |
|
|
|
@ -444,6 +444,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
studyFormFill.setBdbh(getSn(studyFormFill)); |
|
|
|
studyFormFill.setStartDate(new Date()); |
|
|
|
studyFormFill.setUserMc(SecurityUtils.getNickName()); |
|
|
|
studyFormFill.setBelongDeptId(getDeptId(studyFormFill)); |
|
|
|
this.save(studyFormFill); |
|
|
|
result = studyFormFill; |
|
|
|
//签名信息 |
|
|
|
@ -470,6 +471,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
studyFormFill.setBdbh(getSn(studyFormFill)); |
|
|
|
studyFormFill.setStartDate(new Date()); |
|
|
|
studyFormFill.setUserMc(SecurityUtils.getNickName()); |
|
|
|
studyFormFill.setBelongDeptId(getDeptId(studyFormFill)); |
|
|
|
this.save(studyFormFill); |
|
|
|
//稽查轨迹 |
|
|
|
studyFormFillJcgjService.saveJcgj(studyFormFill, JcgjlxEnum.lc.getValue(), "创建记录", JcmcysEnum.green.getValue(), null, qmr, studyFormFill.getRemark(), now); |
|
|
|
@ -505,6 +507,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
studyFormFill.setBdbh(getSn(studyFormFill)); |
|
|
|
studyFormFill.setStartDate(new Date()); |
|
|
|
studyFormFill.setUserMc(SecurityUtils.getNickName()); |
|
|
|
studyFormFill.setBelongDeptId(getDeptId(studyFormFill)); |
|
|
|
this.save(studyFormFill); |
|
|
|
result = studyFormFill; |
|
|
|
} |
|
|
|
@ -663,6 +666,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
studyFormFill.setSftb(NormalEnum.yes.getValue()); |
|
|
|
studyFormFill.setBdbh(getSn(studyFormFill)); |
|
|
|
studyFormFill.setTjsj(new Date()); |
|
|
|
studyFormFill.setBelongDeptId(getDeptId(studyFormFill)); |
|
|
|
this.save(studyFormFill); |
|
|
|
//生成检测板 |
|
|
|
genJcbList(studyFormFill, studyFormFill.getRemark()); |
|
|
|
@ -708,6 +712,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
studyFormFill.setBdnr(studyFormFill.getBdnr()); |
|
|
|
studyFormFill.setUserMc(SecurityUtils.getNickName()); |
|
|
|
studyFormFill.setBdbh(getSn(studyFormFill)); |
|
|
|
studyFormFill.setBelongDeptId(getDeptId(studyFormFill)); |
|
|
|
this.save(studyFormFill); |
|
|
|
//稽查轨迹 |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
@ -1187,4 +1192,12 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
return study.getType().equals(StudyTypeEnum.sy.getValue()) ? ("/study/enter/" + study.getId() + "/" + tab) : study.getType().equals(StudyTypeEnum.fsy.getValue()) ? ("/nonTrial/enter/" + study.getId() + "/" + tab) : study.getType().equals(StudyTypeEnum.mjy.getValue()) ? ("/drug/enter/" + study.getId() + "/" + tab) : ""; |
|
|
|
} |
|
|
|
|
|
|
|
private Long getDeptId(StudyFormFill form){ |
|
|
|
if(form.getStudySubjectId()!=null){ |
|
|
|
return studySubjectService.getById(form.getStudyId()).getDeptId(); |
|
|
|
} |
|
|
|
return SecurityUtils.getLoginUser().getSysUser().getDeptId(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |