/*********************************************************************************************************************************************** * create date : 2008.02.12 * author : dhkim * file name : SMMNA01030.js * desc : ¹®Áø ºÎÀû°Ý ±â·Ï´ëÀå ***********************************************************************************************************************************************/ var xDnorPath = '/root/main/dnorinfo'; var xCondPath = '/root/cond'; var xReqPath = '/root/send/reqdata'; var currentDate = getCurrentDate(); /* * ÃʱâÈ­ */ function fInit(){ model.removeNodeset(xDnorPath); model.setValue(xCondPath + '/fromdd', currentDate); var getlastDate = currentDate.substring(0, 6) + getLastDay(currentDate.substring(0, 4), currentDate.substring(4, 6)); model.setValue(xCondPath + '/todd', getlastDate); grd_dnorlist.extendLastCol = true; fSearch(); } /* * ¹®ÁøºÎÀû°Ý ¸®½ºÆ®¸¦ Á¶È¸ÇÑ´Ù. */ function fSearch(){ var fromdd = model.getValue(xCondPath+'/fromdd'); var todd = model.getValue(xCondPath+'/todd'); if(fromdd == '') fromdd = currentDate; if(todd == '') todd = currentDate; model.removeNodeset(xDnorPath + "/dnorlist"); model.removeNodeset(xReqPath); model.makeValue(xReqPath + '/fromdd', fromdd); model.makeValue(xReqPath + '/todd', todd); if(!submit('TRMNA01031')){ messageBox('Á¶È¸¸¦', 'E009'); } } /* * ¿¢¼¿Ãâ·Â */ function fExcel(){ var pGrd = grd_dnorlist; if (pGrd.rows > pGrd.fixedrows ) { var fileName = window.fileDialog("save", ",", false, "¹®ÁøºÎÀû°Ý±â·Ï_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != "") { pGrd.saveExcel(fileName, "SheetName", true, true, "", "", false); messageBox("¿¢¼¿ÀúÀåÀÌ ", "I002", ""); //I002 : ¿Ï·áµÇ¾ú½À´Ï´Ù. } } else { messageBox("ÀÚ·á°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.", "E999", ""); } }