diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp index 5fde908e..5419bcaf 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -689,7 +689,24 @@ $(document).ready(function() { if (crdnId == undefined || crdnId == null || crdnId == "") { return; } - + + var upDataset = $P.integrationSearchControl.upDataset; + var downDataset = $P.integrationSearchControl.downDataset; + + if(upDataset.length > 0){ + var info = upDataset.getData(crdnId); + if(info != null){ + $P.integrationSearchControl.flag = "up"; + } + } + + if(downDataset.length > 0){ + var info = downDataset.getData(crdnId); + if(info != null){ + $P.integrationSearchControl.flag = "down"; + } + } + var params = { callControlName : "pageObject['${pageName}'].integrationSearchControl" , crdnId : crdnId diff --git a/src/main/webapp/resources/js/fims/sprt/integrationSearch.js b/src/main/webapp/resources/js/fims/sprt/integrationSearch.js index aae252a1..b8f47f33 100644 --- a/src/main/webapp/resources/js/fims/sprt/integrationSearch.js +++ b/src/main/webapp/resources/js/fims/sprt/integrationSearch.js @@ -29,4 +29,11 @@ class IntegrationSearchControl extends DatasetControl { this.downDataset.setData(obj.downList); } + set flag(updown) { + if(updown == "up"){ + this.dataset = this.upDataset; + } else if(updown == "down"){ + this.dataset = this.downDataset; + } + } } \ No newline at end of file