Browse Source

Merge branch 'master' of http://wcollector.idatabank.com:5230/dbs289/LifeCenter.git

huiwon.seo 4 năm trước cách đây
mục cha
commit
a4678f2d53

+ 108 - 2
src/main/java/com/lemon/lifecenter/controller/ClinicController.java

@@ -47,6 +47,104 @@ public class ClinicController extends LifeCenterController {
 	
 	private final Logger logger = LoggerFactory.getLogger(this.getClass());
 
+	private String getSymptom(PatientDTO dto) {
+		String feverCheck = dto.getFeverCheck().equals("Y") ? "열감(열나는 느낌)" : "";
+		String coughCheck = dto.getCoughCheck().equals("Y") ? "기침" : "";
+		String colic = dto.getColic().equals("Y") ? "복통(배아픔)" : "";
+		String coldFitCheck = dto.getColdFitCheck().equals("Y") ? "오한(추운 느낌)" : "";
+		String sputumCheck = dto.getSputumCheck().equals("Y") ? "가래" : "";
+		String ocinCheck = dto.getOcinCheck().equals("Y") ? "오심(구역질)" : "";
+		String chestPain = dto.getChestPain().equals("Y") ? "흉통" : "";
+		String noseCheck = dto.getNoseCheck().equals("Y") ? "콧물 또는 코 막힘" : "";
+		String vomitingCheck = dto.getVomitingCheck().equals("Y") ? "구토" : "";
+		String musclePainCheck = dto.getMusclePainCheck().equals("Y") ? "근육통(몸살)" : "";
+		String soreThroatCheck = dto.getSoreThroatCheck().equals("Y") ? "인후통(목 아픔)" : "";
+		String diarrheaCheck = dto.getDiarrheaCheck().equals("Y") ? "설사" : "";
+		String headacheCheck = dto.getHeadacheCheck().equals("Y") ? "두통(머리아픔)" : "";
+		String dyspneaCheck = dto.getDyspneaCheck().equals("Y") ? "호흡곤란(숨가쁨)" : "";
+		String fatigueCheck = dto.getFatigueCheck().equals("Y") ? "권태감(피로감)" : "";
+		String etcContent = dto.getEtcContentSymptom() == null ? "" : dto.getEtcContentSymptom();
+		String ectCheckSymptom = dto.getEtcCheckSymptom().equals("Y") ? "기타(" + etcContent + ")" : "";
+		
+		String strSymptom = "";
+		ArrayList<String> symptom = new ArrayList<String>();
+		symptom.add(feverCheck);
+		symptom.add(coughCheck);
+		symptom.add(colic);
+		symptom.add(coldFitCheck);
+		symptom.add(sputumCheck);
+		symptom.add(ocinCheck);
+		symptom.add(chestPain);
+		symptom.add(noseCheck);
+		symptom.add(vomitingCheck);
+		symptom.add(musclePainCheck);
+		symptom.add(soreThroatCheck);
+		symptom.add(diarrheaCheck);
+		symptom.add(headacheCheck);
+		symptom.add(dyspneaCheck);
+		symptom.add(fatigueCheck);
+		symptom.add(ectCheckSymptom);
+		
+		for (int i = 0; i < symptom.size(); i++) {
+				String str = symptom.get(i);
+				if (!str.equals("")) {
+						strSymptom += str;
+						strSymptom += ", ";
+				}
+		}
+		
+		strSymptom = strSymptom.trim();
+		strSymptom = strSymptom.substring(0, strSymptom.length() - 1);
+		
+		return strSymptom;
+  }
+
+	private String getDisease(PatientDTO dto) {
+		String highBloodPressureCheck = dto.getHighBloodPressureCheck().equals("Y") ? "고혈압" : "";
+		String lowBloodPressureCheck = dto.getLowBloodPressureCheck().equals("Y") ? "저혈압" : "";
+		String organTransplantCheck = dto.getOrganTransplantCheck().equals("Y") ? "장기이식(신장, 간 등)" : "";
+		String diabetesCheck = dto.getDiabetesCheck().equals("Y") ? "당뇨" : "";
+		String respiratoryDiseaseCheck = dto.getRespiratoryDiseaseCheck().equals("Y") ? "호흡기질환" : "";
+		String immunologicalDiseaseCheck = dto.getImmunologicalDiseaseCheck().equals("Y") ? "면역질환(류마티스 등)" : "";
+		String heartDisease = dto.getHeartDisease().equals("Y") ? "심장질환" : "";
+		String liverDisease = dto.getLiverDisease().equals("Y") ? "간질환" : "";
+		String operation = dto.getOperation().equals("Y") ? "수술(" + dto.getOperationContent() + ")" : "";
+		String allergyCheck = dto.getAllergyCheck().equals("Y") ? "알레르기" : "";
+		String kidneyDisease = dto.getKidneyDisease().equals("Y") ? "신장질환" : "";
+		String cancerName = dto.getCancerName() == null ? "" : dto.getCancerName();
+		String cancerCheck = dto.getCancerCheck().equals("Y") ? "암(" + cancerName + ")" : "";
+		String etcContent = dto.getEtcContentDisease() == null ? "" : dto.getEtcContentDisease();
+		String ectCheckDisease = dto.getEtcCheckDisease().equals("Y") ? "기타(" + etcContent + ")" : "";
+		
+		ArrayList<String> disease = new ArrayList<String>();
+		disease.add(highBloodPressureCheck);
+		disease.add(lowBloodPressureCheck);
+		disease.add(organTransplantCheck);
+		disease.add(diabetesCheck);
+		disease.add(respiratoryDiseaseCheck);
+		disease.add(immunologicalDiseaseCheck);
+		disease.add(heartDisease);
+		disease.add(liverDisease);
+		disease.add(operation);
+		disease.add(allergyCheck);
+		disease.add(kidneyDisease);
+		disease.add(cancerCheck);
+		disease.add(ectCheckDisease);
+		
+		String strDisease = "";
+		for (int i = 0; i < disease.size(); i++) {
+				String str = disease.get(i);
+				if (!str.equals("")) {
+						strDisease += str;
+						strDisease += ", ";
+				}
+		}
+		
+		strDisease = strDisease.trim();
+		strDisease = strDisease.substring(0, strDisease.length()-1);
+		return strDisease;
+    }
+
 	@RequestMapping("/state")
 	public ModelAndView clinicState(HttpServletRequest request,
 			@RequestParam(value = "page", required = true, defaultValue = "1") int page,
@@ -98,8 +196,14 @@ public class ClinicController extends LifeCenterController {
 		
 		if (!bloodPress.equals("")) {
 				String[] bloodPressureLevel = patientDto.getBloodPressureLevel().split("[|]");
-				logger.error("bloodPress -- > " + bloodPressureLevel[0]);
-				logger.error("bloodPress -- > " + bloodPressureLevel[1]);
+				patientDto.setBloodPressureLevelCon(bloodPressureLevel[0]);
+				patientDto.setBloodPressureLevelRel(bloodPressureLevel[0]);
+		}
+		
+		String strDisease = "";
+		String strSymptom = getSymptom(patientDto);
+		if (patientDto.getBasalDiseaseYn().equals("Y")) {
+				strDisease = getDisease(patientDto);
 		}
 
 		// phr 정보
@@ -118,6 +222,8 @@ public class ClinicController extends LifeCenterController {
 
 		mv.addObject("patientIdx", patientIdx);
 		mv.addObject("info", patientDto);
+		mv.addObject("symptom", strSymptom);
+		mv.addObject("disease", strDisease);
 		mv.addObject("phrType", phrType);
 		mv.addObject("phrTotal", total);
 		mv.addObject("phrItems", result);

+ 24 - 7
src/main/java/com/lemon/lifecenter/controller/StaffController.java

@@ -148,7 +148,7 @@ public class StaffController extends LifeCenterController {
     public ModelAndView staffEdit(
             @RequestParam(value="staffId", required=false, defaultValue="") String staffId) throws Exception {
         
-        List<CenterInfoDTO> centerList = memberService.selectCenterList();
+//        List<CenterInfoDTO> centerList = memberService.selectCenterList();
         StaffDTO dto = new StaffDTO();
         dto.setId(staffId);
         dto = memberService.selectMemberInfo(dto);
@@ -159,7 +159,6 @@ public class StaffController extends LifeCenterController {
         List<GroupListDTO> groupList = groupListService.selectGroupList(gDto);
         
         for( GroupListDTO data : groupList ) {
-//            data.setPermissions( LifeCenterFunction.aesEncrypt( config.aesKey, config.IV, data.getPermissions() ) );
             data.setEncryptIdx( LifeCenterFunction.aesEncrypt( config.aesKey, config.IV, String.valueOf( data.getIdx() ) ) );
         }
         
@@ -167,12 +166,30 @@ public class StaffController extends LifeCenterController {
         mv.addObject("info", dto);
         mv.addObject("centerCode", centerCode);
         mv.addObject("groupIdx", groupIdx);
-        mv.addObject("centerList", centerList);
+//        mv.addObject("centerList", centerList);
         mv.addObject( "groupList", groupList );
 
         return mv;
     }
     
+    @RequestMapping("edit/update")
+    public String editUpdate(
+            HttpServletRequest request,HttpServletResponse response,
+            @ModelAttribute("dto") StaffDTO dto,
+            @RequestParam(value="encGroupIdx", required=true) String encGroupIdx) throws Exception {
+        
+        String sesId  = LifeCenterSessionController.getSession( request, "sesId" );
+        String groupIdx = LifeCenterFunction.aesDecrypt(config.aesKey, config.IV, encGroupIdx);
+        dto.setUpdateById(sesId);
+        dto.setGroupIdx(Integer.parseInt(groupIdx));
+        
+        
+        int rts = memberService.updateEditMember(dto);
+        
+        
+        return "redirect:/staff/info?staffId=" + dto.getId();
+    }
+    
     @RequestMapping("/myinfo")
     public ModelAndView staffMyinfo(HttpServletRequest request,HttpServletResponse response) {
         String sesId  = LifeCenterSessionController.getSession( request, "sesId" );
@@ -229,11 +246,10 @@ public class StaffController extends LifeCenterController {
             @RequestParam(value="selectState", required=false, defaultValue="") String selectState,
             @RequestParam(value="sData", required=false, defaultValue="") String sData,
             @RequestParam(value="useYn", required=false, defaultValue="") String useYn,
-            @RequestParam(value="page", required=false, defaultValue="1") int page) {
+            @RequestParam(value="page", required=false, defaultValue="1") int page,
+            HttpServletRequest request, HttpServletResponse response) {
         
-        logger.error("selectState -- > " + selectState);
-        logger.error("sData -- > " + sData);
-        logger.error("useYn -- > " + useYn);
+        String sesCenterCode  = LifeCenterSessionController.getSession( request, "sesCenterCode" );
         
         if (selectState.equals("sId")) {
             dto.setId(sData);
@@ -243,6 +259,7 @@ public class StaffController extends LifeCenterController {
             dto.setCenterName(sData);
         }
         
+        dto.setCenterCode(Integer.parseInt(sesCenterCode));
         dto.setLimit( ( Integer.valueOf( page ) - 1 ) * config.pageDataSize );
         dto.setLimitMax( config.pageDataSize );
         

+ 1 - 0
src/main/java/com/lemon/lifecenter/mapper/StaffMapper.java

@@ -20,4 +20,5 @@ public interface StaffMapper {
     public List<CenterInfoDTO> selectCenterList();
     public void insertStaff(StaffDTO dto);
     public Integer updateMemberPwReset(StaffDTO dto);
+    public Integer updateEditMember(StaffDTO dto);
 }

+ 4 - 0
src/main/java/com/lemon/lifecenter/service/StaffService.java

@@ -49,4 +49,8 @@ public class StaffService {
     public Integer updateMemberPwReset(StaffDTO dto) {
         return mapper.updateMemberPwReset(dto);
     }
+    
+    public Integer updateEditMember(StaffDTO dto) {
+        return mapper.updateEditMember(dto);
+    }
 }

+ 1 - 1
src/main/resources/mybatis/mapper/patient/patient.xml

@@ -41,7 +41,7 @@
                    DATE_FORMAT(HOSPITALIZATION_DATE, '%Y-%m-%d %H:%i')                AS hospitalizationDate,
                    DATE_FORMAT(DISISOLATION_DATE, '%Y-%m-%d %H:%i')                   AS disisolationDate,
                    CASE WHEN STATE = 'H' THEN '입소'
-                        WHEN STATE = 'D' THEN ''
+                        WHEN STATE = 'D' THEN '퇴소'
                         WHEN STATE = 'T' THEN '지정병원 이송'
                         WHEN STATE = 'E' THEN '기타'
                         ELSE ''

+ 30 - 2
src/main/resources/mybatis/mapper/staff/staff.xml

@@ -20,7 +20,8 @@
               LEFT OUTER JOIN CENTER_INFO CI
                 ON M.CENTER_CODE = CI.CENTER_CODE
              WHERE 1 = 1
-               AND M.GROUP_IDX != 1
+               AND (M.GROUP_IDX = 2 OR M.GROUP_IDX = 3)
+               AND M.CENTER_CODE = #{centerCode}
         ]]>
         <if test='useYn != null and useYn != ""'>
             <![CDATA[
@@ -65,7 +66,8 @@
               LEFT OUTER JOIN CENTER_INFO CI
                 ON M.CENTER_CODE = CI.CENTER_CODE
              WHERE 1 = 1
-               AND M.GROUP_IDX != 1
+               AND (M.GROUP_IDX = 2 OR M.GROUP_IDX = 3)
+               AND M.CENTER_CODE = #{centerCode}
         ]]>
         <if test='useYn != null and useYn != ""'>
             <![CDATA[
@@ -146,6 +148,32 @@
         ]]>
     </update>
     
+    <update id="updateEditMember" parameterType="StaffDTO">
+        <![CDATA[
+            UPDATE MEMBER
+               SET UPDATE_DATE = NOW(),
+                   UPDATE_BY_ID = #{updateById}
+        ]]>
+        <if test='phoneNumber != null and phoneNumber !=""'>
+            <![CDATA[
+                   , PHONE_NUMBER = #{phoneNumber}
+            ]]>
+        </if>
+        <if test='groupIdx != null and groupIdx !=""'>
+            <![CDATA[
+                   , GROUP_IDX = #{groupIdx}
+            ]]>
+        </if>
+        <if test='useYn != null and useYn != ""'>
+            <![CDATA[
+                   , USE_YN = #{useYn}
+            ]]>
+        </if>
+        <![CDATA[
+             WHERE ID = #{id}
+        ]]>
+    </update>
+    
     <select id="selectMemberInfo" parameterType="StaffDTO" resultType="StaffDTO">
         <![CDATA[
             SELECT M.ID                                             AS id,

+ 82 - 31
src/main/webapp/WEB-INF/jsp/clinic/info.jsp

@@ -8,6 +8,33 @@
 <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
 <script>
 
+/*
+ * 비대면 진료 시작
+ */
+function nonFaceStart() {
+    getAjax("/patient/nonFaceStart", $("#hiddenForm").serialize(), function ( result ) {
+        
+        $("#nonface").append('<input type="hidden" name="member_name" value="'+result.member_name+'" />');
+        $("#nonface").append('<input type="hidden" name="member_id" value="'+result.member_id+'" />');
+        $("#nonface").append('<input type="hidden" name="room_id" value="'+result.room_id+'" />');
+        $("#nonface").append('<input type="hidden" name="hashData" value="'+result.hashData+'">');
+        $("#nonface").append('<input type="hidden" name="token" value="'+result.token+'">');
+        $("#nonface").append('<input type="hidden" name="api_key" value="'+result.api_key+'">');
+
+        $("#nonface").append('<input type="hidden" name="classify" value="d">');
+
+        var gsWin = window.open('about:blank','nonface');
+        var frm =document.nonface;
+        frm.target ="nonface";
+        frm.method ="post";
+        frm.submit();
+
+    }, function(){
+    }, function(){
+        
+    });
+}
+
 /*
  * 건강정보이력 탭 처리
  */
@@ -494,6 +521,8 @@ $(document).ready(function() {
 </head>
 
 <body>
+	<form id="nonface" name="nonface" action="https://lemon.medihere.com/app/vc">
+  </form>
 	<div class="modal fade" id="defaultModalPrimary_1" tabindex="-1" role="dialog" aria-hidden="true">
 		<div class="modal-dialog modal-sm" role="document">
 			<div class="modal-content">
@@ -710,6 +739,11 @@ $(document).ready(function() {
 			<jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
 
 			<main class="content">
+				<form id="hiddenForm">
+						<input type="hidden" id="pId" name="pId" value="<c:out value="${info.id}" />">
+						<input type="hidden" id="pName" name="pName" value="<c:out value="${info.patientName}" />">
+						<input type="hidden" id="roomId" name="roomId" value="<c:out value="${info.roomNumber}" />">
+				</form>
 				<div class="container-fluid p-0">
 					<div class="row">
 						<div class="col-12 col-lg-6">
@@ -795,9 +829,24 @@ $(document).ready(function() {
 										</tr>
 										<tr>
 												<th>격리해제 예정일</th>
-												<td colspan="3">
+												<td>
 														<c:out value="${info.disisolationDate}" />
 												</td>
+												<th>상태</th>
+												<td>
+														<c:if test="${info.state eq 'H'}">
+																입소
+														</c:if>
+														<c:if test="${info.state eq 'D'}">
+																퇴소
+														</c:if>
+														<c:if test="${info.state eq 'T'}">
+																지정병원 이송
+														</c:if>
+														<c:if test="${info.state eq 'E'}">
+																기타
+														</c:if>
+												</td>
 										</tr>
 										<tr>
 												<th>최근 약복용<br />(최근 24시간 이내)</th>
@@ -838,40 +887,42 @@ $(document).ready(function() {
 										</tr>
 										<tr>
 												<td colspan="3">
-														<c:if test="${info.highBloodPressureCheck eq 'Y'}">, 고혈압</c:if>
-														<c:if test="${info.lowBloodPressureCheck eq 'Y'}">, 저혈압</c:if>
-														<c:if test="${info.organTransplantCheck eq 'Y'}">, 장기이식(신장, 간 등)</c:if>
-														<c:if test="${info.diabetesCheck eq 'Y'}">, 당뇨</c:if>
-														<c:if test="${info.respiratoryDiseaseCheck eq 'Y'}">, 호흡기질환</c:if>
-														<c:if test="${info.immunologicalDiseaseCheck eq 'Y'}">, 면역질환(류마티스 등)</c:if>
-														<c:if test="${info.heartDisease eq 'Y'}">, 심장질환</c:if>
-														<c:if test="${info.liverDisease eq 'Y'}">, 간질환</c:if>
-														<c:if test="${info.operation eq 'Y'}">, 수술(<c:out value="${info.operationContent}" />)</c:if>
-														<c:if test="${info.allergyCheck eq 'Y'}">, 알레르기</c:if>
-														<c:if test="${info.kidneyDisease eq 'Y'}">, 신장질환</c:if>
-														<c:if test="${info.cancerCheck eq 'Y'}">, 암(<c:out value="${info.cancerName}" />)</c:if>
-														<c:if test="${info.etcCheckDisease eq 'Y'}">, 기타(<c:out value="${info.etcContentDisease}" />)</c:if>
+<%--                                                 <c:if test="${info.highBloodPressureCheck eq 'Y'}">, 고혈압</c:if> --%>
+<%--                                                 <c:if test="${info.lowBloodPressureCheck eq 'Y'}">, 저혈압</c:if> --%>
+<%--                                                 <c:if test="${info.organTransplantCheck eq 'Y'}">, 장기이식(신장, 간 등)</c:if> --%>
+<%--                                                 <c:if test="${info.diabetesCheck eq 'Y'}">, 당뇨</c:if> --%>
+<%--                                                 <c:if test="${info.respiratoryDiseaseCheck eq 'Y'}">, 호흡기질환</c:if> --%>
+<%--                                                 <c:if test="${info.immunologicalDiseaseCheck eq 'Y'}">, 면역질환(류마티스 등)</c:if> --%>
+<%--                                                 <c:if test="${info.heartDisease eq 'Y'}">, 심장질환</c:if> --%>
+<%--                                                 <c:if test="${info.liverDisease eq 'Y'}">, 간질환</c:if> --%>
+<%--                                                 <c:if test="${info.operation eq 'Y'}">, 수술(<c:out value="${info.operationContent}" />)</c:if> --%>
+<%--                                                 <c:if test="${info.allergyCheck eq 'Y'}">, 알레르기</c:if> --%>
+<%--                                                 <c:if test="${info.kidneyDisease eq 'Y'}">, 신장질환</c:if> --%>
+<%--                                                 <c:if test="${info.cancerCheck eq 'Y'}">, 암(<c:out value="${info.cancerName}" />)</c:if> --%>
+<%--                                                 <c:if test="${info.ectCheckDisease eq 'Y'}">, 기타(<c:out value="${info.etcContentDisease}" />)</c:if> --%>
+														<c:out value="${disease}" />
 												</td>
 										</tr>
 										<tr>
 												<th>현재 증상<br />(입소 당시)</th>
 												<td colspan="3">
-														<c:if test="${info.feverCheck eq 'Y'}">, 열감(열나는느낌)</c:if>
-														<c:if test="${info.coughCheck eq 'Y'}">, 기침</c:if>
-														<c:if test="${info.colic eq 'Y'}">, 복통(배아픔)</c:if>
-														<c:if test="${info.coldFitCheck eq 'Y'}">, 오한(추운 느낌)</c:if>
-														<c:if test="${info.sputumCheck eq 'Y'}">, 가래</c:if>
-														<c:if test="${info.ocinCheck eq 'Y'}">, 오심(구역질)</c:if>
-														<c:if test="${info.chestPain eq 'Y'}">, 흉통</c:if>
-														<c:if test="${info.noseCheck eq 'Y'}">, 콧물 또는 코 막힘</c:if>
-														<c:if test="${info.vomitingCheck eq 'Y'}">, 구토</c:if>
-														<c:if test="${info.musclePainCheck eq 'Y'}">, 근육통(몸살)</c:if>
-														<c:if test="${info.soreThroatCheck eq 'Y'}">, 인후통(목 아픔)</c:if>
-														<c:if test="${info.diarrheaCheck eq 'Y'}">, 설사</c:if>
-														<c:if test="${info.headacheCheck eq 'Y'}">, 두통(머리아픔)</c:if>
-														<c:if test="${info.dyspneaCheck eq 'Y'}">, 호흡곤란(숨가쁨)</c:if>
-														<c:if test="${info.fatigueCheck eq 'Y'}">, 권태감(피곤함)</c:if>
-														<c:if test="${info.etcCheckSymptom eq 'Y'}">, 기타(<c:out value="${info.etcContentSymptom}" />)</c:if>
+<%--                                                 <c:if test="${info.feverCheck eq 'Y'}">, 열감(열나는느낌)</c:if> --%>
+<%--                                                 <c:if test="${info.coughCheck eq 'Y'}">, 기침</c:if> --%>
+<%--                                                 <c:if test="${info.colic eq 'Y'}">, 복통(배아픔)</c:if> --%>
+<%--                                                 <c:if test="${info.coldFitCheck eq 'Y'}">, 오한(추운 느낌)</c:if> --%>
+<%--                                                 <c:if test="${info.sputumCheck eq 'Y'}">, 가래</c:if> --%>
+<%--                                                 <c:if test="${info.ocinCheck eq 'Y'}">, 오심(구역질)</c:if> --%>
+<%--                                                 <c:if test="${info.chestPain eq 'Y'}">, 흉통</c:if> --%>
+<%--                                                 <c:if test="${info.noseCheck eq 'Y'}">, 콧물 또는 코 막힘</c:if> --%>
+<%--                                                 <c:if test="${info.vomitingCheck eq 'Y'}">, 구토</c:if> --%>
+<%--                                                 <c:if test="${info.musclePainCheck eq 'Y'}">, 근육통(몸살)</c:if> --%>
+<%--                                                 <c:if test="${info.soreThroatCheck eq 'Y'}">, 인후통(목 아픔)</c:if> --%>
+<%--                                                 <c:if test="${info.diarrheaCheck eq 'Y'}">, 설사</c:if> --%>
+<%--                                                 <c:if test="${info.headacheCheck eq 'Y'}">, 두통(머리아픔)</c:if> --%>
+<%--                                                 <c:if test="${info.dyspneaCheck eq 'Y'}">, 호흡곤란(숨가쁨)</c:if> --%>
+<%--                                                 <c:if test="${info.fatigueCheck eq 'Y'}">, 권태감(피곤함)</c:if> --%>
+<%--                                                 <c:if test="${info.ectCheckSymptom eq 'Y'}">, 기타(<c:out value="${info.etcContentSymptom}" />)</c:if> --%>
+														<c:out value="${symptom}" />
 												</td>
 										</tr>
 										<tr>
@@ -914,7 +965,7 @@ $(document).ready(function() {
 									<div class="row mt-3">
 										<div class="col-12">
 											<div class="text-right">
-												<button class="btn btn-outline-success">비대면 진료</button>
+												<button class="btn btn-outline-success" onclick="nonFaceStart();">비대면 진료</button>
 												<button class="btn btn-primary" onclick="location.href='./state'">목록</button>
 											</div>
 										</div>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/clinic/state.jsp

@@ -270,7 +270,7 @@ $(document).ready(function() {
 										</c:when>
 										<c:otherwise>
 										<c:forEach var="patient" items="${items}" varStatus="status">
-											<c:set var="title" value="${patient.roomNumber}(${patient.patientName})" />
+											<c:set var="title" value="${patient.wardNumber}/${patient.roomNumber}(${patient.patientName})" />
 											<c:set var="viewLink" value="./info?patientIdx=${patient.patientIdx}" />
 											<c:set var="temperatureStep" value="${patient.isTemperatureWarning ? 'step_two' : 'step_one'}" />
 											<c:set var="bloodPressureStep" value="${patient.isBloodPressureWarning ? 'step_two' : 'step_one'}" />

+ 4 - 4
src/main/webapp/WEB-INF/jsp/patient/edit.jsp

@@ -330,10 +330,10 @@ $( function(){
                                                     <th>상태</th>
                                                     <td>
                                                         <select class="custom-select" name="state">
-                                                            <option value="H" <c:if test="${patientData.state eq H}">selected="selected"</c:if>>입소</option>
-                                                            <option value="D" <c:if test="${patientData.state eq D}">selected="selected"</c:if>>퇴소</option>
-                                                            <option value="T" <c:if test="${patientData.state eq T}">selected="selected"</c:if>>지정병원 이송</option>
-                                                            <option value="E" <c:if test="${patientData.state eq E}">selected="selected"</c:if>>기타</option>
+                                                            <option value="H" <c:if test="${patientData.state eq 'H'}">selected="selected"</c:if>>입소</option>
+                                                            <option value="D" <c:if test="${patientData.state eq 'D'}">selected="selected"</c:if>>퇴소</option>
+                                                            <option value="T" <c:if test="${patientData.state eq 'T'}">selected="selected"</c:if>>지정병원 이송</option>
+                                                            <option value="E" <c:if test="${patientData.state eq 'E'}">selected="selected"</c:if>>기타</option>
                                                         </select>
                                                     </td>
                                                 </tr>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/patient/info.jsp

@@ -90,7 +90,7 @@ function nonFaceStart() {
                                             </td>
                                             <th>이름</th>
                                             <td>
-                                                <c:out value="${info.patientName}" /><button class="btn btn-primary ml-2" onclick="nonFaceStart();">진료시작</button>
+                                                <c:out value="${info.patientName}" />
                                             </td>
                                         </tr>
                                         <tr>

+ 17 - 15
src/main/webapp/WEB-INF/jsp/patient/list.jsp

@@ -68,8 +68,10 @@
                                                 <td>
                                                     <select class="custom-select form-control" id="inputState" name="inputState">
                                                         <option value="ALL">전체</option>
-                                                        <option value="Y" <c:if test="${inputState eq 'Y'}"> selected="selected"</c:if>>입소</option>
-                                                        <option value="N" <c:if test="${inputState eq 'N'}"> selected="selected"</c:if>>퇴소</option>
+                                                        <option value="H" <c:if test="${inputState eq 'H'}"> selected="selected"</c:if>>입소</option>
+                                                        <option value="D" <c:if test="${inputState eq 'D'}"> selected="selected"</c:if>>퇴소</option>
+                                                        <option value="T" <c:if test="${inputState eq 'T'}"> selected="selected"</c:if>>지정변원 이송</option>
+                                                        <option value="E" <c:if test="${inputState eq 'E'}"> selected="selected"</c:if>>기타</option>
                                                     </select></td>
                                                 <th>환자명</th>
                                                 <td>
@@ -120,15 +122,15 @@
                                     <div class="table-responsive">
                                         <table class="table table-striped text-center">
                                             <colgroup>
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
-                                                <col style=" width: 11.1%; ">
+                                                <col style=" width: 12.5%; ">
+                                                <col style=" width: 12.5%; ">
+                                                <col style=" width: 12.5%; ">
+                                                <col style=" width: 12.5%; ">
+                                                <col style=" width: 12.5%; ">
+<%--                                                 <col style=" width: 11.1%; "> --%>
+                                                <col style=" width: 12.5%; ">
+                                                <col style=" width: 12.5%; ">
+                                                <col style=" width: 12.5%; ">
                                             </colgroup>
                                             <thead>
                                                 <tr>
@@ -136,8 +138,8 @@
                                                     <th>환자명</th>
                                                     <th>성별</th>
                                                     <th>나이</th>
-                                                    <th>병동번호</th>
-                                                    <th>최종진료일시</th>
+                                                    <th>호</th>
+<!--                                                     <th>최종진료일시</th> -->
                                                     <th>입소일자</th>
                                                     <th>격지해제 예정일</th>
                                                     <th>상태</th>
@@ -157,8 +159,8 @@
                                                                 </td>
                                                                 <td><c:out value="${l.gender}" /></td>
                                                                 <td><c:out value="${l.age}" /></td>
-                                                                <td><c:out value="${l.wardNumber}${l.roomNumber}" /></td>
-                                                                <td><c:out value="${l.finamClinicDate}" /></td>
+                                                                <td><c:out value="${l.wardNumber}${l.roomNumber}" /></td>
+<%--                                                                 <td><c:out value="${l.finamClinicDate}" /></td> --%>
                                                                 <td><c:out value="${l.hospitalizationDate}" /></td>
                                                                 <td>
                                                                     <c:if test="${l.disisolationDate eq null or l.disisolationDate eq ''}">

+ 3 - 3
src/main/webapp/WEB-INF/jsp/patient/new.jsp

@@ -321,14 +321,14 @@ $( function(){
                                                     </td>
                                                 </tr>
                                                 <tr>
-                                                    <th><span class="fix">*</span>최근약복용<br />(최근 24시간 이내)</th>
+                                                    <th>최근약복용<br />(최근 24시간 이내)</th>
                                                     <td>
                                                         <label class="form-check form-check-inline">
-                                                            <input class="form-check-input" type="radio" value="N" name="drugYn" onclick="$('#drugContent').attr('readonly', true);" required>
+                                                            <input class="form-check-input" type="radio" value="N" name="drugYn" onclick="$('#drugContent').attr('readonly', true);">
                                                             <span class="form-check-label">미복용</span>
                                                         </label>
                                                         <label class="form-check form-check-inline">
-                                                            <input class="form-check-input" type="radio" value="Y" name="drugYn" onclick="$('#drugContent').removeAttr('readonly');" required>
+                                                            <input class="form-check-input" type="radio" value="Y" name="drugYn" onclick="$('#drugContent').removeAttr('readonly');">
                                                             <span class="form-check-label">복용</span>
                                                         </label>
                                                         <label class="form-check form-check-inline">

+ 94 - 96
src/main/webapp/WEB-INF/jsp/staff/edit.jsp

@@ -4,6 +4,17 @@
 <%@ page language="java" contentType="text/html; charset=UTF-8"
     pageEncoding="UTF-8"%>
 <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
+<script>
+$( function(){
+    $( "#newForm" ).validate({
+        rules: {
+            phoneNumber : {
+                phoneValid : true
+            }
+        }
+    });
+})
+</script>
 </head>
 <body>
     <div class="wrapper">
@@ -37,105 +48,92 @@
                                 <div class="card-header">
                                     <h1 class="h4">- 사용자 정보 수정</h1>
                                 </div>
-                                <div class="card-body">
-                                    <table class="table mobile-table">
-                                        <colgroup>
-                                            <col style="width:15%">
-                                            <col style="width:35%">
-                                            <col style="width:15%">
-                                            <col style="width:35%">
-                                        </colgroup>
-                                        <tr>
-                                            <th>아이디</th>
-                                            <td>
-                                                <c:out value="${info.id}" />
-                                            </td>
-                                            <th>이름</th>
-                                            <td>
-                                                <c:out value="${info.name}" />
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <th>현재 비밀번호</th>
-                                            <td colspan="3">
-                                                <input type="text" class="form-control" name="password" placeholder="정보수정을 위해 비밀번호를 입력해주세요." required>
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <th>신규 비밀번호</th>
-                                            <td colspan="3">
-                                                <input type="text" class="form-control" name="passwordNew" placeholder="비밀번호 변경시에만 입력해주세요.(영문, 숫자, 특수문자를 혼합하여 8 ~ 15자 이내)">
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <th>비밀번호 확인</th>
-                                            <td colspan="3">
-                                                <input type="text" class="form-control" name="passwordConfirm" placeholder="신규 비밀번호 확인을 위해 비밀번호를 한번 더 입력하세요.">
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <th>휴대폰번호</th>
-                                            <td>
-                                                <input type="text" class="form-control" name="phoneNumber" value="${info.phoneNumber}" placeholder="01012341234" onkeypress="onlyNumber();">
-                                            </td>
-                                            <th>치료센터</th>
-                                            <td>
-                                                <select class="custom-select" name="centerCode">
-                                                    <c:forEach var="i" items="${centerList}">
-                                                        <option value="${i.centerCode}" <c:if test="${i.centerCode eq centerCode}"> selected="selected"</c:if>><c:out value="${i.centerName}" /></option>
-                                                    </c:forEach>
-                                                    
-                                                    <!-- <option selected="">센터-2</option> -->
-                                                </select>
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <th>권한</th>
-                                            <td>
-                                                <select class="custom-select" name="groupIdx">
-                                                    <c:forEach var="gl" items="${groupList}"> 
-                                                        <option value="${gl.encryptIdx}" <c:if test="${gl.encryptIdx eq groupIdx}"> selected="selected" </c:if> ><c:out value="${gl.groupName}"/></option>
-                                                    </c:forEach>
-                                                    <!-- <option selected="">센터-1</option>
-                                                    <option selected="">센터-2</option> -->
-                                                </select>
-                                            </td>
-                                            <th>상태</th>
-                                            <td>
-                                                <label class="form-check form-check-inline">
-                                                    <input class="form-check-input" type="radio" name="useYn" value="Y" <c:if test="${info.useYn eq 'Y'}">checked="checked"</c:if>>
-                                                    <span class="form-check-label">
-                                                      활성화
-                                                    </span>
-                                                </label>
-                                                <label class="form-check form-check-inline">
-                                                    <input class="form-check-input" type="radio" name="useYn" value="N" <c:if test="${info.useYn eq 'N'}">checked="checked"</c:if>>
-                                                    <span class="form-check-label">
-                                                      비활성화
-                                                    </span>
-                                                </label>
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <th>최종접속일시</th>
-                                            <td>
-                                                <c:out value="${info.lastLoginTime}" />
-                                            </td>
-                                            <th>등록일시</th>
-                                            <td>
-                                                <c:out value="${info.createDate}" />
-                                            </td>
-                                        </tr>
-                                    </table>
-                                    <div class="row mt-3">
-                                        <div class="col-12">
-                                            <div class="text-right">
-                                                <button type="button" class="btn btn-outline-primary w100" onclick="location.href='./list';">취소</button>
-                                                <button type="submit" class="btn btn-primary w100">수정</button>
+                                <form action="./edit/update" id="newForm" method="post">
+                                    <div class="card-body">
+                                        <table class="table mobile-table">
+                                            <colgroup>
+                                                <col style="width:15%">
+                                                <col style="width:35%">
+                                                <col style="width:15%">
+                                                <col style="width:35%">
+                                            </colgroup>
+                                            <tr>
+                                                <th>아이디</th>
+                                                <td>
+                                                    <c:out value="${info.id}" />
+                                                    <input type="hidden" name="id" value="${info.id}">
+                                                </td>
+                                                <th>이름</th>
+                                                <td>
+                                                    <c:out value="${info.name}" />
+                                                    <input type="hidden" name="name" value="${info.name}">
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <th>휴대폰번호</th>
+                                                <td>
+                                                    <input type="text" class="form-control" name="phoneNumber" value="${info.phoneNumber}" placeholder="01012341234" onkeypress="onlyNumber();">
+                                                </td>
+                                                <th>치료센터</th>
+                                                <td>
+                                                    <c:out value="${info.centerName}" />
+    <!--                                                 <select class="custom-select" name="centerCode"> -->
+    <%--                                                     <c:forEach var="i" items="${centerList}"> --%>
+    <%--                                                         <option value="${i.centerCode}" <c:if test="${i.centerCode eq centerCode}"> selected="selected"</c:if>><c:out value="${i.centerName}" /></option> --%>
+    <%--                                                     </c:forEach> --%>
+                                                        
+    <!--                                                     <option selected="">센터-2</option> -->
+    <!--                                                 </select> -->
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <th>권한</th>
+                                                <td>
+                                                    <select class="custom-select" name="encGroupIdx">
+                                                        <c:forEach var="gl" items="${groupList}"> 
+                                                            <option value="${gl.encryptIdx}" <c:if test="${gl.encryptIdx eq groupIdx}"> selected="selected" </c:if> ><c:out value="${gl.groupName}"/></option>
+                                                        </c:forEach>
+                                                        <!-- <option selected="">센터-1</option>
+                                                        <option selected="">센터-2</option> -->
+                                                    </select>
+                                                </td>
+                                                <th>상태</th>
+                                                <td>
+                                                    <label class="form-check form-check-inline">
+                                                        <input class="form-check-input" type="radio" name="useYn" value="Y" <c:if test="${info.useYn eq 'Y'}">checked="checked"</c:if>>
+                                                        <span class="form-check-label">
+                                                          활성화
+                                                        </span>
+                                                    </label>
+                                                    <label class="form-check form-check-inline">
+                                                        <input class="form-check-input" type="radio" name="useYn" value="N" <c:if test="${info.useYn eq 'N'}">checked="checked"</c:if>>
+                                                        <span class="form-check-label">
+                                                          비활성화
+                                                        </span>
+                                                    </label>
+                                                </td>
+                                            </tr>
+                                            <tr>
+                                                <th>최종접속일시</th>
+                                                <td>
+                                                    <c:out value="${info.lastLoginTime}" />
+                                                </td>
+                                                <th>등록일시</th>
+                                                <td>
+                                                    <c:out value="${info.createDate}" />
+                                                </td>
+                                            </tr>
+                                        </table>
+                                        <div class="row mt-3">
+                                            <div class="col-12">
+                                                <div class="text-right">
+                                                    <button type="button" class="btn btn-outline-primary w100" onclick="location.href='./list';">취소</button>
+                                                    <button type="submit" class="btn btn-primary w100">수정</button>
+                                                </div>
                                             </div>
                                         </div>
                                     </div>
-                                </div>
+                                </form>
                             </div>
                         </div>
                     </div>