/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì ¾à¼ÓÁø´Ü°ü¸® ( SMMMB00800_¾à¼ÓÁø´Ü°ü¸®.xrw - JScript ) - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ var sETCPRMSPRCPSETDETLLIST_PATH = "/root/main/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist"; /** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @--------------------------------------------------- */ function fInitializeDone_SMMMB00800(){ model.removeNodeset(sETCPRMSPRCPSETDETLLIST_PATH); model.refresh(); } /** * @desc : ¾à¼ÓSET Á¶È¸ * @ * @param : * @return : * @--------------------------------------------------- */ function fReqGetPrmsSet(){ var iSetNO = model.getValue("/root/hidden/prmsprcpsetdetlset/setno"); var cSetTypeCD = model.getValue("/root/hidden/prmsprcpsetdetlset/settypecd"); model.makeValue("/root/send/reqdata/setno", iSetNO); model.makeValue("/root/send/reqdata/settypecd", cSetTypeCD); model.refresh(); submit("TRMMB00602"); } /** * @desc : ¾à¼ÓSET µî·Ï¹öư Ŭ¸¯½Ã * @ * @param : * @return : * @--------------------------------------------------- */ function fRgstPrmsDetlSet(){ if(model.getValue("/root/hidden/prmsprcpsetdetlset/setno") == ""){ messageBox("SETÆú´õ¸¦","C002"); //¼ö¼úSETÀ» ¼±ÅÃÇÏÁö ¾Ê°í µî·Ï¹öưÀ» Ŭ¸¯ÇÑ °æ¿ì return; } modal("SPMMO03200"); //Áø´ÜÆË¾÷âÀ» ¶ç¿î´Ù. var useyn = getParameter("SPMMO03200_rtn_useyn"); //Áø´ÜÆË¾÷â¿¡ Áø´ÜÀ» ¼±ÅÃÇÑ °æ¿ì useyn¸¦ y·Î ¼³Á¤ÇÑ´Ù. if(useyn == "Y"){ fAddPrmsDetlSet(); //ÆË¾÷âÀÇ return instance¸¦ ó¸® setParameter("SPMMO03200_rtn_useyn", ""); } } /** * @desc : ¾à¼ÓÁø´ÜSETÃß°¡ * @ * @param : * @return : * @--------------------------------------------------- */ function fAddPrmsDetlSet(){ var totcnt = getNodeSetCnt("/root/temp/selectdiaglist"); var setno = model.getValue("/root/hidden/prmsprcpsetdetlset/setno"); var settypecd = model.getValue("/root/hidden/prmsprcpsetdetlset/settypecd"); for(var row = 1; row <= totcnt; row++){ diagcd = model.getValue("/root/temp/selectdiaglist[" + row + "]/diagcd"); dispdiagcd = model.getValue("/root/temp/selectdiaglist[" + row + "]/dispdiagcd"); diagengnm = model.getValue("/root/temp/selectdiaglist[" + row + "]/diagengnm"); diaghngnm = model.getValue("/root/temp/selectdiaglist[" + row + "]/diaghngnm"); var compval = model.getValue(sETCPRMSPRCPSETDETLLIST_PATH + "[detlsetcd='" + diagcd + "']/detlsetcd"); if(compval == ""){ grd_etcprmsprcpdetl.addRow(false); currow = grd_etcprmsprcpdetl.row; model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/setno" , setno); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/settypecd" , settypecd); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/detlsetcd" , diagcd); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/dispdiagcd", dispdiagcd); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/engnm" , diagengnm); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/hngnm" , diaghngnm); }else{ messageBox("[" + diagcd + "] Áø´ÜÀº À̹Ì", "E006"); continue; } } model.refresh(); } /** * @desc : Áø´ÜÄÚµå º¹»ç * @ * @param : * @return : * @--------------------------------------------------- */ function fCopyDiagCD(){ for(var i = 0; i < grd_etcprmsprcpdetl.rows; i++){ if(grd_etcprmsprcpdetl.isselected(i) == true){ model.duplicate("/root/copy/etcprmsprcpsetdetlinfo", sETCPRMSPRCPSETDETLLIST_PATH +"[" + i + "]"); } } } /** * @desc : Áø´ÜÄÚµå ºÙ¿©³Ö±â * @ * @param : * @return : * @--------------------------------------------------- */ function fPasteDiagCD(){ var iSetNO = model.getValue("/root/hidden/prmsprcpsetdetlset/setno"); var cSetTypeCD = model.getValue("/root/hidden/prmsprcpsetdetlset/settypecd"); var iTotCnt = getNodeSetCnt("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist"); var sTrgtCD = ""; for(var iRow = 1; iRow <= iTotCnt ; iRow++){ var sDetlSetCD = model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/detlsetcd"); var sDispDiagCD= model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/dispdiagcd"); var sEngNM = model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/engnm"); var sHngNM = model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/hngnm"); //µ¿ÀÏÇÑ Áø´Ü °°Àº Æú´õ¿¡ Áߺ¹ÀúÀå µÇ´Â °ÍÀ» ¹æÁö 2008. 08. 25 ¿ÀÁöÈÆ sTrgtCD = ""; sTrgtCD = model.getValue("/root/main/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[detlsetcd='" + sDetlSetCD + "']/detlsetcd"); if(sTrgtCD == ""){ grd_etcprmsprcpdetl.addRow(false); iCurRow = grd_etcprmsprcpdetl.row; model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/setno" , iSetNO); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/settypecd" , cSetTypeCD); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/detlsetcd" , sDetlSetCD); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/engnm" , sEngNM); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/hngnm" , sHngNM); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/dispdiagcd", sDispDiagCD); }else{ messageBox("[" + sDetlSetCD + "] Áø´ÜÄÚµå´Â À̹Ì", "E006"); continue; } /* var ifndRow = grd_etcprmsprcpdetl.findRow(sDetlSetCD, 0, 4, true, true); if(ifndRow < 1){ grd_etcprmsprcpdetl.addRow(false); iCurRow = grd_etcprmsprcpdetl.row; model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/setno" , iSetNO); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/settypecd" , cSetTypeCD); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/detlsetcd" , sDetlSetCD); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/engnm" , sEngNM); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/hngnm" , sHngNM); model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/dispdiagcd", sDispDiagCD); }else{ messageBox("[" + sDetlSetCD + "] Áø´ÜÄÚµå´Â À̹Ì", "E006"); continue; }*/ } model.removeNodeset("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist"); model.refresh(); } /** * @desc : SETÆú´õ »èÁ¦½Ã ÇØ´ç Áø´Ü µ¥ÀÌÅÍ »èÁ¦ * @ * @param : * @return : * @--------------------------------------------------- */ function fClrGridData(){ model.removeNodeset(sETCPRMSPRCPSETDETLLIST_PATH); model.refresh(); } /** * @desc : ¸¶¿ì½º ¿À¸¥ÂÊ ¹öư ÆË¾÷â * @ * @param : * @return : * @--------------------------------------------------- */ function fMouseRghtBtnPopup(){ if(event.button == 3){ if(grd_etcprmsprcpdetl.isCell(event.target) && grd_etcprmsprcpdetl.mouseRow >= grd_etcprmsprcpdetl.fixedRows){ window.setPopupMenu(true, "/root/hidden/menu/menu", "label", "func", false); //ÆË¾÷â ¼ÂÆÃ } }else{ window.setPopupMenu(false); } } /** * @desc : ¾à¼ÓSET °ú»öÀÎ Á¶È¸ * @ * @param : * @return : * @--------------------------------------------------- */ function fReqPrmsDeptIndxList(){ submit("TRMMB00701"); }