/* APU ½ºÄÉÁì Á¶È¸ - Version : 1) : Ver.1.00.01 */ // -------------------------------------------------- // È­¸é read // -------------------------------------------------- function finit() { //±×¸®µå ÃʱâÈ­ fInitGrid(); //¿À´Ã ³¯Â¥·Î ÃʱâÈ­ ÇÏ´Â ºÎºÐ.(Áø·áÀÏÀÚ¸¦ default·Î ¿À´Ã ³¯Â¥·Î ¼±ÅÃÇÔ) var tempdate = getCurrentDate(); model.setValue("/root/main/cond/ischefrdd", tempdate); model.setValue("/root/main/cond/ischetodd", tempdate); model.refresh(); //°øÅëÄÚµå zbcfGetCodeList(new Array( "L0089", "L0089", "L0096" ), new Array("/root/init/L00891list1", "/root/init/L00891list2", "/root/init/L00961list3"), true); //º´µ¿ÄÞº¸ submit("TRMNA00811"); //Áø·á°úÄÞº¸ var instcd = getUserInfo("dutplceinstcd"); var standard_yn = "orduseyn"; var ord_deptflag = ''; //D:¿Ü·¡Áø·á½Ç¸¸,'W':º´µ¿,X:±âŸ var rslt_ref = "/root/main/cond/orddeptlist"; zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref,'asc'); datagrid1.frozenCols = datagrid1.colRef("scheprcpflagnm"); } function fInitGrid() { model.removeNodeset("/root/main/scheinfo/schelist"); //ÃʱâÈ­½Ã ±×¸®µå 1¹øÂ° row »èÁ¦ model.refresh(); } /* --------------------------------------------------*/ /* type : function */ /* access : public */ /* desc : ȯÀÚÁ¤º¸ °¡Á®¿À±â */ /* param : °Ë»ö±¸ºÐ */ /* return : */ /* --------------------------------------------------*/ function fSearchPatInfo(qryflag) { modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", qryflag,"150", "150", "SPPMC02500", "/root/source", "/root/send"); var popupendflag = model.getValue("/root/main/popupendflag"); if (popupendflag == "ok"){ model.setValue("/root/main/cond/ipid",model.getValue("/root/main/patinfo/patinfolist/pid")); model.setValue("/root/main/cond/ihngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm")); // model.setValue("/root/main/cond/igndrage",model.getValue("/root/main/patinfo/patinfolist/pid")); model.setValue("/root/main/cond/irrgstno", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + "-" + model.getValue("/root/main/patinfo/patinfolist/rrgstno2") ); model.refresh(); // var pid = model.getValue("/root/main/patinfo/patinfolist/pid"); // if (pid != null && pid != "" && pid != " " && pid != "-"){ // fpidref(); // } } } //------------------------------------------------- //󹿱¸ºÐº¯µ¿¿¡ µû¸¥ ó¹æÁ¾·ù //------------------------------------------------- function fPrcpKindComboMake(flag) { //ÃʱâÈ­ var xPathSendReqdata = "/root/send/reqdata"; model.removeNodeset(xPathSendReqdata); model.makeNode(xPathSendReqdata); var Instcd = ""; var cdgrupid = ""; if (flag == "1") { Instcd = getUserInfo("dutplceinstcd"); cdgrupid = model.getValue("/root/main/cond/iprcpflag"); } else { Instcd = getUserInfo("dutplceinstcd"); cdgrupid = model.getValue("/root/main/scheinfo/schelist/scheprcpflag"); } switch (cdgrupid) { case "1": cdgrupid = "L0091"; break; case "2": cdgrupid = "L0090"; break; case "3": cdgrupid = "L0092"; break; default : cdgrupid = "L0091"; break; } model.makeValue(xPathSendReqdata + "/instcd", Instcd); //º´¿øÄÚµå model.makeValue(xPathSendReqdata + "/cdgrupid", cdgrupid); //±×·ìÄÚµå //Á¶È¸ if (flag == "1") submit("TRMNA00804"); else submit("TRMNA00805"); model.refresh(); } // -------------------------------------------------- // È®Á¤ ½ºÄÉÁì Á¶È¸ // -------------------------------------------------- function fScheQuery() { //ÃʱâÈ­ var xPathSendReqdata = "/root/send/reqdata"; model.removeNodeset(xPathSendReqdata); model.makeNode(xPathSendReqdata); var instcd = getUserInfo("dutplceinstcd"); var ioflag = model.getValue("/root/main/cond/ijob"); var wardcd = model.getValue("/root/main/cond/iwardcd"); var prcpflag = model.getValue("/root/main/cond/iprcpflag"); var prcpkindcd = model.getValue("/root/main/cond/iprcpkindcd"); var orddeptcd = model.getValue("/root/main/cond/orddeptcd"); var scheddfr = model.getValue("/root/main/cond/ischefrdd"); var scheddto = model.getValue("/root/main/cond/ischetodd"); var pid = model.getValue("/root/main/cond/ipid"); //20090117 dhkim var plcecd = model.getValue("/root/main/cond/plcecd"); //°ª¼³Á¤ model.makeValue(xPathSendReqdata + "/instcd", instcd); //º´¿øÄÚµå model.makeValue(xPathSendReqdata + "/ioflag", ioflag); //ÀÔ¿ø¿Ü·¡ model.makeValue(xPathSendReqdata + "/wardcd", wardcd); //º´µ¿ model.makeValue(xPathSendReqdata + "/prcpflag", prcpflag); //󹿱¸ºÐ model.makeValue(xPathSendReqdata + "/prcpkindcd", prcpkindcd); //ó¹æÁ¾·ù model.makeValue(xPathSendReqdata + "/orddeptcd", orddeptcd); //Áø·á°ú model.makeValue(xPathSendReqdata + "/scheddfr", scheddfr); //È®Á¤½ºÄÉÁìÀÏÀÚ model.makeValue(xPathSendReqdata + "/scheddto", scheddto); //È®Á¤½ºÄÉÁìÀÏÀÚ model.makeValue(xPathSendReqdata + "/pid", pid); //ȯÀÚid //20090117 dhkim //Àå¼ÒÁ¶È¸Ãß°¡ model.makeValue(xPathSendReqdata + "/plcecd", plcecd); //¼ººÐÇåÇ÷Àå¼Ò //Á¶È¸ submit("TRMNA02101"); model.refresh(); } //--------------------------------------- // µî·Ï¹øÈ£·Î ȯÀÚÀÇ »ó¼¼Á¤º¸ ÃßÃâ //--------------------------------------- function fPatInfo() { //ÃʱâÈ­ var xPathSendReqdata = "/root/send/reqdata"; model.removeNodeset(xPathSendReqdata); model.makeNode(xPathSendReqdata); var Instcd = getUserInfo("dutplceinstcd"); var pid = model.getValue("/root/main/scheinfo/schelist/pid"); model.makeValue(xPathSendReqdata + "/instcd", Instcd); //º´¿øÄÚµå model.makeValue(xPathSendReqdata + "/pid", pid); //ȯÀÚid //Á¶È¸ //submit("TRMNA00806"); var xPathFr = "/root/main/patinfo/patinfolist"; var xPathTo = "/root/main/scheinfo/schelist"; model.setValue(xPathTo + "/tnsrpid", model.getValue(xPathFr + "/pid")); model.setValue(xPathTo + "/hngnm", model.getValue(xPathFr + "/hngnm")); model.setValue(xPathTo + "/age", model.getValue(xPathFr + "/sex") + "/" + model.getValue(xPathFr + "/age")); model.setValue(xPathTo + "/ptbsrrgstno", model.getValue(xPathFr + "/rrgstno1") + "/" + model.getValue(xPathFr + "/rrgstno2")); // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm")); // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm")); // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm")); // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm")); // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm")); // model.setValue(xPathTo + "/patnm",model.getValue(xPathFr + "/hngnm")); model.refresh(); }