/* ½ÉÆó¼Ò»ý¼ú(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 : * @--------------------------------------------------- */ var ssflag = "3"; 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.setValue(xPathCardArrPatInfo+"/cardarrgenrdt", getCurrentDate()+getCurrentTime() ); model.removeNode("/root/main/pathistinfo/pathistlist"); var sJobKindCD = getUserInfo("jobkindcd"); // Á÷±ÞÄÚµå 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( getUserInfo("userid") == "05141" ){ ssflag = "2"; } //ÀÇ»ç, °£È£»ç Á÷Á¾ ºÐ·ùº° ÀԷ â Á¦ÇÑ ±¸ºÐ if(ssflag=="1" || ssflag=="2"){ //ÀÇ»ç model.setValue("/root/main/patinfo/nursdocflag", "N"); group2.disabled = false ; fDateSetting("Init"); } else { //±âŸ group2.disabled = true ; group6.disabled = true ; messageBox("½ÉÆó¼Ò»ý¼úº¸°í¼­ ÀÛ¼º ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.","E"); } if(pFlag == "1"){ submit("TRMNE02313"); model.setValue("/root/send/wardcd", getUserInfo("dutplcecd") ); submit("TRMNW00101"); int_cardarrdiscvpsnetc.disabled = true; int_resusteamarvbfresusetc.disabled = true; int_resusteamarvbfresusnurseetc.disabled = true; int_resusteamarvafresusetc.disabled = true; int_resusendresnetc.disabled = true; int_cardarrgenrplcehosout.disabled = true; int_hosparvbfresusetc.disabled = true; int_dethdd.disabled= true; int_dethtm.disabled= true; btn_dschdethtm.disabled= true; int_fstresusexecetc.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; chk_resusteamarvbfresus.disabled = true; chk_resusteamarvbfresusnurse.disabled = true; int_cardarrfinddd.disabled = true; int_cardarrfindtm.disabled = true; btn_cardarrfindclock.disabled = true; int_cardarrestmdd.disabled = true; int_cardarrestmtm.disabled = true; bool_cardarrestmflag.value = "Y"; btn_cardarrestmclock.disabled = true; int_bluebirdalarmdd.disabled = true; int_bluebirdalarmtm.disabled = true; btn_bluebirdalarmclock.disabled = true; chk_hosparvbfresus.disabled = true; int_hosparvbfresusetc.disabled = true; }else{ int_cardarrdiscvpsnetc.disabled = true; int_cardarrgenrplceetc.disabled = true; int_ercentresusetc.disabled = true; int_ambulancearvbfresusetc.disabled = true; int_ambulanceresusetc.disabled = true; int_resusendresnetc.disabled = true; } model.refresh(); if(node != ""){ model.setValue("/root/main/patinfo/pid", model.getValue("/root/main/paminfo/list/pid")); fSrchHistList("1"); 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")); // ¿Ü·¡ O, ÀÀ±Þ E ,ÀÔ¿ø I if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "I" ){ model.setValue("/root/main/patinfo/patinfoflag", "1"); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "O" ){ model.setValue("/root/main/patinfo/patinfoflag", "2"); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "E" ){ model.setValue("/root/main/patinfo/patinfoflag", "3"); } 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); model.makeValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd")); cmb_dept.dispatch("xforms-value-changed"); model.setValue("/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/ordtype", model.getValue("/root/main/pathistinfo/patinfo/ordtype")); model.makeValue("/root/main/patinfo/wardcd", model.getValue("/root/main/paminfo/list/wardcd")); model.makeValue("/root/main/patinfo/wardnm", model.getValue("/root/main/paminfo/list/wardnm")); cmb_wardcd.dispatch("xforms-value-changed"); model.makeValue("/root/main/patinfo/roomcd", model.getValue("/root/main/paminfo/list/roomcd")); model.makeValue("/root/main/patinfo/gender", model.getValue("/root/main/paminfo/list/sex")); model.makeValue("/root/main/patinfo/age", model.getValue("/root/main/paminfo/list/age")); //ȯÀÚ Á¤º¸ ¼¼ÆÃ 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" )); var sIndd = model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(0,4) + "-" + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(4,2) + "-" + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(6,2) ; var ininfo = "ÀÔ¿øÁ¤º¸ : " + sIndd + " " + model.getValue("/root/main/pathistinfo/patinfo/orddeptcd" ) + " " + model.getValue("/root/main/pathistinfo/patinfo/medispclid" ) ; model.setValue("/root/main/patinfo/ininfo", ininfo ); model.refresh(); } // 2013.09.13 cyw º¸°íÁ¶È¸È­¸é¿¡¼­ º¸°í¼­ È­¸éÀ¸·Î ¿¬µ¿ var openerid = opener.window.javascript.getParameter("SMMNE02301_openerid"); if (openerid == "SMMNE02301") { var pid = opener.window.javascript.getParameter("SMMNE02301_pid"); var patnm = opener.window.javascript.getParameter("SMMNE02301_patnm"); var patinfoflag = opener.window.javascript.getParameter("SMMNE02301_patinfoflag"); var cardarrgenrdt = opener.window.javascript.getParameter("SMMNE02301_cardarrgenrdt"); if( patinfoflag == "4" || patinfoflag == "5" || patinfoflag == "6" ){ if( pid != "" ){ btn_nopid.visible = true; } } model.setValue( "/root/srchmax/popflag", "Y" ); model.setValue( "/root/main/patinfo/pid", pid ); model.setValue( "/root/main/patinfo/patnm", patnm ); model.setValue( "/root/main/patinfo/patinfoflag", patinfoflag ); model.setValue( "/root/main/patinfo/cardarrgenrdd", cardarrgenrdt.substring(0,8) ); model.setValue( "/root/main/patinfo/cardarrgenrtm", cardarrgenrdt.substring(0,4) ); grp_patinfogroup.disabled = false; fClearChildNode( "/root/main/resusinfo/resuslist" ); model.setValue( "/root/main/patinfo/diagnm" , "" ); model.setValue( "/root/main/patinfo/diagcd" , "" ); fSrchPatListInput( "1" ); for( var i = 1 ; i <= grd_pastlst.rows-grd_pastlst.fixedRows ; i++ ){ if( model.getValue("/root/main/pathistinfo/pathistlist[" + i + "]/cardarrgenrdt") == cardarrgenrdt ){ grd_pastlst.row = i ; grd_pastlst.dispatch("onclick"); } } } model.refresh(); } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ´ë»ó ȯÀÚ¿¡ ´ëÇÑ ½ÉÆó¼Ò»ý¼ú º¸°í¼­ ¼öÁ¤, »èÁ¦ÀÏ ¶§¸¸ »ç¿ë. * @param : * @return : * @--------------------------------------------------- */ function fCardArrResusSave(pFlag, pFlag1, pStatus){ var sRow = grd_pastlst.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; } } var sDocHeader = "hosinhosoutflag¢Ëpid¢Ëpatnm¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd"; // ۰ª ¼³Á¤ºÎºÐ var sCondData = pFlag +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/patnm") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + model.getValue("/root/main/patinfo/cardarrgenrdt")+"¢Ë" + getUserInfo("dutplceinstcd"); model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); // if(pFlag1 == "D"){ // ½ÉÆó¼Ò»ý¼úº¸°í¼­ ÁÖÄ¡ÀÇ ÀÔ·Â sDocHeader += "¢Ë" + "status¢Ë" + "cardarrcas¢Ë" + "initrhythm¢Ë" + "resusendresn¢Ë" + "resusendresnetc¢Ë" + "cardarrrslt¢Ë" + "cardarrrsltetc¢Ë" + "dschdethdd¢Ë" + "dschdethtm¢Ë" + "fstrgstid¢Ë" + "fstrgstdt¢Ë" + "patinfoflag¢Ë" + "patinfoflagetc¢Ë" + "cardarrfinddd¢Ë" + "cardarrfindtm¢Ë" + "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("/root/main/patinfo/patinfoflag") +"¢Ë" + model.getValue("/root/main/patinfo/patinfoflagetc") +"¢Ë" + model.getValue(xPathCardArrResusList + "/cardarrfinddd") +"¢Ë" + model.getValue(xPathCardArrResusList + "/cardarrfindtm") +"¢Ë" + model.getValue(xPathCardArrResusList + "/dschneurologystat") ; // ½ÉÆó¼Ò»ý¼úº¸°í¼­ °£È£»ç ÀÔ·Â sDocHeader += "¢Ë" // + "status¢Ë" + "cardarrgoalyn¢Ë" + "cardarrdiscvpsn¢Ë" + "cardarrdiscvpsnetc¢Ë" + "cardarrgenrplceflag¢Ë" + "cardarrgenrplcedept¢Ë" + "cardarrgenrplceetc¢Ë" + "resusteamarvbfresus¢Ë" + "resusteamarvbfresusetc¢Ë" + "resusteamfresus¢Ë" + "resusteamfresusetc¢Ë" + "ambulancearvbfresus¢Ë" + "ambulancearvbfresusetc¢Ë" + "ambulanceresus¢Ë" + "ambulanceresusetc¢Ë" + "ercentresus¢Ë" + "ercentresusetc¢Ë" + "cardarrestmdd¢Ë" + "cardarrestmtm¢Ë" + "resusteamcalldd¢Ë" + "resusteamcalltm¢Ë" + "resusteamarvdd¢Ë" + "resusteamarvtm¢Ë" + "initrhythmcnfmdd¢Ë" + "initrhythmcnfmtm¢Ë" + "resusfromdd¢Ë" + "resusfromtm¢Ë" + "resustodd¢Ë" + "resustotm¢Ë" + "resusteamarvbfresusflag¢Ë" + "resusteamarvbfresustext¢Ë" + "resusteamarvbfresusnurse¢Ë" + "resusteamarvbfresusnurseetc¢Ë" + "cardarrgenrtm¢Ë" + "cardarryn¢Ë" + "bluebirdalarmyn¢Ë" + "bluebirdalarmdd¢Ë" + "bluebirdalarmtm¢Ë" + "cardarrgenrplceward¢Ë" + "cardarrgenrplcewardflag¢Ë" + "cardarrgenrplcehosin¢Ë" + "cardarrgenrplcehoscenter¢Ë" + "cardarrgenrplcetestroom¢Ë" + "cardarrgenrplcehosout¢Ë" + "hosparvbfresus¢Ë" + "hosparvbfresusetc¢Ë" + "atdoctcalldd¢Ë" + "atdoctcalltm¢Ë" + "atdoctarrdd¢Ë" + "atdoctarrtm¢Ë" + "defibrstartdd¢Ë" + "defibrstarttm¢Ë" + "defibrjul¢Ë" + "defibrtims¢Ë" + "resusteamarvafresus¢Ë" + "resusteamarvafresusetc" ; var resusteamarvbfresus = ""; var resusteamarvbfresusetc = ""; var resusteamarvbfresusnurse = ""; var resusteamarvbfresusnurseetc = ""; resusteamarvbfresus = model.getValue(xPathCardArrResusList+"/resusteamarvbfresus"); //model.getValue("hidden/list/resusteamarvbfresus"); resusteamarvbfresusetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc"); resusteamarvbfresusnurse = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurse"); resusteamarvbfresusnurseetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurseetc"); 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") +"¢Ë" + "¢Ë" + resusteamarvbfresus +"¢Ë" + resusteamarvbfresusetc +"¢Ë" + model.getValue("hidden/list/resusteamfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"¢Ë" + 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(xPathCardArrResusList+"/resusteamarvbfresusflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvbfresustext") +"¢Ë" + resusteamarvbfresusnurse +"¢Ë" + resusteamarvbfresusnurseetc +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarryn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmtm") +"¢Ë" + 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+"/hosparvbfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctcalltm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctarrdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctarrtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvafresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvafresusetc") ; } if(pFlag == "2"){ // »ç¿ëÀÚ°¡ °£È£»çÀÏ °æ¿ì(º´¿ø¿Ü) sCondData +="¢Ë" // + pStatus + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"¢Ë" + model.getValue("hidden/list/cardarrgenrplceflag") +"¢Ë" + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplceetc") +"¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + model.getValue("hidden/list/ambulancearvbfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/ambulancearvbfresusetc")+"¢Ë" + model.getValue("hidden/list/ambulanceresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/ambulanceresusetc") +"¢Ë" + model.getValue("hidden/list/ercentresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/ercentresusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"¢Ë" + 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") +"¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë"; } sDocHeader +="¢Ë" + "resusteamorddept¢Ë" + "resusteamorddr¢Ë" + "resusteamnum¢Ë" + "patstatus¢Ë" + "patstatusetc¢Ë" + "curerslt¢Ì"; sCondData +="¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamorddept") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamorddr") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamnum") +"¢Ë" + model.getValue(xPathCardArrResusList+"/patstatus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/patstatusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/curerslt") +"¢Ì"; // Hist µ¥ÀÌÅÍ ÀÔ·Â var DetailHeader = "pid¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd¢Ì"; var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt"); // ۰ª ¼³Á¤ºÎºÐ var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + Detail_Cardarrgenrdt +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd") +"¢Ì"; model.makeValue("/root/send/recdetail", DetailHeader + DetailData ); model.makeValue("/root/send/recdata", sDocHeader+sCondData ); // } if(submit("TXMNE02302") == true){ model.copynode("/root/main/resusinfo","/root/resusbase"); model.setValue("/root/saveinfo/nurseinfo", ""); model.setValue("/root/saveinfo/lastinfo", ""); 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"){ grd_pastlst.row = getNodesetCount("/root/main/pathistinfo/pathistlist"); fSelectHistData(pFlag); }else if(pStatus == "U"){ grd_pastlst.row = row; fSelectHistData(pFlag); }else if(pStatus == "D"){ model.setValue("/root/main/patinfo/selectrow", ""); } } /** * @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["+grd_pastlst.row+"]/indd")); model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cretno")); model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/instcd")); model.setValue("/root/main/patinfo/cardarrgenrdd", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cardarrgenrdd")); model.setValue("/root/main/patinfo/cardarrgenrtm", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cardarrgenrtm")); model.setValue("/root/main/patinfo/cardarrgenrdt", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cardarrgenrdt")); model.setValue("/root/main/patinfo/histno", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/histno")); fCardArrResusSrch(pFlag); fInputBoxInit(pFlag); } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ÇöÀç ½Ã°£ ¼³Á¤ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fCurrentDate(){ var d, s= "" ,t; d = new Date(); if( d.getMinutes() > 10 ) { if(d.getHours() >= 10 ) { t = d.getHours() + "" + d.getMinutes(); } else { t = "0" + d.getHours() + "" + d.getMinutes(); } } else { if(d.getHours() >= 10 ) { t = d.getHours() + "0" + d.getMinutes(); } else { t = "0" + d.getHours() + "0" + d.getMinutes(); } } return t; } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ȯÀÚ ÀÌ·Â Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchHistList(pFlag){ if( model.getValue(xPathCardArrPatInfo+"/patgubun") == ""){ var pid = model.getValue(xPathCardArrPatInfo+"/pid" ); if( isNaN(pid.substring(0,1)) ){ model.setValue(xPathCardArrPatInfo+"/patgubun", "2"); }else{ model.setValue(xPathCardArrPatInfo+"/patgubun", "1"); } } var sDocHeader = "hosinhosoutflag¢Ësrchdate¢Ëpatgubun¢Ëpid¢Ì" var sCondData = pFlag +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cardarrgenrdd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/patgubun" )+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" )+"¢Ì" ; model.removeNodeset("/root/send"); model.makeValue("/root/send/cond", sDocHeader+sCondData ); if( submit("TRMNE02310") == true ){ } } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ½ÉÆó¼Ò»ý¼úÀÌ·Â Á¶È¸ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fCardArrResusSrch(pFlag){ model.removeNode("/root/send"); model.setValue("/root/saveinfo/nurseinfo" , "" ); model.setValue("/root/saveinfo/lastinfo" , "" ); 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("/root/main/patinfo/cardarrgenrdt")+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno")+"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd"); model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); // Hist µ¥ÀÌÅÍ ÀÔ·Â var DetailHeader = "pid¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd¢Ì"; var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt"); // ۰ª ¼³Á¤ºÎºÐ var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + Detail_Cardarrgenrdt +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd") +"¢Ì"; model.makeValue("/root/send/recdetail", DetailHeader + DetailData ); if( submit("TXMNE02302") ){ var userid = getUserInfo("userid"); // ÃÖÁ¾ÀúÀåÀÌ¸é ´õÀÌ»ó ÀúÀå ºÒ°¡´É if( model.getValue("/root/main/resusinfo/resuslist/saveflag" ) == "Y" ){ btn_lastsave.disabled = true; btn_nursesave.disabled = true; group2.disabled = true; group6.disabled = true; grp_patinfogroup.disabled = true; }else{ btn_lastsave.disabled = false; btn_nursesave.disabled = false; group2.disabled = false; group6.disabled = false; grp_patinfogroup.disabled = false; } // °£È£ÀÔ·ÂÀúÀåÁ¤º¸ if( model.getValue("/root/main/resusinfo/resuslist/nursesaveid" ) != "" ){ var nursesaveid = model.getValue("/root/main/resusinfo/resuslist/nursesaveid" ); var nursesavenm = model.getValue("/root/main/resusinfo/resuslist/nursesavenm" ); var nursesavedd = model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(0,4) + "-" + model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(4,6) + "-" + model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(6,8) + " " + model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(8,10) + ":" + model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(10,12) + ":" + model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(12,14) ; model.setValue("/root/saveinfo/nurseinfo" , nursesavedd + " " + nursesavenm + " ( " + nursesaveid + " )" ); if( userid == nursesaveid ){ btn_nursesave.disabled = false; }else{ btn_nursesave.disabled = true; } } // ÃÖÁ¾ÀúÀå Á¤º¸ if( model.getValue("/root/main/resusinfo/resuslist/lastsaveid" ) != "" ){ var lastsaveid = model.getValue("/root/main/resusinfo/resuslist/lastsaveid" ); var lastsavenm = model.getValue("/root/main/resusinfo/resuslist/lastsavenm" ); var lastsavedd = model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(0,4) + "-" + model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(4,6) + "-" + model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(6,8) + " " + model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(8,10) + ":" + model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(10,12) + ":" + model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(12,14) ; model.setValue("/root/saveinfo/lastinfo", "¡¼ ÃÖÁ¾ÀúÀå¿Ï·á : " + lastsavedd + " " + lastsavenm + " ( " + lastsaveid + " ) ¡½" ); output4.visible = true; btn_del.disabled = true; btn_lastsave.disabled = true; btn_nursesave.disabled = true; btn_sms.disabled = false; group2.disabled = true; group6.disabled = true; } else { btn_lastsave.disabled = false; btn_nursesave.disabled = false; btn_del.disabled = false; output4.visible = false; btn_sms.disabled = true; } // ¹ß°ßÀÚ ±âŸ if( model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsn") == "09" ){ int_cardarrdiscvpsnetc.disabled = false; }else{ int_cardarrdiscvpsnetc.disabled = true; } if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "01"){ // º´ µ¿ cmb_cardarrgenrplceward.disabled = false; // º´µ¿ rdo_cardarrgenrplcewardflag.disabled = false; // º´½Ç,º´½Ç¿Ü cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplcehosout.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "02"){ // ¿Ü ·¡ cmb_cardarrgenrplcehosin.disabled = false; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplcehosout.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "03"){ // Áø´Ü/°Ë»ç½Ç cmb_cardarrgenrplcetestroom.disabled = false; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; int_cardarrgenrplcehosout.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "04"){ // ¿ø¿Ü int_cardarrgenrplcehosout.disabled = false; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "05"){ //ÀÀ±ÞÀÇ·á¼¾ÅÍ int_cardarrgenrplcehosout.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "06"){ // ¼ö¼ú/ȸº¹½Ç int_cardarrgenrplcehosout.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "07"){ // ÁßȯÀÚ½Ç cmb_cardarrgenrplcehoscenter.disabled = false; int_cardarrgenrplcehosout.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "08"){ // ±â Ÿ int_cardarrgenrplceetcbigo.disabled = false; int_cardarrgenrplcehosout.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); }else{ int_cardarrgenrplcehosout.disabled = true; cmb_cardarrgenrplcehosin.disabled = true; cmb_cardarrgenrplceward.disabled = true; rdo_cardarrgenrplcewardflag.disabled = true; cmb_cardarrgenrplcehoscenter.disabled = true; cmb_cardarrgenrplcetestroom.disabled = true; int_cardarrgenrplceetcbigo.disabled = true; model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", ""); } if(model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == "01"){ int_dethdd.disabled= false; int_dethtm.disabled= false; btn_dschdethtm.disabled= false; } else { int_dethdd.disabled= true; int_dethtm.disabled= true; btn_dschdethtm.disabled= true; model.setValue("/root/main/resusinfo/resuslist/dschdethdd", ""); model.setValue("/root/main/resusinfo/resuslist/dschdethtm", ""); } 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" )); cmb_dept.dispatch("xforms-value-changed"); } 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" )); if(model.getValue("/root/main/resusinfo/resuslist/roomcd" ) != "") model.setValue("/root/main/patinfo/roomcd" , model.getValue("/root/main/resusinfo/resuslist/roomcd" )); if(model.getValue("/root/main/resusinfo/resuslist/diagnm" ) != "") model.setValue("/root/main/patinfo/diagnm" , model.getValue("/root/main/resusinfo/resuslist/diagnm" )); if(model.getValue("/root/main/resusinfo/resuslist/diagcd" ) != "") model.setValue("/root/main/patinfo/diagcd" , model.getValue("/root/main/resusinfo/resuslist/diagcd" )); // ¼Ò»ýÆÀ µµÂø Àü óġ - ´ã´çÀÇ if( chk_resusteamarvbfresusflag.item(0).selected == true ){ chk_resusteamarvbfresus.disabled = false; if( chk_resusteamarvbfresus.item(6).selected == true){ int_resusteamarvbfresusetc.disabled = false; }else{ int_resusteamarvbfresusetc.disabled = true; } } if( chk_resusteamarvbfresusflag.item(1).selected == true ){ // °£È£»ç chk_resusteamarvbfresusnurse.disabled = false; if( chk_resusteamarvbfresusnurse.item(6).selected == true ){ int_resusteamarvbfresusnurseetc.disabled = false; }else{ int_resusteamarvbfresusnurseetc.disabled = true; } } if( chk_resusteamarvbfresusflag.item(2).selected == true ){ // ±âŸ int_resusteamarvbfresustext.disabled = false; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusflag") == "" ){ chk_resusteamarvbfresus.disabled = true; int_resusteamarvbfresusetc.disabled = true; chk_resusteamarvbfresusnurse.disabled = true; int_resusteamarvbfresusnurseetc.disabled = true; int_resusteamarvbfresustext.disabled = false; } // ¼Ò»ýÆÀ µµÂø ÈÄ Ã³Ä¡ if( chk_resusteamarvafresus.item(6).selected == true ){ int_resusteamarvafresusetc.disabled = false; }else{ int_resusteamarvafresusetc.disabled = true; } // ¼Ò»ý¼ú Á¾·á»çÀ¯ if( model.getValue("/root/main/resusinfo/resuslist/resusendresn" ) == "09" ){ int_resusendresnetc.disabled = false; }else{ int_resusendresnetc.disabled = true; } // ´ë»óÀÚ ±¸ºÐ if( model.getValue("/root/main/resusinfo/resuslist/patinfoflag") != "" ){ model.setValue("/root/main/patinfo/patinfoflag", model.getValue("/root/main/resusinfo/resuslist/patinfoflag") ); } // ½ÉÁ¤Áö¿©ºÎ if( model.getValue("/root/main/resusinfo/resuslist/cardarryn") == "Y"){ int_cardarrfinddd.disabled = false; int_cardarrfindtm.disabled = false; btn_cardarrfindclock.disabled = false; int_cardarrestmdd.disabled = false; int_cardarrestmtm.disabled = false; btn_cardarrestmclock.disabled = false; }else{ int_cardarrfinddd.disabled = true; int_cardarrfindtm.disabled = true; btn_cardarrfindclock.disabled = true; int_cardarrestmdd.disabled = true; int_cardarrestmtm.disabled = true; btn_cardarrestmclock.disabled = true; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrestmflag") == "Y" ){ model.setValue("/root/main/resusinfo/resuslist/cardarrestmdd", ""); model.setValue("/root/main/resusinfo/resuslist/cardarrestmtm", ""); int_cardarrestmdd.disabled = true; int_cardarrestmtm.disabled = true; btn_cardarrestmclock.disabled = true; }else{ int_cardarrestmdd.disabled = false; int_cardarrestmtm.disabled = false; btn_cardarrestmclock.disabled = false; } // ÆÄ¶û»õ ¹ß·É È£Ãâ¿©ºÎ if( model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmyn") == "Y"){ int_bluebirdalarmdd.disabled = false; int_bluebirdalarmtm.disabled = false; btn_bluebirdalarmclock.disabled = false; }else{ int_bluebirdalarmdd.disabled = true; int_bluebirdalarmtm.disabled = true; btn_bluebirdalarmclock.disabled = true; } // º´¿øµµÂøÀüóġ¿©ºÎ if( model.getValue("/root/main/resusinfo/resuslist/hosparvbfresusynflag") == "Y"){ chk_hosparvbfresus.disabled = false; int_hosparvbfresusetc.disabled = false; }else{ // 'ÇØ´ç¾øÀ½', '¹«'ÀÏ °æ¿ì¿¡ chk_hosparvbfresus.disabled = true; int_hosparvbfresusetc.disabled = true; } // º´¿ø µµÂøÀü óġ if( chk_hosparvbfresus.item(6).selected == true ){ int_hosparvbfresusetc.disabled = false; }else{ int_hosparvbfresusetc.disabled = true; } // Á¦¼¼µ¿ ½ÃÀ۽ð£ if( model.getValue("/root/main/resusinfo/resuslist/defibrflag") =="Y"){ model.setValue("/root/main/resusinfo/resuslist/defibrstartdd", "" ); model.setValue("/root/main/resusinfo/resuslist/defibrstarttm", "" ); model.setValue("/root/main/resusinfo/resuslist/defibrjul", "" ); model.setValue("/root/main/resusinfo/resuslist/defibrtims", "" ); model.setValue("/root/main/resusinfo/resuslist/defibrjul2", "" ); model.setValue("/root/main/resusinfo/resuslist/defibrtims2", "" ); int_defibrstartdd.disabled = true; int_defibrstarttm.disabled = true; ipt_defibrjul.disabled = true; ipt_defibrtims.disabled = true; ipt_defibrjul2.disabled = true; ipt_defibrtims2.disabled = true; button5.disabled = true; }else{ int_defibrstartdd.disabled = false; int_defibrstarttm.disabled = false; ipt_defibrjul.disabled = false; ipt_defibrtims.disabled = false; ipt_defibrjul2.disabled = false; ipt_defibrtims2.disabled = false; button5.disabled = false; } } model.refresh(); } /** * @group : * @ver : 2007.07.07 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀÔ·Ââ ÃʱâÈ­ ºÎºÐ * @param : * @return : * @--------------------------------------------------- */ function fInputBoxInit(pFlag){ } /** * @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/cardarrgenrdd", getCurrentDate()); model.setValue("/root/main/resusinfo/resuslist/cardarrgenrtm", fCurrentDate()); } } /** * @group : * @ver : 2007.12.04 * @by : ¾çõ´ö * @--------------------------------------------------- * @type : function * @access : public * @desc : ȯÀÚ Á¤º¸ Á¶È¸(ȯÀÚ¹øÈ£) * @param : * @return : * @--------------------------------------------------- */ function fSrchPatListInput(pFlag){ if( model.getValue("/root/srchmax/popflag") != "Y" ){ 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/wardcdnm" ) ); cmb_wardcd.dispatch("xforms-value-changed"); cmb_roomcd.refresh(); model.makeValue("/root/main/patinfo/roomcd", model.getValue("/root/main/pathistinfo/patinfo/roomcd" ) ); model.makeValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/pathistinfo/patinfo/deptcd" ) ); cmb_dept.dispatch("xforms-value-changed"); cmb_dept.refresh(); 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/atdoctcd" ) ); 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/grdrage", model.getValue("/root/main/pathistinfo/patinfo/grdrage" ) ); model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/pathistinfo/patinfo/issdeptcd" ) ); var sIndd = model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(0,4) + "-" + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(4,2) + "-" + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(6,2) ; var ininfo = "ÀÔ¿øÁ¤º¸ : " + sIndd + " " + model.getValue("/root/main/pathistinfo/patinfo/orddeptcd" ) + " " + model.getValue("/root/main/pathistinfo/patinfo/medispclid" ) ; model.setValue("/root/main/patinfo/ininfo", ininfo ); //model.setValue("/root/main/patinfo/indd1", model.getValue("/root/main/pathistinfo/patinfo/indd1") ); //model.setValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/pathistinfo/patinfo/orddeptcd") ); //model.setValue("/root/main/patinfo/medispclid", model.getValue("/root/main/pathistinfo/patinfo/medispclid") ); if(model.getValue("/root/main/patinfo/nursdocflag") == "N"){ fDateSetting("Init"); }else{ model.setValue("/root/main/patinfo/cardarrgenrdd", getCurrentDate()); int_cardarrgenrdd.disabled = false; } fClearChildNode("/root/main/resusinfo/resuslist"); fInputBoxInit(pFlag); model.setValue(xPathCardArrPatInfo+"/rrgstno" , rrgstno); 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/cardarrgenrdt" )); } // ¿Ü·¡ O, ÀÀ±Þ E ,ÀÔ¿ø I if( model.getValue("/root/srchmax/popflag") != "Y" ){ if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "I" ){ model.setValue("/root/main/patinfo/patinfoflag", "1"); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "O" ){ model.setValue("/root/main/patinfo/patinfoflag", "2"); model.setValue("/root/main/patinfo/wardnm", ""); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "E" ){ model.setValue("/root/main/patinfo/patinfoflag", "3"); model.setValue("/root/main/patinfo/wardnm", ""); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "4" ){ model.setValue("/root/main/patinfo/patinfoflag", "4"); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "5" ){ model.setValue("/root/main/patinfo/patinfoflag", "5"); }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "6" ){ model.setValue("/root/main/patinfo/patinfoflag", "6"); }else{ model.setValue("/root/main/patinfo/patinfoflag", ""); model.setValue("/root/main/patinfo/wardnm", ""); } } model.refresh(); }else{ messageBox("Á¶È¸ °á°ú°¡ ¾ø½À´Ï´Ù.","I"); fInitPatList(); fInputBoxInit(pFlag) 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(); } /** * @group : * @ver : 2014.10.15 * @by : ÃÖ¿¹¿ø * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀÛ¼ºÀÚ¿Í ¼öÁ¤ÀÚ°¡ °°ÀºÁö ºñ±³ * @param : * @return : * @--------------------------------------------------- */ function fSaveChk(){ var userid = getUserInfo("userid"); var lastupdtrid = model.getValue("/root/main/pathistinfo/pathistlist[" + grd_pastlst.row +"]/lastupdtrid"); if( userid != lastupdtrid ){ messageBox("ÇØ´ç µ¥ÀÌÅÍÀÇ ±â·ÏÀÚ¸¸ ¼öÁ¤/»èÁ¦ °¡´ÉÇÕ´Ï´Ù.","E"); return false; }else{ return true; } } /** * @group : * @ver : 2014.10.15 * @by : ÃÖ¿¹¿ø * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀÓ½ÃÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fPartCardArrResusSave(pFlag){ var pStatus = ""; var sRow = grd_pastlst.row; if( fSaveBfChk() == false ){ return; } if( grd_pastlst.rows > 1 ){ if( model.getValue("/root/main/patinfo/selectrow") != "" || sRow >= 1 ){ pStatus = "U"; }else{ pStatus = "I"; } }else{ pStatus = "I"; } model.removeNode("/root/send"); model.makeNode("/root/item/list"); model.copyNode("/root/item/list", "/root/main/resusinfo"); var sDocHeader = "hosinhosoutflag¢Ëpid¢Ëpatnm¢Ëindd¢Ëcretno¢Ëhistno¢Ëgender¢Ëage¢Ëwardcd¢Ëroomcd¢Ëdiagnm¢Ëdiagcd¢Ëatdoctcd¢Ëmedispclid¢Ëorddeptcd¢Ëcardarrgenrdt¢Ëinstcd"; var cardarrgenrdt = ""; //cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm"); cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt"); /*if( model.getValue("/root/main/patinfo/cardarrgenrdt") != "" && pStatus != "I"){ cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt"); }else{ cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm"); }*/ var patinfoflag = model.getValue("/root/main/patinfo/patinfoflag"); if( pStatus == "I" && ( patinfoflag == "4" || patinfoflag == "5" || patinfoflag == "6" ) && model.getValue(xPathCardArrPatInfo+"/pid" ) == "" ){ fMakePid(patinfoflag); } //20160920Ä¥°î ½ÉÁ¤Áö ¹ß»ýÀϽà ¼öÁ¤ if( getUserInfo("dutplceinstcd") == "032" && pStatus == "I" ){ cardarrgenrdt = model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdtchg"); } // ۰ª ¼³Á¤ºÎºÐ var sCondData = "1" +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/patnm") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/gender") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/age") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/wardcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/roomcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/diagnm") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/diagcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/atdoctcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/medispclid") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/orddeptcd") +"¢Ë" + cardarrgenrdt +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd"); model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); if( pFlag == "1" ){ // °£È£ÀÔ·Â sDocHeader += "¢Ë" + "status¢Ë" + "pflag¢Ë" + "cardarrgoalyn¢Ë" + "cardarrdiscvpsn¢Ë" + "cardarrdiscvpsnetc¢Ë" + "cardarrgenrplceflag¢Ë" + "cardarrgenrplcedept¢Ë" + "cardarrgenrplceetc¢Ë" + "resusteamarvbfresus¢Ë" + "resusteamarvbfresusetc¢Ë" + "resusteamfresus¢Ë" + "resusteamfresusetc¢Ë" + "ambulancearvbfresus¢Ë" + "ambulancearvbfresusetc¢Ë" + "ambulanceresus¢Ë" + "ambulanceresusetc¢Ë" + "ercentresus¢Ë" + "ercentresusetc¢Ë" + "cardarrestmdd¢Ë" + "cardarrestmtm¢Ë" + "cardarrestmflag¢Ë" + "cardarrfinddd¢Ë" + "cardarrfindtm¢Ë" + "resusteamcalldd¢Ë" + "resusteamcalltm¢Ë" + "resusteamarvdd¢Ë" + "resusteamarvtm¢Ë" + "initrhythmcnfmdd¢Ë" + "initrhythmcnfmtm¢Ë" + "resusfromdd¢Ë" + "resusfromtm¢Ë" + "resustodd¢Ë" + "resustotm¢Ë" + "resusteamarvbfresusflag¢Ë" + "resusteamarvbfresustext¢Ë" + "resusteamarvbfresusnurse¢Ë" + "resusteamarvbfresusnurseetc¢Ë" + "cardarrgenrtm¢Ë" + "cardarrgenrdtchg¢Ë" + "cardarryn¢Ë" + "bluebirdalarmyn¢Ë" + "bluebirdalarmdd¢Ë" + "bluebirdalarmtm¢Ë" + "cardarrgenrplceward¢Ë" + "cardarrgenrplcewardflag¢Ë" + "cardarrgenrplcehosin¢Ë" + "cardarrgenrplcehoscenter¢Ë" + "cardarrgenrplcetestroom¢Ë" + "cardarrgenrplcehosout¢Ë" + "cardarrgenrplceetcbigo¢Ë" + "hosparvbfresus¢Ë" + "hosparvbfresusetc¢Ë" + "hosparvbfresusynflag¢Ë" + "atdoctcalldd¢Ë" + "atdoctcalltm¢Ë" + "atdoctarrdd¢Ë" + "atdoctarrtm¢Ë" + "fstresusexecflag¢Ë" + "fstresusexecetc¢Ë" + "initpatcscs¢Ë" + "initpatbreth¢Ë" + "initpatpulse¢Ë" + "defibrstartdd¢Ë" + "defibrstarttm¢Ë" + "defibrjul¢Ë" + "defibrtims¢Ë" + "defibrjul2¢Ë" + "defibrtims2¢Ë" + "resusteamarvafresus¢Ë" + "patinfoflag¢Ë" + "patinfoflagetc¢Ë" + "gender¢Ë" + "age¢Ë" + "wardcd¢Ë" + "roomcd¢Ë" + "diagnm¢Ë" + "diagcd¢Ë" + "atdoctcd¢Ë" + "medispclid¢Ë" + "orddeptcd¢Ë" + "resusteamarvafresusetc¢Ë" + "cardarrcas¢Ë" + "initrhythm¢Ë" + "resusendresn¢Ë" + "resusendresnetc¢Ë" + "cardarrrslt¢Ë" + "cardarrrsltetc¢Ë" + "dschdethdd¢Ë" + "dschdethtm¢Ë" + "dschneurologystat¢Ë" + "resusteamorddept¢Ë" + "resusteamorddr¢Ë" + "resusteamnum¢Ë" + "patstatus¢Ë" + "patstatusetc¢Ë" + "defibrflag¢Ë" + "curerslt¢Ì"; var resusteamarvbfresus = ""; var resusteamarvbfresusetc = ""; var resusteamarvbfresusnurse = ""; var resusteamarvbfresusnurseetc = ""; resusteamarvbfresus = model.getValue(xPathCardArrResusList+"/resusteamarvbfresus"); //model.getValue("hidden/list/resusteamarvbfresus"); resusteamarvbfresusetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc"); resusteamarvbfresusnurse = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurse"); resusteamarvbfresusnurseetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurseetc"); if( model.getValue("/root/main/resusinfo/resuslist/hosparvbfresusynflag") != "Y" ){ model.setValue(xPathCardArrResusList+"/hosparvbfresus", "" ); model.setValue(xPathCardArrResusList+"/hosparvbfresusetc", "" ); } sCondData += "¢Ë" + pStatus + "¢Ë" + pFlag + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplceflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcedept") +"¢Ë" + "¢Ë" + resusteamarvbfresus +"¢Ë" + resusteamarvbfresusetc +"¢Ë" + model.getValue("hidden/list/resusteamfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrfinddd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrfindtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"¢Ë" + 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(xPathCardArrResusList+"/resusteamarvbfresusflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvbfresustext") +"¢Ë" + resusteamarvbfresusnurse +"¢Ë" + resusteamarvbfresusnurseetc +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrdtchg") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarryn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmtm") +"¢Ë" + 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+"/hosparvbfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusynflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctcalltm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctarrdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctarrtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/fstresusexecflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/fstresusexecetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initpatcscs") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initpatbreth") +"¢Ë" + model.getValue(xPathCardArrResusList+"/initpatpulse") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvafresus") +"¢Ë" + model.getValue("/root/main/patinfo/patinfoflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/patinfoflagetc") +"¢Ë" + model.getValue("/root/main/patinfo/gender") +"¢Ë" + model.getValue("/root/main/patinfo/age") +"¢Ë" + model.getValue("/root/main/patinfo/wardcd") +"¢Ë" + model.getValue("/root/main/patinfo/roomcd") +"¢Ë" + model.getValue("/root/main/patinfo/diagnm") +"¢Ë" + model.getValue("/root/main/patinfo/diagcd") +"¢Ë" + model.getValue("/root/main/patinfo/atdoctcd") +"¢Ë" + model.getValue("/root/main/patinfo/medispclid") +"¢Ë" + model.getValue("/root/main/patinfo/orddeptcd") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamarvafresusetc") +"¢Ë" + 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 + "/dschneurologystat") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamorddept") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamorddr") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamnum") +"¢Ë" + model.getValue(xPathCardArrResusList + "/patstatus") +"¢Ë" + model.getValue(xPathCardArrResusList + "/patstatusetc") +"¢Ë" + model.getValue(xPathCardArrResusList + "/defibrflag") +"¢Ë" + model.getValue(xPathCardArrResusList + "/curerslt") +"¢Ì"; } model.makeValue("/root/send/recdata", sDocHeader+sCondData ); // Hist µ¥ÀÌÅÍ ÀÔ·Â var DetailHeader = "pid¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd¢Ì"; var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm"); // ۰ª ¼³Á¤ºÎºÐ var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + Detail_Cardarrgenrdt +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd") +"¢Ì"; model.makeValue("/root/send/recdetail", DetailHeader + DetailData ); if( submit("TXMNE02302") == true ){ model.copynode("/root/main/resusinfo", "/root/resusbase" ); model.setValue("/root/saveinfo/nurseinfo" , "" ); model.setValue("/root/saveinfo/lastinfo" , "" ); fSrchHistList("1"); fActionStatus("1", pStatus, sRow ); } model.removeNodeset("/root/item"); model.refresh(); } /** * @group : * @ver : 2014.10.15 * @by : ÃÖ¿¹¿ø * @--------------------------------------------------- * @type : function * @access : public * @desc : ÇʼöÀÔ·Âüũ * @param : * @return : * @--------------------------------------------------- */ function fSaveBfChk(){ if( model.getValue( xPathCardArrPatInfo +"/patinfoflag") == ""){ messageBox("´ë»óÀÚ ±¸ºÐ Á¤º¸´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue( xPathCardArrPatInfo + "/pid" ) == "" && model.getValue( xPathCardArrPatInfo + "/patnm" ) == "" ){ messageBox("ȯÀÚÁ¤º¸´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdd") != "" && model.getValue("/root/main/resusinfo/resuslist/cardarrgenrtm") == "") && (model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdd") == "" && model.getValue("/root/main/resusinfo/resuslist/cardarrgenrtm") != "") ){ messageBox("¹ß»ýÀϽÃÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/cardarryn") == "" ){ messageBox("½ÉÁ¤Áö ¿©ºÎ´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; }else if (model.getValue("/root/main/resusinfo/resuslist/cardarryn") == "Y" && (model.getValue("/root/main/resusinfo/resuslist/cardarrfinddd") == "" || model.getValue("/root/main/resusinfo/resuslist/cardarrfindtm") == "") ){ messageBox("½ÉÁ¤Áö ¿©ºÎ°¡ YÀÏ °æ¿ì ½ÉÁ¤Áö ¹ß°ß½Ã°£Àº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd") != "" && model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm") == "") && (model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd") == "" && model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm") != "")){ messageBox("½ÉÁ¤Áö ÃßÁ¤½Ã°£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmyn") == "" ){ messageBox("ÆÄ¶û»õ ¹ß·É È£Ãâ¿©ºÎ´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; }else if (model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmyn") == "Y" && (model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmdd") == "" || model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmtm") == "") ){ messageBox("ÆÄ¶û»õ ¹ß·É È£Ãâ¿©ºÎ YÀÏ °æ¿ì ÆÄ¶û»õ ¹ß·É È£Ãâ½Ã°£Àº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvdd") == "" || model.getValue("/root/main/resusinfo/resuslist/resusteamarvtm") == "" ){ messageBox("CPR µµÂø½Ã°£Àº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if(model.getValue("/root/main/resusinfo/resuslist/cardarrgoalyn") == ""){ messageBox("¸ñ°Ý¿©ºÎ´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsn") == ""){ messageBox("¹ß°ßÀÚ(¸ñ°ÝÀÚ)´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; }else if( model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsn") == "09" && model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsnetc") == "" ){ messageBox("¹ß°ßÀÚ(¸ñ°ÝÀÚ)°¡ ±âŸÀÏ °æ¿ì ±âŸÀԷ¶õÀº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == ""){ messageBox("¹ß»ýÀå¼Ò´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusflag") == ""){ messageBox("CPRÆÀ µµÂø Àü óġ´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/fstresusexecflag") == ""){ messageBox(" ÃÖÃÊ ¼Ò»ý¼ú ½ÃÇàÀÚ´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } else if ( model.getValue("/root/main/resusinfo/resuslist/fstresusexecflag") == "09" && model.getValue("/root/main/resusinfo/resuslist/fstresusexecetc") == ""){ messageBox(" ÃÖÃÊ ¼Ò»ý¼ú ½ÃÇàÀÚ°¡ ±âŸÀÏ °æ¿ì ±âŸÀԷ¶õÀº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/atdoctcalldd") != "" && model.getValue("/root/main/resusinfo/resuslist/atdoctcalltm") == "") && (model.getValue("/root/main/resusinfo/resuslist/atdoctcalldd") == "" && model.getValue("/root/main/resusinfo/resuslist/atdoctcalltm") != "")){ messageBox("´ã´çÀÇ(ÁÖÄ¡ÀÇ) È£Ãâ½Ã°£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/atdoctarrdd") != "" && model.getValue("/root/main/resusinfo/resuslist/atdoctarrtm") == "") && (model.getValue("/root/main/resusinfo/resuslist/atdoctarrdd") == "" && model.getValue("/root/main/resusinfo/resuslist/atdoctarrtm") != "")){ messageBox("´ã´çÀÇ(ÁÖÄ¡ÀÇ) µµÂø½Ã°£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd") != "" && model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmtm") == "") && (model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd") == "" && model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmtm") != "")){ messageBox("Ãʱ⸮µë È®Àνð£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/defibrstartdd") != "" && model.getValue("/root/main/resusinfo/resuslist/defibrstarttm") == "") && (model.getValue("/root/main/resusinfo/resuslist/defibrstartdd") == "" && model.getValue("/root/main/resusinfo/resuslist/defibrstarttm") != "")){ messageBox("Á¦¼¼µ¿ ½ÃÀ۽ð£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/resusfromdd") != "" && model.getValue("/root/main/resusinfo/resuslist/resusfromtm") == "") && (model.getValue("/root/main/resusinfo/resuslist/resusfromdd") == "" && model.getValue("/root/main/resusinfo/resuslist/resusfromtm") != "")){ messageBox("¼Ò»ý¼ú ½ÃÀ۽ð£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if ( (model.getValue("/root/main/resusinfo/resuslist/resustodd") != "" && model.getValue("/root/main/resusinfo/resuslist/resustotm") == "") && (model.getValue("/root/main/resusinfo/resuslist/resustodd") == "" && model.getValue("/root/main/resusinfo/resuslist/resustotm") != "")){ messageBox("¼Ò»ý¼ú Á¾·á½Ã°£ÀÇ ³¯Â¥/½Ã°£À» ¸ðµÎ ÀÔ·ÂÇϽʽÿä.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresus") == ""){ messageBox("CPRÆÀ µµÂø ÈÄ Ã³Ä¡´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; }else if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresus") == "09" && model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresusetc") == "" ){ messageBox("CPRÆÀ µµÂø ÈÄ Ã³Ä¡°¡ ±âŸÀÏ °æ¿ì ±âŸÀԷ¶õÀº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/resusendresn") == ""){ messageBox("¼Ò»ý¼ú Á¾·á»çÀ¯´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; }else if( model.getValue("/root/main/resusinfo/resuslist/resusendresn") == "09" && model.getValue("/root/main/resusinfo/resuslist/resusendresnetc") == ""){ messageBox("¼Ò»ý¼ú Á¾·á»çÀ¯°¡ ±âŸÀÏ °æ¿ì ±âŸÀԷ¶õÀº ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } if( model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == ""){ messageBox("¼Ò»ý¼ú °á°ú´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } else 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 false; } if( model.getValue("/root/main/resusinfo/resuslist/curerslt") == ""){ messageBox("óġ ¹× °á°ú(À°ÇÏ¿øÄ¢¿¡ ÀÇÇØ)´Â ÇʼöÀÔ·ÂÀÔ´Ï´Ù.","E"); return false; } return true; } /** * @group : * @ver : 2014.10.15 * @by : ÃÖ¿¹¿ø * @--------------------------------------------------- * @type : function * @access : public * @desc : ÃÖÁ¾ ÀÎÁõÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fCardArrResusLastSave(pStatus){ var sRow = grd_pastlst.row; model.removeNode("/root/send"); model.makeNode("/root/item/list"); model.copyNode("/root/item/list", "/root/main/resusinfo"); var sDocHeader = "hosinhosoutflag¢Ëpid¢Ëpatnm¢Ëindd¢Ëcretno¢Ëhistno¢Ëgender¢Ëage¢Ëwardcd¢Ëroomcd¢Ëdiagnm¢Ëdiagcd¢Ëatdoctcd¢Ëmedispclid¢Ëorddeptcd¢Ëcardarrgenrdt¢Ëinstcd¢Ëlastsaveyn"; //ÃÖÁ¾ÀúÀå½Ã ÀúÀå ¾ÈµÇ´Â ºÎºÐ ¼öÁ¤ //cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm"); cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt"); var patinfoflag = model.getValue("/root/main/patinfo/patinfoflag"); if( pStatus == "I" && ( patinfoflag == "4" || patinfoflag == "5" || patinfoflag == "6" ) && model.getValue(xPathCardArrPatInfo+"/pid" ) == "" ){ fMakePid(patinfoflag); } //20160920Ä¥°î ½ÉÁ¤Áö ¹ß»ýÀϽà ¼öÁ¤ if( getUserInfo("dutplceinstcd") == "032" && pStatus == "I" ){ cardarrgenrdt = model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdtchg"); } // ۰ª ¼³Á¤ºÎºÐ var sCondData = "1" +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/patnm") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/gender") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/age") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/wardcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/roomcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/diagnm") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/diagcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/atdoctcd") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/medispclid") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/orddeptcd") +"¢Ë" + cardarrgenrdt +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd") +"¢Ë" + "Y"; model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); sDocHeader += "¢Ë" + "status¢Ë" + "pflag¢Ë" + "cardarrgoalyn¢Ë" + "cardarrdiscvpsn¢Ë" + "cardarrdiscvpsnetc¢Ë" + "cardarrgenrplceflag¢Ë" + "cardarrgenrplcedept¢Ë" + "cardarrgenrplceetc¢Ë" + "resusteamarvbfresus¢Ë" + "resusteamarvbfresusetc¢Ë" + "resusteamfresus¢Ë" + "resusteamfresusetc¢Ë" + "ambulancearvbfresus¢Ë" + "ambulancearvbfresusetc¢Ë" + "ambulanceresus¢Ë" + "ambulanceresusetc¢Ë" + "ercentresus¢Ë" + "ercentresusetc¢Ë" + "cardarrestmdd¢Ë" + "cardarrestmtm¢Ë" + "cardarrestmflag¢Ë" + "cardarrfinddd¢Ë" + "cardarrfindtm¢Ë" + "resusteamcalldd¢Ë" + "resusteamcalltm¢Ë" + "resusteamarvdd¢Ë" + "resusteamarvtm¢Ë" + "initrhythmcnfmdd¢Ë" + "initrhythmcnfmtm¢Ë" + "resusfromdd¢Ë" + "resusfromtm¢Ë" + "resustodd¢Ë" + "resustotm¢Ë" + "resusteamarvbfresusflag¢Ë" + "resusteamarvbfresustext¢Ë" + "resusteamarvbfresusnurse¢Ë" + "resusteamarvbfresusnurseetc¢Ë" + "cardarrgenrtm¢Ë" + "cardarrgenrdtchg¢Ë" + "cardarryn¢Ë" + "bluebirdalarmyn¢Ë" + "bluebirdalarmdd¢Ë" + "bluebirdalarmtm¢Ë" + "cardarrgenrplceward¢Ë" + "cardarrgenrplcewardflag¢Ë" + "cardarrgenrplcehosin¢Ë" + "cardarrgenrplcehoscenter¢Ë" + "cardarrgenrplcetestroom¢Ë" + "cardarrgenrplcehosout¢Ë" + "hosparvbfresus¢Ë" + "hosparvbfresusetc¢Ë" + "hosparvbfresusynflag¢Ë" + "atdoctcalldd¢Ë" + "atdoctcalltm¢Ë" + "atdoctarrdd¢Ë" + "atdoctarrtm¢Ë" + "defibrstartdd¢Ë" + "defibrstarttm¢Ë" + "defibrjul¢Ë" + "defibrtims¢Ë" + "defibrjul2¢Ë" + "defibrtims2¢Ë" + "resusteamarvafresus¢Ë" + "patinfoflag¢Ë" + "patinfoflagetc¢Ë" + "gender¢Ë" + "age¢Ë" + "wardcd¢Ë" + "roomcd¢Ë" + "diagnm¢Ë" + "diagcd¢Ë" + "atdoctcd¢Ë" + "medispclid¢Ë" + "orddeptcd¢Ë" + "resusteamarvafresusetc¢Ë" + "cardarrcas¢Ë" + "initrhythm¢Ë" + "resusendresn¢Ë" + "resusendresnetc¢Ë" + "cardarrrslt¢Ë" + "cardarrrsltetc¢Ë" + "dschdethdd¢Ë" + "dschdethtm¢Ë" + "dschneurologystat¢Ë" + "resusteamorddept¢Ë" + "resusteamorddr¢Ë" + "resusteamnum¢Ë" + "patstatus¢Ë" + "patstatusetc¢Ë" + "defibrflag¢Ë" + "curerslt¢Ì"; var resusteamarvbfresus = ""; var resusteamarvbfresusetc = ""; var resusteamarvbfresusnurse = ""; var resusteamarvbfresusnurseetc = ""; resusteamarvbfresus = model.getValue(xPathCardArrResusList+"/resusteamarvbfresus"); //model.getValue("hidden/list/resusteamarvbfresus"); resusteamarvbfresusetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc"); resusteamarvbfresusnurse = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurse"); resusteamarvbfresusnurseetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurseetc"); if( model.getValue("/root/main/resusinfo/resuslist/hosparvbfresusynflag") != "Y" ){ model.setValue(xPathCardArrResusList+"/hosparvbfresus", "" ); model.setValue(xPathCardArrResusList+"/hosparvbfresusetc", "" ); } sCondData += "¢Ë" + pStatus + "¢Ë" + "1" + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplceflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrplcedept") +"¢Ë" + "¢Ë" + resusteamarvbfresus +"¢Ë" + resusteamarvbfresusetc +"¢Ë" + model.getValue("hidden/list/resusteamfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + "¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrestmflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrfinddd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrfindtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"¢Ë" + 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(xPathCardArrResusList+"/resusteamarvbfresusflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvbfresustext") +"¢Ë" + resusteamarvbfresusnurse +"¢Ë" + resusteamarvbfresusnurseetc +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarrgenrdtchg") +"¢Ë" + model.getValue(xPathCardArrResusList+"/cardarryn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/bluebirdalarmtm") +"¢Ë" + 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+"/hosparvbfresus") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"¢Ë" + model.getValue(xPathCardArrResusList+"/hosparvbfresusynflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctcalldd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctcalltm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctarrdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/atdoctarrtm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrjul2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/defibrtims2") +"¢Ë" + model.getValue(xPathCardArrResusList+"/resusteamarvafresus") +"¢Ë" + model.getValue("/root/main/patinfo/patinfoflag") +"¢Ë" + model.getValue(xPathCardArrResusList+"/patinfoflagetc") +"¢Ë" + model.getValue("/root/main/patinfo/gender") +"¢Ë" + model.getValue("/root/main/patinfo/age") +"¢Ë" + model.getValue("/root/main/patinfo/wardcd") +"¢Ë" + model.getValue("/root/main/patinfo/roomcd") +"¢Ë" + model.getValue("/root/main/patinfo/diagnm") +"¢Ë" + model.getValue("/root/main/patinfo/diagcd") +"¢Ë" + model.getValue("/root/main/patinfo/atdoctcd") +"¢Ë" + model.getValue("/root/main/patinfo/medispclid") +"¢Ë" + model.getValue("/root/main/patinfo/orddeptcd") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamarvafresusetc") +"¢Ë" + 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 + "/dschneurologystat") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamorddept") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamorddr") +"¢Ë" + model.getValue(xPathCardArrResusList + "/resusteamnum") +"¢Ë" + model.getValue(xPathCardArrResusList + "/patstatus") +"¢Ë" + model.getValue(xPathCardArrResusList + "/patstatusetc") +"¢Ë" + model.getValue(xPathCardArrResusList + "/defibrflag") +"¢Ë" + model.getValue(xPathCardArrResusList + "/curerslt") +"¢Ì"; model.makeValue("/root/send/recdata", sDocHeader+sCondData ); // Hist µ¥ÀÌÅÍ ÀÔ·Â var DetailHeader = "pid¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd¢Ì"; var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm"); // ۰ª ¼³Á¤ºÎºÐ var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + Detail_Cardarrgenrdt +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd") +"¢Ì"; model.makeValue("/root/send/recdetail", DetailHeader + DetailData ); if( submit("TXMNE02302") ){ fSrchHistList("1"); fActionStatus("1", "U", sRow); } } /** * PID ¸¸µé±â ( º¸È£ÀÚ, ¹æ¹®°´, ±âŸÀÏ °æ¿ì PID°¡ Á¸ÀçÇÏÁö ¾Ê±â¶§¹®¿¡ ) * º¸È£ÀÚ 4 -- P + 00001 ( ÀϷùøÈ£ ) * ¹æ¹®°´ 5 -- V + 00001 * ±â Ÿ 6 -- E + 00001 */ function fMakePid(patinfoflag){ var pid = model.getValue(xPathCardArrPatInfo + "/pid"); var patnm = model.getValue(xPathCardArrPatInfo + "/patnm"); model.setValue("/root/srchmax/patinfoflag" , patinfoflag ); if( patinfoflag == "4" ){ model.setValue("/root/srchmax/patinfoflagtxt", "P") }; if( patinfoflag == "5" ){ model.setValue("/root/srchmax/patinfoflagtxt", "V") }; if( patinfoflag == "6" ){ model.setValue("/root/srchmax/patinfoflagtxt", "E") }; if( submit("TRMNE02311") ){ model.setValue(xPathCardArrPatInfo+"/pid", model.getValue("/root/srchmax/patinfoflagtxt") + model.getValue("/root/temp/maxseq/item/pidseq")); model.setValue(xPathCardArrPatInfo+"/indd" , "-" ); model.setValue(xPathCardArrPatInfo+"/cretno" , "1" ); model.setValue(xPathCardArrPatInfo+"/instcd" , getUserInfo("dutplceinstcd") ); } } function fGetCareComRoomList(pWard){ model.makeValue("/root/send/wardcd", pWard); if(submit("TRMNR01003")){ } } // Ãâ·Â function fPrint(){ model.removenode("/root/print"); model.makeNode("/root/print/resusinfo"); model.makeNode("/root/print/patinfo"); model.copyNode("/root/print/resusinfo", "/root/main/resusinfo/resuslist"); model.copyNode("/root/print/patinfo", "/root/main/patinfo"); model.setValue("/root/print/patinfo/wardcd", cmb_wardcd.label ); model.setValue("/root/print/patinfo/roomcd", cmb_roomcd.label ); model.setValue("/root/print/patinfo/medispclid", cmb_medispclid.label ); model.setValue("/root/print/patinfo/atdoctcd", cmb_atdoctcd.label ); model.makeValue("/root/print/patinfo/cardarrgenrdate", model.getValue("/root/main/patinfo/cardarrgenrdd") ); fChkBoxItemSetting(); exeReportPreview("RPMNE02302","XMLSTR"); model.refresh(); } function fChkBoxItemSetting(){ // º´¿ø µµÂøÀü óġ var text = model.getValue("/root/main/resusinfo/resuslist/hosparvbfresus"); var tmp1 = text.split(" "); for( var i = 0; i < tmp1.length; i++ ){ if( tmp1[i] == "01" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem1", "1"); if( tmp1[i] == "02" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem2", "1"); if( tmp1[i] == "03" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem3", "1"); if( tmp1[i] == "04" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem4", "1"); if( tmp1[i] == "05" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem5", "1"); if( tmp1[i] == "06" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem6", "1"); if( tmp1[i] == "09" ) model.makeValue("/root/print/resusinfo/hosparvbfresusitem7", "1"); } // ¼Ò»ýÆÀ µµÂøÀü óġ ( ´ã´çÀÇ ) text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresus"); var tmp2 = text.split(" "); for( var i = 0; i < tmp2.length; i++ ){ if( tmp2[i] == "01" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem1", "1"); if( tmp2[i] == "02" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem2", "1"); if( tmp2[i] == "03" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem3", "1"); if( tmp2[i] == "04" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem4", "1"); if( tmp2[i] == "05" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem5", "1"); if( tmp2[i] == "06" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem6", "1"); if( tmp2[i] == "09" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem7", "1"); } // ¼Ò»ýÆÀ µµÂøÀü óġ ( °£È£»ç ) text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusnurse"); var tmp3 = text.split(" "); for( var i = 0; i < tmp3.length; i++ ){ if( tmp3[i] == "01" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem1", "1"); if( tmp3[i] == "02" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem2", "1"); if( tmp3[i] == "03" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem3", "1"); if( tmp3[i] == "04" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem4", "1"); if( tmp3[i] == "05" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem5", "1"); if( tmp3[i] == "06" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem6", "1"); if( tmp3[i] == "09" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem7", "1"); } // ¼Ò»ýÆÀ µµÂøÈÄ Ã³Ä¡ text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresus"); var tmp4 = text.split(" "); for( var i = 0; i < tmp4.length; i++ ){ if( tmp4[i] == "01" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem1", "1"); if( tmp4[i] == "02" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem2", "1"); if( tmp4[i] == "03" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem3", "1"); if( tmp4[i] == "04" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem4", "1"); if( tmp4[i] == "05" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem5", "1"); if( tmp4[i] == "06" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem6", "1"); if( tmp4[i] == "09" ) model.makeValue("/root/print/resusinfo/resusteamarvafresusitem7", "1"); } // º´½Ç, º´½Ç¿Ü text = model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag"); var tmp5 = text.split(" "); for( var i = 0; i < tmp5.length; i++ ){ if( tmp5[i] == "1" ) model.makeValue("/root/print/resusinfo/cardarrgenrplcewardflagitem1", "1"); if( tmp5[i] == "2" ) model.makeValue("/root/print/resusinfo/cardarrgenrplcewardflagitem2", "1"); } // ¼Ò»ýÆÀ µµÂøÀüóġ - ´ã´çÀÇ, °£È£»ç text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusflag"); var tmp6 = text.split(" "); for( var i = 0; i < tmp6.length; i++ ){ if( tmp6[i] == "1" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusflagitem1", "1"); if( tmp6[i] == "2" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusflagitem2", "1"); if( tmp6[i] == "9" ) model.makeValue("/root/print/resusinfo/resusteamarvbfresusflagitem3", "1"); } // ¹ß»ýÀå¼Ò if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "01" ) // º´µ¿ model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplceward.label ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "02" ) // ¿Ü·¡ model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplcehosin.label ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "03" ) // Áø´Ü/°Ë»ç½Ç model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplcetestroom.label ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "04" ) // ¿ø¿Ü model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", int_cardarrgenrplcehosout.value ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "05" ) // ÀÀ±Þ½Ç model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", "" ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "06" ) // ¼ö¼ú/ȸº¹½Ç model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", "" ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "07" ) // ÁýÁßÄ¡·á½Ç model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplcehoscenter.value ); if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "08" ) // ±â Ÿ model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", int_cardarrgenrplceetcbigo.value ); if( model.getValue("/root/main/patinfo/orddeptcd" ) != "") model.makeValue("/root/print/resusinfo/orddeptnm", cmb_dept.label ); if( model.getValue("/root/main/resusinfo/resuslist/defibrjul2") != "") model.makeValue("/root/print/resusinfo/defibrjultwo", model.getValue("/root/main/resusinfo/resuslist/defibrjul2") ); if( model.getValue("/root/main/resusinfo/resuslist/defibrtims2") != "") model.makeValue("/root/print/resusinfo/defibrtimstwo", model.getValue("/root/main/resusinfo/resuslist/defibrtims2") ); model.refresh(); } //SMSÀü¼Û function fSendSMS(){ model.removeNode("/root/send"); var sRow = grd_pastlst.row; var sDocHeader = "hosinhosoutflag¢Ëpid¢Ëpatnm¢Ëindd¢Ëcretno¢Ëhistno¢Ëcardarrgenrdt¢Ëinstcd"; // ۰ª ¼³Á¤ºÎºÐ var sCondData = "1" +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/pid" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/patnm") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/indd" ) +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/cretno") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/histno") +"¢Ë" + model.getValue("/root/main/patinfo/cardarrgenrdt") +"¢Ë" + model.getValue(xPathCardArrPatInfo+"/instcd"); model.makeValue("/root/send/cond", sDocHeader+"¢Ì"+sCondData+"¢Ì" ); if( submit("TXMNE02310") ){ fSrchHistList("1"); } } function addSetDiag( diagInfo ){ var diagRow = diagInfo.split ( "¢Ì" ).length; if( diagRow > 3 ){ messageBox("Áø´ÜÀº Çϳª¸¸ ¼±ÅÃÇØÁֽʽÿÀ.","E999"); return; }else{ model.makeNode( "/root/main/diaginfo" ); var icd10cd = getArrayData ( diagInfo, 1, 8, "¢Ì", "¢Ë" ); var diagcd = getArrayData ( diagInfo, 1, 9, "¢Ì", "¢Ë" ); var diagengnm = getArrayData ( diagInfo, 1, 2, "¢Ì", "¢Ë" ); var diaghngnm = getArrayData ( diagInfo, 1, 3, "¢Ì", "¢Ë" ); var spclinfo = getArrayData ( diagInfo, 1, 5, "¢Ì", "¢Ë" ); model.makeValue("/root/main/diaginfo/icd10cd" , icd10cd ); model.makeValue("/root/main/diaginfo/diagcd" , diagcd ); model.makeValue("/root/main/diaginfo/diagengnm" , diagengnm ); model.makeValue("/root/main/diaginfo/diaghngnm" , diaghngnm ); model.makeValue("/root/main/diaginfo/spclinfo" , spclinfo ); model.makeValue("/root/main/patinfo/diagcd" , diagcd ); model.makeValue("/root/main/patinfo/diagnm" , diaghngnm ); model.refresh(); } } function getArrayData (pData, pRow, pCol, pRowSep, pColSep ) { var arrRow = pData.split(pRowSep); if(arrRow.length <= pRow) return ""; var arrCol = arrRow[pRow].split(pColSep); if(arrCol.length <= pCol) return ""; return arrCol[pCol]; }