/** - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì ÀÇ·áÁ¤º¸ - °£¾Ï ȯÀÚ°ü¸® ( SPMMR08100°£¾Ï.xrw - JScript ) - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì **/ function fInitialize(){ model.toggle("case1"); // È­¸é ¿­¸®¸é¼­ ¸ðµç ȯÀÚ¸¦ ·Îµù(recflag:3 °£Áúȯ ȯÀÚ) //model.makeValue("root/send/reqdata/recflag", "3"); model.makeValue("root/send/search/recflag", "3"); //submit("TRMMR08100"); model.setValue("/root/send/search/sdate", getCurrentDate()); model.setValue("/root/send/search/tdate", getCurrentDate()); model.setValue("/root/send/search/ioflag", "O"); model.refresh(); } // ȯÀÚ¸ñ·Ï¿¡¼­ ´õºí Ŭ¸¯½Ã ȯÀÚ Á¤º¸¸¦ °¡Á®¿Í¼­ »ó¼¼º¸±â¿¡ »Ñ·ÁÁÜ function fDetailPat(){ if(grd_liver.isCell(event.target) && grd_liver.mouserow >= grd_liver.fixedrows){ var pid = grd_liver.valueMatrix(grd_liver.row, grd_liver.colRef("pid")); if(pid!=""){ model.removeNode("/root/patdetail"); model.makeValue("/root/send/reqdata/pid", pid); submit("TRMMR08103"); model.makeValue("/root/patdetail/comments", grd_liver.valueMatrix(grd_liver.row, grd_liver.colRef("comments"))); btn_sw2.selected=true; model.toggle("case2"); model.refresh(); } } } //±×¸®µå ´Ã¸®±â var grd_status; function fExpandGrid(){ var grd_name=getParameter("grd_name"); if(grd_name=="grd_testresult1" && grd_testresult1.row >= grd_testresult1.fixedrows){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 125; grd_testresult2.attribute("top") = 125; grd_testresult2.attribute("height") = 0; grd_testresult3.attribute("top") = 170; grd_testresult3.attribute("height") = 0; grd_status="grd_testresult1"; //ÇöÀç »óŰªÀ» ¼³Á¤ }else if(grd_name=="grd_testresult2" && grd_testresult2.row >= grd_testresult2.fixedrows){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 0; grd_testresult2.attribute("top") = 0; grd_testresult2.attribute("height") = 125; grd_testresult3.attribute("top") = 0; grd_testresult3.attribute("height") = 0; grd_status="grd_testresult2"; }else if(grd_name=="grd_testresult3" && grd_testresult3.row >= grd_testresult3.fixedrows){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 0; grd_testresult2.attribute("top") = 0; grd_testresult2.attribute("height") = 0; grd_testresult3.attribute("top") = 0; grd_testresult3.attribute("height") = 125 grd_status="grd_testresult3"; } } //±×¸®µå ÁÙÀ̱â function fShortenGrid(){ var grd_name=getParameter("grd_name"); if(grd_status==grd_name && grd_name=="grd_testresult1" && grd_testresult1.row >= grd_testresult1.fixedrows){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 45; grd_testresult2.attribute("top") = 45; grd_testresult2.attribute("height") = 45; grd_testresult3.attribute("top") = 90; grd_testresult3.attribute("height") = 45; }else if(grd_status==grd_name && grd_name=="grd_testresult2" && grd_testresult2.row >= grd_testresult2.fixedrows){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 45; grd_testresult2.attribute("top") = 45; grd_testresult2.attribute("height") = 45; grd_testresult3.attribute("top") = 90; grd_testresult3.attribute("height") = 45; }else if(grd_status==grd_name && grd_name=="grd_testresult3" && grd_testresult3.row >= grd_testresult3.fixedrows){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 45; grd_testresult2.attribute("top") = 45; grd_testresult2.attribute("height") = 45; grd_testresult3.attribute("top") = 90; grd_testresult3.attribute("height") = 45; } } //È­¸é ÃʱâÈ­ function fGrid_init(){ grd_testresult1.attribute("top") = 0; grd_testresult1.attribute("height") = 45; grd_testresult2.attribute("top") = 45; grd_testresult2.attribute("height") = 45; grd_testresult3.attribute("top") = 90; grd_testresult3.attribute("height") = 45; } //Åõ¾à°ü¸® LMC ¹× Ç×¾ÏÁ¦LMC ÀúÀåÇϱâ function fSave(btn_nm){ if(btn_nm=="btn_prcp"){ var rowcnt=grd_prcpinfo.rows; var savedata = "instcd¢Ëpid¢Ëorddd¢Ëcretno¢Ëchosflag¢Ërecflag¢Ëitemcd¢Ëitemval1¢Ëfstrgstrid¢Ëlastupdtrid¢Ì"; var datastring=""; for(i=1; i= grd_liver.fixedrows){ var chk=messageBox("ÇØ´ç ȯÀÚ¸¦ »èÁ¦ÇϽðڽÀ´Ï±î? ", "S001", ""); //¿¹:6 ¾Æ´Ï¿À:7 Ãë¼Ò:2 if(chk=="6"){ var pid=grd_liver.valueMatrix(grd_liver.row, grd_liver.colRef("pid")); model.removeNode("/root/send/reqdata"); model.makeValue("/root/send/reqdata/pid", pid); model.makeValue("/root/send/reqdata/recflag", 3); model.makeValue("/root/send/reqdata/lastupdtrid", getUserInfo("userid")); submit("TXMMO08103"); model.removeNode("/root/patdetail"); fInitialize(); } } } //°Ë»öÁ¶°Ç üũ function fCheck(){ var pid=model.getValue("/root/send/search/pid"); var ioflag=model.getValue("/root/send/search/ioflag"); var mdiag=model.getValue("/root/send/search/mdiag"); var sdiag=model.getValue("/root/send/search/sdiag"); var sdate=model.getValue("/root/send/search/sdate"); var tdate=model.getValue("/root/send/search/tdate"); if(pid=="" && ioflag=="" && mdiag=="" && sdiag=="" && sdate=="" && tdate==""){ return true; }else if(sdate !="" && tdate =="" || sdate =="" && tdate !=""){ return true; }else{ return false; } }