|
@@ -20,7 +20,6 @@ import org.apache.poi.ss.usermodel.IndexedColors;
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
|
import org.apache.poi.ss.usermodel.Sheet;
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
-import org.apache.poi.ss.util.CellRangeAddress;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.json.JSONObject;
|
|
|
import org.slf4j.Logger;
|
|
@@ -44,8 +43,10 @@ import com.lemon.lifecenter.common.LifeCenterPaging;
|
|
|
import com.lemon.lifecenter.common.LifeCenterSessionController;
|
|
|
import com.lemon.lifecenter.dto.CenterInfoDTO;
|
|
|
import com.lemon.lifecenter.dto.PatientDTO;
|
|
|
+import com.lemon.lifecenter.dto.StaffDTO;
|
|
|
import com.lemon.lifecenter.service.CenterService;
|
|
|
import com.lemon.lifecenter.service.PatientService;
|
|
|
+import com.lemon.lifecenter.service.StaffService;
|
|
|
|
|
|
|
|
|
@Controller
|
|
@@ -58,6 +59,9 @@ public class PatientController extends LifeCenterController {
|
|
|
@Autowired
|
|
|
private CenterService centerService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private StaffService staffService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private LifeCenterConfigVO config;
|
|
|
|
|
@@ -142,9 +146,26 @@ public class PatientController extends LifeCenterController {
|
|
|
centerName = centerService.selectCenterInfoOne( dto ).getCenterName();
|
|
|
}
|
|
|
|
|
|
+ StaffDTO staffDTO = new StaffDTO();
|
|
|
+ List<StaffDTO> staffList = new ArrayList<StaffDTO>();
|
|
|
+
|
|
|
+ staffDTO.setGroupIdx( 2 ); //2설정 set 조회시 해당센터 모든 의료진 리스트표출
|
|
|
+ staffDTO.setCenterCode( Integer.valueOf( sesCenterCode ) );
|
|
|
+ staffDTO.setUseYn( "" );
|
|
|
+
|
|
|
+ int staffCount = staffService.selectMemberListCount( staffDTO );
|
|
|
+
|
|
|
+ if( staffCount > 0 ) {
|
|
|
+ staffDTO.setLimit( 0 );
|
|
|
+ staffDTO.setLimitMax( staffCount );
|
|
|
+
|
|
|
+ staffList = staffService.selectMemberList( staffDTO );
|
|
|
+ }
|
|
|
+
|
|
|
mv.addObject( "centerName", centerName );
|
|
|
mv.addObject( "centerCount", centerCount );
|
|
|
mv.addObject( "actionType", "new" );
|
|
|
+ mv.addObject( "staffList", staffList );
|
|
|
|
|
|
return mv;
|
|
|
}
|
|
@@ -230,12 +251,30 @@ public class PatientController extends LifeCenterController {
|
|
|
strDisease = LifeCenterFunction.getDisease(dto);
|
|
|
}
|
|
|
|
|
|
+ StaffDTO staffDTO = new StaffDTO();
|
|
|
+ List<StaffDTO> staffList = new ArrayList<StaffDTO>();
|
|
|
+
|
|
|
+ staffDTO.setGroupIdx( 2 ); //2설정 set 조회시 해당센터 모든 의료진 리스트표출
|
|
|
+ staffDTO.setCenterCode( Integer.valueOf( dto.getCenterCode() ) );
|
|
|
+ staffDTO.setUseYn( "" );
|
|
|
+
|
|
|
+ int staffCount = staffService.selectMemberListCount( staffDTO );
|
|
|
+
|
|
|
+ if( staffCount > 0 ) {
|
|
|
+ staffDTO.setLimit( 0 );
|
|
|
+ staffDTO.setLimitMax( staffCount );
|
|
|
+
|
|
|
+ staffList = staffService.selectMemberList( staffDTO );
|
|
|
+ }
|
|
|
+
|
|
|
mv.addObject( "disease", strDisease );
|
|
|
mv.addObject( "symptom", strSymptom );
|
|
|
mv.addObject( "patientIdx", patientIdx );
|
|
|
mv.addObject( "enIdx", LifeCenterFunction.aesEncrypt( config.aesKey, config.IV, String.valueOf( patientIdx ) ) );
|
|
|
mv.addObject( "info", dto );
|
|
|
|
|
|
+ mv.addObject( "staffList", staffList );
|
|
|
+
|
|
|
return mv;
|
|
|
}
|
|
|
|
|
@@ -301,9 +340,28 @@ public class PatientController extends LifeCenterController {
|
|
|
patientDTO.setBloodPressureLevelRel(bloodPressureLevel[1]);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ StaffDTO staffDTO = new StaffDTO();
|
|
|
+ List<StaffDTO> staffList = new ArrayList<StaffDTO>();
|
|
|
+
|
|
|
+ staffDTO.setGroupIdx( 2 ); //2설정 set 조회시 해당센터 모든 의료진 리스트표출
|
|
|
+ staffDTO.setCenterCode( Integer.valueOf( sesCenterCode ) );
|
|
|
+ staffDTO.setUseYn( "" );
|
|
|
+
|
|
|
+ int staffCount = staffService.selectMemberListCount( staffDTO );
|
|
|
+
|
|
|
+ if( staffCount > 0 ) {
|
|
|
+ staffDTO.setLimit( 0 );
|
|
|
+ staffDTO.setLimitMax( staffCount );
|
|
|
+
|
|
|
+ staffList = staffService.selectMemberList( staffDTO );
|
|
|
+ }
|
|
|
+
|
|
|
mv.addObject( "centerName", centerName );
|
|
|
mv.addObject( "centerCount", centerCount );
|
|
|
|
|
|
+ mv.addObject( "staffList", staffList );
|
|
|
+
|
|
|
mv.addObject( "patientIdx", patientIdx );
|
|
|
mv.addObject( "patientData", patientDTO );
|
|
|
mv.addObject( "actionType", "edit" );
|