외국인 신청시 변경 요청 관련 기능 수정
This commit is contained in:
parent
9e5c3ad601
commit
b9505fa83e
@ -307,6 +307,9 @@ public class KccadrConstants {
|
||||
public static final String ADR_RPPL_USR_TY2 = "02"; // 법인
|
||||
public static final String ADR_RPPL_USR_TY3 = "03"; // 개인사업자
|
||||
|
||||
public static final String ADR_RPPL_USR_DIV_01 = "01"; // 한국인
|
||||
public static final String ADR_RPPL_USR_DIV_02 = "02"; // 외국인
|
||||
|
||||
//ADR_RCD_RDNG : 조정사건기록열람
|
||||
//신청인구분
|
||||
public static final String ADR_RCD_RDNG_REQ_TY_01 = "01"; // 신청자
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
WHERE
|
||||
USE_AT = 'Y'
|
||||
AND CODE_ID = #codeId#
|
||||
ORDER BY SORT
|
||||
ORDER BY SORT, CODE_NM
|
||||
]]>
|
||||
</select>
|
||||
|
||||
|
||||
@ -469,7 +469,7 @@ function fn_countryCodeToggle(){
|
||||
<label for="rpplPost${status.index}" class="label">우편번호 입력</label>
|
||||
<form:input path="adjstRpplList[${status.index}].rpplPost" id="rpplPost${status.index}" size="20" cssClass="adr_input" value="${list.rpplPost}" readonly="${list.rpplUsrDiv eq '01' || empty list.rpplUsrDiv ? true : ''}" placeholder="우편번호입력"/>
|
||||
|
||||
<kc:select codeId="ITN018" defaultText="${empty list.countryCode ? '가나' : list.countryCode }" name="countryCode" id="countryCode" css="style='display:${list.rpplUsrDiv eq '01' || empty list.rpplUsrDiv ? 'none' : ''}' " />
|
||||
<kc:select codeId="ITN018" defaultText="${empty list.countryCode ? '국적선택' : list.countryCode }" name="countryCode" id="countryCode" css="style='display:${list.rpplUsrDiv eq '01' || empty list.rpplUsrDiv ? 'none' : ''}' " onChange="AdjstReq.selectCountryCode(this);"/>
|
||||
<button type="button" class="btnType01 btn_adr_search" onclick="fn_postCode(this);" title="새창팝업 열림" style="display: ${list.rpplUsrDiv ne '02' ? '' : 'none'}">우편번호 검색</button>
|
||||
<div class="detail_address">
|
||||
<label for="rpplAddr${status.index}" class="label">주소 입력</label>
|
||||
@ -477,8 +477,8 @@ function fn_countryCodeToggle(){
|
||||
<label for="rpplAddrDtl${status.index}" class="label">나머지주소 입력</label>
|
||||
<form:input path="adjstRpplList[${status.index}].rpplAddrDtl" id="rpplAddrDtl${status.index}" value="${list.rpplAddrDtl}" size="25" cssClass="usrInsertAddr" placeholder="상세주소를 입력해주세요."/>
|
||||
</div>
|
||||
<input type="checkbox" name="adjstRpplList[${status.index}].rpplAddrCpYn" id="rpplAddrCpYn${status.index}" onclick="AdjstReq.addressCopy(this);" value="Y" ${list.rpplAddrCpYn eq 'Y' ? 'checked' : ''}/>
|
||||
<label for="rpplAddrCpYn${status.index}">우편물 수령지로 선택</label>
|
||||
<input class="mailItem" type="checkbox" name="adjstRpplList[${status.index}].rpplAddrCpYn" id="rpplAddrCpYn${status.index}" onclick="AdjstReq.addressCopy(this);" value="Y" ${list.rpplAddrCpYn eq 'Y' ? 'checked' : ''}/>
|
||||
<label class="mailItem" for="rpplAddrCpYn${status.index}">우편물 수령지로 선택</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="scb_email">
|
||||
@ -566,7 +566,7 @@ function fn_countryCodeToggle(){
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post_adr">
|
||||
<tr class="post_adr mailItem">
|
||||
<th scope="row">
|
||||
<p class="req_text"><span>필수입력 항목</span>*</p>
|
||||
<p>우편물 수령지</p>
|
||||
|
||||
@ -33,7 +33,6 @@ var AdjstReq = {
|
||||
}
|
||||
},
|
||||
step1EventBind : function(){
|
||||
|
||||
$("input[name$=rpplRelation]").on("change", function(e){
|
||||
console.log("본인과의 관계 :: " , $(this).val());
|
||||
if($(this).val() == '04'){
|
||||
@ -48,6 +47,8 @@ var AdjstReq = {
|
||||
onKeyUpBizId($("input[name$=rpplBizId]"));
|
||||
// 사업자번호
|
||||
onKeyUpBizNo($("input[name$=rpplBizNo]"));
|
||||
//
|
||||
this.rpplUsrDivLayout($('input[name=rpplUsrDiv]:checked'));
|
||||
|
||||
},
|
||||
step2EventBind : function() {
|
||||
@ -389,6 +390,7 @@ var AdjstReq = {
|
||||
/*
|
||||
* 20230822 수정
|
||||
* 230810 조정신청 절자 안내문구 등 수정 9항목 (이용정).hwp 수정요청사항
|
||||
* 231006 신청인 정보 외국인 주소 관련 수정
|
||||
*/
|
||||
if (confirm("입력하신 신청인 정보를 임시 저장하시겠습니까?")) {
|
||||
$.ajax({
|
||||
@ -883,16 +885,37 @@ var AdjstReq = {
|
||||
}
|
||||
}
|
||||
|
||||
if(reqPerson.rpplPost == ''){
|
||||
alert("주소 우편번호를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(reqPerson.rpplAddrDtl == ''){
|
||||
alert("상세 주소 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
// 신청인 구분 (한국인, 외국인 구분)
|
||||
if(reqPerson.rpplUsrDiv == "${KccadrConstants.ADR_RPPL_USR_DIV_01}"){
|
||||
// 신청인이 한국인인 경우 확인 (우편번호, 주소, 상세주소, 우편물 수령지)
|
||||
if(reqPerson.rpplPost == ''){
|
||||
alert("주소 우편번호를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
if(reqPerson.rpplAddrDtl == ''){
|
||||
alert("상세 주소 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
if(reqPerson.rpplRealPost == ''){
|
||||
alert("우편물 수령지 우편번호 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
if(reqPerson.rpplRealAddrDtl == ''){
|
||||
alert("우편물 수령지 상세주소 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
}else if(reqPerson.rpplUsrDiv == "${KccadrConstants.ADR_RPPL_USR_DIV_02}"){
|
||||
// 신청인이 외국인 경우 확인 (선택국적, 주소)
|
||||
if(reqPerson.rpplPost == ''){
|
||||
alert("국적을 선택해 주세요.");
|
||||
return false;
|
||||
}
|
||||
if(reqPerson.rpplAddr == ''){
|
||||
alert("주소 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(reqPerson.rpplEmail1 == ''){
|
||||
alert("이메일을 입력해 주세요.");
|
||||
@ -921,15 +944,6 @@ var AdjstReq = {
|
||||
alert("신청인 연락처 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(reqPerson.rpplRealPost == ''){
|
||||
alert("우편물 수령지 우편번호 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
if(reqPerson.rpplRealAddrDtl == ''){
|
||||
alert("우편물 수령지 상세주소 정보를 입력해 주세요.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
validStepCheckTwo : function(){
|
||||
@ -1509,18 +1523,35 @@ var AdjstReq = {
|
||||
$(thisObj).closest('tbody').find('.btn_adr_search').show();
|
||||
// 국가코드 selectbox
|
||||
$('#countryCode').hide();
|
||||
|
||||
// 231006 엑셀 85번 수정
|
||||
// 한국인일때 우편물 수령지 체크 및 주소 입력 구분 표시
|
||||
$(thisObj).closest('tbody').find('.adr_input').attr("placeholder", "우편번호입력");
|
||||
$('.mailItem').show();
|
||||
$(thisObj).closest('tbody').find('.searchResultAddr').css({'width':''});
|
||||
$(thisObj).closest('tbody').find('.usrInsertAddr').show();
|
||||
|
||||
}
|
||||
|
||||
// "02": 외국인일 때
|
||||
if (selectedValue === '02') {
|
||||
$(thisObj).closest('tbody').find('.adr_input').attr('readonly', true);
|
||||
|
||||
// 가장 가까운 주소 입력란을 찾아 readonly 속성을 삭제합니다.
|
||||
$(thisObj).closest('tbody').find('.adr_input').removeAttr('readonly');
|
||||
//$(thisObj).closest('tbody').find('.adr_input').removeAttr('readonly');
|
||||
$(thisObj).closest('tbody').find('.searchResultAddr').removeAttr('readonly');
|
||||
|
||||
// 가장 가까운 우편번호 검색 버튼을 찾아 숨깁니다.
|
||||
$(thisObj).closest('tbody').find('.btn_adr_search').hide();
|
||||
// 국가코드 selectbox
|
||||
$('#countryCode').show();
|
||||
|
||||
// 231006 엑셀 85번 수정
|
||||
// 외국인일때 우편물 수령지 체크 및 주소 입력 구분 숨김
|
||||
$(thisObj).closest('tbody').find('.adr_input').attr("placeholder", "국적선택");
|
||||
$('.mailItem').hide();
|
||||
$(thisObj).closest('tbody').find('.usrInsertAddr').hide();
|
||||
$(thisObj).closest('tbody').find('.searchResultAddr').css({'width':'100%'});
|
||||
}
|
||||
}
|
||||
,expDivision : function(stepVal){
|
||||
@ -1536,5 +1567,17 @@ var AdjstReq = {
|
||||
|
||||
return depth;
|
||||
}
|
||||
// 231006 엑셀 85번 수정
|
||||
// 국가코드 선택시 국적선택 입력창에 코드 입력
|
||||
,selectCountryCode : function(stepVal){
|
||||
var selectedValue = $(stepVal).val();
|
||||
console.log('selectedValue : ', selectedValue);
|
||||
if(selectedValue == "null"){
|
||||
console.log('selectedValue : ', selectedValue);
|
||||
$(stepVal).closest('tbody').find('.adr_input').val('');
|
||||
}else{
|
||||
$(stepVal).closest('tbody').find('.adr_input').val(selectedValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user