diff --git a/WebContent/cm/js/cfs.js b/WebContent/cm/js/cfs.js index 88839d0..8c65568 100644 --- a/WebContent/cm/js/cfs.js +++ b/WebContent/cm/js/cfs.js @@ -484,130 +484,6 @@ com.setCfsWorkerWorkCode = function(codeOptions, callbackFunc) { -/** - * 코드성 데이터와 컴포넌트의 nodeSet(아이템 리스트)연동 기능을 제공한다. - * code별로 JSON객체를 생성하여 array에 담아 첫번째 파라메터로 넘겨준다. - * - * @date 2018.04.13 - * @param {Object} codeOptions {"code" : "코드넘버", "compID" : "적용할 컴포넌트명"} - * @param {requestCallback} callbackFunc 콜백 함수 - * @memberOf com - * @author InswaveSystems - * @example - * // 공통코드 조회시 ( localAddress > 시/도 단위, cityAdress > 시/군/구 단위 ) - * var codeOptions = [ { code : "", compID : "sbx_localAddress" }, - * { code : "0", compID : "sbx_cityAddress" } ]; - * com.setCfsAddressCode(codeOptions); - */ -com.setCfsAddressCode = function(codeOptions, callbackFunc) { - var codeOptionsLen = 0; - if (codeOptions) { - codeOptionsLen = codeOptions.length; - } else { - $p.log("=== com.setCfsAddressCode Parameter Type Error ===\nex) com.setCfsAddressCode([{\"code:\":\"ADDR\",\"compID\":\"sbx_localAddress\"}],\"scwin.callbackFunction\")\n==================================="); - return; - } - - var i, j, codeObj, dltId, dltIdArr = [], paramCode = "", compArr, compArrLen, tmpIdArr; - var dataListOption = _getCodeDataListOptions(gcm.COMMON_CODE_INFO.FILED_ARR); - for (i = 0; i < codeOptionsLen; i++) { - codeObj = codeOptions[i]; - try { - if (codeObj.code == '') { - codeObj.code = 'addr'; - } - - dltId = gcm.DATA_PREFIX + codeObj.code; - if ((typeof $p.top().scwin.commonCodeList[dltId] === "undefined") || (dltId == gcm.DATA_PREFIX+'booth')) { - dltIdArr.push(dltId); - - if (i > 0) { - paramCode += ","; - } - paramCode += codeObj.code; - dataListOption.id = dltId; - - // 동일한 id의 DataCollection이 존재할 경우, 삭제 후 재생성함 - $p.data.create(dataListOption); - - - - } else { - dataListOption.id = dltId; - $p.data.create(dataListOption); - var dataListObj = $p.getComponentById(dataListOption.id); - dataListObj.setJSON(com.getJSON($p.top().scwin.commonCodeList[dltId])); - } - - if (codeObj.compID) { - compArr = (codeObj.compID).replaceAll(" ", "").split(","); - compArrLen = compArr.length; - - for (j = 0; j < compArrLen; j++) { - tmpIdArr = compArr[j].split(":"); - // 기본 컴포넌트에 대한 Node Setting 설정 - if (tmpIdArr.length === 1) { - var comp = $p.getComponentById(tmpIdArr[0]); - comp.setNodeSet("data:" + dltId, gcm.COMMON_CODE_INFO.LABEL, gcm.COMMON_CODE_INFO.VALUE); - - // gridView 컴포넌트에 대한 Node Setting 설정 - } else { - var gridObj = $p.getComponentById(tmpIdArr[0]); - gridObj.setColumnNodeSet(tmpIdArr[1], "data:" + dltId, gcm.COMMON_CODE_INFO.LABEL, gcm.COMMON_CODE_INFO.VALUE); - } - } - - if (typeof $p.top().scwin.commonCodeList[dltId] === "undefined") { - } else { - if (typeof callbackFunc === "function") { - callbackFunc(); - } - } - } - } catch (ex) { - $p.log("com.setCfsAddressCode Error"); - $p.log(JSON.stringify(codeObj)); - $p.log(ex); - continue; - } - } - - var searchCodeGrpOption = { - id : "sbm_searchCode", - action : "/cfs/com/code/findAddressCodeList.do", - target : "data:json," + com.strSerialize(dltIdArr), - isShowMeg : false }; - - searchCodeGrpOption.submitDoneHandler = function(e) { - for (codeGrpDataListId in e.responseJSON) { - if (codeGrpDataListId.indexOf(gcm.DATA_PREFIX) > -1) { - $p.top().scwin.commonCodeList[codeGrpDataListId] = com.strSerialize(e.responseJSON[codeGrpDataListId]); - } - } - if (typeof callbackFunc === "function") { - callbackFunc(); - } - } - - if (paramCode !== "") { - var codeParam = {"dma_commonCode":{"GRP_CD":paramCode, "DATA_PREFIX":gcm.DATA_PREFIX}}; - com.executeSubmission_dynamic(searchCodeGrpOption, codeParam); - } - - // dataList를 동적으로 생성하기 위한 옵션 정보를 반환한다. - function _getCodeDataListOptions(infoArr) { - var option = { - "type" : "dataList", - "option":{ "baseNode": "list", "repeatNode": "map"}, - "columnInfo":[] - }; - - for (var idx in infoArr) { - option.columnInfo.push({ "id" : infoArr[idx] }); - } - return option; - }; -}; diff --git a/WebContent/ui/cfs/fine/FN085M01.xml b/WebContent/ui/cfs/fine/FN085M01.xml index f4f9fd6..209ca41 100644 --- a/WebContent/ui/cfs/fine/FN085M01.xml +++ b/WebContent/ui/cfs/fine/FN085M01.xml @@ -55,22 +55,10 @@ mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="조회중입니다." ev:submit="" ev:submitdone="" ev:submiterror="" abortTrigger=""> - - - -