/******************************************************************************************************************** * * rbcfBugtDeptComboBind ÄÞº¸¿¡ ¿¹»ê»ç¿ëºÎ¼­ ¹ÙÀεù * rbcfGetSupAcntListCombo °ü, Ç×, ¸ñ, ¼¼¸ñ ÄÞº¸¹Ú½º ¹ÙÀεù.. * rbcfGetSupAcntList * * * * * * * * * ********************************************************************************************************************/ //ÄÞº¸¿¡ ¿¹»ê»ç¿ëºÎ¼­ /* pcontrol_name : Data¸¦ ¹ÞÀ» Control pall : ºó°ø¹é »ðÀÔ ¿©ºÎ */ function rbcfBugtDeptComboBind(pcontrol_name, pall) { var control_id = pcontrol_name.attribute("id"); var sParamsNode = "/root/send/paramref"; var sRsltNode = "/root/init/dept"; var sItemSet = "/root/init/" + control_id; model.removeNodeset(sParamsNode); model.removeNodeset(sItemSet); model.makeNode(sParamsNode); model.makeNode(sRsltNode); model.makeNode(sItemSet); pcontrol_name.choices.itemset.attribute("nodeset") = sItemSet+"/bugtdeptlist"; pcontrol_name.choices.itemset.value.attribute("ref") = "deptcd"; pcontrol_name.choices.itemset.label.attribute("ref") = "depthngnm"; pcontrol_name.refresh(); model.removeChild("TRRBC90205"); model.createChild("xforms:submission", "id:TRRBC90205;mediatype:application/x-www-form-urlencoded; method:post; ref:" + sParamsNode + "; resultref:" + sRsltNode + "; "); submit("TRRBC90205"); if(pall != null && pall == "Y") { model.makeValue(sItemSet + "/bugtdeptlist[" + 1 + "]/deptcd", ""); model.makeValue(sItemSet + "/bugtdeptlist[" + 1 + "]/depthngnm", ""); sourcenode = document.models(0).instances(0).selectSingleNode(sRsltNode); tarnode = document.models(0).instances(0).selectSingleNode(sItemSet); cnt = 1; var sourcenodelist = sourcenode.childNodes; while (childNode = sourcenodelist.nextNode()) { model.makeValue(sItemSet+"/bugtdeptlist[" + (cnt + 1) + "]/deptcd", childNode.getXPathString(sRsltNode + "/bugtdeptlist[" + cnt + "]/deptcd")); model.makeValue(sItemSet+"/bugtdeptlist[" + (cnt + 1) + "]/depthngnm", childNode.getXPathString(sRsltNode + "/bugtdeptlist[" + cnt + "]/depthngnm")); cnt++; } } else { model.copyNode(sItemSet,sRsltNode); } model.refresh(); } // ±â¼ö °ü¸® Å×ÀÌºí¿¡ Àִ ȸ°è³âµµ¸¦ Á¶È¸ÇÑ´Ù. /* * pInstacePath : µ¥ÀÌÅÍ ³ëµå°æ·Î * pRecvList : ÀúÀåµÉ ÀνºÅϽº °æ·Î; */ function rbcfGetSupAcntList(pGrid) { var sRecvNode = "bugtusesupcdlist"; var sParamsNode = "/root/send/retrparam"; var sRsltNode = "/root/temp/acntlist"; var arrRef = ""; var sShowRsltNode = ""; if(pGrid != null || pGrid != "") { arrRef = pGrid.attribute("nodeset").split('/'); sShowRsltNode = ""; for(var i=1; i