/* Tophology/ICD-O-3 Áø´Ü °ü¸®(SMMRT00500.xfm - JScript ) - Version : 1) : Ver.1.00.01 */ var xCondPath = "/root/main/cond"; // Á¶È¸ Á¶°Ç var xICDO3Path = "/root/main/icdo3info/icdo3list"; // Morphology Á¤º¸ var xDiagInfoPath = "/root/main/diaginfo"; // µî·ÏÇÒ Áø´Ü Á¤º¸ var xTophlgPath = "/root/main/tophlginfo/tophlglist"; // Tophology Á¤º¸ var xIndxInfoPath = "/root/main/indxinfo/indxlist"; // »öÀÎ Á¤º¸ var xRefPath = "/root/hidden/condition/getdata"; // ÆË¾÷ Á¤º¸ /** * @group : * @ver : 2007.03.20 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ model.setValue(xCondPath+"/diagflag","C"); model.setValue(xCondPath+"/indxnmflag", "E"); model.toggle("Tophlg"); model.refresh(); fIndxSearch("Tophlg"); } /** * @group : * @ver : 2007.03.21 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±×¸®µå Ŭ¸¯½Ã.. * @param : * @return : * @--------------------------------------------------- */ function fClickedGrid(){ var sDiagInfo = swt_diaginfo.selectedIndex; var iRow = -1; var iCol = -1; model.setValue(xDiagInfoPath+"/stat",""); fSetCtrl(true); switch(sDiagInfo){ case 0 : // Tophology iCol = grd_tophlginfo.col; iRow = grd_tophlginfo.row; grd_tophistlist.attribute("visibility") = "visible"; grd_mophistlist.attribute("visibility") = "hidden"; if(iRow < 1) return; model.copyNode(xDiagInfoPath,xTophlgPath+"["+iRow+"]"); //model.setValue(xDiagInfoPath+"/stat","U"); model.setValue(xTophlgPath+"["+iRow+"]/stat","U"); //model.setValue(xDiagInfoPath+"/fromdd",getDate()); ipt_tophlgcd.visible = true; ipt_histlgccd.visible = false; cap_diagcd.value = "¿ø¹ßÀå±âÄÚµå"; cap_diagtital.value="Topography Áø´ÜÁ¤º¸"; model.removenode("/root/send"); model.makeValue("/root/send/flag", "Tophology"); model.makeValue("/root/send/cd", model.getValue(xTophlgPath+"["+iRow+"]/tophlgcd")); model.makeValue("/root/send/grde", model.getValue(xTophlgPath+"["+iRow+"]/grde")); model.makeValue("/root/send/seqno", model.getValue(xTophlgPath+"["+iRow+"]/seqno")); model.copyNode("/root/main/diaghist", xTophlgPath+"["+iRow+"]"); submit("TRMRT00504"); model.refresh(); break; case 1 : // Morphology iCol = grd_icdo3info.col; iRow = grd_icdo3info.row; grd_tophistlist.attribute("visibility") = "hidden"; grd_mophistlist.attribute("visibility") = "visible"; if(iRow < 1) return; model.copyNode(xDiagInfoPath,xICDO3Path+"["+iRow+"]"); //model.setValue(xDiagInfoPath+"/stat","U"); model.setValue(xICDO3Path+"["+iRow+"]/stat","U"); //model.setValue(xDiagInfoPath+"/fromdd",getDate()); ipt_tophlgcd.visible = false; ipt_histlgccd.visible = true; cap_diagcd.value = "Á¶Á÷ÇÐÀû ÄÚµå"; model.removenode("/root/send"); model.makeValue("/root/send/flag","Morphology"); model.makeValue("/root/send/cd", model.getValue(xICDO3Path+"["+iRow+"]/histlgccd")); model.makeValue("/root/send/grde", model.getValue(xICDO3Path+"["+iRow+"]/grde")); model.makeValue("/root/send/seqno", model.getValue(xICDO3Path+"["+iRow+"]/seqno")); model.copyNode("/root/main/diaghist", xICDO3Path+"["+iRow+"]"); submit("TRMRT00504"); model.refresh(); break; } } /** * @group : * @ver : 2007.03.22 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀÔ·Â Ç׸ñ clear * @param : * @return : * @--------------------------------------------------- */ function fInsDiagInfo(flag){ var sDiagInfo = swt_diaginfo.selectedIndex; //fSetCtrl(false); switch(flag){ case 'I': model.removenode(xDiagInfoPath); model.makeValue(xDiagInfoPath+"/stat","I"); fSetCtrl(false); model.makeNode(xDiagInfoPath+"/grde"); model.makeNode(xDiagInfoPath+"/seqno"); model.makeValue(xDiagInfoPath+"/indxcd",model.getValue(xCondPath+"/srchindxcd")); model.makeNode(xDiagInfoPath+"/engnm"); model.makeNode(xDiagInfoPath+"/hngnm"); model.makeNode(xDiagInfoPath+"/snmdcnptid"); break; case 'U': model.makeValue(xDiagInfoPath+"/stat","U"); fSetCtrl(false); model.makeNode(xDiagInfoPath+"/engnm"); model.makeNode(xDiagInfoPath+"/hngnm"); model.makeNode(xDiagInfoPath+"/snmdcnptid"); break; case 'D': model.makeValue(xDiagInfoPath+"/stat","D"); fSetCtrl(true); if(sDiagInfo == 0){ model.removenode("/root/send"); model.makeNode("/root/send/reqCond"); model.makeNode("/root/send/tophlginfo"); model.copyNode("/root/send/reqCond",xCondPath); model.makeValue("/root/send/reqCond/flag", "indx"); model.copyNode("/root/send/tophlginfo",xDiagInfoPath); submit("TXMRT00502"); return; } else if(sDiagInfo == 1){ model.removenode("/root/send"); model.makeNode("/root/send/reqCond"); model.makeNode("/root/send/icdo3info"); model.copyNode("/root/send/reqCond",xCondPath); model.makeValue("/root/send/reqCond/flag", "indx"); model.copyNode("/root/send/icdo3info",xDiagInfoPath); submit("TXMRT00501"); return; } break; } /* model.makeNode(xDiagInfoPath+"/grde"); model.makeNode(xDiagInfoPath+"/seqno"); model.makeValue(xDiagInfoPath+"/indxcd",model.getValue(xCondPath+"/srchindxcd")); model.makeNode(xDiagInfoPath+"/engnm"); model.makeNode(xDiagInfoPath+"/hngnm"); */ // Edited by NJ 2007-07-21 getDate() -> getCurrentDate() //model.makeValue(xDiagInfoPath+"/fromdd",getDate()); model.makeValue(xDiagInfoPath+"/fromdd", getCurrentDate()); model.makeValue(xDiagInfoPath+"/rgstdt", getCurrentDate()+getCurrentTime()); model.makeValue(xDiagInfoPath+"/rgstrid", getUserInfo("userid")); model.makeValue(xDiagInfoPath+"/rgstrnm", getUserInfo("usernm")); model.makeValue(xDiagInfoPath+"/todd","29991231"); switch(sDiagInfo){ case 0 : // Tophology if(flag == 'I'){ model.makeNode(xDiagInfoPath+"/tophlgcd"); } ipt_tophlgcd.visible = true; ipt_histlgccd.visible = false; cap_diagcd.value = "¿ø¹ßÀå±âÄÚµå"; cap_diagtital.value="Topography Áø´ÜÁ¤º¸"; break; case 1 : // Morphology if(flag == 'I'){ model.makeNode(xDiagInfoPath+"/cncrreptdiagcd"); model.makeNode(xDiagInfoPath+"/histlgccd"); } ipt_tophlgcd.visible = false; ipt_histlgccd.visible = true; cap_diagcd.value = "Á¶Á÷ÇÐÀû ÄÚµå"; cap_diagtital.value="Morphology Áø´ÜÁ¤º¸"; break; } } /** * @group : * @ver : 2007.03.20 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : Morphology/Tophology Áø´Ü ÄÚµå Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fDiagSearch(flag){ var sDiagInfo = swt_diaginfo.selectedIndex; if(flag == "indx"){ model.setValue("/root/main/cond/srchnm", ""); } //fInsDiagInfo(); //if(model.getValue(xCondPath+"/srchindxcd") == "") return; // »öÀÎÄڵ尡 ¾ø´Â °æ¿ì Á¶È¸¸¦ ÇÏÁö ¾ÊÀ½. model.setValue(xDiagInfoPath+"/stat", "-"); switch(sDiagInfo){ case 0 : // Tophology model.setValue(xCondPath+"/indxflag", 1); model.removenodeset(xTophlgPath); model.removenode("/root/send"); model.makeNode("/root/send"); model.copyNode("/root/send",xCondPath); model.makeValue("/root/send/flag", flag); model.makeValue("/root/send/srchfromdd", model.getValue("/root/main/cond/srchfromdd")); model.makeValue("/root/send/srchtodd", model.getValue("/root/main/cond/srchtodd")); model.makeValue("/root/send/endflag", model.getValue("/root/main/cond/endflag")); var diagflag = model.getValue("/root/send/diagflag"); var srchnm = model.getValue("/root/send/srchnm"); srchnm = srchnm.replace(/^ *| *$/g, ""); model.setValue("/root/send/srchnm", srchnm); if(diagflag != "H" && srchnm != ""){ model.setValue("/root/send/srchnm", srchnm.toUpperCase()); } fSetCtrl(true); submit("TRMRT00502"); break; case 1 : // Morphology model.setValue(xCondPath+"/indxflag", 3); model.removenodeset(xICDO3Path); model.removenode("/root/send"); model.makeNode("/root/send"); model.copyNode("/root/send",xCondPath); model.makeValue("/root/send/flag", flag); var diagflag = model.getValue("/root/send/diagflag"); var srchnm = model.getValue("/root/send/srchnm"); srchnm = srchnm.replace(/^ *| *$/g, ""); model.setValue("/root/send/srchnm", srchnm); if(diagflag != "H" && srchnm != ""){ model.setValue("/root/send/srchnm", srchnm.toUpperCase()); } fSetCtrl(true); submit("TRMRT00501"); break; } //model.setValue("/root/main/cond/srchnm", ""); model.refresh(); } /** * @group : * @ver : 2007.03.20 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ICD-O-3/Tophology »öÀÎ ÄÚµå Á¶È¸ * @param : pFlag (ICDO3 : ICD-O-3, Tophlg : Tophology) * @return : * @--------------------------------------------------- */ function fIndxSearch(pFlag){ model.removenode("/root/main/diaghist/list"); if(pFlag == "ICDO3"){ model.toggle("ICDO3"); model.setValue(xCondPath+"/indxflag","3"); model.removenodeset(xICDO3Path); model.setValue(xCondPath+"/srchindxcd",""); cap_diagcd.value = "Á¶Á÷ÇÐÀû ÄÚµå"; cap_diagtital.value = "Morphology Áø´ÜÁ¤º¸"; ipt_tophlgcd.visible = true; ipt_histlgccd.visible = false; grd_tophistlist.attribute("visibility") = "hidden"; grd_mophistlist.attribute("visibility") = "visible"; }else if(pFlag == "Tophlg"){ model.toggle("Tophlg"); model.setValue(xCondPath+"/indxflag","1"); model.removenodeset(xTophlgPath); model.setValue(xCondPath+"/srchindxcd",""); cap_diagcd.value = "¿ø¹ßÀå±âÄÚµå"; cap_diagtital.value = "Topography Áø´ÜÁ¤º¸"; ipt_tophlgcd.visible = true; ipt_histlgccd.visible = false; ipt_tophlgcd.disabled = true; grd_tophistlist.attribute("visibility") = "visible"; grd_mophistlist.attribute("visibility") = "hidden"; } model.removeNodeset("xIndxInfoPath"); model.removenode("/root/send"); model.makeNode("/root/send"); model.copyNode("/root/send",xCondPath); submit("TRMRT00503"); model.resetInstanceNode(xDiagInfoPath); fSetCtrl(true); trv_indxinfo.rebuild(); model.refresh(); } /** * @group : * @ver : 2007.03.21 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : µ¥ÀÌÅÍ º¯°æ ¿©ºÎ check * @param : pTgRef : target path * @param : pRgRef : regular path * @param : pNodeInfo : È®ÀÎÇÒ ³ëµå Á¤º¸ * @return : * @--------------------------------------------------- */ function fChkChangedData(pTgRef, pRgRef,pNodeInfo){ var sNodeInfo = pNodeInfo.split("¢Ì"); var sNode = sNodeInfo[0].split("¢Ë"); var sNodeNm = sNodeInfo[1].split("¢Ë"); for(var i=0; i 1){ messageBox("µî±ÞÀº ÇÑ ÀÚ¸®·Î", "C001"); return; } if(model.getValue(xDiagInfoPath+"/stat") == "-"){ messageBox("½Å±Ô ¹× ¼öÁ¤ ¸ðµå¸¦", "C002"); return; } var srchnm = model.getValue(xCondPath + "/srchnm"); srchnm = srchnm.toUpperCase(); var sDiagInfo = swt_diaginfo.selectedIndex; var sNodeInfo = ""; model.makeValue(xCondPath+"/flag", "indx"); var iRow = -1; switch(sDiagInfo){ case 0 : // Tophology iRow = grd_tophlginfo.row; if(iRow < 1 && model.getValue(xDiagInfoPath+"/stat") == "U"){ if(iRow < 1){ meassageBox("¼±ÅÃµÈ ¿ë¾î°¡", "I004"); } return; } sNodeInfo = "grde¢Ëtophlgcd¢Ëseqno¢Ëindxcd¢Ëengnm¢Ëhngnm¢Ëfromdd¢Ëtodd¢Ì"+ "µî±Þ¢Ë¿ø¹ßÀå±âÄÚµå¢ËÀϷùøÈ£¢Ë»öÀÎÄÚµå¢Ë¿µ¹®¸í¢ËÇѱ۸í¢Ë½ÃÀÛÀÏ¢ËÁ¾·áÀÏ¢Ë"; if(fChkValueEmpty(xDiagInfoPath,sNodeInfo) == true){ return; }else{ if(fChkChangedData(xDiagInfoPath,xTophlgPath+"["+iRow+"]",sNodeInfo) == false){ messageBox("º¯°æµÈ µ¥ÀÌÅͰ¡","I004"); return; } else if((model.getValue(xTophlgPath+"["+iRow+"]/fromdd") == model.getValue("/root/main/diaginfo/fromdd")) && (model.getValue(xDiagInfoPath+"/stat") == "U")){ messageBox("½ÃÀÛÀÏÀÚ°¡ µ¿ÀÏÇÑ ¿ë¾îÄڵ尡", "E005"); return; } } var sRtn = messageBox("","Q002"); if(sRtn != 6) return; model.removenode("/root/send"); model.makeNode("/root/send/reqCond"); model.makeNode("/root/send/tophlginfo"); model.copyNode("/root/send/reqCond",xCondPath); model.copyNode("/root/send/tophlginfo",xDiagInfoPath); model.setValue("/root/send/reqCond/srchnm", srchnm); if(submit("TXMRT00502")){ model.resetInstanceNode(xDiagInfoPath); } break; case 1 : // Morphology iRow = grd_icdo3info.row; if(iRow < 1 && model.getValue(xDiagInfoPath+"/stat") == "U"){ if(iRow < 1){ meassageBox("¼±ÅÃµÈ ¿ë¾î°¡", "I004"); } return; } sNodeInfo = "grde¢Ëhistlgccd¢Ëseqno¢Ëindxcd¢Ëengnm¢Ëhngnm¢Ëfromdd¢Ëtodd¢Ì"+ "µî±Þ¢ËÁ¶Á÷ÇÐÀûÄÚµå¢ËÀϷùøÈ£¢Ë»öÀÎÄÚµå¢Ë¿µ¹®¸í¢ËÇѱ۸í¢Ë½ÃÀÛÀÏ¢ËÁ¾·áÀÏ¢Ì"; if(fChkValueEmpty(xDiagInfoPath,sNodeInfo) == true){ return; }else{ if(fChkChangedData(xDiagInfoPath,xICDO3Path+"["+iRow+"]",sNodeInfo) == false){ messageBox("º¯°æµÈ µ¥ÀÌÅͰ¡","I004"); return; } else if((model.getValue(xICDO3Path+"["+iRow+"]/fromdd") == model.getValue("/root/main/diaginfo/fromdd")) && (model.getValue(xDiagInfoPath+"/stat") == "U")){ messageBox("½ÃÀÛÀÏÀÚ°¡ °°Àº ¿ë¾îÄڵ尡", "E005"); return; } var sCncrReptDiagCd = model.getValue(xDiagInfoPath+"/histlgccd"); var temp = sCncrReptDiagCd.replace("M",""); sCncrReptDiagCd = temp.replace("/",""); model.setValue(xDiagInfoPath+"/cncrreptdiagcd", sCncrReptDiagCd); } var sRtn = messageBox("","Q002"); if(sRtn != 6) return; model.removenode("/root/send"); model.makeNode("/root/send/reqCond"); model.makeNode("/root/send/icdo3info"); model.copyNode("/root/send/reqCond",xCondPath); model.copyNode("/root/send/icdo3info",xDiagInfoPath); model.setValue("/root/send/reqCond/srchnm", srchnm); if(submit("TXMRT00501")){ model.resetInstanceNode(xDiagInfoPath); } break; } model.setValue(xDiagInfoPath+"/stat", "-"); fSetCtrl(true); model.refresh(); } /** * @group : * @ver : 2007.03.21 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ºó °ø¹é check * @param : * @return : * @--------------------------------------------------- */ function fChkValueEmpty(pRef, pNodeInfo){ var sNodeInfo = pNodeInfo.split("¢Ì"); var sNode = sNodeInfo[0].split("¢Ë"); var sNodeNm = sNodeInfo[1].split("¢Ë"); for(var i=0; i getCurrentDate() //model.makeValue(xDiagInfoPath+"/fromdd",getDate()); model.makeValue(xDiagInfoPath+"/fromdd", getCurrentDate()); model.makeValue(xDiagInfoPath+"/rgstdt", getCurrentDate()+getCurrentTime()); model.makeValue(xDiagInfoPath+"/rgstrid", getUserInfo("userid")); model.makeValue(xDiagInfoPath+"/rgstrnm", getUserInfo("usernm")); model.makeValue(xDiagInfoPath+"/todd","29991231"); switch(sDiagInfo){ case 0 : // Tophology model.makeNode(xDiagInfoPath+"/tophlgcd"); ipt_tophlgcd.visible = true; ipt_histlgccd.visible = false; cap_diagcd.value = "¿ø¹ßÀå±âÄÚµå"; cap_diagtital.value="Topography Áø´ÜÁ¤º¸"; break; case 1 : // Morphology model.makeNode(xDiagInfoPath+"/cncrreptdiagcd"); model.makeNode(xDiagInfoPath+"/histlgccd"); ipt_tophlgcd.visible = false; ipt_histlgccd.visible = true; cap_diagcd.value = "Á¶Á÷ÇÐÀû ÄÚµå"; cap_diagtital.value="Morphology Áø´ÜÁ¤º¸"; break; } } /** * @group : * @ver : 2007.03.22 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¹öư ¼Ó¼º Setting * @param : * @return : * @--------------------------------------------------- */ function fSetCtrl(bool){ if(model.getValue(xDiagInfoPath+"/stat") == 'I'){ ipt_tophlgcd.disabled = bool; ipt_histlgccd.disabled = bool; ipt_seqno.disabled = bool; ipt_grde.disabled = bool; ipt_fromdd.disabled = bool; ipt_todd.disabled = bool; ipt_snmdcnptid.disabled = bool; }else if(model.getValue(xDiagInfoPath+"/stat") == 'U'){ ipt_tophlgcd.disabled = !bool; ipt_histlgccd.disabled = !bool; ipt_seqno.disabled = !bool; ipt_grde.disabled = !bool; ipt_fromdd.disabled = bool; ipt_todd.disabled = bool; ipt_snmdcnptid.disabled = bool; }else { ipt_tophlgcd.disabled = bool; ipt_histlgccd.disabled = bool; ipt_seqno.disabled = bool; ipt_grde.disabled = bool; ipt_fromdd.disabled = bool; ipt_todd.disabled = bool; ipt_snmdcnptid.disabled = bool; } ipt_engnm.disabled = bool; ipt_hngnm.disabled = bool; } /** * @group : * @ver : 2007.03.22 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : Excel ÀúÀå ±â´É * @param : * @return : * @--------------------------------------------------- */ function fSaveExcel(){ var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); if (fileName != ""){ switch(swt_diaginfo.selectedIndex){ case 0: grd_tophlginfo.saveExcel(fileName, "SheetName", true, true, "", "", "false"); break; case 1: grd_icdo3info.saveExcel(fileName, "SheetName", true, true, "", "", "false"); break; } } } /** * @group : * @ver : 2007.03.22 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : Excel ÀúÀå ±â´É * @param : * @return : * @--------------------------------------------------- */ function fRollbackTerm(){ var sDiagInfo = swt_diaginfo.selectedIndex; model.removenode("/root/send"); model.makeNode("/root/send/reqCond"); if(sDiagInfo == "0"){ model.makeNode("/root/send/tophlginfo"); model.copyNode("/root/send/reqCond",xCondPath); model.copyNode("/root/send/tophlginfo",xDiagInfoPath); model.setValue("/root/send/tophlginfo/fromdd", getCurrentDate()); model.setValue("/root/send/tophlginfo/todd", "99991231"); model.setValue("/root/send/tophlginfo/stat", "I"); model.makeValue("/root/send/reqCond/flag", "indx"); submit("TXMRT00502"); }else if(sDiagInfo == "1"){ model.makeNode("/root/send/icdo3info"); model.copyNode("/root/send/reqCond",xCondPath); model.copyNode("/root/send/icdo3info",xDiagInfoPath); model.setValue("/root/send/icdo3info/fromdd", getCurrentDate()); model.setValue("/root/send/icdo3info/todd", "99991231"); model.setValue("/root/send/icdo3info/stat", "I"); model.makeValue("/root/send/reqCond/flag", "indx"); submit("TXMRT00501") } model.resetInstanceNode(xDiagInfoPath); } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿À¸¥ÂÊ ¸¶¿ì½º ÆË¾÷ È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fCallPopup(flag){ if((flag == "grd_tophlginfo") || (flag == "grd_icdo3info")){ if(isDataCell()){ setPopupMenu(flag, false, "/root/init/func/mouserght", "label", "value"); } } else if(flag == "trv_indxinfo"){ if(trv_indxinfo.value == ""){ return; } setPopupMenu(flag, false, "/root/init/func/trvmouserght", "label", "value"); } else { initPopupMenu(); } } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎ º¯°æ ó¸® * @param : * @return : * @--------------------------------------------------- */ function fModifyIndx(){ var selTab = model.getValue("/root/main/cond/indxflag"); model.removenode("/root/hidden/reqdata"); if(selTab == "3"){ selectedRows = grd_icdo3info.selectedRows; for(var cnt = 0; cnt <= selectedRows -1; cnt++){ copyNodeset("/root/hidden/reqdata/icdo3indxlist", "/root/main/icdo3info/icdo3list[" + grd_icdo3info.selectedrow(cnt) + "]", "append"); } } else if(selTab == "1"){ selectedRows = grd_tophlginfo.selectedRows; for(var cnt = 0; cnt <= selectedRows -1; cnt++){ copyNodeset("/root/hidden/reqdata/tophlgindxlist", "/root/main/tophlginfo/tophlglist[" + grd_tophlginfo.selectedrow(cnt) + "]", "append"); } } } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎ º¯°æÇÒ À妽º·Î À̵¿ ó¸® * @param : * @return : * @--------------------------------------------------- */ function fPasteIndx(){ var selTab = model.getValue("/root/main/cond/indxflag"); var iIndx = trv_indxinfo.focusIndex + 1; var selIndxCd = model.getValue("/root/main/indxinfo/indxlist[" + iIndx + "]/indxcd"); var msg = messageBox("»öÀÎÀ»", "Q012"); if(msg == "7"){ return; } switch(selTab){ case "1": copyNodeset("/root/send/reqdata/tophlgindxlist", "/root/hidden/reqdata/tophlgindxlist"); model.makeValue("/root/send/reqdata/chnginfo/chngindxcd", selIndxCd); model.makeValue("/root/send/reqdata/chnginfo/indxflag", selTab); if(msg == "6"){ if(submit("TXMRT00504")){ messageBox("»öÀÎ º¯°æÀÌ","I001"); grd_tophlginfo.refresh(); } else { messageBox("»öÀÎ º¯°æÀ»","E009"); } } model.removeNodeset("/root/send/reqdata"); model.removeNodeset("/root/hidden/reqdata"); break; case "3": copyNodeset("/root/send/reqdata/icdo3indxlist", "/root/hidden/reqdata/icdo3indxlist"); model.makeValue("/root/send/reqdata/chnginfo/chngindxcd", selIndxCd); model.makeValue("/root/send/reqdata/chnginfo/indxflag", selTab); if(msg == "6"){ if(submit("TXMRT00503")){ messageBox("»öÀÎ º¯°æÀÌ","I001"); grd_icdo3info.refresh(); } else { messageBox("»öÀÎ º¯°æÀ»","E009"); } } model.removeNodeset("/root/send/reqdata"); model.removeNodeset("/root/hidden/reqdata"); break; } }