|
|
|
|
@ -55,22 +55,10 @@
|
|
|
|
|
mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous"
|
|
|
|
|
processMsg="조회중입니다." ev:submit="" ev:submitdone="" ev:submiterror="" abortTrigger="">
|
|
|
|
|
</xf:submission>
|
|
|
|
|
<xf:submission id="sub_delete" ref='data:json,{"id":"delReq","key":"param"}'
|
|
|
|
|
target='data:json,{"id":"statList","key":"statList"}' action="/cfs/system/deletePostNo.do" method="post"
|
|
|
|
|
mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous"
|
|
|
|
|
processMsg="" ev:submit="" ev:submitdone="scwin.sub_delete_submitdone" ev:submiterror="" abortTrigger="">
|
|
|
|
|
</xf:submission>
|
|
|
|
|
<xf:submission id="sub_codeSido" ref='data:json,{"id":"schReq","key":"param"}'
|
|
|
|
|
target='data:json,{"id":"sidoCode","key":"sidoCode"}' action="/cfs/system/findSystemSidoCode.do" method="post"
|
|
|
|
|
mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous"
|
|
|
|
|
processMsg="" ev:submit="" ev:submitdone="" ev:submiterror="" abortTrigger="">
|
|
|
|
|
</xf:submission>
|
|
|
|
|
</xf:model>
|
|
|
|
|
<script type="text/javascript" lazy="false"><![CDATA[
|
|
|
|
|
scwin.onpageload = function() {
|
|
|
|
|
var sbxOptions = [{code : "", compID : "sbx_localAddress"}];
|
|
|
|
|
//var sbxOptions = [{code : "sido_01", compID : "sbx_localAddress"}]; // 시/군/구 코드 조회시 사용
|
|
|
|
|
com.setCfsAddressCode(sbxOptions);
|
|
|
|
|
|
|
|
|
|
dateFrom.setValue( com.getToday() );
|
|
|
|
|
dateTo.setValue( com.getToday() );
|
|
|
|
|
};
|
|
|
|
|
@ -88,97 +76,7 @@
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.btn_add_onclick = function() {
|
|
|
|
|
|
|
|
|
|
var param = {'pCrudSe':'C'};
|
|
|
|
|
var options = {};
|
|
|
|
|
options.id = "findSystemPostNoPopup";
|
|
|
|
|
options.popupName = "우편번호 등록/수정";
|
|
|
|
|
options.modal = true;
|
|
|
|
|
options.resizable = false;
|
|
|
|
|
options.width = 850;
|
|
|
|
|
|
|
|
|
|
com.openPopup(com.getFullPath("/ui/cfs/system/ST003P01.xml"), options, {data:param, callbackFn:"scwin.btn_search_onclick"});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 우편번호 수정 버튼
|
|
|
|
|
scwin.btn_mod_onclick = function(e) {
|
|
|
|
|
|
|
|
|
|
var rowIdx = grd_statList.getCheckedIndex("chk");;
|
|
|
|
|
if(rowIdx !='') {
|
|
|
|
|
var idxLen = grd_statList.getCheckedIndex("chk").length;
|
|
|
|
|
if(idxLen > 1){
|
|
|
|
|
alert("수정할 우편번호를 하나만 체크하세요");
|
|
|
|
|
return false;
|
|
|
|
|
};
|
|
|
|
|
scwin.findSystemPostNoPopup(rowIdx);
|
|
|
|
|
} else {
|
|
|
|
|
com.alert('수정할 우편번호를 체크하십시오. ');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.findSystemPostNoPopup = function(rowIdx) {
|
|
|
|
|
// 우편번호 수정팝업
|
|
|
|
|
var param = {
|
|
|
|
|
'pCrudSe':'U'
|
|
|
|
|
, 'postNo1':grd_statList.getCellData(rowIdx, 'postNo1')
|
|
|
|
|
, 'postNo2':grd_statList.getCellData(rowIdx, 'postNo2')
|
|
|
|
|
, 'addressSeqno':grd_statList.getCellData(rowIdx, 'addressSeqno')
|
|
|
|
|
, 'addressCity':grd_statList.getCellData(rowIdx, 'addressCity')
|
|
|
|
|
, 'addressDistrict':grd_statList.getCellData(rowIdx, 'addressDistrict')
|
|
|
|
|
, 'addressSame':grd_statList.getCellData(rowIdx, 'addressSame')
|
|
|
|
|
, 'addressTown':grd_statList.getCellData(rowIdx, 'addressTown')
|
|
|
|
|
, 'addressBunji':grd_statList.getCellData(rowIdx, 'addressBunji')
|
|
|
|
|
, 'stBunji':grd_statList.getCellData(rowIdx, 'stBunji')
|
|
|
|
|
, 'edBunji':grd_statList.getCellData(rowIdx, 'edBunji')
|
|
|
|
|
, 'stNumDong':grd_statList.getCellData(rowIdx, 'stNumDong')
|
|
|
|
|
, 'edNumDong':grd_statList.getCellData(rowIdx, 'edNumDong')
|
|
|
|
|
, 'stDong':grd_statList.getCellData(rowIdx, 'stDong')
|
|
|
|
|
, 'edDong':grd_statList.getCellData(rowIdx, 'edDong')
|
|
|
|
|
, 'stAfterBunji':grd_statList.getCellData(rowIdx, 'stAfterBunji')
|
|
|
|
|
, 'edAfterBunji':grd_statList.getCellData(rowIdx, 'edAfterBunji')
|
|
|
|
|
, 'addressAdminCode':grd_statList.getCellData(rowIdx, 'addressAdminCode')
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var options = {
|
|
|
|
|
id : "findSystemPostNoPopup",
|
|
|
|
|
popupName : "우편번호 등록/수정",
|
|
|
|
|
modal : true,
|
|
|
|
|
resizable : false,
|
|
|
|
|
width : 850};
|
|
|
|
|
|
|
|
|
|
com.openPopup(com.getFullPath("/ui/cfs/system/ST003P01.xml"), options, {data:param, callbackFn:"scwin.btn_search_onclick"});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.btn_del_onclick = function() {
|
|
|
|
|
if(!confirm("삭제하시겠습니까?")){return;};
|
|
|
|
|
var rowIdx = grd_statList.getCheckedIndex("chk");
|
|
|
|
|
|
|
|
|
|
if(rowIdx !='') {
|
|
|
|
|
var idxLen = grd_statList.getCheckedIndex("chk").length;
|
|
|
|
|
if(idxLen > 1){
|
|
|
|
|
alert("삭제할 우편번호를 하나만 체크하세요");
|
|
|
|
|
return false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var postNo1 = grd_statList.getCellData(rowIdx, 'postNo1');
|
|
|
|
|
var postNo2 = grd_statList.getCellData(rowIdx, 'postNo2');
|
|
|
|
|
var addressSeqno = grd_statList.getCellData(rowIdx, 'addressSeqno');
|
|
|
|
|
|
|
|
|
|
delReq.set("postNo1",postNo1);
|
|
|
|
|
delReq.set("postNo2",postNo2);
|
|
|
|
|
delReq.set("addressSeqno",addressSeqno);
|
|
|
|
|
|
|
|
|
|
com.executeSubmission(sub_delete);
|
|
|
|
|
} else {
|
|
|
|
|
com.alert('삭제할 우편번호를 체크하십시오. ');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scwin.sub_delete_submitdone = function(e) {
|
|
|
|
|
com.executeSubmission(sbm_statList);
|
|
|
|
|
alert("삭제되었습니다.");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scwin.btn_excel_down_onclick = function(e) {
|
|
|
|
|
if (statList.getRowCount() == 0) {
|
|
|
|
|
|