/** * @desc : Source NodeÀÇ °¹¼ö¸¦ ±¸ÇÑ´Ù. * @ * @param : path - node path * @return : * @authur : ±è¼±Å 2007. 5. 8 * @--------------------------------------------------- */ function getNodeSetCnt(path) { var insXml = model.instances(0); var nodeList = insXml.selectNodes(path); return nodeList.length; } /** * @desc : Source NodeÀÇ child nodelist¸¦ DestinationÀÇ nodelist·Î appendÇÑ´Ù. * * @param : strDest - µµÂønode path * : strSrc - Ãâ¹ßnode path * @return : * @authur : ÀÌ»óÇö 2007. 3. 27 * @--------------------------------------------------- */ function addCopyNodeset(strDest, strSrc, mode, destModel, srcModel) { if( destModel == null || destModel =="" ) destModel = document.models.item(0); if( srcModel == null || srcModel =="" ) srcModel = document.models.item(0); var srcNodeList = srcModel.instances(0).selectNodes(strSrc); var srcNode; var pDestNode = destModel.instances.item(0).selectSingleNode(strDest).parentNode; if( mode == "replace" || mode == null ) { destModel.removeNodeset(strDest); while( srcNode = srcNodeList.nextNode() ) { pDestNode.appendChild(srcNode.cloneNode(true)); } } else if( mode == "after" ) { while( srcNode = srcNodeList.nextNode() ) { pDestNode.appendChild(srcNode.cloneNode(true)); } } else if( mode == "before" ) { var destNode; for( var i = srcNodeList.length - 1; i >= 0; i-- ) { destNode = destModel.instances.item(0).selectSingleNode(strDest + "[1]"); pDestNode.insertBefore(srcNodeList.item(i).cloneNode(true), destNode); } } } /** * @desc : »ç¿ëÀÚÀÇ ±ÇÇÑÀ» üũÇÏ¿© ¹öư¼ÂÆÃ. * btn_r Á¶È¸¹öư, btn_x ÀúÀå ¹× ¼öÁ¤ ¹öư, btn_p : Ãâ·Â¹öư * @ * @param : * @return : * @authur : ±è¼±Å 2007. 5. 8 * @--------------------------------------------------- */ function fchkAuth() { for(var i=0; i<= document.controls.length-1 ; i++){ if(document.controls.item(i).elementName == "xforms:button"){ if(document.controls.item(i).attribute("id").substr(0,6) == "btn_r_"){ document.controls.item(i).disabled = !checkAuth("R"); } if(document.controls.item(i).attribute("id").substr(0,6) == "btn_x_"){ document.controls.item(i).disabled = !checkAuth("X"); } if(document.controls.item(i).attribute("id").substr(0,6) == "btn_p_"){ document.controls.item(i).disabled = !checkAuth("P"); } } } } /** * @desc : ÆûÃʱâÈ­ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fFormInit() { btn_chrtlist.dispatch("onclick"); //°øÅëÄÚµå °¡Á®¿À±â... //P0021:ÃÊÀçÁø±¸ºÐÄÚµå, F:º´¿øÃÊÁø, R:ÀçÁø, D:°úÃÊÁø, S:»óº´ÃÊÁø, 4:Ÿ°ú°æÀ¯(ÃÊÁøÀε¥ ÀçÁø·á¼ö³³) //M0392:íƮ¹Ì´ëÃâ»çÀ¯ÄÚµå //M0412:°úº¸°ü»çÀ¯ÄÚµå //M0424:íƮ»óÅÂÄÚµå zbcfGetCodeList( new Array("P0021","M0392","M0412","M0424"), new Array("/root/init/P0021","/root/init/M0392","/root/init/M0412","/root/init/M0424")); //´ëÃâÄÚµå ºÒ·¯¿À±â model.makeValue("/root/send/reqdata/ioflag", "O"); submit("TRMRC01305"); // ´ëÃâ¿ëµµ, ´ëÃâ°ú, Â÷Æ®°ú, Â÷Æ®´ã´çÀÚ, º¸°üÀå¼Ò model.makeValue("/root/send/reqdata/ioflag" , "O"); model.makeValue("/root/send/reqdata/useyn" , ""); model.makeValue("/root/send/reqdata/allwardyn", ""); model.refresh(); submit("TRMRC00100"); } /** * @desc : ¼±ÅÃµÈ Ã­Æ®Á¤º¸¸¦ »óÀ§¿¡ µð½ºÇ÷¹ÀÌ ÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fDisplayChrtInfo(gridObj){ if (gridObj.row < 1){ return; } var ref = gridObj.nodeset; var row = gridObj.row; var pid = model.getValue(ref + "[" + row +"]/pid"); var pnm = model.getValue(ref + "[" + row +"]/pnm"); var orddeptcd = model.getValue(ref + "[" + row +"]/orddeptcd"); var lastorddd = model.getValue(ref + "[" + row +"]/lastorddd"); var bcno = model.getValue(ref + "[" + row +"]/bcno"); var chrtrem = model.getValue(ref + "[" + row +"]/chrtrem"); var fstrgstdt = model.getValue(ref + "[" + row +"]/fstrgstdt"); var chrtstat = model.getValue(ref + "[" + row +"]/chrtstat"); var lendyn = model.getValue(ref + "[" + row +"]/lendyn"); var ioflag = model.getValue(ref + "[" + row +"]/ioflag"); var medirecno = model.getValue(ref + "[" + row +"]/medirecno"); var orddeptabbr = model.getValue(ref + "[" + row +"]/orddeptabbr"); model.makeValue("/root/main/chrtinfo/pid" , pid); model.makeValue("/root/main/chrtinfo/pnm" , pnm); model.makeValue("/root/main/chrtinfo/orddeptcd" , orddeptcd); model.makeValue("/root/main/chrtinfo/lastorddd" , lastorddd); model.makeValue("/root/main/chrtinfo/bcno" , bcno); model.makeValue("/root/main/chrtinfo/chrtrem" , chrtrem); model.makeValue("/root/main/chrtinfo/fstrgstdt" , fstrgstdt); model.makeValue("/root/main/chrtinfo/chrtstat" , chrtstat); model.makeValue("/root/main/chrtinfo/lendyn" , lendyn); model.makeValue("/root/main/chrtinfo/ioflag" , ioflag); model.makeValue("/root/main/chrtinfo/medirecno" , medirecno); model.makeValue("/root/main/chrtinfo/orddeptabbr", orddeptabbr); model.refresh(); model.makeValue("/root/send/reqdata/medirecno", medirecno); model.makeValue("/root/send/reqdata/pid" , pid); // íƮºÐ½ÇÀÌ·ÂÁ¶È¸ submit("TRMRC01401"); // íƮ´ëÃâÀÌ·ÂÁ¶È¸ submit("TRMRC00170"); } function fDisplayChrtInfoI(gridObj){ if (gridObj.row < 1){ return; } var ref = gridObj.nodeset; var row = gridObj.row; var pid = model.getValue(ref + "[" + row +"]/pid"); var pnm = model.getValue(ref + "[" + row +"]/pnm"); var dschdeptcd = model.getValue(ref + "[" + row +"]/dschdeptcd"); var dschdd = model.getValue(ref + "[" + row +"]/dschdd"); var bcno = model.getValue(ref + "[" + row +"]/bcno"); var chrtrem = model.getValue(ref + "[" + row +"]/chrtrem"); var fstrgstdt = model.getValue(ref + "[" + row +"]/fstrgstdt"); var lendyn = model.getValue(ref + "[" + row +"]/lendyn"); var chrtstat = model.getValue(ref + "[" + row +"]/chrtstat"); var ioflag = model.getValue(ref + "[" + row +"]/ioflag"); var medirecno = model.getValue(ref + "[" + row +"]/medirecno"); var dschdeptnm = model.getValue(ref + "[" + row +"]/dschdeptnm"); model.makeValue("/root/main/chrtinfo/pid" , pid); model.makeValue("/root/main/chrtinfo/pnm" , pnm); model.makeValue("/root/main/chrtinfo/dschdeptcd", dschdeptcd); model.makeValue("/root/main/chrtinfo/dschdd" , dschdd); model.makeValue("/root/main/chrtinfo/bcno" , bcno); model.makeValue("/root/main/chrtinfo/chrtrem" , chrtrem); model.makeValue("/root/main/chrtinfo/fstrgstdt" , fstrgstdt); model.makeValue("/root/main/chrtinfo/lendyn" , lendyn); model.makeValue("/root/main/chrtinfo/chrtstat" , chrtstat); model.makeValue("/root/main/chrtinfo/ioflag" , ioflag); model.makeValue("/root/main/chrtinfo/medirecno" , medirecno); model.makeValue("/root/main/chrtinfo/dschdeptnm", dschdeptnm); model.refresh(); model.makeValue("/root/send/reqdata/medirecno", medirecno); model.makeValue("/root/send/reqdata/pid" , pid); // íƮºÐ½ÇÀÌ·ÂÁ¶È¸ submit("TRMRC01401"); // íƮ´ëÃâÀÌ·ÂÁ¶È¸ submit("TRMRC02702"); } /** * @desc : íƮÁ¤º¸¸¦ ÃʱâÈ­ÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fClearChrtInfo(){ model.makeValue("/root/main/chrtinfo/pid" , ""); model.makeValue("/root/main/chrtinfo/pnm" , ""); model.makeValue("/root/main/chrtinfo/medirecno" , ""); model.makeValue("/root/main/chrtinfo/orddeptcd" , ""); model.makeValue("/root/main/chrtinfo/bcno" , ""); model.makeValue("/root/main/chrtinfo/chrtrem" , ""); model.makeValue("/root/main/chrtinfo/chrtstat" , ""); model.makeValue("/root/main/chrtinfo/lendyn" , ""); model.makeValue("/root/main/chrtinfo/lastorddd" , ""); model.makeValue("/root/main/chrtinfo/fstrgstdt" , ""); model.makeValue("/root/main/chrtinfo/dschdeptcd" , ""); model.makeValue("/root/main/chrtinfo/dschdd" , ""); model.makeValue("/root/main/chrtinfo/orddeptabbr", ""); model.makeValue("/root/main/chrtinfo/dschdeptnm" , ""); model.refresh(); } /** * @desc : íƮÁ¤º¸¸¦ µî·ÏÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fSaveChrtInfo(){ var medirecno = model.getValue("/root/main/chrtinfo/medirecno"); if(medirecno != ""){ messageBox("Â÷Æ®ÀÌ·ÂÀÌ ¼±ÅõǾîÀÖ½À´Ï´Ù.\n½Å±Ô¹öưÀ» ´­·¯ ´Ù½Ã ÀÛ¼º ÇØ Áֽʽÿä" , "I999") return; } var orddeptcd = model.getValue("/root/main/chrtinfo/orddeptcd"); var medirecno = model.getValue("/root/main/chrtlist[orddeptcd = "+ orddeptcd +"]/orddeptcd"); if (medirecno != ""){ messageBox("ÀÌ¹Ì µî·ÏµÈ Â÷Æ®°úÀÔ´Ï´Ù.\n½Å±Ô¹öưÀ» ´­·¯ ´Ù½Ã ÀÛ¼º ÇØ Áֽʽÿä" , "I999") return; } // if(medirecno == ""){ // model.setValue("/root/main/chrtinfo/medirecno","0"); // } submit("TXMRC01401"); } /** * @desc : íƮÁ¤º¸¸¦ ¼öÁ¤ÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fUpdateChrtInfo(){ var medirecno = model.getValue("/root/main/chrtinfo/medirecno"); if(medirecno == ""){ messageBox("¼±ÅÃµÈ Â÷Æ®ÀÌ·ÂÀÌ ", "I004") return; } submit("TXMRC01401"); } /** * @desc : íƮÁ¤º¸¸¦ »èÁ¦ÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fDeleteChrtInfo(ioflag){ var medirecno = model.getValue("/root/main/chrtinfo/medirecno"); if(medirecno == ""){ messageBox("¼±ÅÃµÈ Â÷Æ®ÀÌ·ÂÀÌ ", "I004") return; } else { if(messageBox("¼±ÅÃµÈ Â÷Æ®ÀÌ·ÂÀ» ", "Q001") == "7"){ return; } } // Â÷Æ®´ëÃâÀÌ·ÂÀ» Á¶È¸ÇÑ´Ù. Ä«¿îÆ®°¡ 0 ÀÎ °æ¿ì¸¸ »èÁ¦ÇÑ´Ù. if (ioflag == "O") { submit("TRMRC00170"); } else { submit("TRMRC02702"); } var cnt = getNodeSetCnt("/root/main/chrtlendlist"); if (cnt == 0) { submit("TXMRC01402"); // »èÁ¦ÈÄ Ã­Æ®Á¤º¸ ÃʱâÈ­ÇÑ´Ù. fClearChrtInfo(); } else { messageBox("¼±ÅÃµÈ Â÷Æ®ÀÌ·ÂÀÇ ´ëÃâÀÌ·ÂÀÌ À־ »èÁ¦ ", "E001") return; } } /** * @desc : ȯÀÚµî·Ï¹øÈ£ Á¶È¸ ÆË¾÷ * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fGetPid(refPid, refPnm) { //Á¶È¸°Ç¼ö°¡ 1°ÇÀÏ °æ¿ì ÆË¾÷âÀ» ¹Ù·Î ´Ý´Â´Ù. model.setValue("/root/hidden/tmp/pidpopupinfo/checkfnexam", "1"); model.setValue("/root/hidden/tmp/pidpopupinfo/autoflag", "N"); if( model.getValue("/root/hidden/tmp/pidpopupinfo/srchcond") == '' ){ model.setValue("/root/hidden/tmp/pidpopupinfo/srchcond", '2'); } modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/tmp/pidpopupinfo", "/root/send"); model.resetInstanceNode("/root/source"); //ȯÀÚ¹øÈ£ copy var popupendflag = model.getValue("/root/main/popupendflag"); if (popupendflag == "ok") { model.setValue(refPid, model.getValue("/root/main/patinfo/patinfolist/pid")); if (refPnm != null || refPnm != "") { model.setValue(refPnm, model.getValue("/root/main/patinfo/patinfolist/hngnm")); } model.refresh(); } } /** * @desc : ¼±ÅÃµÈ Ã­Æ®Á¤º¸¸¦ »óÀ§¿¡ µð½ºÇ÷¹ÀÌ ÇÑ´Ù. * @ * @param : gridObj - ±×¸®µå ÄÁÆ®·Ñ * @return : * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fDisplayLendList(gridObj){ if (isDataCell() == false){ return; } if (gridObj.row < 1){ return; } var ref = gridObj.nodeset; var row = gridObj.row; var pid = model.getValue(ref + "[" + row +"]/pid"); var chrtseqno = model.getValue(ref + "[" + row +"]/chrtseqno"); var appdeptcd = model.getValue(ref + "[" + row +"]/appdeptcd"); var lendmanid = model.getValue(ref + "[" + row +"]/lendmanid"); var appmanid = model.getValue(ref + "[" + row +"]/appmanid"); var cntctelno = model.getValue(ref + "[" + row +"]/cntctelno"); var appdt = model.getValue(ref + "[" + row +"]/appdt"); var fstacptprndt = model.getValue(ref + "[" + row +"]/fstacptprndt"); var rendschedt = model.getValue(ref + "[" + row +"]/rendschedt"); var renddt = model.getValue(ref + "[" + row +"]/renddt"); var rtndt = model.getValue(ref + "[" + row +"]/rtndt"); var delyn = model.getValue(ref + "[" + row +"]/delyn"); var rendcd = model.getValue(ref + "[" + row +"]/rendcd"); var rendresn = model.getValue(ref + "[" + row +"]/rendresn"); var unrendcd = model.getValue(ref + "[" + row +"]/unrendcd"); var unrendresn = model.getValue(ref + "[" + row +"]/unrendresn"); var deptkeepcd = model.getValue(ref + "[" + row +"]/deptkeepcd"); var deptkeepresn = model.getValue(ref + "[" + row +"]/deptkeepresn"); var unrtnresn = model.getValue(ref + "[" + row +"]/unrtnresn"); var msgcnts = model.getValue(ref + "[" + row +"]/msgcnts"); var roomcd = model.getValue(ref + "[" + row +"]/roomcd"); var fsexamflag = model.getValue(ref + "[" + row +"]/fsexamflag"); var chrtdeptcd = model.getValue(ref + "[" + row +"]/chrtdeptcd"); var lendman = model.getValue(ref + "[" + row +"]/lendman"); var appman = model.getValue(ref + "[" + row +"]/appman"); var rtnschedd = model.getValue(ref + "[" + row +"]/rtnschedd"); var rendbcflag = model.getValue(ref + "[" + row +"]/rendbcflag"); var rtnbcflag = model.getValue(ref + "[" + row +"]/rtnbcflag"); model.makeValue("/root/main/chrtlendinfo/pid" , pid); model.makeValue("/root/main/chrtlendinfo/chrtseqno" , chrtseqno); model.makeValue("/root/main/chrtlendinfo/appdeptcd" , appdeptcd); model.makeValue("/root/main/chrtlendinfo/lendmanid" , lendmanid); model.makeValue("/root/main/chrtlendinfo/appmanid" , appmanid); model.makeValue("/root/main/chrtlendinfo/cntctelno" , cntctelno); model.makeValue("/root/main/chrtlendinfo/appdt" , appdt); model.makeValue("/root/main/chrtlendinfo/appdd" , appdt.substring(0,8)); model.makeValue("/root/main/chrtlendinfo/apptm" , appdt.substring(8,14)); model.makeValue("/root/main/chrtlendinfo/fstacptprndt", fstacptprndt); model.makeValue("/root/main/chrtlendinfo/rendschedd" , rendschedt.substring(0,8)); model.makeValue("/root/main/chrtlendinfo/rendschetm" , rendschedt.substring(8,12)); model.makeValue("/root/main/chrtlendinfo/renddt" , renddt); model.makeValue("/root/main/chrtlendinfo/renddd" , renddt.substring(0,8)); model.makeValue("/root/main/chrtlendinfo/rendtm" , renddt.substring(8,14)); model.makeValue("/root/main/chrtlendinfo/rtndt" , rtndt); model.makeValue("/root/main/chrtlendinfo/rtndd" , rtndt.substring(0,8)); model.makeValue("/root/main/chrtlendinfo/rtntm" , rtndt.substring(8,14)); model.makeValue("/root/main/chrtlendinfo/delyn" , delyn); model.makeValue("/root/main/chrtlendinfo/rendcd" , rendcd); model.makeValue("/root/main/chrtlendinfo/rendresn" , rendresn); model.makeValue("/root/main/chrtlendinfo/unrendcd" , unrendcd); model.makeValue("/root/main/chrtlendinfo/unrendresn" , unrendresn); model.makeValue("/root/main/chrtlendinfo/deptkeepcd" , deptkeepcd); model.makeValue("/root/main/chrtlendinfo/deptkeepresn", deptkeepresn); model.makeValue("/root/main/chrtlendinfo/unrtnresn" , unrtnresn); model.makeValue("/root/main/chrtlendinfo/msgcnts" , msgcnts); model.makeValue("/root/main/chrtlendinfo/roomcd" , roomcd); model.makeValue("/root/main/chrtlendinfo/fsexamflag" , fsexamflag); model.makeValue("/root/main/chrtlendinfo/chrtdeptcd" , chrtdeptcd); model.makeValue("/root/main/chrtlendinfo/lendman" , lendman); model.makeValue("/root/main/chrtlendinfo/appman" , appman); model.makeValue("/root/main/chrtlendinfo/rtnschedd" , rtnschedd); model.makeValue("/root/main/chrtlendinfo/rendbcflag" , rendbcflag); model.makeValue("/root/main/chrtlendinfo/rtnbcflag" , rtnbcflag); model.refresh(); } /** * @desc : íƮ»óŸ¦ ¼öÁ¤ÇÑ´Ù. * @ * @param : * @return : * @authur : ÀÌÀº¿µ 2008.06.11 * @--------------------------------------------------- */ function fUpdateChrtStat(){ var medirecno = model.getValue("/root/main/chrtinfo/medirecno"); if(medirecno == ""){ messageBox("¼±ÅÃµÈ Â÷Æ®ÀÌ·ÂÀÌ ", "I004") return; } model.removeNodeset("/root/main/chrtstatlist"); submit("TXMRC01403"); } /** * @desc : ´ëÃâÀÚ/¹Ý³³ÀÚ Á¶È¸ * @ * @param : refUserid - ´ëÃâÀÚ ID, refUserNm - ´ëÃâÀÚ¸í * @return : * @authur : ÀÌÀ±Á¤ 2008.07.21 * @--------------------------------------------------- */ function fGetUserid(refUserid, refUserNm) { model.removenode("/root/hidden/tmp/tempuserinfo/list"); model.reset("/root/hidden/tmp/tempuserinfo"); var user = model.getValue(refUserid); var flag = "userid"; if(isNaN(user)){ flag = "usernm"; } model.setValue("/root/hidden/tmp/userpopupinfo/param", "_OneS"); model.setValue("/root/hidden/tmp/userpopupinfo/flag", flag); model.setValue("/root/hidden/tmp/userpopupinfo/searchitem", user); modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/hidden/tmp/userpopupinfo","/root/main/temp"); var iParam = getParameter("SPZSU10103_"); setCSVToNode("/root/hidden/tmp/tempuserinfo", iParam); clearParameter("SPZSU10103_"); model.refresh(); //fSearch´Â ÀÎÀû»çÇ× È­¸éÀ» ÀÓÆ÷Æ® ÇØ°£ È­¸é¿¡¼­ ±¸ÇöÇØ ÁÖ¾î¾ß ÇÏ´Â ÇÔ¼öÀÌ´Ù. if( getNodesetCount("/root/hidden/tmp/tempuserinfo/list") > 0 ){ var userid = model.getValue("/root/hidden/tmp/tempuserinfo/list/userid"); var usernm = model.getValue("/root/hidden/tmp/tempuserinfo/list/usernm"); model.makeValue(refUserid, userid); if (refUserNm != null) { model.makeValue(refUserNm, usernm); } model.refresh(); } } /** * @desc : µî·ÏµÈ »ç¿ëÀÚ ¹øÈ£ÀÎÁö üŷÇÑ´Ù.. * @ * @param : iptObj - »ç¿ëÀÚ ID ÀÔ·Â ÄÁÆ®·Ñ (userid) * @return : posdeptcd - »ç¿ëÀÚ ºÎ¼­ÄÚµå * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fCheckUserid(iptObj) { setInputNodeCurText(); // »ç¿ëÀÚ ¹øÈ£ üũ if(iptObj.currentText.length > 0 ){ // »ç¿ëÀÚ Á¶È¸ model.removenode("/root/hidden/tmp/tempuserinfo/list"); model.reset("/root/hidden/tmp/tempuserinfo"); model.setValue("/root/hidden/tmp/userpopupinfo/param", "_OneS"); model.setValue("/root/hidden/tmp/userpopupinfo/flag", "userid"); model.setValue("/root/hidden/tmp/userpopupinfo/searchitem", iptObj.currentText); modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/hidden/tmp/userpopupinfo","/root/main/temp"); var iParam = getParameter("SPZSU10103_"); setCSVToNode("/root/hidden/tmp/tempuserinfo", iParam); clearParameter("SPZSU10103_"); //fSearch´Â ÀÎÀû»çÇ× È­¸éÀ» ÀÓÆ÷Æ® ÇØ°£ È­¸é¿¡¼­ ±¸ÇöÇØ ÁÖ¾î¾ß ÇÏ´Â ÇÔ¼öÀÌ´Ù. if( getNodesetCount("/root/hidden/tmp/tempuserinfo/list") > 0 ){ var userid = model.getValue("/root/hidden/tmp/tempuserinfo/list/userid"); var posdeptcd = model.getValue("/root/hidden/tmp/tempuserinfo/list/posdeptcd"); iptObj.value = userid; model.refresh(); return posdeptcd; //fSearch(); }else{ model.resetInstanceNode("/root/hidden/tmp/tempuserinfo/list"); messageBox("¾ø´Â »ç¿ëÀÚ ¹øÈ£ ÀÔ´Ï´Ù.", "E999", ""); model.refresh(); } }else{ messageBox("»ç¿ëÀÚ ¹øÈ£¸¦ Á¤È®È÷", "C001"); } return ""; } /** * @desc : µî·ÏµÈ ȯÀÚ¹øÈ£ÀÎÁö üŷÇÑ´Ù.. * @ * @param : iptObj - ȯÀÚ¹øÈ£ ÀÔ·Â ÄÁÆ®·Ñ (pid) * @return : * @authur : ÀÌÀº¿µ 2008.09.17 * @--------------------------------------------------- */ function fGetPidNo(iptObj, ref) { var chkyn = model.getValue(ref); if (chkyn == "Y") { if (iptObj.currentText.length > 0) { var pid = iptObj.currentText; pid = getCretCheckNo(pid, getUserInfo("dutplceinstcd")); model.makeValue(iptObj.attribute("ref"), pid); iptObj.refresh(); } } } /** * @desc : µî·ÏµÈ ȯÀÚ¹øÈ£ÀÎÁö üŷÇÑ´Ù.. * @ * @param : iptObj - ȯÀÚ¹øÈ£ ÀÔ·Â ÄÁÆ®·Ñ (pid) * @return : pnm - ȯÀÚ¸í * @authur : ÀÌÀº¿µ 2008.03.18 * @--------------------------------------------------- */ function fCheckPid(iptObj, refPnm) { model.makeValue("/root/send/req/srchcond", "1"); model.makeValue("/root/send/req/pid", iptObj.currentText); //ȯÀÚµî·Ï¹øÈ£ üũ if(iptObj.currentText.length > 0 ){ model.resetInstanceNode("/root/main/result/patinfo"); model.makeNode("/root/main/result/patinfo"); if(submit("TRPMC02500", "", "/root/send/req", "/root/main/result/patinfo")){ //fSearch´Â ÀÎÀû»çÇ× È­¸éÀ» ÀÓÆ÷Æ® ÇØ°£ È­¸é¿¡¼­ ±¸ÇöÇØ ÁÖ¾î¾ß ÇÏ´Â ÇÔ¼öÀÌ´Ù. if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){ model.copyNode("/root/main/patinfo", "/root/main/result/patinfo"); //* 2009.04.07. ÀÌÁß¹øÈ£ ¸Þ¼¼Áö ( 14257937 ¹Ú¿ë¼® -> 13275912 ½Å¿Á¼ø ) var sBindPid = model.getValue("/root/main/result/patinfo/patinfolist/bindpid"); if( sBindPid != '-' && sBindPid != '' && sBindPid != ' ' ){ //ÇÕ¹øµÈ µî·Ï¹øÈ£ ¸Þ¼¼Áö ó¸® var sPid = model.getValue("/root/main/result/patinfo/patinfolist/pid"); var sHngnm = model.getValue("/root/main/result/patinfo/patinfolist/hngnm"); var retValue = messageBox(sPid + " (" + sHngnm + ") ȯÀÚÀÇ µî·Ï¹øÈ£°¡ [ " + sBindPid + " ] ·Î ÇÕ¹ø µÇ¾ú½À´Ï´Ù. ÇÕ¹øµÈ µî·Ï¹øÈ£·Î ÀçÁ¶È¸ ÇϽðڽÀ´Ï±î?", "Q999", ""); if( retValue == '6' ){ model.makeValue(iptObj.attribute("ref"), sBindPid); iptObj.refresh(); fCheckPid(iptObj, refPnm); return ""; } } //*/ var pid = model.getValue("/root/main/result/patinfo/patinfolist/pid"); var pnm = model.getValue("/root/main/result/patinfo/patinfolist/hngnm"); if (refPnm != null) { model.makeValue(refPnm, pnm); } return pnm; }else{ model.resetInstanceNode("/root/main/patinfo/patinfolist"); messageBox("¾ø´Â ȯÀÚ ¹øÈ£ ÀÔ´Ï´Ù.", "E999", ""); model.refresh(); return ""; } } }else{ messageBox("ȯÀÚµî·Ï¹øÈ£¸¦ Á¤È®È÷", "C001"); return ""; } }