/** - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì Áø·á - ¹ë·ù¸®½ºÆ®°ü¸® ( SMMRF003000_¹ë·ù¸®½ºÆ®°ü¸®.xrw - JScript ) * Version : - Ver.1.00.01 * °³¹ßÀÚ: À̰æÈñ * ÃÖÃÊÀÛ¼ºÀÏ: - 2008/02/28 * ¼öÁ¤ÀÌ·Â: - 2008/03/19 - 2009-04-09 ¿ÀÀü 9:04:43 °­ÁöÈÆ ¼öÁ¤ : TRMRF00301À» Áß¾ÓÀÇ·á¿ø¿ë TRMRF00303À¸·Î º¯°æ - 2009-04-09 ¿ÀÀü 9:04:43 °­ÁöÈÆ ¼öÁ¤ : TRMRF00302À» Áß¾ÓÀÇ·á¿ø¿ë TRMRF00304À¸·Î º¯°æ * ±âŸ: - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ var FORMMNGT_SCR_SAVE_DATA = 0; //È­¸é¿¡ ¹ë·ù¸®½ºÆ® ÀúÀåÇÒ µ¥ÀÌÅÍ (0:¾øÀ½, 1:ÀÖÀ½) /** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @--------------------------------------------------- */ function fInitialize(){ model.makeValue("/root/init/today", getCurrentDate()); model.setFocus("ipt_valreqdata"); model.toggle("gruplist"); model.refresh(); } /** * @desc : ?????? ???? ?? error check * @param : * @return : 0 : error 1 : no error * @--------------------------------------------------- */ function fChkError(){ var errcd = model.getValue("/root/temp/errmsg/errcd"); if(errcd == "err01"){ // insert error var itemnm = model.getValue("/root/main/newgrup/grupnm"); var useYN = messageBox(itemnm + "°ú °°Àº À̸§ÀÌ ÀÖ½À´Ï´Ù. ÀÔ·Â", "S001"); }else if(errcd == "err02"){ var termnm = model.getValue("/root/main/newterm/termnm"); var useYN = messageBox(termnm + "°ú °°Àº À̸§ÀÌ ÀÖ½À´Ï´Ù. ÀÔ·Â", "S001"); } if(useYN == 6){ return 1; }else{ return 0; } } /** * @desc : valsublistÃʱâÈ­ * @ * @param : * @return : * @----------------------- ------------------------------ */ function fReqClear(){ //valsublistÃʱâÈ­ model.resetInstanceNode("/root/main/list/valsublist"); grd_valsublist.refresh(); model.toggle("gruplist"); } /** * @desc : ¹ë·ù¸®½ºÆ® Á¶È¸ * @ * @param : * @return : * @--------------------------------------------------- */ function fReqValue(condPath) { var mode = model.getValue("/root/main/condition/reqgrupflag"); if(mode == "code") { model.setValue("/root/main/condition/grupcd", model.getValue("/root/main/condition/grupnm")); } model.makeValue("/root/main/condition/grupflag", "V"); model.copyNode("/root/send/reqdata", condPath ); var value = model.getValue("/root/main/switchon"); if(value == "true") { if(mode == "valuesub") { messageBox("µ¥ÀÌÅÍ ÀúÀå¿ëµµÀÎ °æ¿ì ¼­ºêÇ׸ñ¸íÀ¸·Î´Â Á¶È¸ÇÒ ¼ö", "E001"); return; } submit("TRMRF00305"); } else { submit("TRMRF00303"); } } /** * @desc : ¹ë·ù¸®½ºÆ® Á¶È¸ newgrup¿¡ º¹»ç * @ * @param : * @return : * @--------------------------------------------------- */ function fReqCopyGruplist(){ if(grd_gruplist.isCell(event.target)){ iRow = grd_gruplist.row; if(iRow < 1){ return; } fSetCtrlDisabled3(true); model.copyNode("/root/main/newgrup","/root/main/gruplist["+ iRow +"]"); fReqValueSub(grd_gruplist, "/root/main/condition"); } } /** * @desc : ¹ë·ù¸®½ºÆ® Ãß°¡ * @ * @param : * @return : * @--------------------------------------------------- */ function fInsertGrup(){ //¹öư disable fSetCtrlDisabled3(false); model.resetInstanceNode("/root/main/newgrup"); model.makeValue("/root/main/newgrup/grupfromdt", model.getValue("/root/init/today")); model.makeValue("/root/main/newgrup/gruptodt" , "99991231"); model.makeValue("/root/main/newgrup/grupflag", "V"); model.makeValue("/root/main/newgrup/itemcduseyn", "Y"); model.makeValue("/root/main/newgrup/viewyn", "Y"); //½Å±Ô ÀúÀå½Ã model.makeValue("/root/main/newgrup/status","i"); model.refresh(); model.setFocus("ipt_listnm"); } /** * @desc : ¹ë·ù¸®½ºÆ® clear * @ * @param : * @return : * @--------------------------------------------------- */ function fClearValue(){ for ( var i = grd_gruplist.rows-1 ; i >= grd_gruplist.fixedRows; i--){ if (grd_gruplist.rowstatus(i) > 0){ grd_gruplist.deleteitem(i); } } grd_gruplist.clearStatus(); grd_gruplist.rebuild(); model.refresh(); //fSetBtnDisabled(2); fSetCtrlDisabled3(true); for(var i = 1; i < grd_gruplist.rows; i++){ grd_gruplist.rowStatus(i) = "0"; } } /** * @desc : ¹ë·ù¼­ºê¸®½ºÆ® Clear * @ * @param : * @return : * @--------------------------------------------------- */ function fClearValueSub(){ model.makeValue("/root/temp/tmp", ""); for ( var i = grd_valsublist.rows-1 ; i >= grd_valsublist.fixedRows; i--){ if (grd_valsublist.rowstatus(i) > 0) { grd_valsublist.deleteitem(i); } } grd_valsublist.clearStatus(); grd_valsublist.rebuild(); //model.removeNodeset("/root/main/list/valsublist"); model.refresh(); //fSetBtnDisabled(2); fSetCtrlDisabled3(true); for(var i = 1; i < grd_valsublist.rows; i++){ grd_valsublist.rowStatus(i) = "0"; } } /** * @desc : ¹ë·ù¸®½ºÆ® ¼öÁ¤ * @ * @param : * @return : * @--------------------------------------------------- */ function fUpdateGrup(){ //¾ÆÀÌÅÛÀ¯È¿¿©ºÎ ÃʱâÈ­ Y cmb_valiyn.disabled = false; fSetCtrlDisabled3(false); iRow = grd_gruplist.row - grd_gruplist.fixedRows + 1; if(iRow < 1){ messageBox("¼öÁ¤ÇÒ ÇàÀ» ","C002"); return; } //fValiCheck(); model.makeValue("/root/temp/valsublist/status", "u"); model.copyNode("/root/main/newgrup", "/root/main/gruplist[" + iRow + "]"); model.refresh(); model.setFocus("ipt_listnm"); model.makeValue("/root/main/newgrup/status","u"); //fCompareNodes ºñ±³À§ÇØ copynode model.makeNode("/root/main/newgrup2"); model.copyNode("/root/main/newgrup2","/root/main/newgrup"); } /** * @desc : ¹ë·ù¸®½ºÆ® µî·Ï * @ * @param : * @return : * @--------------------------------------------------- */ function fRgstValue(){ var curRow = model.getValue("/root/main/newgrup/rowpos"); model.copyNode("/root/main/gruplist[" + curRow + "]", "/root/main/newgrup"); model.refresh(); } /** * @group : * @ver : 2007.06.13 * @by : * @--------------------------------------------------- * @type : function * @access : public * @desc : µÎ°³ÀÇ ³ëµå¼ÂÀ» ºñ±³ÇÑ´Ù. * @param : originalNode : * @param : copyNode : * @return : true, false * @--------------------------------------------------- */ function fCompareNodes1(originalNode, copyNode){ var ins = document.models( 0 ).instances( 0 ); var original = ins.selectSingleNode(originalNode).xml; var copy = ins.selectSingleNode(copyNode).xml; var replace = original.setReplaceWord("newgrup2","newgrup"); if(replace == null || copy == null){ return false; }else if (replace == copy){ return true; }else{ return false; } } /** * @desc : ¹ë·ù¸®½ºÆ® ÀúÀå * @ * @param : grdObj ±×¸®µå ID * @return : * @--------------------------------------------------- */ function fSaveGrup(){ var status = model.getValue("/root/main/newgrup/status"); //alert(status); if(status=="" || status==null ){ return; } var grupnm = model.getValue("/root/main/newgrup/grupnm"); if(grupnm=="" || grupnm==null ){ messageBox("¸®½ºÆ®¸íÀ» ","C001"); return; } // 2010.02.03 ´ë,Áß,¼ÒºÐ·ù »ç¿ë ¾ÈÇÑ´Ù°í »èÁ¦Ã³¸® // if(!isRequiredControls("ipt_deptnm1")) // return; //¼öÁ¤ ¿©ºÎ check if(status == "u"){ var compare = fCompareNodes1("/root/main/newgrup2","/root/main/newgrup"); if(status=="u" && compare == true){ messageBox("¼öÁ¤µÈ ³»¿ëÀÌ","I004"); return; } //2009.01.21 °­ÁöÈÆ ¼öÁ¤ //º¯°æÀÌ·ÂÀ» ³²±âÁö ¾Ê°í Update. var ret = messageBox("º¯°æ ÀÌ·ÂÀ» ÀúÀå", "S001"); if(ret == "6"){ model.makeValue("/root/main/newgrup/histsaveyn", "Y"); } if(ret == "7"){ model.makeValue("/root/main/newgrup/histsaveyn", "N"); } } // grd_gridlistÁ¶È¸ À§ÇÑ grupcd var curRow = grd_gruplist.row - grd_gruplist.fixedRows + 1; model.makeValue("/root/send/reqdata/grupcd", model.getValue("/root/main/gruplist[" + curRow + "]/grupcd")); model.makeValue("/root/send/reqdata/grupflag", model.getValue("/root/main/gruplist[" + curRow + "]/grupflag")); model.copyNode("/root/send/grupdata/grupmaster","/root/main/newgrup"); //fUpdateToDt(); for (var i= grd_valsublist.fixedRows; i < grd_valsublist.rows ;i++ ) { var aa = grd_valsublist.rowstatus(i) = 1; } model.makeValue("/root/send/grupdata/savedata", grd_valsublist.getUpdateData()); if(submit("TXMRF00301")){ if(fChkError() == 1){ //ÀúÀå Áß errorÀ¯¹« È®ÀÎ alert("chkerror"); model.makeValue("/root/main/newgrup/procflag", "Y"); //process󸮱¸ºÐÀ» ¹«½Ã·Î ¼³Á¤, ÀúÀåµÈ´Ù. model.refresh(); model.makeValue("/root/temp/errmsg/errcd",""); model.copyNode("/root/send/grupdata/grupmaster","/root/main/newgrup"); //fUpdateToDt(); model.makeValue("/root/send/grupdata/savedata", grd_valsublist.getUpdateData()); submit("TXMRF00301"); } } // ÀúÀåÈÄ gruplist Á¶È¸ model.makeValue("/root/main/condition/grupflag", "V"); model.copyNode("/root/send/reqdata","/root/main/condition" ); model.makeValue("/root/send/reqdata/grupnm",model.getValue("/root/main/newgrup/grupnm")); model.makeValue("/root/send/reqdata/reqgrupflag", "value"); submit("TRMRF00303"); grd_gruplist.row = 1; model.removeNodeset("/root/main/list/valsublist"); // ÀúÀåÈÄ vallist Á¶È¸ if(status=="u" ){ // ¼öÁ¤¸¸ Á¶È¸ model.makeValue("/root/send/reqdata/grupcd",model.getValue("/root/main/gruplist[" + grd_gruplist.row + "]/grupcd")); if(submit("TRMRF00304")== false){ model.removeNodeset("/root/main/list/valsublist"); } } model.makeValue("/root/main/newgrup/status",""); //¾ÆÀÌÅÛÀ¯È¿¿©ºÎ ÃʱâÈ­ Y cmb_valiyn.disabled = true; model.makeValue("/root/temp/valiyn","Y"); fSetCtrlDisabled3(true); model.refresh(); } /** * @desc : ¹ë·ù¼­ºê¸®½ºÆ® Á¶È¸ * @ * @param : grdObj ±×¸®µå ID, condPath Á¶È¸Á¶°Ç xpath * @return : * @--------------------------------------------------- */ function fReqValueSub(grdObj, condPath){ var curRow = grdObj.row - grdObj.fixedRows + 1; model.makeValue("/root/main/condition/grupcd", model.getValue("/root/main/gruplist[" + curRow + "]/grupcd")); model.makeValue("/root/temp/valsublist/grupcd", model.getValue("/root/main/gruplist[" + curRow + "]/grupcd")); model.refresh(); model.copyNode("/root/send/reqdata", condPath); submit("TRMRF00304"); } /** * @desc : ¹ë·ù¼­ºê¸®½ºÆ® »èÁ¦ * @ * @param : grdObj ±×¸®µåID * @return : * @--------------------------------------------------- */ function fDelValueSub(grdObj){ var curRow = grdObj.row - grdObj.fixedRows + 1; if(curRow < 1){ alert("»èÁ¦ÇÒ ¾ÆÀÌÅÛÀ» ¼±ÅÃÇϼ¼¿ä"); return; } var statusFlag = grdObj.rowStatus(curRow); grdObj.deleteItem(curRow); model.makeValue("/root/temp/valsublist/itemremove","Y"); model.refresh(); } /** * @desc : ¹ë·ù¼­ºê¸®½ºÆ® ÀúÀå * @ * @param : * @return : * @--------------------------------------------------- */ function fSaveValueSub() { var bModified = false; //¾ÆÀÌÅÛ »èÁ¦ ¿©ºÎ È®ÀÎ var itemflag =model.getValue("/root/temp/valsublist/itemremove"); for(var i = 1; i 0){ alert(termnm +"°ú °°Àº ´©Àû¼­ºê ¾ÆÀÌÅÛÀÌ Á¸ÀçÇÕ´Ï´Ù."); return; } grd_valsublist.addItem(); var curRow1 = grd_valsublist.row - grd_valsublist.fixedRows + 1; var grupcd = model.getValue("/root/temp/valsublist/grupcd"); model.makeValue("/root/main/list/valsublist[" + curRow1 + "]/grupcd", grupcd); model.makeValue("/root/temp/valsublist/rowpos", curRow1); var desCurRow = model.getValue("/root/temp/valsublist/rowpos"); model.makeValue("/root/main/list/valsublist[" + desCurRow + "]/itemnm", termnm); model.makeValue("/root/main/list/valsublist[" + desCurRow + "]/termbasecd", termcd); model.makeValue("/root/main/list/valsublist[" + desCurRow + "]/sortno", desCurRow); model.refresh(); } /** * @desc : ±×·ì¸®½ºÆ® ÀÇ µî·Ï * @ * @param * @return : * @--------------------------------------------------- */ function fRgstGrupList(){ // µî·ÏÈÄ °°ÀºÀ̸§ ´Ù½Ã µî·Ï½Ã return var grupnm = model.getValue("/root/main/gruplist["+grd_gruplist.row+"]/grupnm"); var listnm = model.getValue("/root/main/newgrup/grupnm"); if(grupnm ==listnm){ return; } var curRow; var curStatus = model.getValue("/root/temp/valsublist/status"); var grupnm = model.getValue("/root/main/newgrup/grupnm"); if (grupnm==null || grupnm=="") { return; } if(curStatus == "u"){ //1. ÇöÀç ¼±ÅÃµÈ ±×·ì¸®½ºÆ®¿¡ ½Å±Ô Á¤º¸¸¦ ¹Ý¿µÇÑ´Ù. var curRow = grd_gruplist.row - grd_gruplist.fixedRows + 1; model.copyNode("/root/main/gruplist[" + curRow + "]", "/root/main/newgrup"); grd_gruplist.rowStatus(curRow) = "2"; grd_gruplist.refresh(); }else{ //1. ±×·ì ¸®½ºÆ®¿¡ ÇÑÁÙ Ãß°¡ grd_gruplist.addRow(); //2. ½Å±Ô µ¥ÀÌŸ¸¦ ±×¸®µå¿¡ ¹Ý¿µ var curRow = grd_gruplist.row - grd_gruplist.fixedRows + 1; model.copyNode("/root/main/gruplist[" + curRow + "]", "/root/main/newgrup"); //model.makeValue("/root/main/gruplist[" + curRow + "]/grupflag",model.getValue("/root/temp/gridsublist/grupflag")); //model.makeValue("/root/main/gruplist[" + curRow + "]/grupflag","G"); grd_gruplist.refresh(); } } /** * @desc :¹öư disabled * @ * @param : * @return : * @--------------------------------------------------- */ function fSetCtrlDisabled3(bool){ ipt_listnm.disabled = bool; ipt_fromdd.disabled = bool; ipt_todd.disabled = bool; ipt_updt.disabled = bool; ipt_rem.disabled = bool; cmb_itemcduseyn.disabled = bool; cmb_grupflag.disabled = bool; btn_search.disabled = bool; } /** * @desc :¹öư disabled * @ * @param : * @return : * @--------------------------------------------------- */ function fSetBtnDisabled(statusflag){ if(statusflag == 0){ //¹ë·ù¸®½ºÆ® Á¶È¸ÈÄ // btn_addval.disabled = false; // btn_updtval.disabled = false; }else if(statusflag == 1){ //¹ë·ù¸®½ºÆ®Ãß°¡ // btn_addval.disabled = true; // btn_updtval.disabled = true; btn_rgst.disabled = false; btn_cncl.disabled = false; btn_itemadd.disabled = true; btn_itemdel.disabled = true; btn_up.disabled = true; btn_itemdown.disabled = true; // btn_savevalsub.disabled = true; btn_delgrp.disabled = false; // btn_saveval.disabled = false; }else if(statusflag == 2){ //btn_cncl Ãë¼Ò //FORMMNGT_SCR_SAVE_DATA = 1;//?????? ?????? ?????? ????. btn_itemadd.disabled = false; btn_itemdel.disabled = false; btn_up.disabled = false; btn_itemdown.disabled = false; // btn_addval.disabled = false; // btn_updtval.disabled = false; }else if(statusflag == 3){ //¾ÆÀÌÅÛ Ãß°¡ // btn_addval.disabled = true; // btn_updtval.disabled = true; // btn_saveval.disabled = true; // btn_savevalsub.disabled = false; // btn_cncl2.disabled = false; }else if(statusflag == 4){ //UP, DOWN // btn_addval.disabled = false; // btn_updtval.disabled = false; // btn_saveval.disabled = false; // btn_savevalsub.disabled = false; }else if(statusflag == 5){//btn_updtval ¹ë·ù ¸®½ºÆ® ¼öÁ¤ // btn_addval.disabled = true; btn_rgst.disabled = false; btn_cncl.disabled = false; btn_itemadd.disabled = true; btn_itemdel.disabled = true; btn_up.disabled = true; btn_itemdown.disabled = true; // btn_savevalsub.disabled = true; btn_delgrp.disabled = true; } } /* ???? */ function removeBlank(str){ str = str.replace(/\s/g,''); return str; } /** * @desc : ¹«È¿ ¾ÆÀÌÅÛ ¼öÁ¤½Ã valicheckº¯°æ * @ * @param : * @return : * @--------------------------------------------------- */ function fValiCheck(){ // ¹«È¿ ¾ÆÀÌÅÛ ¼öÁ¤½Ã valicheckº¯°æ var todt = model.getValue("/root/main/newgrup/gruptodt"); if(getCurrentDate()+getCurrentTime > todt){ model.setValue("/root/main/valicheck","Y"); } } /** * @desc : ¹«È¿È­µÈ ´ÜÀ§ ¼öÁ¤½Ã gruptodt »õ·Î ³Ö¾îÁØ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function fUpdateTodt(){ //¹«È¿È­µÈ grupcd ¼öÁ¤½Ã gruptodt »õ·Î ³Ö¾îÁØ´Ù. var valicheck = model.getValue("/root/main/valicheck"); if(valicheck=="Y"){ model.setValue("/root/send/grupdata/grupmaster/gruptodt","29991231000000"); model.setValue("/root/main/valicheck","N"); model.refresh(); } } /** * @desc : gruplist ¸¦ newgrupÀ¸·Î copy * @ * @param : * @return : * @--------------------------------------------------- */ function fCopyNewGrup(){ model.copyNode("/root/main/newgrup", "/root/main/gruplist[" + iRow + "]"); //À¯È¿¿©ºÎ º¯°æÇϱâ var todt = model.getValue("/root/main/gruplist[" + iRow + "]/gruptodt"); var fromdt = model.getValue("/root/main/gruplist[" + iRow + "]/grupfromdt"); if(fromdt <= getCurrentDate()+getCurrentTime && todt > getCurrentDate()+getCurrentTime ){ model.setValue("/root/temp/valiyn","Y"); } else { model.setValue("/root/temp/valiyn","N"); } //¾ÆÀÌÅÛÀ¯È¿¿©ºÎ ÃʱâÈ­ Y cmb_valiyn.disabled = true; fSetCtrlDisabled3(true); model.makeValue("/root/main/condition/grupcd", model.getValue("/root/main/gruplist[" + iRow + "]/grupcd")); model.makeValue("/root/temp/valsublist/grupcd", model.getValue("/root/main/gruplist[" + iRow + "]/grupcd")); model.copyNode("/root/send/reqdata", "/root/main/condition"); model.makeValue("/root/send/reqdata/indxpathcd",model.getValue("/root/main/gruplist[" + iRow + "]/indxpathcd")); submit("TRMRF00304"); model.refresh(); } /** * @desc : valsublist ¸¦ newitemÀ¸·Î copy * @ * @param : * @return : * @--------------------------------------------------- */ function fCopyValSublist(){ model.toggle("gruplist"); var curRow = grd_valsublist.row - grd_valsublist.fixedRows + 1; model.setValue("/root/main/newitem/itemnm" , model.getValue("/root/main/list/valsublist[" + curRow + "]/itemnm")); model.setValue("/root/main/newitem/itemcnts" , model.getValue("/root/main/list/valsublist[" + curRow + "]/itemcnts")); model.setValue("/root/main/newitem/datakind" , model.getValue("/root/main/list/valsublist[" + curRow + "]/datakind")); model.setValue("/root/main/newitem/cntrkind" , model.getValue("/root/main/list/valsublist[" + curRow + "]/cntrkind")); model.setValue("/root/main/newitem/reprtermnm" ,model.getValue("/root/main/list/valsublist[" + curRow + "]/reprtermnm")); model.setValue("/root/main/newitem/rem" , model.getValue("/root/main/list/valsublist[" + curRow + "]/itemrem")); model.setValue("/root/main/newitem/updtresncnts",model.getValue("/root/main/list/valsublist[" + curRow + "]/itemupdtresncnts")); var itemcd = model.getValue("/root/main/list/valsublist[" + curRow + "]/itemcd"); model.makeValue("/root/send/reqdata/reqdata", itemcd); model.makeValue("/root/send/reqdata/reqstatusterm", "Y"); submit("TRMRF00202"); model.refresh(); } /** * @desc : »öÀμ±Åà popup¹öư * @ * @param : * @return : * @--------------------------------------------------- */ function fPopupIndex(){ //model.removeNodeset("/root/send"); model.makeValue("/root/send/paramindx",""); model.setValue("/root/main/newgrup/depthnm1" ,""); model.setValue("/root/main/newgrup/depthnm2" ,""); model.setValue("/root/main/newgrup/depthnm3" ,""); setParameter("indxflag","V"); model.setValue("/root/send/paramindx", model.getValue("/root/temp/condition/indxflag")); modal("SPMRF02100", 1,10, 10, "SPMRF02100", "/root/send", "/root/temp/condition/getdata"); var child = "SPMRF02100"; if(child != null){ var count = getParameter("count"); for(var i=0; i 1) { var filePath = window.fileDialog("save", "", "", "", "xls", "Excel File(*.xls)|*.xsl|All Files (*.*)|*.*"); if (filePath == "") return; grd_gruplist.saveExcel(filePath, "sheetname:sheet1;colhiddenextend:false;rowhiddenextend:false;"); } else { messageBox("Á¶È¸µÈ µ¥ÀÌÅͰ¡", "I004"); } } catch(e) { } } function fSaveAllExcel() { try { if(group_total.rows > 1) { var filePath = window.fileDialog("save", "", "", "", "xls", "Excel File(*.xls)|*.xsl|All Files (*.*)|*.*"); if (filePath == "") return; group_total.saveExcel(filePath, "sheetname:sheet1;colhiddenextend:false;rowhiddenextend:false;"); } else { messageBox("Á¶È¸µÈ µ¥ÀÌÅͰ¡", "I004"); } } catch(e) { } } function fSwitch() { var value = model.getValue("/root/main/switchon"); if(value == "true") { // ±×¸®µå °¨Ãß±â grd_gruplist.visible = false; grd_valsublist.visible = false; // ¹öư ºñȰ¼ºÈ­ button1.disabled = true; // ¹ë·ù¸®½ºÆ® ÀúÀå btn_up.disabled = true; // up ¹öư btn_itemdown.disabled = true; // down ¹öư btn_itemadd.disabled = true; // ¾ÆÀÌÅÛÃß°¡ ¹öư btn_itemdel.disabled = true; // ¾ÆÀÌÅÛ»èÁ¦ ¹öư btn_cncl2.disabled = true; // Ãë¼Ò ¹öư btn_savevalsub.disabled = true; // ÀúÀå ¹öư button5.disabled = true; // ½Å±Ô ¹öư button2.disabled = true; // ¼öÁ¤ ¹öư button6.disabled = true; // ÀúÀå ¹öư // Àüü ±×¸®µå º¸À̱â group_total.visible = true; // ÀúÀå¹öư º¸À̱â button3.visible = true; // ÀúÀå ¹öư model.refresh(); } else { group_total.visible = false; // ÀúÀå¹öư ¼û±â±â button3.visible = false; // ÀúÀå ¹öư grd_gruplist.visible = true; grd_valsublist.visible = true; // ¹öư Ȱ¼ºÈ­ button1.disabled = false; // ¹ë·ù¸®½ºÆ® ÀúÀå btn_up.disabled = false; // up ¹öư btn_itemdown.disabled = false; // down ¹öư btn_itemadd.disabled = false; // ¾ÆÀÌÅÛÃß°¡ ¹öư btn_itemdel.disabled = false; // ¾ÆÀÌÅÛ»èÁ¦ ¹öư btn_cncl2.disabled = false; // Ãë¼Ò ¹öư btn_savevalsub.disabled = false; // ÀúÀå ¹öư button5.disabled = false; // ½Å±Ô ¹öư button2.disabled = false; // ¼öÁ¤ ¹öư button6.disabled = false; // ÀúÀå ¹öư model.refresh(); } }