/* --------------------------------------------------------------------- ¼ö¼ú½Ç °¡µ¿·ü Åë°è (SSMNP00800.xfm - JScript ) - Version : 1) : Ver.1.00.01 : Create By taebum : 2008-10-22 ¿ÀÈÄ 4:07:43 ---------------------------------------------------------------------- */ /** * @group : * @ver : 2008-09-28 ¿ÀÈÄ 4:07:46 * @by : * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ model.setValue("/root/hidden/curtab", "dept"); model.setValue("/root/hidden/condition/frdt", getCurrentDate()+getCurrentTime().substr(0,4)); model.setValue("/root/hidden/condition/todt" , getCurrentDate()+getCurrentTime().substr(0,4)); model.refresh(); model.removeNodeSet("/root/main/deptOperRateLists/deptOperRateList"); datagrid1.refresh(); model.removeNodeSet("/root/main/roomOperRateLists/roomOperRateList"); datagrid2.refresh(); } function fOnClickSearchBtn(){ model.removenode("/root/send"); model.makeValue("/root/send/frdt" ,model.getValue("/root/hidden/condition/frdt")); model.makeValue("/root/send/todt" ,model.getValue("/root/hidden/condition/todt")); if(model.getValue("/root/send/frdt") == "" || model.getValue("/root/send/todt") == ""){ messageBox("½ÃÀÛÀÏ, Á¾·áÀÏÀº ÇʼöÀÔ·Â »çÇ×ÀÔ´Ï´Ù.", "I000"); return; } var sCurrentTab = model.getValue("/root/hidden/curtab"); if(sCurrentTab == "dept"){ model.removeNodeSet("/root/main/deptOperRateLists/deptOperRateList"); datagrid1.refresh(); submit("TRSNP00800"); }else if(sCurrentTab == "room"){ model.removeNodeSet("/root/main/roomOperRateLists/roomOperRateList"); datagrid2.refresh(); submit("TRSNP00801"); } } /** * @group : * @ver : 2007.10.17 * @by : Grace * @--------------------------------------------------- * @type : function * @access : public * @desc : Exel ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveExcel(){ if(model.getValue("/root/hidden/curtab")=="dept"){ fileName = window.fileDialog("save", ",", false, "¼ö¼ú½Ç°¡µ¿·ü_°úº°_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != "" && fileName != null) { datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", false); } }else if(model.getValue("/root/hidden/curtab")=="room"){ fileName = window.fileDialog("save", ",", false, "¼ö¼ú½Ç°¡µ¿·ü_¹æº°_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != "" && fileName != null) { datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", false); } } }