var daychk = ""; var anonybtn = "N"; var adminchk = ""; var jobposcd = ""; var qiteam = ""; /** * @--------------------------------------------------- * @desc : SMMQR00100_¾ÈÀü»ç°íÅëÇÕº¸°í°¡ loadµÉ¶§ ½ÇÇàµÇ´Â function * @param : * @return : * @--------------------------------------------------- */ function fInitialize(){ iviewer_rept.attribute("border-style") = "hidden"; var lrg = model.getValue("/root/main/managerinfo/lrg"); var ano = ""; if(!isNull(opener.javascript.getParameter("ano"))){ //¸Þ´º¿¡¼­ open -> ½Å±Ô, Popup -> °ú°ÅÁ¶È¸ ano = opener.javascript.getParameter("ano"); daychk = opener.javascript.getParameter("daychk"); } model.setValue("/root/main/condition/acptno", ano); model.setValue("/root/main/condition/daychk", daychk); zbcfGetCodeList(new Array("M0425" //´ë»óÀÚ±¸ºÐ°ª. ,"M0427" //ÀÓ»ó, ºñÀÓ»ó ,"P0313" //Sex ,"M0449" //»ó´ãÁß, °¨¸éó¸®Áß, ¼Ò¼Û(ÀÇ·áºÐÀï)Áß, Á¾°á, Ãë¼Ò ,"M0448"), //ÁøÇàÁß, Á¾°á new Array("/root/init/trgtmanflag" , "/root/init/lrg" , "/root/init/trgsex" , "/root/init/prcsyn" , "/root/init/rlstyn"), true); reqGetAccidentStepList(); mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/trgtorddept", "O"); mmbfGetUserComboList("/root/send/reqdata", "/root/init/trgtatdoct", getUserInfo("dutplcecd"), "0330"); mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/main/wardlist", "W"); addComboInstance("/root/main/wardlist/ward", "deptcd^depthngnm", "-^Àüü", "dept"); model.setValue("/root/main/condition/trgtwardcd", "-"); // model.removeNodeset("/root/main/reduct/reductlist"); if(model.getValue("/root/main/condition/acptno") == ""){ //½Å±ÔÀÛ¼ºÀÏ °æ¿ì var rtnparam = opener.javascript.getParameter("SMMQR00100_PARAM"); // Main¿¡¼­ open. var rtnparam2 = opener.javascript.getParameter("SMMQR00100_PARAM2"); // Main¿¡¼­ open. if ( rtnparam.getTrim() != "") { rtnparam = rtnparam.split("¢Ë"); if( rtnparam[10] == "I"){ model.setValue("/root/main/condition/trgtmanflag", "01"); //ÀÔ¿øÈ¯ÀÚ }else if( rtnparam[10] == "O" || rtnparam[10] == "E" ){ model.setValue("/root/main/condition/trgtmanflag", "02"); //¿Ü·¡/ÀÀ±Þ¼¾ÅÍ ³»¿øÈ¯ÀÚ }else{ model.setValue("/root/main/condition/trgtmanflag", "06"); //±âŸ } cmb_trgtmanflag.dispatch("xforms-value-changed"); model.setValue("/root/main/condition/trgtid", rtnparam[0]); model.setValue("/root/main/condition/trgtnm", rtnparam[1]); model.setValue("/root/main/condition/trgtorddept", rtnparam[2]); model.setValue("/root/main/condition/trgtdiagcdnm", rtnparam[4]); model.setValue("/root/main/condition/trgtdiagcd", rtnparam[5]); model.setValue("/root/main/condition/trgtsextext", rtnparam[6]); model.setValue("/root/main/condition/trgtage", rtnparam[7]); model.setValue("/root/main/condition/trgtwardcd", rtnparam[8]); cmb_trgtorddept.dispatch("xforms-value-changed"); model.setValue("/root/main/condition/trgtroom", rtnparam[9]); model.setValue("/root/main/condition/trgtatdoct", rtnparam[3]); } else if(rtnparam2.getTrim() != "") { rtnparam2 = rtnparam2.split("¢Ë"); model.setValue("/root/send/patinfo/pid", rtnparam2[0]); model.setValue("/root/send/patinfo/orddd", rtnparam2[1]); model.setValue("/root/send/patinfo/cretno", rtnparam2[2]); model.setValue("/root/send/patinfo/ordtype", rtnparam2[3]); model.setValue("/root/send/patinfo/oprsrvno", rtnparam2[4]); if(submit("TRMQR00108")) { // ȯÀÚÁ¤º¸ Á¶È¸ model.setValue("/root/main/condition/trgtmanflag", model.getValue("/root/temp/initparam/trgtmanflag")); //ÀÔ¿øÈ¯ÀÚ cmb_trgtmanflag.dispatch("xforms-value-changed"); model.setValue("/root/main/condition/trgtid", model.getValue("/root/temp/initparam/trgtid")); model.setValue("/root/main/condition/trgtnm", model.getValue("/root/temp/initparam/trgtnm")); model.setValue("/root/main/condition/trgtorddept", model.getValue("/root/temp/initparam/trgtorddept")); model.setValue("/root/main/condition/trgtdiagcdnm", model.getValue("/root/temp/initparam/trgtdiagcdnm")); model.setValue("/root/main/condition/trgtdiagcd", model.getValue("/root/temp/initparam/trgtdiagcd")); model.setValue("/root/main/condition/trgtsextext", model.getValue("/root/temp/initparam/trgtsextext")); model.setValue("/root/main/condition/trgtage", model.getValue("/root/temp/initparam/trgtage")); model.setValue("/root/main/condition/trgtwardcd", model.getValue("/root/temp/initparam/trgtwardcd")); cmb_trgtorddept.dispatch("xforms-value-changed"); model.setValue("/root/main/condition/trgtroom", model.getValue("/root/temp/initparam/trgtroom")); model.setValue("/root/main/condition/trgtatdoct", model.getValue("/root/temp/initparam/trgtatdoct")); } } model.makeValue("/root/temp/befserdiaggrde", ""); //xml default Á¶È¸ submit("TRMQR00109"); model.copyNode("/root/main/managerinfo/casanaly/casanalist", "/root/tmp/reptinfo/recinfo/casanaly/casanalist"); // XML model.copyNode("/root/main/admininfo/prescond/conditem", "/root/tmp/reptinfo/recinfo/prescond/conditem"); //XML model.copyNode("/root/main/admininfo/casanalyadmin/casanalist", "/root/tmp/reptinfo/recinfo/casanalyadmin/casanalist"); //XML // º¸°íÀÚÁ¤º¸ ¼³Á¤ submit("TRMQR00100"); model.setValue("/root/main/condition/reptid", model.getValue("/root/main/userinfo/reptid")); model.setValue("/root/main/condition/reptnm", model.getValue("/root/main/userinfo/reptnm")); model.setValue("/root/main/condition/reptjobkind", model.getValue("/root/main/userinfo/reptjobkind")); model.setValue("/root/main/condition/reptjobkindtext", model.getValue("/root/main/userinfo/reptjobkindtext")); model.setValue("/root/main/condition/reptdutdept", model.getValue("/root/main/userinfo/reptdutdept")); model.setValue("/root/main/condition/reptdutdepttext", model.getValue("/root/main/userinfo/reptdutdepttext")); model.setValue("/root/main/condition/reptcntctel", model.getValue("/root/main/userinfo/reptcntctel")); model.setValue("/root/main/condition/reptdutyearno", model.getValue("/root/main/userinfo/reptdutyearno")); model.setValue("/root/main/condition/reptposdeptcd", model.getValue("/root/main/userinfo/reptposdeptcd")); } else{ //Á¶È¸ÀÏ °æ¿ì model.setValue("/root/send/acptno", model.getValue("/root/main/condition/acptno")); submit("TRMQR00102"); var lrg = model.getValue("/root/tmp/reptinfo/recinfo/lrg"); var mdl = model.getValue("/root/tmp/reptinfo/recinfo/mdl"); var trgsex = model.getValue("/root/tmp/reptinfo/recinfo/trgtsex"); // º¸°íÀÚ Á¤º¸ model.setValue("/root/main/condition/reptid", model.getValue("/root/tmp/reptinfo/recinfo/reptid")); model.setValue("/root/main/condition/reptnm", model.getValue("/root/tmp/reptinfo/recinfo/reptnm")); model.setValue("/root/main/condition/reptjobkind", model.getValue("/root/tmp/reptinfo/recinfo/reptjobkind")); model.setValue("/root/main/condition/reptjobkindtext", model.getValue("/root/tmp/reptinfo/recinfo/reptjobkindtext")); model.setValue("/root/main/condition/reptdutdept", model.getValue("/root/tmp/reptinfo/recinfo/reptdutdept")); model.setValue("/root/main/condition/reptdutdepttext", model.getValue("/root/tmp/reptinfo/recinfo/reptdutdepttext")); model.setValue("/root/main/condition/reptposdeptcd", model.getValue("/root/main/userinfo/reptposdeptcd")); model.setValue("/root/main/condition/reptdutyearno", model.getValue("/root/tmp/reptinfo/recinfo/reptdutyearno")); model.setValue("/root/main/condition/reptcntctel", model.getValue("/root/tmp/reptinfo/recinfo/reptcntctel")); model.setValue("/root/main/condition/serdiaggrde", model.getValue("/root/tmp/reptinfo/recinfo/serdiaggrde")); model.makeValue("/root/temp/befserdiaggrde", model.getValue("/root/tmp/reptinfo/recinfo/serdiaggrde")); model.setValue("/root/main/condition/trgtmanflag", model.getValue("/root/tmp/reptinfo/recinfo/trgtmanflag")); cmb_trgtmanflag.dispatch("xforms-value-changed"); model.setValue("/root/main/condition/etctrgtmanflag", model.getValue("/root/tmp/reptinfo/recinfo/etctrgtmanflag")); model.setValue("/root/main/condition/trgtrelemp", model.getValue("/root/tmp/reptinfo/recinfo/trgtrelemp")); model.setValue("/root/main/condition/trgtid", model.getValue("/root/tmp/reptinfo/recinfo/trgtid")); model.setValue("/root/main/condition/trgtnm", model.getValue("/root/tmp/reptinfo/recinfo/trgtnm")); model.setValue("/root/main/condition/trgtsex", trgsex); model.setValue("/root/main/condition/trgtsextext", model.getValue("/root/tmp/reptinfo/recinfo/trgtsextext")); model.setValue("/root/main/condition/trgtage", model.getValue("/root/tmp/reptinfo/recinfo/trgtage")); model.setValue("/root/main/condition/trgtroom", model.getValue("/root/tmp/reptinfo/recinfo/trgtroom")); model.setValue("/root/main/condition/trgtdiagcd", model.getValue("/root/tmp/reptinfo/recinfo/trgtdiagcd")); model.setValue("/root/main/condition/trgtwardcd", model.getValue("/root/tmp/reptinfo/recinfo/trgtwardcd")); model.setValue("/root/main/condition/trgtdiagcdnm", model.getValue("/root/tmp/reptinfo/recinfo/trgtdiagcdnm")); model.setValue("/root/main/condition/detlcnts", model.getValue("/root/tmp/reptinfo/recinfo/detlcnts")); model.setValue("/root/main/condition/doctorcallyn", model.getValue("/root/tmp/reptinfo/recinfo/doctorcallyn")); model.setValue("/root/main/condition/doctorcalldt", model.getValue("/root/tmp/reptinfo/recinfo/doctorcalldt")); model.setValue("/root/main/condition/mediationyn", model.getValue("/root/tmp/reptinfo/recinfo/mediationyn")); model.setValue("/root/main/condition/mediationdt", model.getValue("/root/tmp/reptinfo/recinfo/mediationdt")); model.setValue("/root/main/condition/inwritingyn", model.getValue("/root/tmp/reptinfo/recinfo/inwritingyn")); // ºÎ¼­Àå Á¤º¸ model.setValue("/root/main/managerinfo/lrg", lrg); model.setValue("/root/main/managerinfo/mdl", mdl); model.setValue("/root/main/managerinfo/trsmyn", model.getValue("/root/tmp/reptinfo/recinfo/trsmyn")); model.copyNode("/root/main/managerinfo/casanaly/casanalist", "/root/tmp/reptinfo/recinfo/casanaly/casanalist"); // XML model.setValue("/root/main/managerinfo/mngersugg", model.getValue("/root/tmp/reptinfo/recinfo/mngersugg")); model.setValue("/root/main/managerinfo/reptwhat", model.getValue("/root/tmp/reptinfo/recinfo/reptwhat")); model.setValue("/root/main/managerinfo/repthow", model.getValue("/root/tmp/reptinfo/recinfo/repthow")); // °ü¸®ÀÚ Á¤º¸ model.copyNode("/root/main/admininfo/prescond/conditem", "/root/tmp/reptinfo/recinfo/prescond/conditem"); //XML model.copyNode("/root/main/admininfo/casanalyadmin/casanalist", "/root/tmp/reptinfo/recinfo/casanalyadmin/casanalist"); //XML model.setValue("/root/main/admininfo/adminsugg", model.getValue("/root/tmp/reptinfo/recinfo/adminsugg")); model.setValue("/root/main/admininfo/reptwhat", model.getValue("/root/tmp/reptinfo/recinfo/reptwhat")); model.setValue("/root/main/admininfo/repthow", model.getValue("/root/tmp/reptinfo/recinfo/repthow")); model.setValue("/root/main/admininfo/aftmngt", model.getValue("/root/tmp/reptinfo/recinfo/aftmngt")); model.setValue("/root/main/admininfo/conclt", model.getValue("/root/tmp/reptinfo/recinfo/conclt")); model.setValue("/root/main/admininfo/concltexec", model.getValue("/root/tmp/reptinfo/recinfo/concltexec")); model.setValue("/root/main/admininfo/rsltyn", model.getValue("/root/tmp/reptinfo/recinfo/rsltyn")); var trgtorddept = model.getValue("/root/tmp/reptinfo/recinfo/trgtorddept"); model.setValue("/root/main/condition/trgtorddept" , trgtorddept); if(anonybtn == "Y"){ fCheckgrade();//ÀÍ¸íº¸°í½Ã º¸°íÀÚ Á¤º¸ µî·Ï °¨Ãß±â } if( trgtorddept != ""){ model.removeNodeset("/root/init/trgtatdoct"); model.makeNode("/root/init/trgtatdoct/usercombo"); mmbfGetUserComboList("/root/send/reqdata", "/root/init/trgtatdoct", trgtorddept, "0330"); } model.setValue("/root/main/condition/trgtatdoct", model.getValue("/root/tmp/reptinfo/recinfo/trgtatdoct")); model.setValue("/root/main/condition/trgtcntctel", model.getValue("/root/tmp/reptinfo/recinfo/trgtcntctel")); model.setValue("/root/main/condition/genrdd", model.getValue("/root/tmp/reptinfo/recinfo/genrdd")); model.setValue("/root/main/condition/genrtmmnt", model.getValue("/root/tmp/reptinfo/recinfo/genrtmmnt")); model.setValue("/root/main/condition/discvdd" , model.getValue("/root/tmp/reptinfo/recinfo/discvdd")); model.setValue("/root/main/condition/discvtmmnt", model.getValue("/root/tmp/reptinfo/recinfo/discvtmmnt")); model.setValue("/root/main/condition/reptdd" , model.getValue("/root/tmp/reptinfo/recinfo/reptdd")); model.setValue("/root/main/condition/repttmmnt", model.getValue("/root/tmp/reptinfo/recinfo/repttmmnt")); model.setValue("/root/main/admininfo/rsltyn" , model.getValue("/root/tmp/reptinfo/recinfo/rsltyn")); model.setValue("/root/main/managerinfo/trsmyn" , model.getValue("/root/tmp/reptinfo/recinfo/trsmyn")); model.setValue("/root/hidden/rsltyn" , model.getValue("/root/tmp/reptinfo/recinfo/rsltyn")); //Àü¼ÛÇÒ°æ¿ì ±âÁ¸»óŸ¦ ºñ±³ÇϱâÀ§ÇØ var genrtmnt = model.getValue("/root/tmp/reptinfo/recinfo/genrtmmnt"); model.setValue("/root/main/condition/genrthh" , genrtmnt.substring(0,2)); model.setValue("/root/main/condition/genrtmi" , genrtmnt.substring(2,4)); var discvtmmnt = model.getValue("/root/tmp/reptinfo/recinfo/discvtmmnt"); model.setValue("/root/main/condition/discvthh", discvtmmnt.substring(0,2)); model.setValue("/root/main/condition/discvtmi", discvtmmnt.substring(2,4)); //°³¼±È°µ¿ ³»¿ëÁß '±âŸ'°¡ÀÖÀ¸¸é TextArea¸¦ displayÇØÁØ´Ù // model.removenodeset("/root/main/reduct/reductlist"); // copyNodeListType("/root/main/reduct", "/root/tmp/reptinfo/reductlist", "after"); setLrg(lrg); SetIviewer(lrg, mdl); setTrgtView(); // ´ë»óÀÚ±¸ºÐ¿¡ µû¸¥ »ç°í´ë»óÀÚ Visible // sortNodeList("/root/main/reduct/reductlist", "reductdd", "asc"); } //°ü¸®ÀÚÀÎÁö üũ¿©ºÎ fGetHardCDList("N", 5595, 0 , "/root/init/hardcd"); var cnt = getNodesetCnt(model, "/root/init/hardcd/hardcd"); for(var i=1; i<=cnt; i++){ var userid=model.getValue("/root/init/hardcd/hardcd[" + i + "]/hardcd"); if(getUserInfo("userid")==userid){ adminchk=true; break; } } model.refresh(); } /** * @------------------------------------------------------------------------------------------------------ * @desc : Á¾°á¿©ºÎ¸¦ ¼³Á¤ÇÑ´Ù. * @param : * @------------------------------------------------------------------------------------------------------ */ function fSetRlstYN(){ // alert("fSetRlstYN"); var rtnval = messageBox("Á¾°á¿©ºÎ¸¸ ¹Ý¿µµË´Ï´Ù. ", "Q003"); if(rtnval == 6){ //¿¹ SetRecInfo(); //°øÅë±âº»Á¤º¸¸¦ send·Î º¸³½´Ù if(!submit("TXMQR00101")){ messageBox("Á¾°á¿©ºÎ ÀúÀåÀ»","E009");//½ÇÆÐÇÏ¿´½À´Ï´Ù. return false; } if(model.getValue("/root/main/admininfo/rsltyn") == "03"){ //Á¾°áÀΰæ¿ì ÀÌÀü Á¾°á»óŸ¦ Á¾°á·Î ¸¸µé¾îÁØ´Ù(ÀçÀü¼ÛÀ» ¸·±âÀ§ÇØ) model.setValue("/root/hidden/rsltyn" , "03"); //Á¾°á } model.refresh(); }else{ return false; } return true; } /** * @------------------------------------------------------------------------------------------------------ * @desc : ´ë»óÀÚ±¸ºÐ¿¡ µû¶ó »ç°í ´ë»óÀÚ Á¤º¸µî·Ï ³»¿ëÀÌ ´Þ¶óÁø´Ù. * @param : * @------------------------------------------------------------------------------------------------------ */ function setTrgtView(){ var trgtman = model.getValue("/root/main/condition/trgtmanflag"); if(trgtman == "01" || trgtman == "02"){ grp_pat.visible = true; //µî·Ï¹øÈ£, º´µ¿/º´½Ç, Áø·á°ú, ÁÖÄ¡ÀÇ, Áø´ÜÄÚµå grp_patInfo.visible = true; //¼º¸í, ¼ºº°, ³ªÀÌ grp_nonpat.visible = false;//ºó ±×·ì grp_nonpatInfo.visible = false;//¼º¸í, ¼ºº°, ³ªÀÌ, ¿¬¶ôó }else{ grp_pat.visible = false; grp_nonpat.visible = true; grp_patInfo.visible = false; grp_nonpatInfo.visible = true; } if(trgtman == "06"){ ipt_etctrgtmanflag.disabled = false; }else{ ipt_etctrgtmanflag.disabled = true; } } /** * @------------------------------------------------------------------------------------------------------ * @desc : ´ëºÐ·ù°¡ ¼³Á¤µÇ¾úÀ»¶§ Áߺзù¸¦ ¼³Á¤ÇÏ´Â fuction * @param : lrg(´ëºÐ·ù) * @return : * @------------------------------------------------------------------------------------------------------ */ function setLrg(lrg){ iviewer_rept.visible = false; cap_mdl.visible =true; rdo_mdl.visible = true; if(lrg == "01") { model.removeNodeset("/root/init/mdl/M0428"); zbcfGetCodeList(new Array("M0428"), new Array("/root/init/mdl"), true); rdo_mdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0428"; rdo_mdl2.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0428"; } //´ëºÐ·ù°¡ ºñÀÓ»óÀÏ °æ¿ì if(lrg == "02"){ model.removeNodeset("/root/init/mdl/M0429"); zbcfGetCodeList(new Array("M0429"), new Array("/root/init/mdl"), true); rdo_mdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0429"; rdo_mdl2.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0428"; iviewer_rept.src = "SMMQR00801_ºñÀÓ»ó(Ä¥°î).xrw" ; } rdo_mdl.refresh(); rdo_mdl2.refresh(); } /** * @------------------------------------------------------------------------------------------------------ * @desc : Áߺзù°¡ ¼³Á¤µÇ¾úÀ»¶§ Iview¸¦ ¼³Á¤ÇÏ´Â fuction * @param : lrg(´ëºÐ·ù), mdl(Áߺзù) * @return : * @------------------------------------------------------------------------------------------------------ */ function SetIviewer(lrg, mdl){ //´ëºÐ·ù°¡ ¼±Åà ¾ÈµÇ¾îÀÖÀ» °æ¿ì µÇµ¹·Á º¸³½´Ù if(lrg == ""){ rdo_mdl.deselect(); rdo_mdl2.deselect(); return; } //´ëºÐ·ù°¡ ÀÓ»óÀÏ °æ¿ì else if(lrg == "01"){ switch(mdl){ case "01" : iviewer_rept.src = "SMMQR00201_Áø·á¹×Ä¡·á(Ä¥°î).xrw" ; break; case "02" : iviewer_rept.src = "SMMQR00301_Åõ¾à(Ä¥°î).xrw" ; break; case "03" : iviewer_rept.src = "SMMQR00401_³«»ó(Ä¥°î).xrw" ; break; case "04" : iviewer_rept.src = "SMMQR00501_¼öÇ÷(Ä¥°î).xrw" ; break; case "05" : iviewer_rept.src = "SMMQR00601_Áø´Üº´¸®¿µ»ó°Ë»ç(Ä¥°î).xrw" ; break; case "06" : iviewer_rept.src = "SMMQR00701_±âŸ(Ä¥°î).xrw" ; break; } } //´ëºÐ·ù°¡ ºñÀÓ»óÀÏ °æ¿ì else if(lrg == "02"){ iviewer_rept.window.javascript.fSetDisabled(mdl); } iviewer_rept.visible = true; } /** * @------------------------------------------------------------------------------------------------------ * @desc : ¾ÈÀü»ç°íÅëÇÕº¸°í¸¦ º¸°íÀÚ°¡ ÀÓ½ÃÀúÀå/ÃÖÁ¾ÀúÀåÇÑ´Ù. * @param : * @return : * @------------------------------------------------------------------------------------------------------ */ function fReptSave(state){ // ÇʼöÀÔ·ÂÇ׸ñ ¾ÆÁ÷ ¹ÌÁöÁ¤. if(!fCheck(state)){ return; } var reptid = model.getValue("/root/main/condition/reptid"); var genrthh = model.getValue("/root/main/condition/genrthh"); var genrtmi = model.getValue("/root/main/condition/genrtmi"); model.setValue("/root/main/condition/genrtmmnt", genrthh+genrtmi); var discvthh = model.getValue("/root/main/condition/discvthh"); var discvtmi = model.getValue("/root/main/condition/discvtmi"); model.setValue("/root/main/condition/discvtmmnt", discvthh + discvtmi); if(messageBox("","Q002") == 6){ //¿¹ if(model.getValue("/root/main/condition/acptno") == ""){ //½Å±ÔÀÛ¼ºÀÏ °æ¿ì SetRecInfo(state); model.makeValue("/root/send/cond/recinfo/lrg", "-"); model.makeValue("/root/send/cond/recinfo/rsltyn", "01"); if(!fSave()){ return; } }else{ //¼öÁ¤(¼öÁ¤¿äû¹ÞÀº°Ç)Àΰæ¿ì if( getUserInfo("userid") == reptid || (anonybtn =="Y" && reptid == "") || adminchk == true ){//ÀÛ¼ºÀÚÀÏ °æ¿ì SetRecInfo(state); if(model.getValue("/root/send/cond/recinfo/lrg") == ""){ //ºÎ¼­Àå ÀúÀå Àü ÀÓ½ÃÀúÀåÇÒ¶§(¼öÁ¤) lrgÃß°¡ model.makeValue("/root/send/cond/recinfo/lrg", "-"); model.makeValue("/root/send/cond/recinfo/rsltyn", "01"); } //Ä¥°î ºÎ¼­Àå ±îÁö ÀúÀå ÈÄ º¸°íÀÚ ÅÇ¿¡¼­ ÀúÀå½Ã ³¯¶ó°¡´Â¹®Á¦ model.makeValue("/root/send/cond/recinfo/lrg", model.getValue("/root/main/managerinfo/lrg")); model.makeValue("/root/send/cond/recinfo/mdl", model.getValue("/root/main/managerinfo/mdl")); model.makeValue("/root/send/cond/recinfo/rsltyn", "01"); model.makeValue("/root/send/cond/recinfo/mngersugg", model.getValue("/root/main/managerinfo/mngersugg")); model.makeValue("/root/send/cond/recinfo/repthow", model.getValue("/root/main/managerinfo/repthow")); model.makeValue("/root/send/cond/recinfo/reptwhat", model.getValue("/root/main/managerinfo/reptwhat")); model.makeValue("/root/send/cond/recinfo/casanaly", instance1.selectNodesXml("/root/main/managerinfo/casanaly/casanalist")); if(!fSave()){ return; } }else{ messageBox("º»ÀÎ ¿Ü ¼öÁ¤ºÒ°¡ÇÕ´Ï´Ù.","E"); return; } } model.refresh(); }else{ return; } } /** * @------------------------------------------------------------------------------------------------------ * @desc : ¾ÈÀü»ç°íÅëÇÕº¸°í¸¦ ºÎ¼­ÀåÀÌ ÀÓ½ÃÀúÀå/ÃÖÁ¾ÀúÀåÇÑ´Ù. * @param : * @return : * @------------------------------------------------------------------------------------------------------ */ function fMngrSave(state){ // ÇʼöÀÔ·ÂÇ׸ñ ¾ÆÁ÷ ¹ÌÁöÁ¤. if(!fCheck(state)){ return; } SetRecInfo(state); model.makeValue("/root/send/cond/recinfo/lrg", model.getValue("/root/main/managerinfo/lrg")); model.makeValue("/root/send/cond/recinfo/mdl", model.getValue("/root/main/managerinfo/mdl")); model.makeValue("/root/send/cond/recinfo/rsltyn", "01"); model.makeValue("/root/send/cond/recinfo/mngersugg", model.getValue("/root/main/managerinfo/mngersugg")); model.makeValue("/root/send/cond/recinfo/repthow", model.getValue("/root/main/managerinfo/repthow")); model.makeValue("/root/send/cond/recinfo/reptwhat", model.getValue("/root/main/managerinfo/reptwhat")); model.makeValue("/root/send/cond/recinfo/casanaly", instance1.selectNodesXml("/root/main/managerinfo/casanaly/casanalist")); GetDetlInfo(); // IviewÀÇ »ó¼¼³»¿ëÀ» /root/tmp·Î Set. SetDetlInfo(); // /root/tmpÀÇ »ó¼¼³»¿ëÀ» /root/send·Î Set. fSave(); } /** * @------------------------------------------------------------------------------------------------------ * @desc : ¾ÈÀü»ç°íÅëÇÕº¸°í¸¦ ÀÇ·áÁú°ü¸®½Ç ´ã´çÀÚ°¡ ÀÓ½ÃÀúÀå/ÃÖÁ¾ÀúÀåÇÑ´Ù. * @param : * @return : * @------------------------------------------------------------------------------------------------------ */ function fAdminSave(state){ // ÇʼöÀÔ·ÂÇ׸ñ ¾ÆÁ÷ ¹ÌÁöÁ¤. // if(!fCheck(state)){ // return; // } SetRecInfo(state); if(model.getValue("/root/send/cond/recinfochk/presynchk") == "Y"){ model.makeValue("/root/send/cond/recinfo/presyn", "Y"); } if(model.getValue("/root/send/cond/recinfochk/causynchk") == "Y"){ model.makeValue("/root/send/cond/recinfo/causyn", "Y"); } if(model.getValue("/root/send/cond/recinfochk/impractynchk") == "Y"){ model.makeValue("/root/send/cond/recinfo/impractyn", "Y"); } if(model.getValue("/root/send/cond/recinfochk/imprplaynchk") == "Y"){ model.makeValue("/root/send/cond/recinfo/imprplayn", "Y"); } if(model.getValue("/root/send/cond/recinfochk/lateynchk") == "Y"){ model.makeValue("/root/send/cond/recinfo/lateyn", "Y"); } if(model.getValue("/root/send/cond/recinfochk/endynchk") == "Y"){ model.makeValue("/root/send/cond/recinfo/endyn", "Y"); } model.makeValue("/root/send/cond/recinfo/lrg", model.getValue("/root/main/managerinfo/lrg")); model.makeValue("/root/send/cond/recinfo/mdl", model.getValue("/root/main/managerinfo/mdl")); model.makeValue("/root/send/cond/recinfo/prescond", instance1.selectNodesXml("/root/main/admininfo/prescond/conditem")); model.makeValue("/root/send/cond/recinfo/casanalyadmin", instance1.selectNodesXml("/root/main/admininfo/casanalyadmin/casanalist")); model.makeValue("/root/send/cond/recinfo/adminsugg", model.getValue("/root/main/admininfo/adminsugg")); model.makeValue("/root/send/cond/recinfo/repthow", model.getValue("/root/main/admininfo/repthow")); model.makeValue("/root/send/cond/recinfo/reptwhat", model.getValue("/root/main/admininfo/reptwhat")); model.makeValue("/root/send/cond/recinfo/aftmngt", model.getValue("/root/main/admininfo/aftmngt")); model.makeValue("/root/send/cond/recinfo/conclt", model.getValue("/root/main/admininfo/conclt")); model.makeValue("/root/send/cond/recinfo/concltexec", model.getValue("/root/main/admininfo/concltexec")); model.makeValue("/root/send/cond/recinfo/rsltyn", model.getValue("/root/main/admininfo/rsltyn")); GetDetlInfo(); // IviewÀÇ »ó¼¼³»¿ëÀ» /root/tmp·Î Set. SetDetlInfo(); // /root/tmpÀÇ »ó¼¼³»¿ëÀ» /root/send·Î Set. fSave(); model.setValue("/root/send/acptno", model.getValue("/root/main/condition/acptno")); submit("TRMQR00102"); model.removeNodeset("/root/send/cond/recinfochk"); } /** * @--------------------------------------------------- * @desc : ¾ÈÀü»ç°íÅëÇÕº¸°í¸¦ ÀúÀå/¼öÁ¤ÇÑ´Ù. * @param : * @return : * @--------------------------------------------------- */ function fSave(state){ // alert("fSave"); if(!submit("TXMQR00102")){ messageBox("ÀúÀåÀ»","E009"); return false; } model.refresh(); model.setValue("/root/main/condition/acptno", model.getValue("/root/tmp/acptno/acptno")); setParameter("ano", model.getValue("/root/main/condition/acptno")); messageBox("ÀúÀåÀÌ ","I002"); return true; } /** * @------------------------------------------------------------------------------------------------------ * @desc : ÄÁÆ®·Ñ ÇʼöÀԷ üũ ¹× ±ÛÀÚ¼ö üũ * @param : * @return : true or false * @------------------------------------------------------------------------------------------------------ */ function fCheck(state){ var lrg = model.getValue("/root/main/managerinfo/lrg"); if( state == "" ){ messageBox("»óŰªÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù","E"); return; } if( anonybtn == "N" ){ // º¸°íÀÚ if( state <= "20"){ //´ë»óÀÚ±¸ºÐ, ¾ÈÀü»ç°í´Ü°è if ( model.getValue("/root/main/condition/genrdd") == "" || model.getValue("/root/main/condition/genrthh") == "" || model.getValue("/root/main/condition/genrtmi") == "" ){ messageBox("¹ß»ýÀϽôÂ", "I003"); return false; }else if ( model.getValue("/root/main/condition/discvdd") == "" || model.getValue("/root/main/condition/discvthh") == "" || model.getValue("/root/main/condition/discvtmi") == "" ){ messageBox("¹ß°ßÀϽôÂ", "I003"); return false; } if((model.getValue("/root/main/condition/trgtmanflag") == "01" || model.getValue("/root/main/condition/trgtmanflag") == "02") && model.getValue("/root/main/condition/trgtid") =="" ){ messageBox("´ë»óÀÚ ID´Â", "I003"); return false; } if( model.getValue("/root/main/condition/detlcnts") == "" ){ messageBox("»ó¼¼³»¿ë ±â¼úÀº ÇʼöÇ׸ñ", "I009"); iviewer_rept.model.setFocus("tar_detlcnts"); return false; } var doctorcalldt = model.getValue("/root/main/condition/doctorcalldt"); var mediationdt = model.getValue("/root/main/condition/mediationdt"); if( model.getValue("/root/main/condition/doctorcallyn") == "Y" ){ if( !isValidDateTime(doctorcalldt,"YYYYMMDDhhmm") ){ messageBox("´ã´çÀÇ/´çÁ÷ÀÇ È£Ãâ½Ã°£ ÀÔ·ÂÀÌ À߸øµÇ¾ú½À´Ï´Ù.(YYYY-MM-DD HH:MM)", "E"); model.setFocus("ipt_doctorcall"); return false; } } if( model.getValue("/root/main/condition/mediationyn") == "Y" ){ if(!isValidDateTime(mediationdt,"YYYYMMDDhhmm")){ messageBox("ÁßÀç½Ã°£ ÀÔ·ÂÀÌ À߸øµÇ¾ú½À´Ï´Ù.(YYYY-MM-DD HH:MM)", "E"); model.setFocus("ipt_mediation"); return false; } } } if( state <= "40" && state > "20" ){ var lrg = model.getValue("/root/main/managerinfo/lrg"); var mdl = model.getValue("/root/main/managerinfo/mdl"); //¹®Á¦ÀÇ Á¾·ù, Áߺзù if(model.getValue("/root/main/managerinfo/lrg") == ""){ messageBox("¹®Á¦ÀÇ Á¾·ù´Â","I003"); return false; }else if(model.getValue("/root/main/managerinfo/mdl") == ""){ messageBox("Áߺзù´Â","I003"); return false; } //ÀÓ»ó if( lrg == "01"){ //´ë»óÀÚ±¸ºÐ, ¾ÈÀü»ç°í´Ü°è if(!isRequiredControls("cmb_trgtmanflag", "cmb_serdiaggrde")){ return false; } //Åõ¾àÀÏ °æ¿ì if( mdl == "03" ){ if(!iviewer_rept.window.javascript.checkFalldrug()){ return false; } iviewer_rept.window.javascript.chkbodystat(); } }else{ //ºñÀÓ»óÀÇ °æ¿ì ´ë»óÀÚ ±¸ºÐÁ¤º¸ ¾ø´õ¶óµµ ¼öÁ¤µÇµµ·Ï º¯°æ. if(!isRequiredControls("cmb_serdiaggrde")){ return false; } } if(!iviewer_rept.window.javascript.fDetlCheck()){ return false; } } // ÀÇ·áÁú°ü¸®½Ç ÇʼöÀÔ·ÂÇ׸ñ ¹ÌÁöÁ¤ // if( state <= "60"){ // // } }else{ //ÀÍ¸íº¸°íÀÇ °æ¿ì »ó¼¼±â¼ú ³»¿ë¸¸ ÀÖ´õ¶óµµ ÀúÀåµÇµµ·Ï ¼öÁ¤. if(model.getValue("/root/main/condition/detlcnts") == ""){ messageBox("»ó¼¼³»¿ë±â¼úÀº","I003"); return false; } } return true; } /** * @--------------------------------------------------- * @desc : °øÅë±âº»Á¤º¸¸¦ send·Î º¸³½´Ù * @param : * @return : * @--------------------------------------------------- */ function SetRecInfo(state){ model.removeNodeset("/root/send/cond/recinfo"); if ( adminchk == true && model.getValue("/root/main/condition/acptno") != "" && state <= "20" ){ model.makeValue("/root/temp/status", "-"); }else{ model.makeValue("/root/temp/status", state); } model.makeValue("/root/send/cond/recinfo/status", model.getValue("/root/temp/status")); //ÀúÀå½Ã »óŰª ÁöÁ¤ if(state == "20" || state == "30"){ model.makeValue("/root/main/condition/trsmyn", "Y"); }else{ model.makeValue("/root/main/condition/trsmyn", "N");//managerinfo°æ·ÎÁö¸¸ µ¥ÀÌÅÍ ÀúÀåÀ» À§Çؼ­ makeÇØÁØ´Ù. } copyNodeType("/root/send/cond/recinfo", "/root/main/condition", "after"); if(anonybtn == "Y"){ model.makeValue("/root/send/cond/recinfo/anonyyn", "Y"); if( model.getValue("/root/temp/reptid")!="" ){ model.setValue("/root/send/cond/recinfo/reptid", model.getValue("/root/temp/reptid")); model.setValue("/root/send/cond/recinfo/reptcntctel", model.getValue("/root/temp/reptcntctel")); model.setValue("/root/send/cond/recinfo/reptdutyearno", model.getValue("/root/temp/reptdutyearno")); } }else{ model.makeValue("/root/send/cond/recinfo/anonyyn", "N"); } } /** * @--------------------------------------------------- * @desc : IviewÀÇ »ó¼¼³»¿ëÀ» /root/tmp·Î ºÒ·¯µéÀδÙ. * @param : * @return : * @--------------------------------------------------- */ function GetDetlInfo(){ // alert("GetDetlInfo"); var Lrg = model.getValue("/root/main/managerinfo/lrg"); //´ëºÐ·ù var Mdl = model.getValue("/root/main/managerinfo/mdl"); //Áߺзù if(Lrg != "-"){ model.removenode("/root/tmp"); var node = iviewer_rept.model.instance1.selectNodes("/root/main/cond"); model.makeNode("/root/tmp"); while( srcNode = node.nextNode()) { model.duplicate("/root/tmp", srcNode); } } } /** * @--------------------------------------------------- * @desc : tmpÀÇ »ó¼¼³»¿ëÀ» send·Î º¸³½´Ù * @param : * @return : * @--------------------------------------------------- */ function SetDetlInfo(){ // alert("SetDetlInfo"); model.removeNodeset("/root/send/cond/detlinfo"); var Lrg = model.getValue("/root/main/managerinfo/lrg"); //´ëºÐ·ù var Mdl = model.getValue("/root/main/managerinfo/mdl"); //Áߺзù if(Lrg == "01"){ //ÀÓ»ó if(Mdl == "01"){ //Áø·á ¹× Ä¡·á model.makeValue("/root/send/cond/detlinfo/opdate" , model.getValue("/root/tmp/cond/opdate")); //¼ö¼ú/½Ã¼úÀÏ model.makeValue("/root/send/cond/detlinfo/opnm" , model.getValue("/root/tmp/cond/opnm")); //¼ö¼ú/½Ã¼ú¸í model.makeValue("/root/send/cond/detlinfo/pertdr" , model.getValue("/root/tmp/cond/pertdr")); //ÁýµµÀÇ model.makeValue("/root/send/cond/detlinfo/anstdr" , model.getValue("/root/tmp/cond/anstdr")); //¸¶ÃëÀÇ model.makeValue("/root/send/cond/detlinfo/ordcurekind", model.getValue("/root/tmp/cond/ordcurekind")); //Áø·á¹×Ä¡·á_»ç°íÁ¾·ù var OrdCureKind = model.getValue("/root/tmp/cond/ordcurekind"); //»ç°íÀÇ Á¾·ù if(OrdCureKind == ""){ messageBox("»ç°í Á¾·ù¸¦ ", "C001"); return false; } if(OrdCureKind == "01"){ //¼ö¼ú/½Ã¼ú °ü·Ã»ç°í model.makeValue("/root/send/cond/detlinfo/opwrsgkind", model.getValue("/root/tmp/cond/opacd/opwrsgkind")); //wrong_surgery_Á¾·ù model.makeValue("/root/send/cond/detlinfo/tmoutyn", model.getValue("/root/tmp/cond/opacd/tmoutyn")); //ŸÀӾƿôÀ¯¹« model.makeValue("/root/send/cond/detlinfo/oppartdispyn", model.getValue("/root/tmp/cond/opacd/oppartdispyn")); //¼ö¼úºÎÀ§Ç¥½ÄÀ¯¹« if(model.getValue("/root/tmp/cond/opacd/tmoutyn") == "Y"){ model.makeValue("/root/send/cond/detlinfo/tmoutkind" , model.getValue("/root/tmp/cond/opacd/tmoutkind")); //ŸÀӾƿôÁ¾·ù } var ChkOpMngt = model.getValue("/root/tmp/cond/opacd/chkopmngt"); if(ChkOpMngt.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/bfopvaluyn", "Y");//¼ö¼ú_½Ã¼úÀüȯÀÚÆò°¡ºÎÀûÀý¿©ºÎ if(ChkOpMngt.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/opbfaprvdocudescyn", "Y");//¼ö¼úÀüºÎÀûÀýµ¿ÀǼ­¹×ºÒÃæºÐ¼³¸í¿©ºÎ if(ChkOpMngt.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/blodlossyn", "Y");//¼ö¼ú_½Ã¼ú°ü·Ã±Þ°ÝÇѽÇÇ÷¿©ºÎ if(ChkOpMngt.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/toolcntyn", "Y");//½ºÆùÁö_°ÅÁî_¼ö¼ú±â±¸Ä«¿îÆ®ºÎÀûÀý¿©ºÎ if(ChkOpMngt.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/opdelyyn", "Y"); //ÀÀ±Þ¼ö¼ú_½Ã¼úÁö¿¬¿©ºÎ if(ChkOpMngt.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/aftmngtyn", "Y");//¼ö¼ú_½Ã¼úÈİü¸®ºÎÀûÀýdf¿©ºÎ if(ChkOpMngt.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/aftseffcyn", "Y");//¼ö¼ú_½Ã¼úÈĺÎÀÛ¿ësv¿©ºÎ if(ChkOpMngt.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/opfuntfaluryn", "Y"); //¼ö¼ú_½Ã¼ú°ü·Ã±Þ°ÝÇѱâ´ÉÀúÇϹױâ´ÉºÎÀü¿©ºÎ if(ChkOpMngt.search("09") > -1){ model.makeValue("/root/send/cond/detlinfo/opmdlaftetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/opmdlaftetccnts" , model.getValue("/root/tmp/cond/opacd/opmdlaftetccnts") ); } if(ChkOpMngt.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/opbfpatvaluyn", "Y"); if(ChkOpMngt.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/opbfdocudescyn", "Y"); if(ChkOpMngt.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/opbfcuredclryn", "Y"); if(ChkOpMngt.search("13") > -1){ model.makeValue("/root/send/cond/detlinfo/opbfdescyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/opbfdesccmt" , model.getValue("/root/tmp/cond/opacd/opbfdesccmt") ); } if(ChkOpMngt.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/opaftblodlosyn", "Y"); if(ChkOpMngt.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/opaftprfoayn", "Y"); if(ChkOpMngt.search("16") > -1) model.makeValue("/root/send/cond/detlinfo/opafthyfuntyn", "Y"); if(ChkOpMngt.search("17") > -1) model.makeValue("/root/send/cond/detlinfo/opafdentltrmayn", "Y"); if(ChkOpMngt.search("18") > -1) model.makeValue("/root/send/cond/detlinfo/opafttoolcntyn", "Y"); if(ChkOpMngt.search("19") > -1) model.makeValue("/root/send/cond/detlinfo/eropdelyyn", "Y"); if(ChkOpMngt.search("20") > -1) model.makeValue("/root/send/cond/detlinfo/opaftmngtyn", "Y"); if(ChkOpMngt.search("21") > -1) model.makeValue("/root/send/cond/detlinfo/opaftseffcyn", "Y"); if(ChkOpMngt.search("22") > -1){ model.makeValue("/root/send/cond/detlinfo/opaftdescyn", "Y"); model.makeValue("/root/send/cond/detlinfo/opaftdesccmt" , model.getValue("/root/tmp/cond/opacd/opaftdesccmt") ); } } if(OrdCureKind == "02"){ //¸¶Ãë°ü·Ã »ç°í var ChkAnstCd = model.getValue("/root/tmp/cond/anstacd/chkanstacd"); if(ChkAnstCd.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/bfpatvaluyn", "Y"); //¸¶ÃëÀüȯÀÚÆò°¡ºÎÀûÀý¿©ºÎ if(ChkAnstCd.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/anstbfaprvdocudescyn", "Y"); //¸¶ÃëÀüºÎÀûÀýµ¿ÀǼ­¹×ºÒÃæºÐ¼³¸í¿©ºÎ if(ChkAnstCd.search("03") > -1){ model.makeValue("/root/send/cond/detlinfo/anstmedierryn" , "Y"); //¸¶Ãë¾àÁ¦Åõ¾à¿À·ù¿©ºÎ model.makeValue("/root/send/cond/detlinfo/anstmedidrugcd" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugcd") );//Åõ¾à¸¶Ãë¾àÁ¦ÄÚµå model.makeValue("/root/send/cond/detlinfo/anstmedidrugnm" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugnm") );//Åõ¾à¸¶Ãë¾àÁ¦ÄÚµå } if(ChkAnstCd.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/nerveinjyn", "Y");//¸¶Ãë·ÎÀÎÇѽŰæ¼Õ»ó¹×¸¶ºñ¿©ºÎ if(ChkAnstCd.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/itbtacdyn", "Y");//intubation°ü·Ã»ç°í¿©ºÎ if(ChkAnstCd.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/aftbrethprlsyn", "Y"); //¸¶ÃëÈÄÈ£Èí¸¶ºñ¿©ºÎ if(ChkAnstCd.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/anstfuntfaluryn", "Y"); //¸¶ÃëÈıްÝÇѱâ´ÉÀúÇϹױâ´ÉºÎÀü¿©ºÎ if(ChkAnstCd.search("08") > -1){ model.makeValue("/root/send/cond/detlinfo/anstacdetcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/anstacdetccnts" , model.getValue("/root/tmp/cond/anstacd/anstacdetccnts") ); } if(ChkAnstCd.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/anstbfpatvaluyn", "Y"); if(ChkAnstCd.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/anstbfdocudescyn", "Y"); if(ChkAnstCd.search("11") > -1){ model.makeValue("/root/send/cond/detlinfo/anstaftmedierryn", "Y"); model.makeValue("/root/send/cond/detlinfo/anstmedidrugcd" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugcd") ); model.makeValue("/root/send/cond/detlinfo/anstmedidrugnm" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugnm") ); } if(ChkAnstCd.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/anstaftnerveinjyn", "Y"); if(ChkAnstCd.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/anstaftbthprlsyn", "Y"); if(ChkAnstCd.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/anstafthyfuntyn", "Y"); if(ChkAnstCd.search("15") > -1){ model.makeValue("/root/send/cond/detlinfo/anstdescyn", "Y"); model.makeValue("/root/send/cond/detlinfo/anstdesccmt" , model.getValue("/root/tmp/cond/anstacd/anstdesccmt") ); } } if(OrdCureKind == "03"){ //Ä¡·á/Áø·á °ü·Ã »ç°í var ChkCureAcd = model.getValue("/root/tmp/cond/mediacd/chkcureacd"); if(ChkCureAcd.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/cureprcsdescyn", "Y"); //ºÎÀûÀýºÒÃæºÐÇÑÄ¡·á°úÁ¤¼³¸í¿©ºÎ if(ChkCureAcd.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/medirecyn", "Y");//ºÎÀûÀýÀǹ«±â·Ï¿©ºÎ if(ChkCureAcd.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/orgninjuryyn", "Y"); //Ä¡·á°úÁ¤¿¡¹ß»ýÇѽÅüÀû¼Õ»ó¿©ºÎ if(ChkCureAcd.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/oprejtyn", "Y");//ȯÀÚ_º¸È£ÀÚ°¡Ä¡·á¹×½Ã¼ú°ÅÀý¿©ºÎ if(ChkCureAcd.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/prsryn", "Y"); //¿åâ¿©ºÎ if(ChkCureAcd.search("06") > -1){ model.makeValue("/root/send/cond/detlinfo/medierryn", "Y"); //¾à¹°Åõ¾à¿À·ù¿©ºÎ model.makeValue("/root/send/cond/detlinfo/medidrugcd", model.getValue("/root/tmp/cond/mediacd/medidrugcd"));//Åõ¾à¾àǰÄÚµå } if(ChkCureAcd.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/tnserracdyn", "Y");//¼öÇ÷¿À·ù·ÎÀÎÇÑ»ç°í¿©ºÎ if(ChkCureAcd.search("08") > -1){ model.makeValue("/root/send/cond/detlinfo/cureacdetcyn", "Y"); //Ä¡·á_Áø·á°ü·Ã»ç°í±âŸ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/cureacdetccnts" , model.getValue("/root/tmp/cond/mediacd/cureacdetccnts") );//Ä¡·á_Áø·á°ü·Ã»ç°í±âŸ»ó¼¼ } } } if(Mdl == "02"){ //Åõ¾à model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/medidrugcd")) ; model.makeValue("/root/send/cond/detlinfo/medidrugnm" , model.getValue("/root/tmp/cond/medidrugnm")) ; model.makeValue("/root/send/cond/detlinfo/abnrdrugcd" , model.getValue("/root/tmp/cond/abnrdrugcd")) ; model.makeValue("/root/send/cond/detlinfo/abnrdrugcdnm" , model.getValue("/root/tmp/cond/abnrdrugcdnm")) ; model.makeValue("/root/send/cond/detlinfo/medidrugvol" , model.getValue("/root/tmp/cond/medidrugvol")) ; model.makeValue("/root/send/cond/detlinfo/abnrdrugvol" , model.getValue("/root/tmp/cond/abnrdrugvol")) ; var chkprcperr = model.getValue("/root/tmp/cond/chkprcperr"); if(chkprcperr != ""){ model.makeValue("/root/send/cond/detlinfo/prcperryn", "Y"); if(chkprcperr.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpyn" , "Y"); if(chkprcperr.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/incgdrugprcpyn" , "Y"); if(chkprcperr.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/duplprcpyn" , "Y"); if(chkprcperr.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/tbooprcpyn" , "Y"); if(chkprcperr.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difdtprcpyn" , "Y"); if(chkprcperr.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdyn", "Y"); if(chkprcperr.search("07") > -1){ model.makeValue("/root/send/cond/detlinfo/prcperretcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/prcperretccnts" , model.getValue("/root/tmp/cond/prcperretccnts")); } if(chkprcperr.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/diffpatprcpyn", "Y"); if(chkprcperr.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/diffdrugyn", "Y"); if(chkprcperr.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/diffpathyn", "Y"); if(chkprcperr.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/difftimeyn", "Y"); if(chkprcperr.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/diffvolyn" , "Y"); if(chkprcperr.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/diffmedicntyn" , "Y"); if(chkprcperr.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/diffintvlyn" , "Y"); if(chkprcperr.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/prcpomityn", "Y"); if(chkprcperr.search("16") > -1) model.makeValue("/root/send/cond/detlinfo/dupprcpyn" , "Y"); if(chkprcperr.search("17") > -1) model.makeValue("/root/send/cond/detlinfo/tbooftprcpyn", "Y"); if(chkprcperr.search("18") > -1) model.makeValue("/root/send/cond/detlinfo/diffdtprcpyn", "Y"); if(chkprcperr.search("19") > -1) model.makeValue("/root/send/cond/detlinfo/verbrelunstdyn" , "Y"); if(chkprcperr.search("20") > -1){ model.makeValue("/root/send/cond/detlinfo/medierrdescyn", "Y"); model.makeValue("/root/send/cond/detlinfo/medierrdesccmt", model.getValue("/root/tmp/cond/medierrdesccmt")); } } var chkprcpdrugerr = model.getValue("/root/tmp/cond/chkprcpdrugerr"); if(chkprcpdrugerr != ""){ model.makeValue("/root/send/cond/detlinfo/prcpdrugerryn" , "Y"); if(chkprcpdrugerr.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpdrugyn", "Y"); if(chkprcpdrugerr.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difdrugprcpyn" , "Y"); if(chkprcpdrugerr.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difvolprcpdrugyn", "Y"); if(chkprcpdrugerr.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/lblcnfmyn", "Y"); if(chkprcpdrugerr.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/drugdelivedelyyn", "Y"); if(chkprcpdrugerr.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/difplcedeliveyn" , "Y"); if(chkprcpdrugerr.search("07") > -1){ model.makeValue("/root/send/cond/detlinfo/prcpdrugerretcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/prcpdrugerretccnts", model.getValue("/root/tmp/cond/prcpdrugerretccnts") ); } } var chkprcpprcs = model.getValue("/root/tmp/cond/chkprcpprcs") ; if(chkprcpprcs != ""){ model.makeValue("/root/send/cond/detlinfo/prcpprcsyn" , "Y"); if(chkprcpprcs.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpprcsyn" ,"Y"); if(chkprcpprcs.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difdrugprcpprcsyn","Y"); if(chkprcpprcs.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difpathprcpprcsyn","Y"); if(chkprcpprcs.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/diftmprcpprcsyn","Y"); if(chkprcpprcs.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difvolprcpprcsyn" ,"Y"); if(chkprcpprcs.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/difmeditimsprcpprcsyn","Y"); if(chkprcpprcs.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/difintvlprcpprcsyn" ,"Y"); if(chkprcpprcs.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/omitprcpprcsyn" ,"Y"); if(chkprcpprcs.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdprcpprcsyn" ,"Y"); if(chkprcpprcs.search("10") > -1){ model.makeValue("/root/send/cond/detlinfo/prcpprcsetcyn" ,"Y"); model.makeValue("/root/send/cond/detlinfo/prcpprcsetccnts", model.getValue("/root/tmp/cond/prcpprcsetccnts") ); } } var chkmedierr = model.getValue("/root/tmp/cond/chkmedierr"); if(chkmedierr != ""){ model.makeValue("/root/send/cond/detlinfo/medierryn", "Y"); if(chkmedierr.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatmedierryn", "Y"); if(chkmedierr.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difdrugmedierryn" , "Y"); if(chkmedierr.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difpathmedierryn" , "Y"); if(chkmedierr.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/diftmmedierryn" , "Y"); if(chkmedierr.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difvolmedierryn" , "Y"); if(chkmedierr.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/diftimsmedierryn" , "Y"); if(chkmedierr.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/difintvlmedierryn", "Y"); if(chkmedierr.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/omitmedierryn" , "Y"); if(chkmedierr.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/discontinudirecaftmedierryn" , "Y"); if(chkmedierr.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/faildilumedierryn", "Y"); if(chkmedierr.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/ownmedierryn" , "Y"); if(chkmedierr.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/injescmedierryn", "Y"); if(chkmedierr.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/incgpathmedierryn", "Y"); if(chkmedierr.search("14") > -1) { model.makeValue("/root/send/cond/detlinfo/medierretcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/medierretccnts" , model.getValue("/root/tmp/cond/medierretccnts") ); } } var chkmediseffc = model.getValue("/root/tmp/cond/chkmediseffc"); if(chkmediseffc != ""){ model.makeValue("/root/send/cond/detlinfo/medierrseffcyn" , "Y"); if(chkmediseffc.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/exermalfcmedierryn" , "Y"); if(chkmediseffc.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/bledyn" , "Y"); if(chkmediseffc.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/brdcadyn", "Y"); if(chkmediseffc.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/taccadyn", "Y"); if(chkmediseffc.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/conpayn" , "Y"); if(chkmediseffc.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/diahyn", "Y"); if(chkmediseffc.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/dzzyn" , "Y"); if(chkmediseffc.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/myathyn" , "Y"); if(chkmediseffc.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/hallucyn", "Y"); if(chkmediseffc.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/highbsugaryn" , "Y"); if(chkmediseffc.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/lowbsugaryn", "Y"); if(chkmediseffc.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/lowbpyn" , "Y"); if(chkmediseffc.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/cscschngyn", "Y"); if(chkmediseffc.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/nephroyn", "Y"); if(chkmediseffc.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/nauseyn" , "Y"); if(chkmediseffc.search("16") > -1) model.makeValue("/root/send/cond/detlinfo/vomityn" , "Y"); if(chkmediseffc.search("17") > -1) model.makeValue("/root/send/cond/detlinfo/neutrpeyn", "Y"); if(chkmediseffc.search("18") > -1) model.makeValue("/root/send/cond/detlinfo/panctoyn", "Y"); if(chkmediseffc.search("19") > -1) model.makeValue("/root/send/cond/detlinfo/thrombyn" , "Y"); if(chkmediseffc.search("20") > -1) model.makeValue("/root/send/cond/detlinfo/purpyn" , "Y"); if(chkmediseffc.search("21") > -1) model.makeValue("/root/send/cond/detlinfo/eruptyn" , "Y"); if(chkmediseffc.search("22") > -1) model.makeValue("/root/send/cond/detlinfo/dyspnyn" , "Y"); if(chkmediseffc.search("23") > -1) model.makeValue("/root/send/cond/detlinfo/sedatyn" , "Y"); if(chkmediseffc.search("24") > -1) model.makeValue("/root/send/cond/detlinfo/sezryn" , "Y"); if(chkmediseffc.search("25") > -1) model.makeValue("/root/send/cond/detlinfo/nystagyn" , "Y"); if(chkmediseffc.search("26") > -1) model.makeValue("/root/send/cond/detlinfo/urinereteyn", "Y"); if(chkmediseffc.search("27") > -1) model.makeValue("/root/send/cond/detlinfo/mucsinfla", "Y"); if(chkmediseffc.search("28") > -1){ model.makeValue("/root/send/cond/detlinfo/medierrseffcetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/medierrseffcetccnts", model.getValue("/root/tmp/cond/medierrseffcetccnts") ); } } var chkarbitrationcnts = model.getValue("/root/tmp/cond/chkarbitrationcnts"); if(chkarbitrationcnts != ""){ model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn", "Y"); if(chkarbitrationcnts.search("01") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationmediyn", "Y"); model.makeValue("/root/send/cond/detlinfo/arbitrationdrugcd", model.getValue("/root/tmp/cond/arbitrationdrugcd")); model.makeValue("/root/send/cond/detlinfo/arbitrationdrugnm", model.getValue("/root/tmp/cond/arbitrationdrugnm")); } if(chkarbitrationcnts.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/volupdtyn", "Y"); if(chkarbitrationcnts.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/medidiscontinu" , "Y"); if(chkarbitrationcnts.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/drugtimsupdtyn" , "Y"); if(chkarbitrationcnts.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y"); if(chkarbitrationcnts.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/obsyn" , "Y"); if(chkarbitrationcnts.search("06") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y"); //±âŸ°¡ ¾øÀ½ model.makeValue("/root/send/cond/detlinfo/arbitrationetccnts", model.getValue("/root/tmp/cond/arbitrationetccnts")); } } } if(Mdl == "03"){ //³«»ó model.makeValue("/root/send/cond/detlinfo/fallplcecd", model.getValue("/root/tmp/cond/fallplcecd")); //³«»óÀå¼ÒÄÚµå model.makeValue("/root/send/cond/detlinfo/fallplcecnts", model.getValue("/root/tmp/cond/fallplcecnts")); //³«»óÀå¼Ò±âŸ »ó¼¼ model.makeValue("/root/send/cond/detlinfo/falldngrasesyn", model.getValue("/root/tmp/cond/falldngrasesyn")); //³«»óÀ§Çè»çÁ¤ ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/drugdump", model.getValue("/root/tmp/cond/drugdump"));// ³«»ó½Ã Åõ¿©¾àǰ ¸ñ·Ï model.makeNode("/root/send/cond/detlinfo/druglist"); copyNodeType("/root/send/cond/detlinfo/druglist","/root/tmp/cond/druglist"); var fallbfpnt = model.getValue("/root/tmp/cond/fallbfpnt" ) if(fallbfpnt != ""){ model.makeValue("/root/send/cond/detlinfo/fallbfpnt" , fallbfpnt); //³«»óÀüÁ¡¼ö } var fallaftpnt = model.getValue("/root/tmp/cond/fallaftpnt" ) if(fallaftpnt != ""){ model.makeValue("/root/send/cond/detlinfo/fallaftpnt" , fallaftpnt); //³«»óÈÄÁ¡¼ö } model.makeValue("/root/send/cond/detlinfo/pvneducyn" , model.getValue("/root/tmp/cond/pvneducyn")); //¿¹¹æ±³À° ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/bodydamcd" , model.getValue("/root/tmp/cond/bodydamcd")); // ³«»óÀ¸·ÎÀÎÇѽÅüÀû¼Õ»ó model.makeValue("/root/send/cond/detlinfo/bodypart" , model.getValue("/root/tmp/cond/bodypart")); // ¼Õ»óµÈ ½ÅüºÎÀ§ var cscsstatyn = model.getValue("/root/tmp/cond/cscsstatyn"); if(cscsstatyn != ""){ model.makeValue("/root/send/cond/detlinfo/cscsstatyn", "Y"); // ÀǽĻóÅ ¿©ºÎ if(cscsstatyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/clryn", "Y"); // ¸í·á ¿©ºÎ if(cscsstatyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/slepyn" , "Y"); // Á¹À½ ¿©ºÎ if(cscsstatyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/chaosyn", "Y"); // È¥µ· ¿©ºÎ if(cscsstatyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/bfcomayn" , "Y"); // ¹ÝÈ¥¼ö ¿©ºÎ if(cscsstatyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/comayn" , "Y"); // È¥¼ö ¿©ºÎ if(cscsstatyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/cscschildyn ", "Y"); // 7¼¼¹Ì¸¸¼Ò¾Æ ¿©ºÎ } var actfuntyn = model.getValue("/root/tmp/cond/actfuntyn"); if(actfuntyn != ""){ model.makeValue("/root/send/cond/detlinfo/actfuntyn", "Y"); // Ȱµ¿/±â´É ¿©ºÎ if(actfuntyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/indcasefuntyn", "Y"); // µ¶¸³È°µ¿ ¿©ºÎ if(actfuntyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/helpneedyn" , "Y"); // µµ¿òÇÊ¿ä ¿©ºÎ if(actfuntyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/actimpsiyn" , "Y"); // Ȱµ¿ºÒ°¡´É ¿©ºÎ } var envcasyn = model.getValue("/root/tmp/cond/envcasyn"); if(envcasyn != ""){ model.makeValue("/root/send/cond/detlinfo/envcasyn", "Y"); // ȯ°æÀû¿äÀÎ ¿©ºÎ if(envcasyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/eqmtfallyn" , "Y"); // side railÀÌ ³»·ÁÁ® À־ ¿©ºÎ if(envcasyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/bedeqmtflxfaluryn" , "Y"); // ħ´ë¹ÙÄû¹Ì°íÁ¤ ¿©ºÎ if(envcasyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/wateryn", "Y"); // ¹Ù´ÚÀǹ°±â ¿©ºÎ if(envcasyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/lightbadyn" , "Y"); // Á¶¸íºÒ·® ¿©ºÎ if(envcasyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/falurfootwryn", "Y"); // ºÎÀûÀýÇÑ½Å¹ß ¿©ºÎ if(envcasyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/supptoolyn" , "Y"); // º¸Á¶±â±¸»ç¿ëÁß ¿©ºÎ if(envcasyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/healcaretoolyn", "Y"); // ÀÇ·á±â±¸¹×°ü·Ã ¿©ºÎ if(envcasyn.search("08") > -1) { model.makeValue("/root/send/cond/detlinfo/envcasetcyn" , "Y");// ȯ°æÀû¿äÀα⟠¿©ºÎ model.makeValue("/root/send/cond/detlinfo/envcasetccntsyn" , model.getValue("/root/tmp/cond/envcasetccntsyn") ) ; // ȯ°æÀû¿äÀα⟠»ó¼¼} } } var bodystatyn = model.getValue("/root/tmp/cond/bodystatyn"); if(bodystatyn != ""){ model.makeValue("/root/send/cond/detlinfo/bodystatyn", "Y"); // ½Åü»óÅ ¿©ºÎ if(bodystatyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/dzzyn", "Y"); // ¾îÁö·¯¿ò ¿©ºÎ if(bodystatyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/paralyn", "Y"); // ¸¶ºñ ¿©ºÎ if(bodystatyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/weakyn" , "Y"); // Àü½Å¼è¾à ¿©ºÎ if(bodystatyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/msclabltyfallyn" , "Y"); // ±Ù·ÂÀúÇÏ ¿©ºÎ if(bodystatyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/workdifyn" , "Y"); // º¸ÇàÀå¾Ö ¿©ºÎ if(bodystatyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/posturelowbpyn", "Y"); // üÀ§¼ºÀúÇ÷¾Ð ¿©ºÎ if(bodystatyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/equbrmhandcapyn" , "Y"); // ÆòÇüÀå¾Ö ¿©ºÎ if(bodystatyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/emothandcapyn" , "Y"); // Á¤¼­Àå¾Ö ¿©ºÎ if(bodystatyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/visacthandcapyn" , "Y"); // ½Ã·ÂÀå¾Ö ¿©ºÎ if(bodystatyn.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/slephandcapyn" , "Y"); // ¼ö¸éÀå¾Ö ¿©ºÎ if(bodystatyn.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/awarhandcapyn" , "Y"); // ÀÎÁöÀå¾Ö ¿©ºÎ if(bodystatyn.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/orgnchildyn", "Y"); // ½Åü»óÅÂ7¼¼¹Ì¸¸¼Ò¾Æ ¿©ºÎ if(bodystatyn.search("13") > -1){ model.makeValue("/root/send/cond/detlinfo/tmedyn" , "Y");// ¾à¹°º¹¿ë ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/medidrugcd") ) ; // º¹¿ë¾à¹°ÄÚµå } if(bodystatyn.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/orgnfactrelyn" , "Y");// ½Åü»çÇ×ÇØ´ç»çÇ×¾øÀ½ ¿©ºÎ if(bodystatyn.search("15") > -1) { model.makeValue("/root/send/cond/detlinfo/bodystatetcyn" , "Y"); // ½Åü»óÅ ±âŸ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/bodystatetccnts" , model.getValue("/root/tmp/cond/bodystatetccnts") ) ; // ½Åü»óÅ ±âŸ»ó¼¼ } } var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn"); if(arbitrationcntsyn != ""){ model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn", "Y"); //Áï°¢ÀûÁßÀç³»¿ë ¿©ºÎ if(arbitrationcntsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/obsyn" , "Y"); //°üÂû ¿©ºÎ if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/drssyn", "Y"); //µå·¹½Ì ¿©ºÎ if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/sutryn", "Y"); //ºÀÇÕ ¿©ºÎ if(arbitrationcntsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/drugcureyn", "Y"); //¾à¹°Ä¡·á ¿©ºÎ if(arbitrationcntsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/physiccureyn" , "Y"); //¹°¸®Ä¡·á ¿©ºÎ if(arbitrationcntsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/opyn", "Y"); //¼ö¼ú ¿©ºÎ if(arbitrationcntsyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/cureyn" , "Y"); //Ä¡·áÇÏÁö¾ÊÀ½ ¿©ºÎ if(arbitrationcntsyn.search("07") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationcntsetcyn" , "Y");//Áï°¢ÀûÁßÀç³»¿ë±âŸ ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/arbitrationetccnts" , model.getValue("/root/tmp/cond/arbitrationetccnts") ) ; // Áï°¢ÀûÁõÀç³»¿ë±âŸ »ó¼¼ } } } if(Mdl == "04"){ //¼öÇ÷ model.makeValue("/root/send/cond/detlinfo/patrh", model.getValue("/root/tmp/cond/patrh")); model.makeValue("/root/send/cond/detlinfo/patbtype" , model.getValue("/root/tmp/cond/patbtype")); model.makeValue("/root/send/cond/detlinfo/tnsrh", model.getValue("/root/tmp/cond/tnsrh")); model.makeValue("/root/send/cond/detlinfo/tnsbtype" , model.getValue("/root/tmp/cond/tnsbtype")); var prcperryn = model.getValue("/root/tmp/cond/prcperryn"); if(prcperryn != ""){ model.makeValue("/root/send/cond/detlinfo/prcperryn", "Y"); if(prcperryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpyn" , "Y"); if(prcperryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/incgblodprcpyn" , "Y"); if(prcperryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difddprcpyn", "Y"); if(prcperryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdyn" , "Y"); if(prcperryn.search("05") > -1){ model.makeValue("/root/send/cond/detlinfo/prcperretcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/prcperretccnts", model.getValue("/root/tmp/cond/prcperretccnts")); } } var brodbankerryn = model.getValue("/root/tmp/cond/brodbankerryn"); if(brodbankerryn != ""){ model.makeValue("/root/send/cond/detlinfo/brodbankerryn", "Y"); if(brodbankerryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difbrodproddeliveyn" , "Y"); if(brodbankerryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difbtypedeliveyn" , "Y"); if(brodbankerryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/keeperryn" , "Y"); if(brodbankerryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/prepdelyyn", "Y"); if(brodbankerryn.search("05") > -1){ model.makeValue("/root/send/cond/detlinfo/brodbankerretcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/brodbankerretccnts" , model.getValue("/root/tmp/cond/brodbankerretccnts")); } } var prcpprcsyn = model.getValue("/root/tmp/cond/prcpprcsyn"); if(prcpprcsyn != ""){ model.makeValue("/root/send/cond/detlinfo/prcpprcsyn", "Y"); if(prcpprcsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifpatyn" , "Y"); if(prcpprcsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifbrodprodyn" , "Y"); if(prcpprcsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifbtypeyn", "Y"); if(prcpprcsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdiftmyn" , "Y"); if(prcpprcsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifvolyn" , "Y"); if(prcpprcsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/prcpmismatcherryn" , "Y"); if(prcpprcsyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/prcpfailcmntunstdyn" , "Y"); if(prcpprcsyn.search("08") > -1){ model.makeValue("/root/send/cond/detlinfo/prcpprcsetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/prcpprcsetccnts" , model.getValue("/root/tmp/cond/prcpprcsetccnts") ) ; } } var tnsprcserryn = model.getValue("/root/tmp/cond/tnsprcserryn"); if(tnsprcserryn != ""){ model.makeValue("/root/send/cond/detlinfo/tnsprcserryn", "Y"); if(tnsprcserryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifpatyn", "Y"); if(tnsprcserryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifbrodprodyn" , "Y"); if(tnsprcserryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifbtypeyn", "Y"); if(tnsprcserryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdiftmyn", "Y"); if(tnsprcserryn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifvolyn", "Y"); if(tnsprcserryn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsomityn" , "Y"); if(tnsprcserryn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsinfserryn" , "Y"); if(tnsprcserryn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsseterryn", "Y"); if(tnsprcserryn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsspderryn", "Y"); if(tnsprcserryn.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsoutflyn", "Y"); if(tnsprcserryn.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsobsomityn" , "Y"); if(tnsprcserryn.search("12") > -1){ model.makeValue("/root/send/cond/detlinfo/tnsprcsetcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/tnsprcsetccnts" , model.getValue("/root/tmp/cond/tnsprcsetccnts") ) ; } } var tnsseffcyn = model.getValue("/root/tmp/cond/tnsseffcyn"); if(tnsseffcyn != ""){ model.makeValue("/root/send/cond/detlinfo/tnsseffcyn", "Y"); if(tnsseffcyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/perspryn", "Y"); if(tnsseffcyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/rigoryn" , "Y"); if(tnsseffcyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/chstpainyn" , "Y"); if(tnsseffcyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/abdmnpainyn" , "Y"); if(tnsseffcyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/shockyn" , "Y"); if(tnsseffcyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/blodcoaguhandcapyn" , "Y"); if(tnsseffcyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/dyspnyn" , "Y"); if(tnsseffcyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/hematyn" , "Y"); if(tnsseffcyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/pyrexyn" , "Y"); if(tnsseffcyn.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/lowbpyn" , "Y"); if(tnsseffcyn.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/highbpyn", "Y"); if(tnsseffcyn.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/urticayn", "Y"); if(tnsseffcyn.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/eruptyn" , "Y"); if(tnsseffcyn.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/anpshockyn" , "Y"); if(tnsseffcyn.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/lungedemayn" , "Y"); if(tnsseffcyn.search("16") > -1){ model.makeValue("/root/send/cond/detlinfo/tnsseffcetcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/tnsseffcetccnts" , model.getValue("/root/tmp/cond/tnsseffcetccnts") ) ; } } var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn"); if(arbitrationcntsyn != ""){ model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn", "Y"); if(arbitrationcntsyn.search("01") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationdrugcd" , model.getValue("/root/tmp/cond/arbitrationdrugcd") ) ; model.makeValue("/root/send/cond/detlinfo/arbitrationdrugnm" , model.getValue("/root/tmp/cond/arbitrationdrugnm") ) ; model.makeValue("/root/send/cond/detlinfo/arbitrationmediyn", "Y"); } if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/tnsdiscontinuyn" , "Y"); if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y"); if(arbitrationcntsyn.search("04") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn", "Y"); model.makeValue("/root/send/cond/detlinfo/arbitrationetccntsyn" , model.getValue("/root/tmp/cond/arbitrationetccntsyn") ) ; } } } if(Mdl == "05"){ //Áø´Üº´¸®¿µ»ó°Ë»ç{ model.makeValue("/root/send/cond/detlinfo/testreadnm", model.getValue("/root/tmp/cond/testreadnm")) ; var prcperryn = model.getValue("/root/tmp/cond/prcperryn"); if(prcperryn != ""){ model.makeValue("/root/send/cond/detlinfo/prcperryn", "Y"); if(prcperryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpyn" , "Y"); if(prcperryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difpartprcpyn" , "Y"); if(prcperryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/diftestprcpyn" , "Y"); if(prcperryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/duplprcpyn", "Y"); if(prcperryn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difddprcpyn" , "Y"); if(prcperryn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdyn" , "Y"); if(prcperryn.search("07") > -1){ model.makeValue("/root/send/cond/detlinfo/prcperretcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/prcperretccnts", model.getValue("/root/tmp/cond/prcperretccnts")); } } var prcpprcsyn = model.getValue("/root/tmp/cond/prcpprcsyn"); if(prcpprcsyn != ""){ model.makeValue("/root/send/cond/detlinfo/prcpprcsyn", "Y"); if(prcpprcsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifpatyn", "Y"); if(prcpprcsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifpartyn" , "Y"); if(prcpprcsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdiftestyn" , "Y"); if(prcpprcsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifddyn", "Y"); if(prcpprcsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/prcpfailcmntunstdyn" , "Y"); if(prcpprcsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/prcpseffccnfmomityn" , "Y"); if(prcpprcsyn.search("07") > -1){ model.makeValue("/root/send/cond/detlinfo/prcpprcsetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/prcpprcsetccnts", model.getValue("/root/tmp/cond/prcpprcsetccnts")); } } var testprcsyn = model.getValue("/root/tmp/cond/testprcsyn"); if(testprcsyn != ""){ //9¹ø Ç׸ñ ¾øÀ½. model.makeValue("/root/send/cond/detlinfo/testprcsyn", "Y"); if(testprcsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/testdifpatyn" , "Y"); if(testprcsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/testdifpartyn", "Y"); if(testprcsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/testdiftestyn", "Y"); if(testprcsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/testdifddyn", "Y"); if(testprcsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/testempseffcyn" , "Y"); if(testprcsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/testcompuhandcapyn" , "Y"); if(testprcsyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/testfailcmntunstdyn", "Y"); if(testprcsyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/testdyeseffcyn" , "Y"); if(testprcsyn.search("10") > -1){ model.makeValue("/root/send/cond/detlinfo/testprcsetcyn" , "Y") model.makeValue("/root/send/cond/detlinfo/testprcsetccnts", model.getValue("/root/tmp/cond/testprcsetccnts")); } } var tranreptyn = model.getValue("/root/tmp/cond/tranreptyn"); if(tranreptyn != ""){ model.makeValue("/root/send/cond/detlinfo/tranreptyn", "Y"); if(tranreptyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/spcmissyn" , "Y"); if(tranreptyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/spcexchyn" , "Y"); if(tranreptyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/testbarcderryn" , "Y"); if(tranreptyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/spctrandelyyn" , "Y"); if(tranreptyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/spcdiftranyn", "Y"); if(tranreptyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/rsltreptyn", "Y"); if(tranreptyn.search("06") > -1){ model.makeValue("/root/send/cond/detlinfo/tranreptetcyn" , "Y") model.makeValue("/root/send/cond/detlinfo/tranreptetccnts", model.getValue("/root/tmp/cond/tranreptetccnts")); } if(tranreptyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/testbarcderryn", "Y"); } var testseffcyn = model.getValue("/root/tmp/cond/testseffcyn"); if(testseffcyn != ""){ model.makeValue("/root/send/cond/detlinfo/testseffcyn", "Y"); if(testseffcyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/urticayn" , "Y"); if(testseffcyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/dyspnyn", "Y"); if(testseffcyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/lowbpyn", "Y"); if(testseffcyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/vomityn", "Y"); if(testseffcyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/bledyn" , "Y"); if(testseffcyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/cscslowyn", "Y"); if(testseffcyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/dethyn" , "Y"); if(testseffcyn.search("08") > -1){ model.makeValue("/root/send/cond/detlinfo/testseffcetcyn", "Y") model.makeValue("/root/send/cond/detlinfo/testseffcetccntsyn" , model.getValue("/root/tmp/cond/testseffcetccntsyn")); } } var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn"); if(arbitrationcntsyn != ""){ model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn", "Y"); if(arbitrationcntsyn.search("01") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationmediyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/medidrugcd")); } if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/testdiscontinuyn", "Y"); if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/rpttestyn" , "Y"); if(arbitrationcntsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y"); if(arbitrationcntsyn.search("05") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y") model.makeValue("/root/send/cond/detlinfo/arbitrationetccntsyn" , model.getValue("/root/tmp/cond/arbitrationetccntsyn")); } } } if(Mdl == "06"){ //ÀÓ»ó ±âŸ model.makeValue("/root/send/cond/detlinfo/acptno", model.getValue("/root/tmp/cond/acptno")); model.makeValue("/root/send/cond/detlinfo/clincetckind", model.getValue("/root/tmp/cond/clincetckind")); model.makeValue("/root/send/cond/detlinfo/burngrdecd", model.getValue("/root/tmp/cond/burngrdecd")); model.makeValue("/root/send/cond/detlinfo/clincetccnts", model.getValue("/root/tmp/cond/clincetccnts")); var burnpart = model.getValue("/root/tmp/cond/burnpart"); if(burnpart != ""){ if(burnpart.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/headyn" , "Y"); if(burnpart.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/faceyn" , "Y"); if(burnpart.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/neckyn" , "Y"); if(burnpart.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/armyn" , "Y"); if(burnpart.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/handyn" , "Y"); if(burnpart.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/trunkyn" , "Y"); if(burnpart.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/hipyn" , "Y"); if(burnpart.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/prnlregyn" , "Y"); if(burnpart.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/legyn" , "Y"); if(burnpart.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/footyn" , "Y"); if(burnpart.search("11") > -1){ model.makeValue("/root/send/cond/detlinfo/burnpartetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/burnpartetccnts", model.getValue("/root/tmp/cond/burnpartetccnts")); } model.makeValue("/root/send/cond/detlinfo/burnscop1", model.getValue("/root/tmp/cond/burnscop1")); model.makeValue("/root/send/cond/detlinfo/burnscop2", model.getValue("/root/tmp/cond/burnscop2")); } var burncas = model.getValue("/root/tmp/cond/burncas"); if(burncas != ""){ if(burncas.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/wateryn", "Y"); if(burncas.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/cauteryn" , "Y"); if(burncas.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/dfibrilyn" , "Y"); if(burncas.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/chemiyn", "Y"); if(burncas.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/fireyn" , "Y"); if(burncas.search("06") > -1){ model.makeValue("/root/send/cond/detlinfo/burncasetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/burncasetccnts", model.getValue("/root/tmp/cond/burncasetccnts")); } } var meal = model.getValue("/root/tmp/cond/meal"); if(meal != ""){ if(meal.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/mealprcperryn" , "Y"); if(meal.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/mealomityn", "Y"); if(meal.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difmealyn" , "Y"); if(meal.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/badmealyn" , "Y"); if(meal.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/suplmealerryn" , "Y"); if(meal.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/suplmealdelyyn" , "Y"); if(meal.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/matrkeepprobyn" , "Y"); if(meal.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/cookprcsprobyn" , "Y"); if(meal.search("09") > -1) { model.makeValue("/root/send/cond/detlinfo/mealetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/mealetccnts", model.getValue("/root/tmp/cond/mealetccnts")); } } var sucid = model.getValue("/root/tmp/cond/sucid"); if(sucid != ""){ if(sucid.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/falldwnyn" , "Y"); if(sucid.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/hanginyn" , "Y"); if(sucid.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/selfmulyn" , "Y"); if(sucid.search("04") > -1){ model.makeValue("/root/send/cond/detlinfo/sucidetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/sucidetccnts", model.getValue("/root/tmp/cond/sucidetccnts")); } } var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn"); if(arbitrationcntsyn != ""){ model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn", "Y"); if(arbitrationcntsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/obsyn" , "Y"); if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/drssyn", "Y"); if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/sutryn", "Y"); if(arbitrationcntsyn.search("04") > -1) { model.makeValue("/root/send/cond/detlinfo/drugcureyn", "Y"); model.makeValue("/root/send/cond/detlinfo/arbitrationdrugcd", model.getValue("/root/tmp/cond/arbitrationdrugcd")); } if(arbitrationcntsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/opyn", "Y"); if(arbitrationcntsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/repetsuplmealyn" , "Y"); if(arbitrationcntsyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/suplmealdiscontinuyn" , "Y"); if(arbitrationcntsyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn", "Y"); if(arbitrationcntsyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/cureyn", "Y"); if(arbitrationcntsyn.search("10") > -1){ model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/arbitrationetccntsyn", model.getValue("/root/tmp/cond/arbitrationetccntsyn")); } } } } if(Lrg == "02"){ //ºñÀÓ»ó model.makeValue("/root/send/cond/detlinfo/genrplce", model.getValue("/root/tmp/cond/genrplce")); model.makeValue("/root/send/cond/detlinfo/etcreptcnts", model.getValue("/root/tmp/cond/etcreptcnts")); model.makeValue("/root/send/cond/detlinfo/tretinstcd", model.getValue("/root/tmp/cond/tretinstcd")); model.makeValue("/root/send/cond/detlinfo/lossyn", model.getValue("/root/tmp/cond/lossyn")); model.makeValue("/root/send/cond/detlinfo/locktmcd", model.getValue("/root/tmp/cond/locktmcd")); model.makeValue("/root/send/cond/detlinfo/locktmetccnts", model.getValue("/root/tmp/cond/locktmetccnts")); model.makeValue("/root/send/cond/detlinfo/handcaptermcd", model.getValue("/root/tmp/cond/handcaptermcd")); model.makeValue("/root/send/cond/detlinfo/lossitem", model.getValue("/root/tmp/cond/lossitem")); model.makeValue("/root/send/cond/detlinfo/tranyn", model.getValue("/root/tmp/cond/tranyn")); model.makeValue("/root/send/cond/detlinfo/trannotoccrplce", model.getValue("/root/tmp/cond/trannotoccrplce")); model.makeValue("/root/send/cond/detlinfo/actpsn", model.getValue("/root/tmp/cond/actpsn")); model.makeValue("/root/send/cond/detlinfo/losspsn", model.getValue("/root/tmp/cond/losspsn")); model.makeValue("/root/send/cond/detlinfo/actpid", model.getValue("/root/tmp/cond/actpid")); model.makeValue("/root/send/cond/detlinfo/losspid", model.getValue("/root/tmp/cond/losspid")); if (model.getValue("/root/tmp/cond/losscnt") != ""){ model.makeValue("/root/send/cond/detlinfo/losscnt" , model.getValue("/root/tmp/cond/losscnt")); } var chkkind = model.getValue("/root/tmp/cond/chkkind"); if(chkkind != ""){ if(chkkind.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/oxydiscontinuyn", "Y"); if(chkkind.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/vacumdiscontinuyn" , "Y"); if(chkkind.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/compryn", "Y"); if(chkkind.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/gasdiscontinuyn", "Y"); if(chkkind.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/electcdiscontinuyn" , "Y"); } var patlossyn = model.getValue("/root/tmp/cond/patlossyn"); if(patlossyn != ""){ model.makeValue("/root/send/cond/detlinfo/patlossyn", "Y"); if(patlossyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/artficrespdiscontinuyn" , "Y"); if(patlossyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/patoxydiscontinuyn" , "Y"); if(patlossyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/anstdiscontinuyn" , "Y"); if(patlossyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/lossnotoccryn", "Y"); if(patlossyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/lossetcyn" , "Y"); } } } /** * @------------------------------------------------------------------------------------------------------ * @desc : ¾ÈÀü»ç°í °ü¸® * @param : * @------------------------------------------------------------------------------------------------------ */ function SetAdminInfo(){ } /** * @------------------------------------------------------------------------------------------------------ * @desc : ¾ÈÀü»ç°í ÅëÇÕº¸°í Ãâ·Â * @param : * @------------------------------------------------------------------------------------------------------ */ function SetPrint(chkFlag){ var state1 = ""; var state2 = ""; var state3 = ""; var state4 = ""; var print = model.getValue("/root/init/print"); if(print.search("01") > -1) { state1 = "10"; } if(print.search("02") > -1) { state2 = "20"; } if(print.search("03") > -1) { state3 = "30"; } if(print.search("99") > -1) { state4 = "40"; } // alert(state); if(model.getValue("/root/main/condition/acptno") == ""){ messageBox("º¸°íÀÚ ÀÛ¼ºÀÌ µÇÁö¾ÊÀº º¸°í¼­ÀÔ´Ï´Ù. ÀÛ¼º ÈÄ Ãâ·ÂÇϽʽÿä.","E999"); return; } model.setValue("/root/send/acptno", model.getValue("/root/main/condition/acptno")); submit("TRMQR00102"); var lrg = model.getValue("/root/tmp/reptinfo/recinfo/lrg"); var mdl = model.getValue("/root/tmp/reptinfo/recinfo/mdl"); model.removenode("/root/send/report/recinfo"); model.removenode("/root/send/report/detlinfo"); model.makeNode("/root/send/report/recinfo"); model.makeNode("/root/send/report/detlinfo"); if( anonybtn == "Y"){ model.setValue("/root/tmp/reptinfo/recinfo/reptid", ""); model.setValue("/root/tmp/reptinfo/recinfo/reptnm", ""); model.setValue("/root/tmp/reptinfo/recinfo/reptjobkindtext", ""); model.setValue("/root/tmp/reptinfo/recinfo/reptdutdepttext", ""); model.setValue("/root/tmp/reptinfo/recinfo/reptcntctel", ""); model.setValue("/root/tmp/reptinfo/recinfo/reptdutyearno", ""); } copyNodeType("/root/send/report/recinfo", "/root/tmp/reptinfo/recinfo", "after"); //if( state == "10" || state == "40" ){ if( state1 == "10" || state4 == "40" ){ if(chkFlag =="Y"){ exeReportPreview("RPMQR01600", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01600", "XMLSTR", "/root/send/report"); } }else if( state1 == "10" && state2 == "20"){ if(chkFlag =="Y"){ exeReportPreview("RPMQR01600", "XMLSTR" , "/root/send/report" , "" , "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01600", "XMLSTR", "/root/send/report"); } }else if( state1 == "10" && state2 == "20" && state3 == "30"){ if(chkFlag =="Y"){ exeReportPreview("RPMQR01600", "XMLSTR" , "/root/send/report" , "" , "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01600", "XMLSTR", "/root/send/report"); } }else if( state1 == "10" && state2 == "20" && state3 == "30" && state4 == "40"){ if(chkFlag =="Y"){ exeReportPreview("RPMQR01600", "XMLSTR" , "/root/send/report" , "" , "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01600", "XMLSTR", "/root/send/report"); } } //if ( state == "20" || state == "40" ){ if ( state2 == "20" || state4 == "40" ){ if(lrg == "01") { if(mdl == "01"){ //Áø·á ¹× Ä¡·á copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/detlinfo", "after"); if(chkFlag =="Y"){ exeReportPreview("RPMQR01601", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01601", "XMLSTR", "/root/send/report"); } } if(mdl == "02"){ // Åõ¾à copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/mediinfo", "after"); if(chkFlag =="Y"){ exeReportPreview("RPMQR01602", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01602", "XMLSTR", "/root/send/report"); } } if(mdl == "03"){ // ³«»ó copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/fallinfo", "after"); if(chkFlag =="Y"){ exeReportPreview("RPMQR01603", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01603", "XMLSTR", "/root/send/report"); } } if(mdl == "04"){ // ¼öÇ÷ copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/tnsinfo", "after"); if(chkFlag =="Y"){ exeReportPreview("RPMQR01604", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01604", "XMLSTR", "/root/send/report"); } } if(mdl == "05"){ // Áø´Ü/º´¸®/¿µ»ó/ÇÙÀÇÇÐ °Ë»ç copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/diagtestinfo", "after"); if(chkFlag =="Y"){ exeReportPreview("RPMQR01605", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01605", "XMLSTR", "/root/send/report"); } } if(mdl == "06"){ // ±âŸ copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/etcinfo", "after"); if(chkFlag =="Y"){ exeReportPreview("RPMQR01606", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01606", "XMLSTR", "/root/send/report"); } } } if(lrg == "02") { //ºñÀÓ»ó copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/nonclincinfo", "after"); if(mdl == "01"){ //È­Àç if(chkFlag =="Y"){ exeReportPreview("RPMQR01607", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01607", "XMLSTR", "/root/send/report"); } } if(mdl == "02"){ //ÀÇ·á°¡½º/ÀÇ·áÀü±â if(chkFlag =="Y"){ exeReportPreview("RPMQR01608", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01608", "XMLSTR", "/root/send/report"); } } if(mdl == "03"){ //Àü»êÀå¾Ö if(chkFlag =="Y"){ exeReportPreview("RPMQR01609", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01609", "XMLSTR", "/root/send/report"); } } if(mdl == "04"){ //µµ³­ if(chkFlag =="Y"){ exeReportPreview("RPMQR01610", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01610", "XMLSTR", "/root/send/report"); } } if(mdl == "05"){ //Å»¿ø if(chkFlag =="Y"){ exeReportPreview("RPMQR01611", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01611", "XMLSTR", "/root/send/report"); } } if(mdl == "06"){ //Æø·Â/³­µ¿/¼ºÆø·Â if(chkFlag =="Y"){ exeReportPreview("RPMQR01612", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01612", "XMLSTR", "/root/send/report"); } } if(mdl == "07"){ //±âŸ if(chkFlag =="Y"){ exeReportPreview("RPMQR01613", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01613", "XMLSTR", "/root/send/report"); } } } } //if ( state3 == "30" || state4 == "40" ){ if ( state3 == "30" || state4 == "40" ){ if(chkFlag =="Y"){ exeReportPreview("RPMQR01614", "XMLSTR" , "/root/send/report" , "", "true" , "", "", "", "", "true"); // ¹Ì¸®º¸±â ±â´É ¾øÀ½ }else{ exeReportPreview("RPMQR01614", "XMLSTR", "/root/send/report"); } } if ( state1 == "" && state2 == "" && state3 == "" && state4 == "" && state1 == null && state2 == null && state3 == null && state4 == null ){ messageBox("Ãâ·ÂÇÒ ³»¿ëÀ»", "C002"); return; } } /** * @------------------------------------------------------------------------------------------------------ * @desc : ÀÍ¸íº¸°í½Ã º¸°íÀÚ Á¤º¸ µî·Ï °¨Ãß±â * @param : * @------------------------------------------------------------------------------------------------------ */ function fCheckgrade(){ if(anonybtn=="Y"){ model.makeValue("/root/temp/reptid", model.getValue("/root/main/condition/reptid")); model.makeValue("/root/temp/reptnm", model.getValue("/root/main/condition/reptnm")); model.makeValue("/root/temp/reptjobkindtext", model.getValue("/root/main/condition/reptjobkindtext")); model.makeValue("/root/temp/reptdutdepttext", model.getValue("/root/main/condition/reptdutdepttext")); model.makeValue("/root/temp/reptcntctel", model.getValue("/root/main/condition/reptcntctel")); model.makeValue("/root/temp/reptdutyearno", model.getValue("/root/main/condition/reptdutyearno")); model.setValue("/root/main/condition/reptid", ""); model.setValue("/root/main/condition/reptnm", ""); model.setValue("/root/main/condition/reptjobkindtext", ""); model.setValue("/root/main/condition/reptdutdepttext", ""); model.setValue("/root/main/condition/reptcntctel", ""); model.setValue("/root/main/condition/reptdutyearno", ""); }else{ model.setValue("/root/main/condition/reptid", model.getValue("/root/temp/reptid")); model.setValue("/root/main/condition/reptnm", model.getValue("/root/temp/reptnm")); model.setValue("/root/main/condition/reptjobkindtext", model.getValue("/root/temp/reptjobkindtext")); model.setValue("/root/main/condition/reptdutdepttext", model.getValue("/root/temp/reptdutdepttext")); model.setValue("/root/main/condition/reptcntctel", model.getValue("/root/temp/reptcntctel")); model.setValue("/root/main/condition/reptdutyearno", model.getValue("/root/temp/reptdutyearno")); } model.refresh(); } /** * @------------------------------------------------------------------------------------------------------ * @desc : ¾ÈÀü»ç°í´Ü°è Ŭ¸¯½Ã À̺¥Æ® ( ÀÍ¸íº¸°í üũ ) * @param : * @------------------------------------------------------------------------------------------------------ */ function fChangegrade(){ var befserdiaggrde = model.getValue("/root/temp/befserdiaggrde"); //·Îµå´ç½Ã ¾ÈÀüº¸°í´Ü°è var serdiaggrde = model.getValue("/root/main/condition/serdiaggrde");//ÇöÀç ¾ÈÀüº¸°í´Ü°è if(befserdiaggrde != "11" && serdiaggrde == "11" && anonybtn == "N"){ if(messageBox("±ÙÁ¢¿À·ù´Â ÀÍ¸íº¸°í°¡ °¡´ÉÇÕ´Ï´Ù. ÀÍ¸íº¸°í¸¦ Ŭ¸¯ÇÏ´Â °æ¿ì ÀÇ·áÁú°ü¸®½Ç¿¡¼­¸¸ Á¶È¸°¡ °¡´ÉÇÕ´Ï´Ù. ÀÍ¸íº¸°í ÇϽðڽÀ´Ï±î?", "Q999")=="6"){ anonybtn = "Y"; }else{ anonybtn = "N"; } model.makeValue("/root/temp/befserdiaggrde", model.getValue("/root/main/condition/serdiaggrde")); }else if( befserdiaggrde == "11" && serdiaggrde != "11" && anonybtn == "Y" ){ if(messageBox("ÀÍ¸í º¸°í¸¦ ÇØÁ¦ÇϽðڽÀ´Ï±î?", "Q999")=="6"){ anonybtn = "N"; }else{ model.setValue("/root/main/condition/serdiaggrde", befserdiaggrde); anonybtn = "Y"; } model.makeValue("/root/temp/befserdiaggrde", model.getValue("/root/main/condition/serdiaggrde")); } model.refresh(); } /** * @------------------------------------------------------------------------------------------------------ * @desc : º´½Ç¸®½ºÆ® - º´µ¿¿¡ ÇØ´çÇÏ´Â º´½ÇÄÚµå Á¶È¸ * @param : * @------------------------------------------------------------------------------------------------------ */ function reqGetRoomList(wardcd){ model.removeNodeset("/root/send/reqdata/wardcd"); model.makeValue("/root/send/reqdata/wardcd", wardcd); submit("TRMMO04107"); } /** * @------------------------------------------------------------------------------------------------------ * @desc : * @param : * @------------------------------------------------------------------------------------------------------ */ function reqGetAccidentStepList(){ submit("TRMQR00104"); } /** * @------------------------------------------------------------------------------------------------------ * @desc : È­¸éº° Ãâ·Â¹° * @param : * @------------------------------------------------------------------------------------------------------ */ function fPrint(){ } /** * @--------------------------------------------------- * @desc : ¼ºº°Äڵ忡 µû¶ó ¼ºº° ÅØ½ºÆ² ¼³Á¤ÇÑ´Ù. * @param : * @return : * @--------------------------------------------------- */ function setTrgtSex(trgsex){ // alert("setTrgtSex"); if(trgsex == "M"){ model.setValue("/root/main/condition/trgtsextext", "³²ÀÚ"); }else if(trgsex == "F"){ model.setValue("/root/main/condition/trgtsextext", "¿©ÀÚ"); } }