/* ½ÉÆó¼Ò»ý¼ú(SMMNE02300.xfm - JScript ) - Version : 1) : Ver.1.00.01 */ xPathCardArrPatInfo = "/root/main/patinfo"; xPathCardArrResusList = "/root/main/resusinfo/resuslist"; /** * @group : * @ver : 2007.12.04 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ½ÉÆó¼Ò»ý¼ú º¸°í¼­ Ãʱ⠼³Á¤ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fInit(pFlag){ //»ó´Ü ȯÀÚ Á¤º¸ °¡Á®¿À±â var node = getGlobalVariable("paminfo"); setCSVToNode("/root/main/paminfo", node); //ÇöÀç ½Ã°£ ¼¼ÆÃ int_cardarrgenrdd.disabled = false; model.setValue(xPathCardArrPatInfo+"/cardarrgenrdd", getCurrentDate()); model.setValue(xPathCardArrPatInfo+"/cardarrgenrtm", getCurrentTime()); model.removeNode("/root/main/pathistinfo/pathistlist"); var sJobKindCD = getUserInfo("jobkindcd"); // Á÷±ÞÄÚµå var ssflag = "3"; if(getUserInfo("dutplceinstcd") != '032' && getUserInfo("dutplceinstcd") != '031') { //°æºÏ´ë°¡ ¾Æ´Ï¸é if( sJobKindCD == "0330" || sJobKindCD == "0310"){ ssflag = "1"; } if( sJobKindCD == "1110" || sJobKindCD == "1140"){ ssflag = "2"; } } else if(getUserInfo("dutplceinstcd") == '032' || getUserInfo("dutplceinstcd") == '031') { //°æºÏ´ëÀ̸é 03%·Î üũÇÑ´Ù. if( sJobKindCD.substring(0, 2) == "03"){ ssflag = "1"; } if( sJobKindCD == "1140"){ ssflag = "2"; } } //ÀÇ»ç, °£È£»ç Á÷Á¾ ºÐ·ùº° ÀԷ â Á¦ÇÑ ±¸ºÐ if(ssflag=="1"){ //ÀÇ»ç model.setValue("/root/main/patinfo/nursdocflag", "D"); group2.disabled = true ; } else if (ssflag=="2"){ //°£È£»ç model.setValue("/root/main/patinfo/nursdocflag", "N"); fDateSetting("Init"); } else { //±âŸ group2.disabled = true ; chk_fstresusexecflag.disabled = true; int_fstresusexecetc.disabled = true; messageBox("½ÉÆó¼Ò»ý¼úº¸°í¼­ ÀÛ¼º ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.","E"); } submit("TRMNE02313"); model.setValue("/root/send/wardcd", getUserInfo("dutplcecd") ); submit("TRMNW00101"); int_cardarrdiscvpsnetc.disabled = true; int_resusteamarvbfresusetc.disabled = true; int_resusteamfresusetc.disabled = true; int_resusendresnetc.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; int_fstresusexecetc.disabled = true; int_cardarrgenrplcehosout.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; int_dethdd.disabled = true; int_dethtm.disabled = true; button5.disabled = true; ipt_freairway1.disabled = true; ipt_freairway2.disabled = true; ipt_freairway3.disabled = true; ipt_freairway4.disabled = true; ipt_freairway5.disabled = true; ipt_freairway6.disabled = true; // ¿ø¿ÜÀÇ °æ¿ì¿¡¸¸ º´¿ø µµÂøÀü óġ Ȱ¼ºÈ­ chk_hosparvbfresus.disabled = true; int_hosparvbfresusetc.disabled = true; bool_hosparvbfresusynflag.disabled = true; model.refresh(); if(node != ""){ model.setValue("/root/main/patinfo/pid", model.getValue("/root/main/paminfo/list/pid")); model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/paminfo/list/indd")); model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/paminfo/list/cretno")); model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/paminfo/list/instcd")); model.makeValue("/root/main/patinfo/wardcd", model.getValue("/root/main/paminfo/list/wardcd")); model.makeValue("/root/main/patinfo/roomcd", model.getValue("/root/main/paminfo/list/roomcd")); model.makeValue("/root/main/patinfo/ordtype", model.getValue("/root/main/paminfo/list/ioflag")); model.makeValue("/root/main/patinfo/medispclid", model.getValue("/root/main/paminfo/list/medispclid")); model.makeValue("/root/main/patinfo/atdoctcd", model.getValue("/root/main/paminfo/list/atdoctid")); model.makeValue("/root/main/patinfo/orddrid", model.getValue("/root/main/paminfo/list/orddrnm")); model.makeValue("/root/main/patinfo/deptcd", model.getValue("/root/main/paminfo/list/orddeptcd")); model.makeValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd")); model.makeValue("/root/main/patinfo/age", model.getValue("/root/main/paminfo/list/age")); model.makeValue("/root/main/patinfo/gender", model.getValue("/root/main/paminfo/list/sex")); model.makeValue("/root/main/patinfo/patnm", model.getValue("/root/main/paminfo/list/hngnm")); if(model.getValue("/root/main/paminfo/list/ioflag") == "E") { model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/paminfo/list/erissdeptcd")); } else { model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/paminfo/list/wardcd")); } //Áֹεî·Ï ¹øÈ£ ¼ÂÆÃ var rrgstno = ""; if(model.getValue("/root/main/paminfo/list/sex") == "M"){ var rrgstno = model.getValue("/root/main/paminfo/list/rrgstno1") + " - " + "1******"; }else if(model.getValue("/root/main/paminfo/list/sex") == "F"){ var rrgstno = model.getValue("/root/main/paminfo/list/rrgstno1") + " - " + "2******"; }else { var rrgstno = model.getValue("/root/main/paminfo/list/rrgstno1") + " - " + "*******"; } model.setValue("/root/main/patinfo/rrgstno", rrgstno); cmb_dept.dispatch("xforms-value-changed"); //ȯÀÚ Á¤º¸ Á¶È¸ fSrchHistList(pFlag); //ȯÀÚ Á¤º¸ ¼¼ÆÃ model.setValue("/root/main/patinfo/patnm", model.getValue("/root/main/pathistinfo/patinfo/patnm" )); model.setValue("/root/main/patinfo/grdrage", model.getValue("/root/main/pathistinfo/patinfo/grdrage" )); model.setValue("/root/main/patinfo/cntctel", model.getValue("/root/main/pathistinfo/patinfo/cntctel" )); model.setValue("/root/main/patinfo/addr", model.getValue("/root/main/pathistinfo/patinfo/addr" )); model.setFocus("ipt_pid"); model.refresh(); } if( checkOpener() ){ var param_pid = opener.javascript.getParameter("SMMNE04900_pid"); var param_lastupdtdt = opener.javascript.getParameter("SMMNE04900_lastupdtdt"); if(param_pid != ""){ model.setValue("/root/main/patinfo/pid", param_pid); ipt_pid.refresh(); event.keyCode = "13"; ipt_pid.dispatch("onkeyup"); for(i = 1; i < datagrid2.rows; i++){ if( model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/lastupdtdt") == param_lastupdtdt ){ model.setValue("/root/main/patinfo/selectrow", i); datagrid2.row = i; int_cardarrgenrdd.disabled = true; model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/indd")); model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/cretno")); model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/instcd")); model.setValue("/root/main/patinfo/cardarrgenrdd", model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/cardarrgenrdd")); model.setValue("/root/main/patinfo/cardarrgenrtm", model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/cardarrgenrtm")); model.setValue("/root/main/patinfo/histno", model.getValue("/root/main/pathistinfo/pathistlist["+i+"]/histno")); fCardArrResusSrch(1); fInputBoxInit(); } } button4.visible = false; // ÀúÀå¹öư ¼û±è. button10.visible = true; button11.visible = true; } } } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ´ë»ó ȯÀÚ¿¡ ´ëÇÑ ½ÉÆó¼Ò»ý¼ú º¸°í¼­ ³»¿ë ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fCardArrResusSave(pFlag, pFlag1, pStatus){ var sRow = datagrid2.row; model.removeNode("/root/send"); model.makeNode("/root/item/list"); model.copyNode("/root/item/list", "/root/main/resusinfo"); if(model.getValue("/root/main/patinfo/selectrow") == ""){ if(pStatus == "U"){ messageBox("¼öÁ¤ÇÒ µ¥ÀÌÅ͸¦ ¼±ÅÃÇÏÁö ¾Ê¾Ò½À´Ï´Ù.","I"); return; } if(pStatus == "D"){ messageBox("»èÁ¦ÇÒ µ¥ÀÌÅ͸¦ ¼±ÅÃÇÏÁö ¾Ê¾Ò½À´Ï´Ù.","I"); return; } } // ÀúÀå/¼öÁ¤ Á¦ÇÑ Á¶°Ç if(pFlag1 == "N" && pStatus != "D"){ if( model.getValue(xPathCardArrResusList+"/cardarrgoalyn") == "" ){ messageBox("½ÉÁ¤Áö¸ñ°Ý¿©ºÎ Ç׸ñÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } if( model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") == "" ){ messageBox("½ÉÁ¤Áö¹ß°ßÀÚ Ç׸ñÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } // º´¿ø³», ¿Ü ±¸ºÐº° ÀÔ·Â ¼öÁ¤ Á¦ÇÑ if(pFlag == 1){ if( model.getValue("/root/main/resusinfo/resuslist/cardarrfinddd") == "" || model.getValue("/root/main/resusinfo/resuslist/cardarrfindtm") == "" ){ messageBox("ȯÀڹ߽߰ð£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "" ){ messageBox("½ÉÁ¤Áö¹ß»ýÀå¼Ò Ç׸ñÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } if( model.getValue("hidden/list/resusteamarvbfresus") == "0000000" ){ messageBox("CPRÆÀ µµÂøÀü¼Ò»ý¼ú Ç׸ñÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrestmflag") !="Y" && (model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd") == "" || model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm" ) == "")){ messageBox("½ÉÁ¤Áö ÃßÁ¤½Ã°£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrestmflag") =="Y" && (model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd") != "" || model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm" ) != "")){ messageBox("½ÉÁ¤Áö ÃßÁ¤½Ã°£À» ÃßûºÒ°¡·Î ÀÔ·ÂÇÏ¿´½À´Ï´Ù! ÀϽø¦ Áö¿öÁֽʽÿÀ!","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamcallflag") !="Y" && (model.getValue("/root/main/resusinfo/resuslist/resusteamcalldd") == "" || model.getValue("/root/main/resusinfo/resuslist/resusteamcalltm" ) == "")){ messageBox("CPRÆÀ È£Ãâ½Ã°£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamcallflag") =="Y" && (model.getValue("/root/main/resusinfo/resuslist/resusteamcalldd") != "" || model.getValue("/root/main/resusinfo/resuslist/resusteamcalltm" ) != "")){ messageBox("CPRÆÀ È£Ãâ½Ã°£À» È£Ãâ¾ÈÇÔÀ¸·Î ÀÔ·ÂÇÏ¿´½À´Ï´Ù! ÀϽø¦ Áö¿öÁֽʽÿÀ!","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamcallflag") !="Y" && (model.getValue("/root/main/resusinfo/resuslist/resusteamarvtm") == "" || model.getValue("/root/main/resusinfo/resuslist/resusteamarvtm") == "" )){ messageBox("CPRÆÀ µµÂø½Ã°£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd" ) == "" || model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmtm") == "" ){ messageBox("Ãʱ⸮µë È®Àνð£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamfresusflag") !="Y" && ( model.getValue("/root/main/resusinfo/resuslist/resusfromdd") == "" || model.getValue("/root/main/resusinfo/resuslist/resusfromtm" ) == "" )){ messageBox("CPRÆÀ ¼Ò»ý¼ú ½ÃÀ۽ð£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/defibrflag") !="Y" && ( model.getValue("/root/main/resusinfo/resuslist/defibrstartdd") == "" || model.getValue("/root/main/resusinfo/resuslist/defibrstarttm" ) == "" )){ messageBox("Á¦¼¼µ¿ ½ÃÀ۽ð£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamfresusflag") !="Y" && ( model.getValue("/root/main/resusinfo/resuslist/resustodd") == "" || model.getValue("/root/main/resusinfo/resuslist/resustotm") == "" )){ messageBox("¼Ò»ý¼ú Á¾·á½Ã°£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("hidden/list/resusteamfresus") == "0000000" ){ messageBox("CPRÆÀ ¼Ò»ý¼ú Ç׸ñÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == "01" && (model.getValue("/root/main/resusinfo/resuslist/dschdethdd" ) == "" || model.getValue("/root/main/resusinfo/resuslist/dschdethtm" ) == "" )){ messageBox("»ç¸Á½Ã°£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/fstresusstrtdd") == "" || model.getValue("/root/main/resusinfo/resuslist/fstresusstrttm") == ""){ messageBox("óÀ½ ¼Ò»ý¼ú ½ÃÀ۽ð£ÀÌ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. ³¯Â¥¿Í ½Ã°£À» È®ÀÎÇØÁֽʽÿÀ.","E"); return; } // ---------------------------------------------------------------------------------------------------------------------- var cardarrfinddd = model.getValue("/root/main/resusinfo/resuslist/cardarrfinddd"); //ȯÀڹ߽߰ð£(ÀÏÀÚ) var cardarrfindtm = model.getValue("/root/main/resusinfo/resuslist/cardarrfindtm"); //ȯÀڹ߽߰ð£(½Ã°£) var cardarrgenrdd = model.getValue("/root/main/patinfo/cardarrgenrdd"); // ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ var cardarrestmdd = model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd"); // ½ÉÁ¤Áö ÃßÁ¤½Ã°£ var resusteamcalldd = model.getValue("/root/main/resusinfo/resuslist/resusteamcalldd" ); // CPRÆÀ È£Ãâ½Ã°£ var resusteamarvdd = model.getValue("/root/main/resusinfo/resuslist/resusteamarvdd" ); // CPRÆÀ µµÂø½Ã°£ var initrhythmcnfmdd = model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd" ); // Ãʱ⸮µëÈ®Àνð£ var resusfromdd = model.getValue("/root/main/resusinfo/resuslist/resusfromdd" ); // ¼Ò»ý¼ú ½ÃÀ۽ð£ var defibrstartdd = model.getValue("/root/main/resusinfo/resuslist/defibrstartdd" ); // Á¦¼¼µ¿ ½ÃÀ۽ð£ var resustodd = model.getValue("/root/main/resusinfo/resuslist/resustodd" ); // ¼Ò»ý¼ú Á¾·á½Ã°£ var dschdethdd = model.getValue("/root/main/resusinfo/resuslist/dschdethdd" ); // »ç¸ÁÀϽà var defibrflag = model.getValue("/root/main/resusinfo/resuslist/defibrflag"); //Á¦¼¼µ¿ ½ÃÀ۽𣠽ÃÇà¾ÈÇÔ Ç׸ñ (Y/N) var fstresusstrtdd = model.getValue("/root/main/resusinfo/resuslist/fstresusstrtdd"); //óÀ½ ¼Ò»ý¼ú ½ÃÀ۽𣠳¯Â¥ var fstresusstrttm = model.getValue("/root/main/resusinfo/resuslist/fstresusstrttm"); //óÀ½ ¼Ò»ý¼ú ½ÃÀ۽ð£ var fromdd = cardarrgenrdd.toDate().getAddDate(-1,"D").getDateFormat(); var todd = cardarrgenrdd.toDate().getAddDate(1,"D").getDateFormat(); var resusteamcallflag = model.getValue("/root/main/resusinfo/resuslist/resusteamcallflag"); if( resusteamcalldt != "" ){ if( (cardarrgenrdd != resusteamcalldd && resusteamcallflag =="N") && todd != resusteamcalldd){ messageBox("CPRÆÀ È£Ãâ½Ã°£Àº ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ¿Í °°¾Æ¾ß ÇÕ´Ï´Ù.","E"); return; } } if( resusteamarvdt != "" ){ if( cardarrgenrdd != resusteamarvdd && todd != resusteamarvdd ){ messageBox("CPRÆÀ µµÂø½Ã°£Àº ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ¿Í °°¾Æ¾ß ÇÕ´Ï´Ù.","E"); return; } } if( initrhythmcnfmdt != "" ){ if( cardarrgenrdd != initrhythmcnfmdd && todd != initrhythmcnfmdd ){ messageBox("Ãʱ⸮µëÈ®Àνð£Àº ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ¿Í °°¾Æ¾ß ÇÕ´Ï´Ù.","E"); return; } } if( resusfromdt != "" ){ if( cardarrgenrdd != resusfromdd && todd != resusfromdd ){ messageBox("¼Ò»ý¼ú ½ÃÀ۽ð£Àº ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ¿Í °°¾Æ¾ß ÇÕ´Ï´Ù.","E"); return; } } if( defibrstartdt != "" ){ if( (cardarrgenrdd != defibrstartdd && defibrflag == "N") && todd != defibrstartdd) { messageBox("Á¦¼¼µ¿ ½ÃÀ۽ð£Àº ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ¿Í °°¾Æ¾ß ÇÕ´Ï´Ù.","E"); return; } } if( resustodt != "" ){ if( cardarrgenrdd != resustodd && todd != resustodd ){ messageBox("¼Ò»ý¼ú Á¾·á½Ã°£Àº ¼Ò»ý¼ú ½ÃÇàÀÏÀÚ¿Í °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } } // --½ÉÁ¤Áö ÃßÁ¤½Ã°£Àº ¸ðµç½Ã°£º¸´Ù °°°Å³ª »¡¶ó¾ßÇÔ--------------------------------------------------------------------------------- if( model.getValue("/root/main/resusinfo/resuslist/cardarrestmflag" ) != "Y"){ var defibrstartdt = defibrstartdd + model.getValue("/root/main/resusinfo/resuslist/defibrstarttm" ); // Á¦¼¼µ¿ ½ÃÀ۽ð£ var resustodt = resustodd + model.getValue("/root/main/resusinfo/resuslist/resustotm" ); // ¼Ò»ý¼ú Á¾·á½Ã°£ var dschdethdt = dschdethdd + model.getValue("/root/main/resusinfo/resuslist/dschdethtm" ); // »ç¸ÁÀϽà var cardarrfinddt = cardarrfinddd + cardarrfindtm; // ȯÀڹ߽߰ð£ var cardarrestmdt = cardarrestmdd + model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm" ); // ½ÉÁ¤Áö ÃßÁ¤ÀÏÀÚ var resusteamcalldt = resusteamcalldd + model.getValue("/root/main/resusinfo/resuslist/resusteamcalltm" ); // CPRÆÀ È£ÃâÀÏÀÚ var fstresusstrtdt = fstresusstrtdd + fstresusstrttm; // óÀ½¼Ò»ý¼ú½ÃÀÛÀÏÀÚ var initrhythmcnfmdt = initrhythmcnfmdd + model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmtm" ); // Ãʱ⸮µëÈ®ÀÎÀÏÀÚ var resusteamarvdt = resusteamarvdd + model.getValue("/root/main/resusinfo/resuslist/resusteamarvtm" ); // CPRÆÀ µµÂø½Ã°£ var resusfromdt = resusfromdd + model.getValue("/root/main/resusinfo/resuslist/resusfromtm" ); // CPRÆÀ ¼Ò»ý¼ú ½ÃÀ۽ð£ var defibrstartdt = defibrstartdd + model.getValue("/root/main/resusinfo/resuslist/defibrstarttm" ); // Á¦¼¼µ¿ ½ÃÀ۽ð£ var resustodt = resustodd + model.getValue("/root/main/resusinfo/resuslist/resustotm" ); // ¼Ò»ý¼ú Á¾·á½Ã°£ if( cardarrfinddt != "" && cardarrestmdt > cardarrfinddt ){ messageBox("ȯÀڹ߽߰ð£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( resusteamcalldt != "" && cardarrestmdt > resusteamcalldt ){ messageBox("CPRÆÀ È£Ãâ½Ã°£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( fstresusstrtdt != "" && cardarrestmdt > fstresusstrtdt ){ messageBox("óÀ½ ¼Ò»ý¼ú ½ÃÀ۽ð£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( initrhythmcnfmdt != "" && cardarrestmdt > initrhythmcnfmdt ){ messageBox("Ãʱ⸮µëÈ®Àνð£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( resusteamarvdt != "" && cardarrestmdt > resusteamarvdt ){ messageBox("CPRÆÀ µµÂø½Ã°£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( resusfromdt != "" && cardarrestmdt > resusfromdt ){ messageBox("CPRÆÀ ¼Ò»ý¼ú ½ÃÀ۽ð£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( defibrstartdt != "" && cardarrestmdt > defibrstartdt ){ messageBox("Á¦¼¼µ¿ ½ÃÀ۽ð£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( resustodt != "" && cardarrestmdt > resustodt ){ messageBox("¼Ò»ý¼ú Á¾·á½Ã°£Àº ½ÉÁ¤Áö ÃßÁ¤½Ã°£°ú °°°Å³ª Ä¿¾ß ÇÕ´Ï´Ù.","E"); return; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == "01" ){ if( dschdethdt != "" ){ if( cardarrestmdt > dschdethdt ){ messageBox("»ç¸ÁÀϽô ½ÉÁ¤Áö ÃßÁ¤½Ã°£º¸´Ù ÀÌÈÄ ½Ã°£ÀÌ¿©¾ß ÇÕ´Ï´Ù.","E"); return; } } } } } } var sDocHeader = "hosinhosoutflag¢Ëpid¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd"; // ۰ª ¼³Á¤ºÎºÐ var sCondData = pFlag +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" )+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" )+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno")+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno")+"¢Ë" +(model.getValue(xPathCardArrPatInfo+"/cardarrgenrdd") + model.getValue(xPathCardArrPatInfo+"/cardarrgenrtm"))+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd"); model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); // if(pFlag1 == "D"){ // ½ÉÆó¼Ò»ý¼úº¸°í¼­ ÁÖÄ¡ÀÇ ÀÔ·Â sDocHeader += "¢Ë" + "status¢Ë" + "cardarrcas¢Ë" + "initrhythm¢Ë" + "resusendresn¢Ë" + "resusendresnetc¢Ë" + "cardarrrslt¢Ë" + "cardarrrsltetc¢Ë" + "dschdethdd¢Ë" + "dschdethtm¢Ë" + "fstrgstid¢Ë" + "fstrgstdt¢Ë" + "memo¢Ë" + "dschneurologystat"; // + "dschneurologystat¢Ì"; sCondData += "¢Ë" + pStatus + "¢Ë" + model.getValue(xPathCardArrResusList + "/cardarrcas") +"¢Ë" + model.getValue(xPathCardArrResusList + "/initrhythm") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusendresn") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusendresnetc") +"¢Ë" + model.getValue(xPathCardArrResusList + "/cardarrrslt") +"¢Ë" + model.getValue(xPathCardArrResusList + "/cardarrrsltetc") +"¢Ë" + model.getValue(xPathCardArrResusList + "/dschdethdd") +"¢Ë" + model.getValue(xPathCardArrResusList + "/dschdethtm") +"¢Ë" + model.getValue(xPathCardArrResusList + "/fstrgstid") +"¢Ë" + model.getValue(xPathCardArrResusList + "/fstrgstdt") +"¢Ë" + model.getValue(xPathCardArrResusList + "/memo") +"¢Ë" + model.getValue(xPathCardArrResusList + "/dschneurologystat") ; // + model.getValue(xPathCardArrResusList + "/dschneurologystat") +"¢Ì"; // model.makeValue("/root/send/docrec", sDocHeader+sCondData ); // } // if(pFlag1 == "N"){ // ½ÉÆó¼Ò»ý¼úº¸°í¼­ °£È£»ç ÀÔ·Â sDocHeader += "¢Ë" + "status¢Ë" + "cardarrgoalyn¢Ë" + "cardarrdiscvpsn¢Ë" + "cardarrdiscvpsnetc¢Ë" + "cardarrgenrplceflag¢Ë" + "cardarrgenrplcedept¢Ë" + "cardarrgenrplceetc¢Ë" + "resusteamarvbfresus¢Ë" + "resusteamarvbfresusetc¢Ë" + "resusteamfresus¢Ë" + "resusteamfresusetc¢Ë" + "resusteamfresusflag¢Ë" + "ambulancearvbfresus¢Ë" + "ambulancearvbfresusetc¢Ë" + "ambulanceresus¢Ë" + "ambulanceresusetc¢Ë" + "ercentresus¢Ë" + "ercentresusetc¢Ë" + "cardarrestmdd¢Ë" + "cardarrestmtm¢Ë" + "cardarrestmflag¢Ë" + "resusteamcalldd¢Ë" + "resusteamcalltm¢Ë" + "resusteamcallflag¢Ë" + "resusteamarvdd¢Ë" + "resusteamarvtm¢Ë" + "initrhythmcnfmdd¢Ë" + "initrhythmcnfmtm¢Ë" + "resusfromdd¢Ë" + "resusfromtm¢Ë" + "resustodd¢Ë" + "resustotm¢Ë" + "gender¢Ë" + "age¢Ë" + "wardcd¢Ë" + "atdoctcd¢Ë" + "medispclid¢Ë" + "orddeptcd¢Ë" + "cardarrfinddd¢Ë" + "cardarrfindtm¢Ë" + "hosparvbfresus¢Ë" + "hosparvbfresusetc¢Ë" + "hosparvbfresusynflag¢Ë" + "bluebirdalarmyn¢Ë" + "cardarrgenrplceward¢Ë" + "cardarrgenrplcewardflag¢Ë" + "cardarrgenrplcehosin¢Ë" + "cardarrgenrplcehoscenter¢Ë" + "cardarrgenrplcetestroom¢Ë" + "cardarrgenrplcehosout¢Ë" + "cardarrgenrplceetcbigo¢Ë" + "fstresusexecflag¢Ë" + "fstresusexecetc¢Ë" + "fstresusstrtdd¢Ë" + "fstresusstrttm¢Ë" + "initpatcscs¢Ë" + "initpatbreth¢Ë" + "initpatpulse¢Ë" + "defibrflag¢Ë" + "defibrstartdd¢Ë" + "defibrstarttm¢Ë" + "defibrjul2¢Ë" + "defibrtims2¢Ë" + "defibrjul¢Ë" + "defibrtims¢Ë" + "freeairway1¢Ë" + "freeairway2¢Ë" + "freeairway3¢Ë" + "freeairway4¢Ë" + "freeairway5¢Ë" + "freeairway6¢Ë" + "memo¢Ì"; if(pFlag == "1"){ sCondData += "¢Ë" + pStatus + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplceflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcedept") +"¢Ë" + "¢Ë" + model.getValue("hidden/list/resusteamarvbfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc") +"¢Ë" + model.getValue("hidden/list/resusteamfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamfresusflag") +"¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcallflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initrhythmcnfmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initrhythmcnfmtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusfromdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusfromtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resustodd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resustotm") +"¢Ë" + model.getValue("/root/main/patinfo/gender") +"¢Ë" + model.getValue("/root/main/patinfo/age") +"¢Ë" + model.getValue("/root/main/patinfo/wardcd") +"¢Ë" + model.getValue("/root/main/patinfo/atdoctcd") +"¢Ë" + model.getValue("/root/main/patinfo/medispclid") +"¢Ë" + model.getValue("/root/main/patinfo/orddeptcd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrfinddd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrfindtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusynflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplceward") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcewardflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosin") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehoscenter") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcetestroom") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosout") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplceetcbigo") +"¢Ë" + model.getValue(xPathCardArrResusList+"/fstresusexecflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/fstresusexecetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/fstresusstrtdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/fstresusstrttm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initpatcscs") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initpatbreth") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initpatpulse") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims") +"¢Ë" + model.getValue(xPathCardArrResusList+"/freeairway1") +"¢Ë" + model.getValue(xPathCardArrResusList+"/freeairway2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/freeairway3") +"¢Ë" + model.getValue(xPathCardArrResusList+"/freeairway4") +"¢Ë" + model.getValue(xPathCardArrResusList+"/freeairway5") +"¢Ë" + model.getValue(xPathCardArrResusList+"/freeairway6") +"¢Ë" + model.getValue(xPathCardArrResusList+"/memo") +"¢Ì"; } model.makeValue("/root/send/recdata", sDocHeader+sCondData ); if(submit("TXMNE02301") == true){ // TextStmtInfo = ""; // //20111208_KNUH_Start °£È£ÀÏÁö ³»¿ª ºÎºÐ ¼öÁ¤. // //Type2 ÀúÀå ºÎºÐ // // TextStmtInfo = "½ÉÆó¼Ò»ý¼ú º¸°í¼­" // if(model.getValue(xPathCardArrResusList+"/cardarrestmflag") != "N"){ // TextStmtInfo +="\n½ÉÁ¤Áö ÃßÁ¤½Ã°£ : "+int_cardarrestmdd.label +" "+int_cardarrestmtm.label ; // }else{ // TextStmtInfo +="\n½ÉÁ¤Áö ÃßÁ¤½Ã°£ : ÃßÁ¤ºÒ°¡"; // } // // TextStmtInfo += "\nÃʱâȯÀÚ»óÅÂ"; // if(rdo_initpatcscs.label != ""){ // TextStmtInfo += "\nÀÇ ½Ä : " + rdo_initpatcscs.label; // } // if(rdo_initpatbreth.value != ""){ // TextStmtInfo += ", È£ Èí : " + rdo_initpatbreth.value; // } // if(rdo_initpatpulse.value != ""){ // TextStmtInfo += ", ¸Æ ¹Ú : " + rdo_initpatpulse.value; // } // // // if(model.getValue(xPathCardArrResusList+"/cardarrestmflag") != "N"){ // TextStmtInfo += "\nCPRÆÀ È£Ãâ½Ã°£"+ int_resusteamcalldd.label +" "+ int_resusteamcalltm.label; // }else{ // TextStmtInfo += "\nCPRÆÀ È£Ãâ½Ã°£ : È£Ãâ¾ÈÇÔ"; // } // // TextStmtInfo += "\nóÀ½ ¼Ò»ý¼ú ½ÃÀ۽ð£ : " + int_fstresusstrtdd.value+" "+ int_fstresusstrttm.value // + "\nÃʱ⸮µë È®Àνð£ : " + int_initrhythmcnfmdd.value+" "+ int_initrhythmcnfmtm.value // + "\nCPRÆÀ µµÂø½Ã°£ : " + int_resusteamarvdd.value+" "+ int_resusteamarvtm.value // + "\nCPRÆÀ ¼Ò»ý¼ú ½ÃÀ۽ð£ : " + int_resusfromdd.value+" "+ int_resusfromtm.value; // // if(model.getValue(xPathCardArrResusList+"/defibrflag") != "N"){ // TextStmtInfo += "\nÁ¦¼¼µ¿ ½ÃÀ۽ð£ : " + int_defibrstartdd.value+" "+int_defibrstarttm.value+" " // +ipt_defibrjul.value+"J "+ipt_defibrtims.value+"ȸ " // +ipt_defibrjul2.value+"J "+ipt_defibrtims2.value+"ȸ"; // }else{ // TextStmtInfo += "\nÁ¦¼¼µ¿ ½ÃÀ۽ð£ : ½ÃÇà¾ÈÇÔ"; // } // // TextStmtInfo += "\n¼Ò»ý¼ú Á¾·á½Ã°£ : " + rdo_initpatpulse.value+" "+ int_resustotm.value; // // if(model.getValue(xPathCardArrResusList+"/resusteamfresusflag") != "N"){ // TextStmtInfo += "\nCPRÆÀ ¼Ò»ý¼ú : "; // for(var i=0; i<7; i++){ // if( chk_resusteamfresus.item(i).selected == true){ // if( i == "0" ){ // TextStmtInfo += "ÈäºÎ¾Ð¹Ú"; // }else if( i == "1"){ // TextStmtInfo += "È£Èíº¸Á¶"; // }else if( i == "2"){ // TextStmtInfo += "Á¦¼¼µ¿"; // }else if( i == "3"){ // TextStmtInfo += "Àü¹®±âµµÈ®º¸ : ("+ipt_freairway5.value+"Fr "+ipt_freairway6.value+"Cm °íÁ¤ )"; // }else if( i == "4"){ // TextStmtInfo += "Á¤¸Æ·ÎÈ®º¸"; // }else if( i == "5"){ // TextStmtInfo += "¾à¹°Åõ¿©"; // }else if( i == "6"){ // TextStmtInfo += "±âŸ : "+int_resusteamfresusetc.value; // } // } // } // }else{ // TextStmtInfo += "\nCPRÆÀ ¼Ò»ý¼ú : ½Ãµµ¾ÈÇÔ"; // } // // TextStmtInfo += "\n¼Ò»ý¼ú Á¾·á»çÀ¯ : " + rdo_initpatpulse.value+" "+ int_resusendresnetc.value // + "\n¼Ò»ý¼ú °á°ú : " + rdo_initpatpulse.value // + "\n»ç¸ÁÀϽà : " + rdo_initpatpulse.value+" "+ int_dethtm.value // + "\nText ÀÔ·Â : " + model.getValue("/root/main/resusinfo/resuslist/memo"); // // var pid = model.getValue(xPathCardArrPatInfo+"/pid"); // var indd = model.getValue(xPathCardArrPatInfo+"/indd"); // var cretno = model.getValue(xPathCardArrPatInfo+"/cretno"); // var instcd = model.getValue(xPathCardArrPatInfo+"/instcd"); // // alert("1"); // setParameter("SMMNR03400_ParamBase", "recflag¢Ëdutplaccd¢Ëreclnkkey¢ÌE¢Ë010¢Ë"+ pid + "," + indd + "," + cretno + "," + instcd+"¢Ì"); // setParameter("SMMNR03400_ParamSaveText", "S¢ËA¢Ë"+getCurrentDate()+getCurrentTime()+"¢Ë"+TextStmtInfo+"¢Ì"); // modal("SMMNR03400"); // // model.copynode("/root/main/resusinfo","/root/resusbase"); fSrchHistList(pFlag); fActionStatus(pFlag, pStatus, sRow); // // } model.removeNodeset("/root/item"); model.refresh(); } } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀúÀå, ¼öÁ¤, »èÁ¦ ±¸ºÐ¿¡ µû¸¥ Action ¼³Á¤ * @param : * @return : * @--------------------------------------------------- */ function fActionStatus(pFlag, pStatus, row){ if(pStatus == "I"){ datagrid2.row = getNodesetCount("/root/main/pathistinfo/pathistlist"); fSelectHistData(pFlag); }else if(pStatus == "U"){ datagrid2.row = row; fSelectHistData(pFlag); }else if(pStatus == "D"){ model.setValue("/root/main/patinfo/selectrow", ""); int_cardarrgenrdd.disabled = false; model.setValue(xPathCardArrPatInfo+"/cardarrgenrdd", getCurrentDate()); model.setValue(xPathCardArrPatInfo+"/cardarrgenrtm", getCurrentTime()); int_cardarrgenrdd.refresh(); } } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀÌ·Â µ¥ÀÌÅÍ ¼±Åà Á¶È¸ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fSelectHistData(pFlag){ model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/pathistinfo/pathistlist["+datagrid2.row+"]/indd")); model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/pathistlist["+datagrid2.row+"]/cretno")); model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/pathistlist["+datagrid2.row+"]/instcd")); model.setValue("/root/main/patinfo/cardarrgenrdd", model.getValue("/root/main/pathistinfo/pathistlist["+datagrid2.row+"]/cardarrgenrdd")); model.setValue("/root/main/patinfo/cardarrgenrtm", model.getValue("/root/main/pathistinfo/pathistlist["+datagrid2.row+"]/cardarrgenrtm")); model.setValue("/root/main/patinfo/histno", model.getValue("/root/main/pathistinfo/pathistlist["+datagrid2.row+"]/histno")); fCardArrResusSrch(pFlag); fInputBoxInit(); } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ȯÀÚ ÀÌ·Â Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchHistList(pFlag){ var sDocHeader = "hosinhosoutflag¢Ësrchdate¢Ëpid¢Ì" var sCondData = pFlag +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cardarrgenrdd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" )+"¢Ì" ; model.removeNodeset("/root/send"); model.makeValue("/root/send/cond", sDocHeader+sCondData ); //model.copyNode("/root/send/patcond", "root/send/cond") ; if( submit("TRMNE02301") == true ){ // if(model.getValue("/root/main/patinfo/nursdocflag") == "N"){ // fDateSetting(); // } } } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ½ÉÆó¼Ò»ý¼úÀÌ·Â Á¶È¸ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fCardArrResusSrch(pFlag){ model.removeNode("/root/send"); var sDocHeader = "hosinhosoutflag¢Ëpid¢Ëindd¢Ëcretno¢Ëcardarrgenrdt¢Ëhistno¢Ëinstcd"; // ۰ª ¼³Á¤ºÎºÐ var sCondData = pFlag +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" )+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" )+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno")+"¢Ë" +(model.getValue(xPathCardArrPatInfo+"/cardarrgenrdd") + model.getValue(xPathCardArrPatInfo+"/cardarrgenrtm"))+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno")+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd"); model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); if(submit("TXMNE02301")){ //´ë»óÀÚ Á¤º¸ if(model.getValue("/root/main/resusinfo/resuslist/gender" ) != "") model.setValue("/root/main/patinfo/gender" , model.getValue("/root/main/resusinfo/resuslist/gender" )); if(model.getValue("/root/main/resusinfo/resuslist/age" ) != "") model.setValue("/root/main/patinfo/age" , model.getValue("/root/main/resusinfo/resuslist/age" )); if(model.getValue("/root/main/resusinfo/resuslist/wardcd" ) != "") model.setValue("/root/main/patinfo/wardcd" , model.getValue("/root/main/resusinfo/resuslist/wardcd" )); if(model.getValue("/root/main/resusinfo/resuslist/orddeptcd" ) != ""){ model.setValue("/root/main/patinfo/orddeptcd" , model.getValue("/root/main/resusinfo/resuslist/orddeptcd" )); } if(model.getValue("/root/main/resusinfo/resuslist/atdoctcd" ) != "") model.setValue("/root/main/patinfo/atdoctcd" , model.getValue("/root/main/resusinfo/resuslist/atdoctcd" )); if(model.getValue("/root/main/resusinfo/resuslist/medispclid" ) != "") model.setValue("/root/main/patinfo/medispclid" , model.getValue("/root/main/resusinfo/resuslist/medispclid" )); } } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀÔ·Ââ ÃʱâÈ­ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fInputBoxInit(){ //°£È£»ç ÀÔ·Ââ ÃʱâÈ­ if(model.getValue("/root/main/patinfo/nursdocflag") == "N"){ if(model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsnetc") == ""){ int_cardarrdiscvpsnetc.disabled = true; }else{ int_cardarrdiscvpsnetc.disabled = false; } } cmb_dept.dispatch("xforms-value-changed"); //ÃÖÃÊ ¹ß°ßÀÚ rdo_cardarrdiscvpsn.dispatch("xforms-value-changed"); //ÃÖÃÊ ¼Ò»ý¼ú ½ÃÇàÀÚ chk_fstresusexecflag.dispatch("xforms-value-changed"); //½ÉÁ¤Áö ¹ß»ýÀå¼Ò rdo_cardarrgenrplceflag.dispatch("xforms-value-changed"); //º´¿øµµÂøÀü óġ var hosparvbfresus = model.getValue("/root/main/resusinfo/resuslist/hosparvbfresus"); if( hosparvbfresus != "" ){ chk_hosparvbfresus.dispatch("xforms-select"); chk_hosparvbfresus.disabled = false; bool_hosparvbfresusynflag.disabled = false; }else{ chk_hosparvbfresus.disabled = true; bool_hosparvbfresusynflag.disabled = true; } //CPRÆÀ µµÂøÀü¼Ò»ý¼ú var resusteamarvbfresus = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresus"); if( resusteamarvbfresus != "" ){ chk_resusteamarvbfresus.dispatch("xforms-select"); chk_resusteamarvbfresus.disabled = false; }else{ chk_resusteamarvbfresus.disabled = true; } //½ÉÁ¤Áö ÃßÁ¤½Ã°£-ÃßÁ¤ºÒ°¡ bool_cardarrestmflag.dispatch("xforms-value-changed"); //Á¦¼¼µ¿½ÃÀ۽ð£ bool_defibrflag.dispatch("xforms-value-changed"); //CPRÆÀ ¼Ò»ý¼ú var resusteamfresus = model.getValue("/root/main/resusinfo/resuslist/resusteamfresus"); if( resusteamfresus != "" ){ chk_resusteamfresus.dispatch("xforms-select"); chk_resusteamfresus.disabled = false; }else{ chk_resusteamfresus.disabled = true; } //CPRÆÀ ¼Ò»ý¼ú-½Ãµµ¾ÈÇÔ bool_resusteamfresusflag.dispatch("xforms-value-changed"); //¼Ò»ý¼úÁ¾·á»çÀ¯ rdo_resusendresn.dispatch("xforms-value-changed"); //¼Ò»ý¼ú°á°ú rdo_cardarrrslt.dispatch("xforms-value-changed"); //CPRÆÀ È£Ãâ½Ã°£-È£Ãâ¾ÈÇÔ bool_resusteamcallflag.dispatch("xforms-value-changed"); model.refresh(); } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ³¯Â¥ ¼¼ÆÃ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fDateSetting(pFlag){ if(pFlag == "Init"){ model.setValue("/root/main/resusinfo/resuslist/cardarrestmdd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/resusteamcalldd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/resusteamarvdd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/resusfromdd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/resustodd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/fstresusstrtdd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/defibrstartdd", getCurrentDate()); } else if(pFlag == "Change") { model.setValue("/root/main/resusinfo/resuslist/cardarrestmdd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/resusteamcalldd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/resusteamarvdd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/resusfromdd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/resustodd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/fstresusstrtdd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); model.setValue("/root/main/resusinfo/resuslist/defibrstartdd", model.getValue("/root/main/patinfo/cardarrgenrdd") ); } model.refresh(); } /** * @group : * @ver : 2007.12.04 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ȯÀÚ Á¤º¸ Á¶È¸(ȯÀÚ¹øÈ£) * @param : * @return : * @--------------------------------------------------- */ function fSrchPatListInput(pFlag){ setInputNodeCurText(); // ÇöÀç ÀÎDz°ª ³ëµå ¹Ý¿µ fSrchHistList(pFlag); if(getNodesetCount("/root/main/pathistinfo/patinfo") >= 1 ){ var rrgstno = model.getValue("/root/main/pathistinfo/patinfo/rrgstno1") + " - " + model.getValue("/root/main/pathistinfo/patinfo/rrgstno2"); model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/pathistinfo/patinfo/indd" ) ); model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/patinfo/cretno" ) ); model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/patinfo/instcd" ) ); model.setValue("/root/main/patinfo/patnm", model.getValue("/root/main/pathistinfo/patinfo/patnm" ) ); model.setValue("/root/main/patinfo/gender", model.getValue("/root/main/pathistinfo/patinfo/gender" ) ); model.setValue("/root/main/patinfo/age", model.getValue("/root/main/pathistinfo/patinfo/age" ) ); model.setValue("/root/main/patinfo/cntctel", model.getValue("/root/main/pathistinfo/patinfo/cntctel" ) ); model.setValue("/root/main/patinfo/addr", model.getValue("/root/main/pathistinfo/patinfo/addr" ) ); model.makeValue("/root/main/patinfo/wardcd", model.getValue("/root/main/pathistinfo/patinfo/wardcd" ) ); model.makeValue("/root/main/patinfo/wardnm", model.getValue("/root/main/pathistinfo/patinfo/wardnm" ) ); model.makeValue("/root/main/patinfo/roomcd", model.getValue("/root/main/pathistinfo/patinfo/roomcd" ) ); model.makeValue("/root/main/patinfo/medispclid", model.getValue("/root/main/pathistinfo/patinfo/medispclid" ) ); model.makeValue("/root/main/patinfo/atdoctcd", model.getValue("/root/main/pathistinfo/patinfo/atdoctid" ) ); model.makeValue("/root/main/patinfo/orddrid", model.getValue("/root/main/pathistinfo/patinfo/orddrid" ) ); model.makeValue("/root/main/patinfo/deptcd", model.getValue("/root/main/pathistinfo/patinfo/deptcd" ) ); model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/pathistinfo/patinfo/issdeptcd" ) ); model.makeValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/pathistinfo/patinfo/deptcd" ) ); cmb_dept.dispatch("xforms-value-changed"); cmb_dept.refresh(); if(model.getValue("/root/main/patinfo/nursdocflag") == "N"){ fDateSetting("Init"); }else{ model.setValue("/root/main/patinfo/cardarrgenrdd", getCurrentDate()); int_cardarrgenrdd.disabled = false; } if( model.getValue("/root/main/patinfo/cardarrgenrdd") == "" ){ model.setValue("/root/main/patinfo/cardarrgenrdd", model.getValue("/root/main/pathistinfo/pathistlist/cardarrgenrdd" )); model.setValue("/root/main/patinfo/cardarrgenrtm", model.getValue("/root/main/pathistinfo/pathistlist/cardarrgenrtm" )); model.setValue("/root/main/patinfo/cardarrgenrdt", model.getValue("/root/main/pathistinfo/pathistlist/cardarrgenrtm" )); } fClearChildNode("/root/main/resusinfo/resuslist"); fInputBoxInit(); model.setValue(xPathCardArrPatInfo+"/rrgstno" , rrgstno); model.refresh(); }else{ messageBox("Á¶È¸ °á°ú°¡ ¾ø½À´Ï´Ù.","I"); fInitPatList(); fInputBoxInit(); return; } } /** * @group : * @ver : 2007.12.04 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ½ÉÆó¼Ò»ý¼ú º¸°í¼­ ȯÀÚÁ¤º¸ ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInitPatList(){ model.setValue("/root/main/patinfo/pid" , ""); model.setValue("/root/main/patinfo/rrgstno" , ""); model.setValue("/root/main/patinfo/indd" , ""); model.setValue("/root/main/patinfo/cretno" , ""); model.setValue("/root/main/patinfo/instcd" , ""); model.setValue("/root/main/patinfo/patnm" , ""); model.setValue("/root/main/patinfo/grdrage" , ""); model.setValue("/root/main/patinfo/cntctel" , ""); model.setValue("/root/main/patinfo/addr" , ""); model.setValue("/root/main/patinfo/ininfo" , ""); model.refresh(); }