|
@@ -237,9 +237,11 @@ public class PatientController extends LifeCenterController {
|
|
|
int centerCount = centerService.selectCenterOneCount( dto );
|
|
|
|
|
|
String centerName = "";
|
|
|
-
|
|
|
+ String centerType = "";
|
|
|
+
|
|
|
if( centerCount > 0 ) {
|
|
|
centerName = centerService.selectCenterInfoOne( dto ).getCenterName();
|
|
|
+ centerType = centerService.selectCenterInfoOne( dto ).getCenterType();
|
|
|
}
|
|
|
|
|
|
StaffDTO staffDTO = new StaffDTO();
|
|
@@ -259,6 +261,7 @@ public class PatientController extends LifeCenterController {
|
|
|
}
|
|
|
|
|
|
mv.addObject( "centerName", centerName );
|
|
|
+ mv.addObject( "centerType", centerType );
|
|
|
mv.addObject( "centerCount", centerCount );
|
|
|
mv.addObject( "actionType", "new" );
|
|
|
mv.addObject( "staffList", staffList );
|
|
@@ -568,12 +571,15 @@ public class PatientController extends LifeCenterController {
|
|
|
dto.setStaffId( sesId );
|
|
|
String centerName = "";
|
|
|
int centerCount = centerService.selectCenterCount( dto );
|
|
|
-
|
|
|
+ String centerType = "";
|
|
|
+
|
|
|
if( sesCenterCode.equals( "0" ) ) { //센터코드가 없는 시스템권한 계정인경우
|
|
|
centerName = patientDTO.getCenterName();
|
|
|
+ centerType = "C";
|
|
|
} else {
|
|
|
if( centerCount > 0 ) {
|
|
|
centerName = centerService.selectCenterInfoOne( dto ).getCenterName();
|
|
|
+ centerType = centerService.selectCenterInfoOne( dto ).getCenterType();
|
|
|
} else {
|
|
|
LifeCenterFunction.scriptMessage(response, "alertBox({ txt : '문진이 정상적으로 제출되었습니다.', callBack : function(){ history.back(); } });" );
|
|
|
// return ""; 아직처리안함
|
|
@@ -620,7 +626,7 @@ public class PatientController extends LifeCenterController {
|
|
|
|
|
|
mv.addObject( "centerName", centerName );
|
|
|
mv.addObject( "centerCount", centerCount );
|
|
|
-
|
|
|
+ mv.addObject( "centerType", centerType );
|
|
|
mv.addObject( "staffList", staffList );
|
|
|
|
|
|
mv.addObject( "patientIdx", patientIdx );
|