/** - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì Áø·á - ´©Àû°ü¸®( SMMRF00900_´©Àû°ü¸®.xrw - JScript ) * Version : - Ver.1.00.01 * °³¹ßÀÚ: À̰æÈñ * ÃÖÃÊÀÛ¼ºÀÏ: - 2007/03/28 * ¼öÁ¤ÀÌ·Â: - 2008/03/19 (»ý¼ºÀÏÀÚ ¿À·ù ¼öÁ¤) - 2009-04-09 ¿ÀÀü 8:48:23 °­ÁöÈÆ : TRMRF00901À» Áß¾ÓÀÇ·á¿ø¿ë TRMRF00903À¸·Î º¯°æ TRMRF00901Àº ´Ù¸¥È­¸é¿¡¼­ »ç¿ëÁß. - 2009-04-09 ¿ÀÀü 8:48:23 °­ÁöÈÆ : TRMRF00902À» Áß¾ÓÀÇ·á¿ø¿ë TRMRF00904À¸·Î º¯°æ TRMRF00902´Â ´Ù¸¥È­¸é¿¡¼­ »ç¿ëÁß. * ±âŸ: - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ var FORMMNGT_SCR_SAVE_DATA = 0; //È­¸é¿¡ ´©Àû¸®½ºÆ® ÀúÀåÇÒ µ¥ÀÌÅÍ (0:¾øÀ½, 1:ÀÖÀ½) /** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @--------------------------------------------------- */ function fInitialize(){ model.setValue("/root/main/newgrup/grupfromdt", getCurrentDate()); model.setValue("/root/main/newgrup/gruptodt","99991231"); model.copyNode("/root/temp/newgrup", "/root/main/newgrup"); 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; } } function fSetCtrlDisabled2(bool){ ipt_listnm.disabled = bool; ipt_fromdd.disabled = bool; ipt_todd.disabled = bool; //ipt_listdesc.disabled = bool; ipt_updtresncnts.disabled = bool; ipt_rem.disabled = bool; cmb_grupflag.disabled = bool; } /* ???? */ function removeBlank(str){ str = str.replace(/\s/g,''); return str; } /** * @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")); } fSetCtrlDisabled2(true) model.setValue("/root/main/condition/grupflag", "G"); model.copyNode("/root/send/reqdata", condPath ); submit("TRMRF00903"); } /** * @desc :´©Àû¸®½ºÆ® Ãß°¡ * @ * @param : * @return : * @--------------------------------------------------- */ function fInsertGrup(){ model.copyNode("/root/main/newgrup", "/root/temp/newgrup"); model.refresh(); // ÄÁÆ®·ÑÀ» Enable ÇÑ´Ù. fDisabledCtrlForNewGrup(false); // fucusÀ̵¿ model.setFocus("ipt_listnm"); model.makeValue("/root/main/newgrup/status","i"); } /** * @desc :´©Àû¸®½ºÆ® Ãß°¡ * @ * @param : * @return : * @--------------------------------------------------- */ function fUpdateGrup(){ iRow = grd_gruplist.row - grd_gruplist.fixedRows + 1; if(iRow < 1){ messageBox("¼öÁ¤ÇÒ ÇàÀ» ","C002"); return; } //fValiCheck(); // ÄÁÆ®·ÑÀ» Enable ÇÑ´Ù. fDisabledCtrlForNewGrup(false); cmb_valiyn.disabled = false; // fucusÀ̵¿ 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 : ¹öư disable * @ * @param : * @return : * @--------------------------------------------------- */ function fDisabledCtrlForNewGrup(bDisable) { ipt_listnm.disabled = bDisable; ipt_fromdd.disabled = bDisable; ipt_todd.disabled = bDisable; cmb_grupflag.disabled = bDisable; //ipt_listdesc.disabled = bDisable; //cmb_valiyn.disabled = bDisable; ipt_updtresncnts.disabled = bDisable; ipt_rem.disabled = bDisable; } /** * @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); // i: ½Å±ÔÀúÀå, u: ¼öÁ¤ if(status=="" || status==null ) { return; } var grupnm = model.getValue("/root/main/newgrup/grupnm"); if(grupnm=="" || grupnm==null ) { messageBox("¸®½ºÆ®¸íÀ» ","C001"); return; } //¼öÁ¤ ¿©ºÎ check if(status == "u"){ var compare = fCompareNodes1("/root/main/newgrup2","/root/main/newgrup"); if(status=="u" && compare == true){ messageBox("¼öÁ¤µÈ ³»¿ëÀÌ","I004"); return; } } // 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")); // alert("groupcode:" + model.getValue("/root/send/reqdata/grupcd")); // 0001349001 // alert("groupflag:" + model.getValue("/root/send/reqdata/grupflag")); // Y model.copyNode("/root/send/grupdata/grupmaster","/root/main/newgrup"); if(status == "u"){ //2009.01.21 °­ÁöÈÆ ¼öÁ¤ //º¯°æÀÌ·ÂÀ» ³²±âÁö ¾Ê°í Update. var ret = messageBox("º¯°æ ÀÌ·ÂÀ» ÀúÀå", "S001"); if(ret == "6"){ model.makeValue("/root/send/grupdata/histsaveyn", "Y"); } else if(ret == "7"){ model.makeValue("/root/send/grupdata/histsaveyn", "N"); } else{ return; } } //fUpdateTodt(); for (var i= grd_gridsublist.fixedRows; i < grd_gridsublist.rows ;i++ ) { var aa = grd_gridsublist.rowstatus(i) = 1; } var saveData = grd_gridsublist.getUpdateData(); model.setValue("/root/send/grupdata/savedata", saveData); if(submit("TXMRF00901")) { if(fChkError() == 1) { //ÀúÀå Áß errorÀ¯¹« È®ÀÎ model.makeValue("/root/main/newgrup/procflag", "Y"); //process󸮱¸ºÐÀ» ¹«½Ã·Î ¼³Á¤, ÀúÀåµÈ´Ù. model.refresh(); model.setValue("/root/temp/errmsg/errcd",""); model.copyNode("/root/send/grupdata/grupmaster","/root/main/newgrup"); //fUpdateTodt(); for (var i= grd_gridsublist.fixedRows; i < grd_gridsublist.rows ;i++ ) { var aa = grd_gridsublist.rowstatus(i) = 1; } model.setValue("/root/send/grupdata/savedata", grd_gridsublist.getUpdateData()); submit("TXMRF00901"); } } // ÀúÀåÈÄ gruplist Á¶È¸ model.setValue("/root/main/condition/grupflag", model.getValue("/root/main/gruplist["+curRow+"]/grupflag")); 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", "grid"); submit("TRMRF00903"); grd_gruplist.row = 1; model.removeNodeset("/root/main/gridsublist"); // ÀúÀåÈÄ gridlist Á¶È¸ if(status=="u" ){ // ¼öÁ¤¸¸ Á¶È¸ model.makeValue("/root/send/reqdata/grupcd",model.getValue("/root/main/gruplist[" + grd_gruplist.row + "]/grupcd")); if(submit("TRMRF00904")== false){ model.removeNodeset("/root/main/gridsublist"); } } model.makeValue("/root/main/newgrup/status",""); //¾ÆÀÌÅÛÀ¯È¿¿©ºÎ ÃʱâÈ­ Y cmb_valiyn.disabled = true; model.setValue("/root/temp/valiyn","Y"); fDisabledCtrlForNewGrup(true); model.refresh(); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® Á¶È¸ * @ * @param : grdObj ±×¸®µå ID, condPath Á¶È¸Á¶°Ç xpath * @return : * @--------------------------------------------------- */ function fReqGridSub(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/main/condition/grupflag", model.getValue("/root/main/gruplist[" + curRow + "]/grupflag")); model.refresh(); model.copyNode("/root/send/reqdata", condPath); submit("TRMRF00904"); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® Á¶È¸½Ã ÃʱâÈ­ * @ * @param : * @return : * @--------------------------------------------------- */ function fReqClear(){ //gridsublistÃʱâÈ­ model.resetInstanceNode("/root/main/gridsublist"); grd_gridsublist.refresh(); model.toggle("gruplist"); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® Á¶È¸, newgrup¿¡ º¹»ç * @ * @param : * @return : * @--------------------------------------------------- */ function fReqCopyGruplist(){ model.toggle("gruplist"); iRow = grd_gruplist.row; if(iRow < 1){ return; } model.copyNode("/root/main/newgrup", "/root/main/gruplist[" + iRow + "]"); model.refresh(); fSetCtrlDisabled2(true) fReqGridSub(grd_gruplist, "/root/main/condition"); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® Ãß°¡ * @ * @param : grdObj ±×¸®µåID * @return : * @--------------------------------------------------- */ function fAddValueSub(grdObj){ model.toggle("itemlist"); model.refresh(); var curRow = grdObj.row - grdObj.fixedRows + 1; var grupcd = model.getValue("/root/temp/gridsublist/grupcd"); // model.setValue("/root/main/gridsublist[" + curRow + "]/grupcd", grupcd); model.setValue("/root/temp/gridsublist/rowpos", curRow); model.refresh(); } /** * @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.setValue("/root/temp/gridsublist/itemremove","Y"); model.refresh(); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® µî·Ï * @ * @param : grdObj ±×¸®µåID * @return : * @--------------------------------------------------- */ function fRgstGridSub(grdObj, grdObj2){ var curRow = grd_itemlist.row - grd_itemlist.fixedRows + 1; var itemnm = model.getValue("/root/main/itemlist[" + curRow + "]/itemnm"); var termcd = model.getValue("/root/main/itemlist[" + curRow + "]/termcd"); var reprtermnm = model.getValue("/root/main/itemlist[" + curRow + "]/reprtermnm"); termcd = termcd.substring(0,7); var axflag = model.getValue("/root/temp/gridsublist/axflag"); var grupcd = model.getValue(grd_gruplist.attribute("nodeset") + "[" + grd_gruplist.row + "]/grupcd"); // datagrid1.findRow( data¸í, ½ÃÀÛrow, columnÀ§Ä¡, ´ë¼Ò¹®ÀÚ ±¸ºÐÀ¯¹«, Àüü/ºÎºÐÀÏÄ¡ À¯¹« ) var rowpos = grd_gridsublist.findRow(termcd, 1, grd_gridsublist.colref("termbasecd")); if(rowpos > 0){ alert( itemnm +"Àº ÀÌ¹Ì Á¸ÀçÇÏ´Â ´©Àû¼­ºê ¾ÆÀÌÅÛÀÔ´Ï´Ù."); return; } grd_gridsublist.addItem(); var desCurRow = grd_gridsublist.rows - grdObj2.fixedRows; model.setValue("/root/main/gridsublist[" + desCurRow + "]/sortno", desCurRow); model.setValue("/root/main/gridsublist[" + desCurRow + "]/itemnm", itemnm); model.setValue("/root/main/gridsublist[" + desCurRow + "]/inptkind", '2'); model.setValue("/root/main/gridsublist[" + desCurRow + "]/termbasecd", termcd); model.setValue("/root/main/gridsublist[" + desCurRow + "]/grupcd", grupcd); model.setValue("/root/main/gridsublist[" + desCurRow + "]/axflag", axflag); model.setValue("/root/main/gridsublist[" + desCurRow + "]/reprtermnm", reprtermnm); grd_gridsublist.refresh(); } function fRgstGridSubDelay(){ iRow = grd_itemlist.row; if(iRow < 1){ return; } model.toggle("itemlist"); model.copyNode("/root/main/newitem", "/root/main/itemlist[" + iRow + "]"); model.refresh(); var itemcd = model.getValue("/root/main/newitem/itemcd"); model.makeNode("/root/send/reqdata/reqdata"); model.makeNode("/root/send/reqdata/reqflag"); model.makeValue("/root/send/reqdata/reqdata", itemcd); model.makeValue("/root/send/reqdata/reqflag", "itemcd"); model.makeValue("/root/send/reqdata/reqstatusterm", "Y"); model.refresh(); submit("TRMRF00202"); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® À¯»ç¾î/¾à¾î µî·Ï * @ * @param : grdObj ±×¸®µåID * @return : * @--------------------------------------------------- */ function fRgstItemSub(){ var curRow = grd_termlist.row - grd_termlist.fixedRows + 1; //À¯»ç¾î ¾à¾î dbclick½Ã µî·Ï var itemnm = model.getValue("/root/main/termlist[" + curRow + "]/termnm"); //var itemcd = model.getValue("/root/main/termlist[" + curRow + "]/itemcd"); var termcd = model.getValue("/root/main/termlist[" + curRow + "]/termcd"); termcd = termcd.substring(0,7); var axflag = model.getValue("/root/temp/gridsublist/axflag"); var grupcd = model.getValue(grd_gruplist.attribute("nodeset") + "[" + grd_gruplist.row + "]/grupcd"); //datagrid1.findRow( data¸í, ½ÃÀÛrow, columnÀ§Ä¡, ´ë¼Ò¹®ÀÚ ±¸ºÐÀ¯¹«, Àüü/ºÎºÐÀÏÄ¡ À¯¹« ) var rowpos = grd_gridsublist.findRow(termcd, 1, grd_gridsublist.colref("termbasecd")); if(rowpos > 0){ alert( itemnm +"°ú °°Àº ´©Àû¼­ºê ¾ÆÀÌÅÛÀÌ Á¸ÀçÇÕ´Ï´Ù."); return; } grd_gridsublist.addItem(); var desCurRow = grd_gridsublist.rows - grd_gridsublist.fixedRows; model.setValue("/root/main/gridsublist[" + desCurRow + "]/sortno", desCurRow); model.setValue("/root/main/gridsublist[" + desCurRow + "]/itemnm", itemnm); model.setValue("/root/main/gridsublist[" + desCurRow + "]/termbasecd", termcd); model.setValue("/root/main/gridsublist[" + desCurRow + "]/grupcd", grupcd); model.setValue("/root/main/gridsublist[" + desCurRow + "]/axflag", axflag); model.setValue("/root/main/gridsublist[" + desCurRow + "]/inptkind", "2"); grd_gridsublist.refresh(); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® ¾ÆÀÌÅÛ¸®½ºÆ® µî·Ï * @ * @param : grdObj ±×¸®µåID * @return : * @--------------------------------------------------- */ function fRgstItemList(){ var iRow = grd_itemlist.rows; //alert(iRow); if(iRow < 1){ return; } model.toggle("itemlist"); model.copyNode("/root/main/newitem", "/root/main/itemlist[" + iRow + "]"); model.refresh(); //var itemcd = model.getValue("/root/main/newitem/itemcd"); model.makeNode("/root/send/reqdata/reqdata"); model.makeNode("/root/send/reqdata/reqflag"); model.setValue("/root/send/reqdata/reqdata", itemcd); model.setValue("/root/send/reqdata/reqflag", "itemcd"); model.refresh(); submit("TRMRF00202"); } /** * @desc : ´©Àû¼­ºê¸®½ºÆ® µî·Ï(´©Àû ±×·ì ¾ÆÀÌÅÛ Ãß°¡ ÈÄ ÀúÀå) * @ * @param : grdObj ±×¸®µåID * @return : * @--------------------------------------------------- */ function fSaveValueSub() { var bModified = false; //¾ÆÀÌÅÛ »èÁ¦ ¿©ºÎ È®ÀÎ var itemflag =model.getValue("/root/temp/gridsublist/itemremove"); for(var i = 1; i "+row); if(direcflag == "up"){ //À§·Î if(srcRow == 1){ //ÇöÀç À§Ä¡°¡ ¸Ç À§ÀÏ °æ¿ì return; } var desRow = srcRow - 1; grd_gridsublist.row = row-1; }else if(direcflag == "down"){ //¾Æ·¡·Î if(srcRow == grdObj.rows - grdObj.fixedRows){ //ÇöÀç À§Ä¡°¡ ¸Ç ¾Æ·¡ÀÏ °æ¿ì return; } var desRow = srcRow + 1; grd_gridsublist.row = row+1; } // alert("row1111->"+grd_gridsublist.row); //¼ø¼­ º¯°æ½Ã °ª »Ó¸¸ ¾Æ´Ï¶ó, ±×¸®µå »óŰª±îÁö À̵¿ÇÑ´Ù. var srcflag = grdObj.rowStatus(srcRow); var desflag = grdObj.rowStatus(desRow); model.copyNode("/root/temp/tmp", "/root/main/gridsublist[" + srcRow + "]"); model.copyNode("/root/main/gridsublist[" + srcRow + "]", "/root/main/gridsublist[" + desRow + "]"); model.copyNode("/root/main/gridsublist[" + desRow + "]", "/root/temp/tmp"); model.setValue("/root/temp/gridsublist/statusflag", desflag); grdObj.rowStatus(desRow) = srcflag; grdObj.rowStatus(srcRow) = model.getValue("/root/temp/gridsublist/statusflag"); for(var i = 1; i < grdObj.rows; i++){ //´Ù¾çÇÑ case°¡ ¹ß»ýÇϱ⠶§¹®¿¡ Àüü¸¦ updateÇÏ¿© ¼ø¼­¸¦ ÀçÁ¤·Ä. model.setValue("/root/main/gridsublist[" + i + "]/sortno", i); if(grdObj.rowStatus(i) != 1){ //½Å±Ô¸¦ Á¦¿ÜÇÏ°í ¸ðµÎ update grdObj.rowstatus(i) = 2; } } model.refresh(); } /** * @desc : * @ * @param : * @return : * @--------------------------------------------------- */ function fSetCtrlDisabled3(bool){ input4.disabled = bool; input9.disabled = bool; input12.disabled = bool; gridtype.disabled = bool; input5.disabled = bool; input8.disabled = bool; input7.disabled = bool; combo3.disabled = bool; } function fSetCtrlDisabled(bool){ input4.disabled = bool; input9.disabled = bool; input12.disabled = bool; gridtype.disabled = bool; input5.disabled = bool; input8.disabled = bool; input7.disabled = bool; btn_rgst.disabled = bool; btn_cncl.disabled = bool; combo3.disabled = bool; btn_saveval.disabled = bool; btn_savevalsub.disabled = bool; } /** * @desc : * @ * @param : * @return : * @--------------------------------------------------- */ function fSetBtnDisabled(statusflag){ if(statusflag == 0){ //´©Àû¸®½ºÆ® Á¶È¸ÈÄ // btn_updtval.disabled = false; }else if(statusflag == 1){ //´©Àû¸®½ºÆ®Ãß°¡, ¼öÁ¤ ÈÄ btn_updtval.disabled = true; btn_rgst.disabled = false; btn_cncl.disabled = false; btn_savevalsub.disabled = true; btn_saveval.disabled = false; }else if(statusflag == 2){ //´©Àû¸®½ºÆ® µî·Ï btn_rgst.disabled = true; btn_cncl.disabled = true; FORMMNGT_SCR_SAVE_DATA = 1;//È­¸é¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍ ÀÖÀ½. }else if(statusflag == 3){ //´©Àû¸®½ºÆ® Ãë¼Ò btn_rgst.disabled = true; btn_cncl.disabled = true; if(FORMMNGT_SCR_SAVE_DATA == 0){ //È­¸é¿¡ ÀúÀåÇÒ µ¥ÀÌÅͰ¡ ¾øÀ¸¸é btn_saveval.disabled = true; }else{ btn_saveval.disabled = false; } }else if(statusflag == 4){ //UP, DOWNŬ¸¯ ÈÄ, ¾ÆÀÌÅ۱׸®µå Ŭ¸¯ ÈÄ btn_savevalsub.disabled = false; }else if(statusflag == 5){ } } /** * @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"); } model.refresh(); fSetCtrlDisabled2(true) cmb_valiyn.disabled = true; } /** * @desc : gridsublist ¸¦ newitemÀ¸·Î copy * @ * @param : * @return : * @--------------------------------------------------- */ function fCopyGridSublist(){ model.toggle("gruplist"); var curRow = grd_gridsublist.row - grd_gridsublist.fixedRows + 1; model.setValue("/root/main/newitem/itemnm" , model.getValue("/root/main/gridsublist[" + curRow + "]/itemnm")); model.setValue("/root/main/newitem/itemcnts" , model.getValue("/root/main/gridsublist[" + curRow + "]/itemcnts")); model.setValue("/root/main/newitem/datakind" , model.getValue("/root/main/gridsublist[" + curRow + "]/datakind")); model.setValue("/root/main/newitem/cntrkind" , model.getValue("/root/main/gridsublist[" + curRow + "]/cntrkind")); model.setValue("/root/main/newitem/reprtermnm" ,model.getValue("/root/main/gridsublist[" + curRow + "]/reprtermnm")); model.setValue("/root/main/newitem/rem" , model.getValue("/root/main/gridsublist[" + curRow + "]/itemrem")); model.setValue("/root/main/newitem/updtresncnts",model.getValue("/root/main/gridsublist[" + curRow + "]/itemupdtresncnts")); var itemcd = model.getValue("/root/main/gridsublist[" + curRow + "]/itemcd"); model.makeValue("/root/send/reqdata/reqdata", itemcd); model.makeValue("/root/send/reqdata/reqstatusterm", "Y"); submit("TRMRF00202"); model.refresh(); } /** * @desc : À¯»ç¾î/¾à¾î Á¤º¸ newitemÀ¸·Î º¹»ç * @ * @param : * @return : * @--------------------------------------------------- */ function fCopyTermlist(){ if(grd_termlist.isCell(event.target)){ iRow = grd_termlist.row; if(iRow < 1){ return; } fSetCtrlitemDisabled(true); cmb_valiyn.disabled = true; model.toggle("itemlist"); iRow = grd_termlist.row; model.setValue("/root/main/newitem/itemnm",model.getValue("/root/main/termlist[" + iRow + "]/termnm")); model.setValue("/root/main/newitem/itemfromdt",model.getValue("/root/main/termlist[" + iRow + "]/termfromdt")); model.setValue("/root/main/newitem/itemtodt",model.getValue("/root/main/termlist[" + iRow + "]/termtodt")); model.setValue("/root/main/newitem/updtresncnts",model.getValue("/root/main/termlist[" + iRow + "]/updtresncnts")); model.setValue("/root/main/newitem/rem",model.getValue("/root/main/termlist[" + iRow + "]/rem")); model.setValue("/root/main/newitem/termcd",model.getValue("/root/main/termlist[" + iRow + "]/termcd")); model.setValue("/root/main/newitem/fstrgstrid",model.getValue("/root/main/termlist[" + iRow + "]/fstrgstrid")); model.setValue("/root/main/newitem/repryn",model.getValue("/root/main/termlist[" + iRow + "]/repryn")); var termgubun = model.getValue("/root/main/termlist[" + iRow + "]/repryn"); if (termgubun == "Y") { chkmaster.visible = false; } else { chkmaster.visible= true; } if(termgubun =="N") { model.setValue("/root/main/newitem/repryn",""); } model.refresh(); fSetCtrlDisabled2(true); } }