|
|
|
|
@ -170,18 +170,24 @@
|
|
|
|
|
scwin.param = com.getParameter();
|
|
|
|
|
searchParam.setJSON(scwin.param.data);
|
|
|
|
|
searchResultMap.setJSON(scwin.param.data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var maxCarryCapacity = searchResultMap.get("maxCarryCapacity");
|
|
|
|
|
if(maxCarryCapacity == null || maxCarryCapacity == ""){
|
|
|
|
|
searchResultMap.set("maxCarryCapacity",0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scwin.closeCallbackFncName = scwin.param.callbackFn;
|
|
|
|
|
var frresidentNo = searchResultMap.get("frResident");
|
|
|
|
|
var edresidentNo = searchResultMap.get("edResident");
|
|
|
|
|
|
|
|
|
|
if(searchResultMap.get( "miniCarKbn" ) == "1"){
|
|
|
|
|
searchResultMap.set("rfidPenaltyKbn","1");
|
|
|
|
|
}
|
|
|
|
|
console.log(searchResultMap.get( "rfidPenaltyKbn" ));
|
|
|
|
|
|
|
|
|
|
//com.executeSubmission(sbm_searchMap);
|
|
|
|
|
|
|
|
|
|
// sbx_exemptReasonId.setDisabled(true);
|
|
|
|
|
// sbx_notconfirmId.setDisabled(true);
|
|
|
|
|
|
|
|
|
|
console.log(searchResultMap.get( "rfidPenaltyKbn" ));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cbx_rfidPenalty.setReadOnly(true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -216,11 +222,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scwin.btn_close_onclick = function() {
|
|
|
|
|
// if (searchResultMap.getModifiedIndex().length > 0) {
|
|
|
|
|
// com.confirm("변경된 정보가 있습니다. 저장하지 않고 닫으시겠습니까?", "scwin.cancelCarsTransInfoConfirmCallback");
|
|
|
|
|
// } else {
|
|
|
|
|
com.closePopup();
|
|
|
|
|
// }
|
|
|
|
|
com.closePopup();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.cancelCarsTransInfoConfirmCallback = function(isReturnVal) {
|
|
|
|
|
@ -230,12 +232,7 @@
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.sbm_searchMap_submitdone = function(e) {
|
|
|
|
|
/*var frresidentNo = searchResultMap.get("frResident");
|
|
|
|
|
var edresidentNo = searchResultMap.get("edResident");
|
|
|
|
|
|
|
|
|
|
console.log("aaaaaaaaaaaaaaa");
|
|
|
|
|
console.log(frresidentNo);
|
|
|
|
|
console.log(edresidentNo);*/
|
|
|
|
|
if(searchResultMap.get("readResultId") == "error") {
|
|
|
|
|
com.alert("판독 시 면제로 판독하지 않았습니다. 정확히 확인 후 저장하십시오.");
|
|
|
|
|
}
|
|
|
|
|
@ -267,69 +264,75 @@
|
|
|
|
|
com.openPopup(popupUrl, opt, data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//저장버튼 클릭
|
|
|
|
|
scwin.btn_save_onclick = function() {
|
|
|
|
|
if(com.validateGroup(tbl_search1) && com.validateGroup(tbl_search2)) {
|
|
|
|
|
//if(searchResultMap.get("confirmYn") == "1" && searchResultMap.get("carChangeYn") == "0") {
|
|
|
|
|
//if(searchResultMap.get("afterCarsNumber1") == "" || searchResultMap.get("afterCarsNumber1") == null) {
|
|
|
|
|
//com.alert("후 차량번호가 없습니다. 확인 후 처리하세요.");
|
|
|
|
|
//return false;
|
|
|
|
|
//}
|
|
|
|
|
//}
|
|
|
|
|
if(!(com.validateGroup(tbl_search1) && com.validateGroup(tbl_search2))){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var residentNo1 = ibx_residentNo1.getValue();
|
|
|
|
|
var residentNo2 = ibx_residentNo2.getValue();
|
|
|
|
|
|
|
|
|
|
var residentNo3 = ibx_residentNo3.getValue();
|
|
|
|
|
var residentNo4 = ibx_residentNo4.getValue();
|
|
|
|
|
var residentNo5 = ibx_residentNo5.getValue();
|
|
|
|
|
|
|
|
|
|
if(residentNo1.length + residentNo2.length != 13
|
|
|
|
|
&& residentNo1.length + residentNo2.length != 9
|
|
|
|
|
&& residentNo3.length + residentNo4.length + residentNo5.length != 10) {
|
|
|
|
|
|
|
|
|
|
var residentNo1 = ibx_residentNo1.getValue();
|
|
|
|
|
var residentNo2 = ibx_residentNo2.getValue();
|
|
|
|
|
var residentNo3 = ibx_residentNo3.getValue();
|
|
|
|
|
var residentNo4 = ibx_residentNo4.getValue();
|
|
|
|
|
var residentNo5 = ibx_residentNo5.getValue();
|
|
|
|
|
if(residentNo1.length + residentNo2.length != 13 && residentNo3.length + residentNo4.length + residentNo5.length != 10) {
|
|
|
|
|
com.alert("주민번호는 필수 입력 항목입니다. (주민번호 형식이 잘못되었는지 확인하세요.)");
|
|
|
|
|
return false;
|
|
|
|
|
}else if(residentNo1.length + residentNo2.length == 13) {
|
|
|
|
|
if(residentNo3.length > 0 || residentNo4.length > 0 || residentNo5.length > 0) {
|
|
|
|
|
com.alert("주민번호가 입력되어 있습니다. 법인번호를 삭제하세요.");
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
|
|
|
|
searchResultMap.set("residentNo" , "" + residentNo1 + residentNo2);
|
|
|
|
|
}
|
|
|
|
|
} else if(residentNo3.length + residentNo4.length + residentNo5.length == 10) {
|
|
|
|
|
searchResultMap.set("residentNo" , "" + residentNo3 + residentNo4 + residentNo5);
|
|
|
|
|
}
|
|
|
|
|
com.alert("주민번호는 필수 입력 항목입니다. (주민번호 형식이 잘못되었는지 확인하세요.)");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(residentNo1.length + residentNo2.length == 13
|
|
|
|
|
|| residentNo1.length + residentNo2.length == 9) {
|
|
|
|
|
|
|
|
|
|
var maxCarryCapacity = ibx_maxCarryCapacity.getValue();
|
|
|
|
|
if(Number(maxCarryCapacity) > 10 && Number(maxCarryCapacity) < 100
|
|
|
|
|
&& sbx_readResultId.getValue() != '01') {
|
|
|
|
|
com.alert("11인승 이상 차량입니다.");
|
|
|
|
|
sbx_readResultId.setValue('01');
|
|
|
|
|
sbx_exemptReasonId.setValue('12');
|
|
|
|
|
sbx_notconfirmId.setValue('');
|
|
|
|
|
if(residentNo3.length > 0 || residentNo4.length > 0 || residentNo5.length > 0) {
|
|
|
|
|
com.alert("주민번호가 입력되어 있습니다. 법인번호를 삭제하세요.");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
switch(sbx_readResultId.getValue()) {
|
|
|
|
|
case '01':
|
|
|
|
|
if(sbx_exemptReasonId.getValue() == null || sbx_exemptReasonId.getValue() == '') {
|
|
|
|
|
com.alert("[면제코드]를 입력하세요.");
|
|
|
|
|
sbx_exemptReasonId.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case '05':
|
|
|
|
|
if(sbx_notconfirmId.getValue() == null || sbx_notconfirmId.getValue() == '') {
|
|
|
|
|
com.alert("[확인불가 코드]를 입력하세요.");
|
|
|
|
|
sbx_notconfirmId.focus();
|
|
|
|
|
sbx_exemptReasonId.setValue("");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
searchResultMap.set("residentNo" , "" + residentNo1 + residentNo2);
|
|
|
|
|
|
|
|
|
|
} else if(residentNo3.length + residentNo4.length + residentNo5.length == 10) {
|
|
|
|
|
searchResultMap.set("residentNo" , "" + residentNo3 + residentNo4 + residentNo5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (searchResultMap.getModifiedIndex().length > 0) {
|
|
|
|
|
com.confirm("수정하시겠습니까?", "scwin.updateConfirmCallback");
|
|
|
|
|
} else {
|
|
|
|
|
com.alert("변경된 정보가 없습니다.");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
var maxCarryCapacity = ibx_maxCarryCapacity.getValue();
|
|
|
|
|
if(Number(maxCarryCapacity) > 10 && Number(maxCarryCapacity) < 100
|
|
|
|
|
&& sbx_readResultId.getValue() != '01') {
|
|
|
|
|
com.alert("11인승 이상 차량입니다.");
|
|
|
|
|
sbx_readResultId.setValue('01');
|
|
|
|
|
sbx_exemptReasonId.setValue('12');
|
|
|
|
|
sbx_notconfirmId.setValue('');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(sbx_readResultId.getValue()) {
|
|
|
|
|
case '01':
|
|
|
|
|
if(sbx_exemptReasonId.getValue() == null || sbx_exemptReasonId.getValue() == '') {
|
|
|
|
|
com.alert("[면제코드]를 입력하세요.");
|
|
|
|
|
sbx_exemptReasonId.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case '05':
|
|
|
|
|
if(sbx_notconfirmId.getValue() == null || sbx_notconfirmId.getValue() == '') {
|
|
|
|
|
com.alert("[확인불가 코드]를 입력하세요.");
|
|
|
|
|
sbx_notconfirmId.focus();
|
|
|
|
|
sbx_exemptReasonId.setValue("");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (searchResultMap.getModifiedIndex().length > 0) {
|
|
|
|
|
com.confirm("수정하시겠습니까?", "scwin.updateConfirmCallback");
|
|
|
|
|
} else {
|
|
|
|
|
com.alert("변경된 정보가 없습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.updateConfirmCallback = function(isReturnVal) {
|
|
|
|
|
@ -469,7 +472,7 @@
|
|
|
|
|
<w2:colspan>3</w2:colspan>
|
|
|
|
|
<w2:rowspan>1</w2:rowspan>
|
|
|
|
|
</w2:attributes>
|
|
|
|
|
<xf:input adjustMaxLength="false" id="ibx_transCarTypeName" style="width:90%;height: 21px;" ref="data:searchResultMap.transCarTypeName" ignoreChar="" maxlength="30"></xf:input>
|
|
|
|
|
<xf:input adjustMaxLength="false" id="ibx_transCarTypeName" style="width:90%;height: 21px;" ref="data:searchResultMap.transCarTypeName" ignoreChar="" maxlength="50"></xf:input>
|
|
|
|
|
</xf:group>
|
|
|
|
|
<xf:group tagname="th" class="w2tb_th">판독차종<w2:attributes></w2:attributes></xf:group>
|
|
|
|
|
<xf:group tagname="td" class="w2tb_td">
|
|
|
|
|
|