/* --------------------------------------------------------------------- °úº° ÁýµµÀǺ° ¼ö¼ú¸íº° ¼ö¼ú¹æ »ç¿ë½Ã°£ (SSMNP00300.xfm - JScript ) - Version : 1) : Ver.1.00.01 : Create By taebum : 2008-10-23 ¿ÀÈÄ 4:51:47 ---------------------------------------------------------------------- */ /** * @group : * @ver : 2008-09-28 ¿ÀÈÄ 4:07:46 * @by : * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ model.setValue("/root/hidden/condition/frdd", getCurrentDate()); model.setValue("/root/hidden/condition/todd" , getCurrentDate()); model.refresh(); model.setValue("/root/init/tab","day"); model.removeNodeSet("/root/main/daylists/deptDoctDaylist"); datagrid1.refresh(); model.removeNodeSet("/root/main/doctlists/deptDoctDetaillist"); datagrid4.refresh(); model.removenode("/root/send"); model.makeValue("/root/send/flag" , "X" ); model.makeValue("/root/send/searchitem", "XX" ); model.makeValue("/root/send/deptflag" , "011" ); submit("TRMNP00107"); //¼ö¼ú¹æ Á¶È¸ model.removenode("/root/send"); model.makeValue("/root/send/flag" , "userid" ); model.makeValue("/root/send/searchitem" , "00009006" ); submit("TRMNP00301", false); // ¼ö¼ú½ÇÀÇ ÄÚµå¿Í ¸íĪÀ» °¡Á®¿Â´Ù. addComboItem("combo1" , "Àü ü", "%", "above" ); addComboItem("combo2" , "Àü ü", "%", "above" ); model.setValue("/root/hidden/condition/oproomcd", "%"); model.setValue("/root/hidden/condition/deptcd", "%"); model.refresh(); } function fOnClickSearchBtn(){ model.removenode("/root/send"); model.makeValue("/root/send/frdd" ,model.getValue("/root/hidden/condition/frdd")); model.makeValue("/root/send/todd" ,model.getValue("/root/hidden/condition/todd")); model.makeValue("/root/send/ssflag1" ,model.getValue("/root/hidden/condition/ssflag1")); model.makeValue("/root/send/ssflag2" ,model.getValue("/root/hidden/condition/ssflag2")); model.makeValue("/root/send/ssflag3" ,model.getValue("/root/hidden/condition/ssflag3")); model.makeValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1")); model.makeValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2")); model.makeValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3")); model.makeValue("/root/send/deptcd" ,model.getValue("/root/hidden/condition/deptcd")); model.makeValue("/root/send/oproomcd",model.getValue("/root/hidden/condition/oproomcd")); model.makeValue("/root/send/opcd" ,model.getValue("/root/hidden/condition/opcd")); if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){ messageBox("½ÃÀÛÀÏ, Á¾·áÀÏÀº ÇʼöÀÔ·Â »çÇ×ÀÔ´Ï´Ù.", "I000"); return; } var sCurrentTab = model.getValue("/root/init/tab"); if(sCurrentTab == "day"){ model.removeNodeSet("/root/main/daylists/deptDoctDaylist"); datagrid1.refresh(); submit("TRSNP00300"); }else if(sCurrentTab == "doct"){ model.removeNodeSet("/root/main/doctlists/deptDoctDetaillist"); datagrid4.refresh(); submit("TRSNP00301"); } } /** * @group : * @ver : 2007.10.17 * @by : Grace * @--------------------------------------------------- * @type : function * @access : public * @desc : Exel ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveExcel(){ fileName = window.fileDialog("save", ",", false, "°úº°ÁýµµÀǺ°¼ö¼ú°Ç¼öÅë°è_ÀÏÀÚº°_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if (fileName != "" && fileName != null) { datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", false); } } /* * ¼ö¼úÄÚµå Á¶È¸ ÆË¾÷ * */ function fClickOpCodeHelp(){ var xpos = event.screenX; var ypos = event.screenY-300; modal("SPMNP01501", 1, xpos, ypos); var sResult = getParameter("SPMNP01501_ResultData"); setParameter("SPMNP01501_ResultData",""); if(sResult != "" && sResult != null && sResult != "undefined"){ var sResultArr = sResult.split("¢Ê"); model.setValue("/root/hidden/condition/opcd", sResultArr[0]); model.setValue("/root/hidden/condition/opnm", sResultArr[1]); input3.refresh(); input2.refresh(); } }