/* ºÐ¸¸ÀåºÎ(SMMNN00800_ºÐ¸¸ÀåºÎ.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ var xPartRtnListPath = "/root/main/womanlist/womanlist"; /** * @group : * @ver : 2007.06.15 * @by : ÃÖ°æ¿ë * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃʱâÈ­ ÀÛ¾÷À» ÇÕ´Ï´Ù. * @param : * @param : * @return : * @--------------------------------------------------- */ function fInitialize(){ model.setValue("/root/main/cond/bthddfromdd", getCurrentDate().substr(0,6) + "01"); model.setValue("/root/main/cond/bthddtodd", getCurrentDate()); grd_wardpatlist.mergecells = "bycol"; for(var i = 3; i < grd_wardpatlist.cols; i++){ grd_wardpatlist.mergecol(i) = false; } //fSearchClick(); model.refresh(); } /** * @group : * @ver : 2007.06.15 * @by : ÃÖ°æ¿ë * @--------------------------------------------------- * @type : function * @access : public * @desc : ºÐ¸¸ÀåºÎ ¸®½ºÆ® Á¶È¸ * @param : * @param : * @return : * @--------------------------------------------------- */ function fSearchClick(){ model.copyNode("/root/send/reqdata", "/root/main/cond"); submit("TRMNN00801"); } /** * @group : * @ver : 2007.07.09 * @by : ÃÖ°æ¿ë * @--------------------------------------------------- * @type : function * @access : public * @desc : ºÐ¸¸½Ç ȯÀÚ Á¤º¸ ´õºíŬ¸¯½Ã * @param : * @param : * @return : * @--------------------------------------------------- */ function fGridDbClick(row){ grd_wardpatlist.gridToInstance(); var pid = model.getValue(xPartRtnListPath + "[" + row + "]/pid") ; var indd = model.getValue(xPartRtnListPath + "[" + row + "]/indd") ; var cretno = model.getValue(xPartRtnListPath + "[" + row + "]/cretno"); var instcd = model.getValue(xPartRtnListPath + "[" + row + "]/instcd"); var bthdd = model.getValue(xPartRtnListPath + "[" + row + "]/bthdd") ; var patnm = model.getValue(xPartRtnListPath + "[" + row + "]/patnm") ; //ÆÄ¶ó¹ÌÅÍ Ãß°¡_2009-02-17_SMY var wardcd = model.getValue(xPartRtnListPath + "[" + row + "]/wardcd"); var roomcd = model.getValue(xPartRtnListPath + "[" + row + "]/roomcd"); //ÆÄ¶ó¹ÌÅÍ Ãß°¡_2009-02-24_SMY var indschacptstat = model.getValue(xPartRtnListPath + "[" + row + "]/indschacptstat"); /* if( grd_wardpatlist.row > 1 ) { condparam = "I" + "¢Ë" + pid + "¢Ë" + indd + "¢Ë" + cretno + "¢Ë" + instcd + "¢Ë" + bthdd ; setParameter("condparam", condparam); modal("SPMMO08900", "1", "450", "400"); }*/ setParameter("pid" , pid ); setParameter("patnm" , patnm); setParameter("indd" , indd); setParameter("cretno", cretno); setParameter("wardcd", wardcd); setParameter("roomcd", roomcd); setParameter("indschacptstat", indschacptstat); modal("SMMNN00700"); } function fSaveExcel(grd){ file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if(file != "") { grd.saveExcel(file); } } /** * @group : * @ver : 2007.06.23 * @by : ÃÖ°æ¿ë * @--------------------------------------------------- * @type : function * @access : public * @desc : ExcelÆÄÀÏ·Î ÀúÀå * @param : grid ¸í * @param : * @return : * @--------------------------------------------------- */ function fSaveExcel(){ grd_wardpatlist.gridToInstance(); file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls"); if(file != "") { grd_wardpatlist.saveExcel(file); } } /** * @group : * @ver : 2007.06.23 * @by : ÃÖ°æ¿ë * @--------------------------------------------------- * @type : function * @access : public * @desc : ºÐ¸¸ÀåºÎ Ãâ·Â * @param : grid ¸í * @param : * @return : * @--------------------------------------------------- */ function fClickPrint(){ grd_wardpatlist.gridToInstance(); model.removenode("/root/send/printdata"); //send À籸¼º model.makeValue("/root/send/printdata",""); model.copynode("/root/send/printdata", "/root/main"); //»ý»ç¿©ºÎ for(var i = 1; i < grd_wardpatlist.rows-2; i++){ model.setValue("/root/send/printdata/womanlist/womanlist["+i+"]/deathyn", grd_wardpatlist.labelMatrix((i+2), grd_wardpatlist.colRef("deathyn"))); } exeReportPreview("RPMNN00801", "XMLSTR"); }