/* - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì ¼ö¼ú¸¶Ã뽺ÄÉÁÙÁ¶È¸ ( SPMMO06300_¼ö¼ú¸¶Ã뽺ÄÉÁÙÁ¶È¸.xrw - JScript ) - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ var paramcond; var sERINTERNLIST_PATH = "/root/main/erinterninfo/erinternlist"; /** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fInitialize_SPMMO06300(){ if(checkOpener()){ paramcond = opener.javascript.getParameter("SPMMO06300_param"); paramcond = paramcond.split("¢Ë"); }else{ messageBox("¸ÞÀÎ È­¸éÀ» ãÀ» ¼ö", "I004"); window.close(); } model.removeNodeset("/root/main/erinterninfo/erinternlist"); model.removeNodeset("/root/main/erinterninfo/erinternhistlist"); model.removeNodeset("/root/main/interninfo/internlist"); var reqdd = (getCurrentDate().toDate()).getAddDate(-1); reqdd = reqdd.getDateFormat(); model.setValue("/root/main/cond/reqdd", reqdd); fReqErInterList(); //ÀÀ±Þ½Ç ÀÎÅÏÀÇ»ç Á¶È¸ fReqPatInternList(); //ÀÀ±Þ½Ç ȯÀÚ¿¡ ¼³Á¤µÈ ÀÎÅÏÀÇ»ç Á¶È¸ } /** * @desc : ÀÀ±Þ½Ç ÀÎÅÏÀÇ Á¶È¸ * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fReqErInterList(){ model.removeNodeset("/root/send/reqdata"); model.makeValue("/root/send/reqdata/orddeptcd", paramcond[3]); submit("TRMMO06301"); var svcNode = instance1.selectNodes("/root/main/interninfo/internlist"); var mstNode = instance1.selectSingleNode("/root/main/interninfo/internlist"); var nodeLen = svcNode.length; var refChild = instance1.selectSingleNode("/root/main/interninfo/internlist["+1+"]"); var cloneNode = svcNode.item(1).cloneNode(true); mstNode.insertBefore(cloneNode, refChild); model.setValue("/root/main/interninfo/internlist["+1+"]/drid", "-"); model.setValue("/root/main/interninfo/internlist["+1+"]/drnm", "¹«¹èÁ¤"); model.refresh(); } /** * @desc : ÀÀ±Þ½Ç ÀÎÅÏÀÇ»ç ¼±Åà * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fSelectErInternDr(){ var iRow = grd_internlist.row; if(iRow < 1){ return; } var orddrid = model.getValue("/root/main/interninfo/internlist[" + iRow + "]/drid"); model.makeValue("/root/send/savedata/status" , "i"); model.makeValue("/root/send/savedata/genrdd" , getCurrentDate()); model.makeValue("/root/send/savedata/pid" , paramcond[0]); model.makeValue("/root/send/savedata/orddd" , paramcond[1]); model.makeValue("/root/send/savedata/cretno" , paramcond[2]); model.makeValue("/root/send/savedata/orddrid" , orddrid); model.makeValue("/root/send/savedata/patorddd" , paramcond[1]); model.makeValue("/root/send/savedata/currentdd", getCurrentDate()); model.makeValue("/root/send/savedata/srchdd" , model.getValue("/root/main/cond/reqdd")); submit("TXMMO06301"); group1.attribute("height") = 0; btn_add.disabled = false; btn_del.disabled = false; btn_close.disabled = false; } /** * @desc : ÀÀ±Þ½ÇȯÀÚ ÀÎÅÏÀÇ»ç Á¶È¸ * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fReqPatInternList(){ model.removeNodeset("/root/send/reqdata"); model.makeValue("/root/send/reqdata/pid" , paramcond[0]); model.makeValue("/root/send/reqdata/orddd" , paramcond[1]); model.makeValue("/root/send/reqdata/cretno" , paramcond[2]); model.makeValue("/root/send/reqdata/currentdd", getCurrentDate()); model.makeValue("/root/send/reqdata/srchdd" , model.getValue("/root/main/cond/reqdd")); submit("TRMMO06302"); } /** * @desc : Ãß°¡¹öư Ŭ¸¯ * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fClkAddBtn(){ group1.attribute("height") = 230; btn_add.disabled = true; btn_del.disabled = true; btn_close.disabled = true; } /** * @desc : Ãë¼Ò¹öư Ŭ¸¯ * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fClkCnclBtn(){ group1.attribute("height") = 0; btn_add.disabled = false; btn_del.disabled = false; btn_close.disabled = false; } /** * @desc : ÀÀ±Þ½ÇÀÎÅÏÀÇ »èÁ¦ * @ * @param : * @return : * @author : ¿ÀÁöÈÆ * @--------------------------------------------------- */ function fDelPatErInternDr(){ var currow = grd_erinternlist.row; if(currow < 1){ return; } var genrno = model.getValue(sERINTERNLIST_PATH + "[" + currow + "]/genrno"); var pid = model.getValue(sERINTERNLIST_PATH + "[" + currow + "]/pid"); var orddd = model.getValue(sERINTERNLIST_PATH + "[" + currow + "]/orddd"); var cretno = model.getValue(sERINTERNLIST_PATH + "[" + currow + "]/cretno"); var orddrid = model.getValue(sERINTERNLIST_PATH + "[" + currow + "]/orddrid"); var patorddd = model.getValue(sERINTERNLIST_PATH + "[" + currow + "]/patorddd"); model.makeValue("/root/send/savedata/status" , "d"); model.makeValue("/root/send/savedata/genrdd" , getCurrentDate()); model.makeValue("/root/send/savedata/genrno" , genrno); model.makeValue("/root/send/savedata/pid" , pid); model.makeValue("/root/send/savedata/orddd" , orddd); model.makeValue("/root/send/savedata/cretno" , cretno); model.makeValue("/root/send/savedata/orddrid" , orddrid); model.makeValue("/root/send/savedata/patorddd" , patorddd); model.makeValue("/root/send/savedata/currentdd", getCurrentDate()); model.makeValue("/root/send/savedata/srchdd" , model.getValue("/root/main/cond/reqdd")); submit("TXMMO06301"); }