신청인 정보 불러오기 오류 수정

This commit is contained in:
wyh 2025-02-03 10:13:03 +09:00
parent 95e80b91c3
commit 900b7dd04e
2 changed files with 13 additions and 10 deletions

View File

@ -4990,17 +4990,20 @@ public class WebMediationController {
// 휴대폰 번호 분리
String tel = (String) result.get("tel");
String tellNum[] = tel.split("-");
result.put("rcePh1", tellNum[0]);
result.put("rcePh2", tellNum[1]);
result.put("rcePh3", tellNum[2]);
if(tellNum.length != 0) {
result.put("rcePh1", tellNum[0]);
result.put("rcePh2", tellNum[1]);
result.put("rcePh3", tellNum[2]);
}
// 팩스번호 분리
String fax = (String) result.get("fax");
String faxNum[] = fax.split("-");
result.put("rceFax1", faxNum[0]);
result.put("rceFax2", faxNum[1]);
result.put("rceFax3", faxNum[2]);
if(faxNum.length != 0) {
result.put("rceFax1", faxNum[0]);
result.put("rceFax2", faxNum[1]);
result.put("rceFax3", faxNum[2]);
}
modelAndView.addObject("result", result);

View File

@ -1525,9 +1525,9 @@
<th>FAX</th>
<td>
<div class="phone_wrap fax_wrap">
<input type="text" name="rceFax1" id="51" class="input_text" title="FAX 앞번호" maxlength="3" value="${fn:split(selectRceptsttus.CONTACT_FAX, '-')[0]}" onkeyup="removeChar(event);" onkeydown='onlyNumber(event);' style="ime-mode:disabled;">-
<input type="text" name="rceFax2" id="" class="input_text" title="FAX 중간번호" maxlength="4" value="${fn:split(selectRceptsttus.CONTACT_FAX, '-')[1]}" onkeyup="removeChar(event);" onkeydown='onlyNumber(event);' style="ime-mode:disabled;">-
<input type="text" name="rceFax3" id="" class="input_text" title="FAX 끝번호" maxlength="4" value="${fn:split(selectRceptsttus.CONTACT_FAX, '-')[2]}" onkeyup="removeChar(event);" onkeydown='onlyNumber(event);' style="ime-mode:disabled;">
<input type="text" name="rceFax1" id="rceFax1" class="input_text" title="FAX 앞번호" maxlength="3" value="${fn:split(selectRceptsttus.CONTACT_FAX, '-')[0]}" onkeyup="removeChar(event);" onkeydown='onlyNumber(event);' style="ime-mode:disabled;">-
<input type="text" name="rceFax2" id="rceFax2" class="input_text" title="FAX 중간번호" maxlength="4" value="${fn:split(selectRceptsttus.CONTACT_FAX, '-')[1]}" onkeyup="removeChar(event);" onkeydown='onlyNumber(event);' style="ime-mode:disabled;">-
<input type="text" name="rceFax3" id="rceFax3" class="input_text" title="FAX 끝번호" maxlength="4" value="${fn:split(selectRceptsttus.CONTACT_FAX, '-')[2]}" onkeyup="removeChar(event);" onkeydown='onlyNumber(event);' style="ime-mode:disabled;">
</div>
</td>
</tr>