var checkgrade="true"; var pushbutton="false"; var daychk = ""; var anonybtn = "N"; /** * @--------------------------------------------------- * @desc : SMMQR00100_¾ÈÀü»ç°íÅëÇÕº¸°í°¡ loadµÉ¶§ ½ÇÇàµÇ´Â function * @param : * @return : * @--------------------------------------------------- */ function fInitialize(){ iviewer_rept.attribute("border-style") = "hidden"; var lrg = model.getValue("/root/main/condition/lrg"); var ano = ""; var daychk = ""; 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); model.makeValue("/root/temp/btn_value", "ÀÍ¸íº¸°í"); 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")); } } // º¸°íÀÚÁ¤º¸ ¼³Á¤ 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/lrg", lrg); model.setValue("/root/main/condition/mdl", mdl); model.setValue("/root/main/condition/inwritingyn" , model.getValue("/root/tmp/reptinfo/recinfo/inwritingyn")); model.setValue("/root/main/condition/trgtsex" , trgsex); 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.setValue("/root/main/condition/trgtmanflag" , model.getValue("/root/tmp/reptinfo/recinfo/trgtmanflag" )); 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/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/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/detlcnts_how" , model.getValue("/root/tmp/reptinfo/recinfo/detlcnts_how" )); model.setValue("/root/main/condition/detlcnts_why" , model.getValue("/root/tmp/reptinfo/recinfo/detlcnts_why" )); model.setValue("/root/main/condition/erracdyn" , model.getValue("/root/tmp/reptinfo/recinfo/erracdyn" )); 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")); var trgtorddept = model.getValue("/root/tmp/reptinfo/recinfo/trgtorddept"); model.setValue("/root/main/condition/trgtorddept" , trgtorddept); model.setValue("/root/main/condition/trgtwardcd" , model.getValue("/root/tmp/reptinfo/recinfo/trgtwardcd")); if(model.getValue("/root/tmp/reptinfo/recinfo/anonyyn")=='Y'){ //ÀÍ¸íº¸°í checkgrade="false"; fCheckgrade(); pushbutton="true"; btn_anony.attribute("class")="btn2_letter6"; model.setValue("/root/temp/btn_value", "ÀÍ¸íº¸°íÇØÁ¦"); // btn_anony.disabled="false"; } if(model.getValue("/root/tmp/reptinfo/recinfo/serdiaggrde") < "4"){ //¾ÈÀü»ç°í´Ü°è(M0426) btn_anony.disabled="false"; }else{ btn_anony.disabled="true"; } 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/trgtrrgstno1" , model.getValue("/root/tmp/reptinfo/recinfo/trgtrrgstno1" )); model.setValue("/root/main/condition/trgtrrgstno2" , model.getValue("/root/tmp/reptinfo/recinfo/trgtrrgstno2" )); 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/condition/prgnoacdrsltcnts" , model.getValue("/root/tmp/reptinfo/recinfo/prgnoacdrsltcnts")); model.setValue("/root/main/condition/imprvactcnts" , model.getValue("/root/tmp/reptinfo/recinfo/imprvactcnts" )); model.setValue("/root/main/condition/rsltyn" , model.getValue("/root/tmp/reptinfo/recinfo/rsltyn" )); model.setValue("/root/main/condition/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)); //¿¹ÃøµÇ´Â »ç°í°á°úÁß '±âŸ'°¡ÀÖÀ¸¸é TextAreafmf display ÇØÁØ´Ù var chkprgnoacdrslt = model.getValue("/root/tmp/reptinfo/recinfo/chkprgnoacdrslt"); model.setValue("/root/main/chkcond/chkprgnoacdrslt" , chkprgnoacdrslt); if(chkprgnoacdrslt.search("06") > -1){ tar_prgnoacdcnts.visible = true; model.setValue("/root/main/condition/prgnoacdcnts" , model.getValue("/root/tmp/reptinfo/recinfo/prgnoacdcnts" )); } //°³¼±È°µ¿ ³»¿ëÁß '±âŸ'°¡ÀÖÀ¸¸é TextArea¸¦ displayÇØÁØ´Ù var ChkImprvAct = model.getValue("/root/tmp/reptinfo/recinfo/chkimprvact" ); model.setValue("/root/main/chkcond/chkimprvact" , ChkImprvAct); if(ChkImprvAct.search("06") > -1){ tar_imprvactetccnts.visible = true; model.setValue("/root/main/condition/imprvactetccnts" , model.getValue("/root/tmp/reptinfo/recinfo/imprvactetccnts" )); } model.removenodeset("/root/main/reduct/reductlist"); copyNodeListType("/root/main/reduct", "/root/tmp/reptinfo/reductlist", "after"); setLrg(lrg); SetIviewer(lrg, mdl); setTrgtView(); setTrgtSex(trgsex); sortNodeList("/root/main/reduct/reductlist", "reductdd", "asc"); //°¨¸é±Ý¾× ÇÕ°è Ç¥½Ã grd_amt.subtotal("sum", -1, grd_amt.colRef("reductamt"),"", "", 2, "ÃÑ °è"); } model.refresh(); } /** * @--------------------------------------------------- * @desc : ¾ÈÀü»ç°íÅëÇÕº¸°í¸¦ ÀúÀå/¼öÁ¤ÇÑ´Ù. * @param : * @return : * @--------------------------------------------------- */ function fSave(){ // alert("fSave"); var Lrg = model.getValue("/root/main/condition/lrg"); var mdl = model.getValue("/root/main/condition/mdl"); if(Lrg == "01" && mdl == "03"){ if(!iviewer_rept.window.javascript.checkFalldrug()){ return false; } iviewer_rept.window.javascript.chkbodystat(); } GetDetlInfo(); //IviewÀÇ »ó¼¼³»¿ëÀ» /root/tmp·Î ºÒ·¯µéÀδÙ. SetRecInfo(); //°øÅë±âº»Á¤º¸¸¦ send·Î º¸³½´Ù. SetDetlInfo(); //tmpÀÇ »ó¼¼³»¿ëÀ» send·Î º¸³½´Ù. if(checkgrade=="false" && 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")); } if(checkgrade=="false"){ model.makeValue("/root/send/cond/recinfo/anonyyn", "Y"); }else{ model.makeValue("/root/send/cond/recinfo/anonyyn", "N"); } model.makeValue("/root/send/cond/recinfo/trgtwardcd", model.getValue("/root/main/condition/trgtwardcd")); //º´µ¿°ª ÀúÀå model.makeValue("/root/send/cond/recinfo/status", model.getValue("/root/temp/status")); //ÀúÀå½Ã »óŰª ÁöÁ¤ if(!submit("TXMQR00100")){ messageBox("ÀúÀåÀ»","E009"); return false; } model.setValue("/root/main/condition/acptno", model.getValue("/root/tmp/acptno/acptno")); setParameter("ano", model.getValue("/root/main/condition/acptno")); model.refresh(); if(Lrg == "01" && mdl == "03"){ iviewer_rept.window.javascript.dreload(); } return true; } /** * @--------------------------------------------------- * @desc : ¹®ÀÚ¿­ÀÇ Byte Å©±â°¡ Á¦ÇѰªÀ» ¹þ¾î³ª´ÂÁö, ÇʼöÀÔ·Â ÄÜÆ®·Ñ¿¡ °ªÀÌ ÀԷµǾîÀÖ´ÂÁö üũ * @param : * @return : true or false * @--------------------------------------------------- */ function fCheck(){ // alert("fCheck"); var lrg = model.getValue("/root/main/condition/lrg"); if(lrg == "03"){ if(grd_amt.rows > 1){ if( grd_amt.findrow("", 1, 2) > -1){ messageBox("°¨¸é ³¯Â¥¸¦ ", "C001"); return false; } if(grd_amt.findrow("", 1, 3) > -1){ messageBox("°¨¸é ±Ý¾×À» ", "C001"); return false; } } } if( anonybtn == "N" ){ //-------------------------------------------------------- Çʼöüũ ----------------------------------------------------------- if(model.getValue("/root/main/condition/lrg") == "01"){ //ÀÓ»ó if(!isRequiredControls("cmb_trgtmanflag", "cmb_serdiaggrde", "chk_prgnoacdrslt", "cmb_rsltyn" , "rdo_mdl" , "chk_imprvactcnts")){ return false; } }else{ //ºñÀÓ»óÀÇ °æ¿ì ´ë»óÀÚ ±¸ºÐÁ¤º¸ ¾ø´õ¶óµµ ¼öÁ¤µÇµµ·Ï º¯°æ. if(!isRequiredControls("cmb_serdiaggrde", "chk_prgnoacdrslt" , "chk_imprvactcnts" , "cmb_rsltyn" , "rdo_mdl")){ return false; } } if(model.getValue("/root/main/condition/trgtmanflag") == "01" || model.getValue("/root/main/condition/trgtmanflag") == "02"){ if ( model.getValue("/root/main/condition/trgtid") ==""){ messageBox("´ë»óÀÚ ID´Â", "I003"); return false; } } if ( model.getValue("/root/main/condition/genrdd") == "" || model.getValue("/root/main/condition/genrthh") == "" || model.getValue("/root/main/condition/genrtmi") == "" ){ messageBox("¹ß»ýÀϽôÂ", "I003"); return false; } if ( model.getValue("/root/main/condition/discvdd" ) == "" || model.getValue("/root/main/condition/discvthh") == "" || model.getValue("/root/main/condition/discvtmi") == "" ){ messageBox("¹ß°ßÀϽôÂ", "I003"); return false; } //------------------------------------- iViewÀÇ Çʼö, ±æÀÌüũ Function È£Ãâ ---------------------------------------------------- if(!iviewer_rept.window.javascript.fDetlCheck()){ return false; } var genrthh = model.getValue("/root/main/condition/genrthh"); var genrtmi = model.getValue("/root/main/condition/genrtmi"); var discvthh = model.getValue("/root/main/condition/discvthh"); var discvtmi = model.getValue("/root/main/condition/discvtmi"); var detlcnts=iviewer_rept.model.getValue("/root/main/cond/detlcnts"); if(genrthh.length < 2){ messageBox("¹ß»ýÀϽô 2ÀÚ¸® ", "C001"); model.setFocus("ipt_genrthh"); return false; } if(genrtmi.length < 2){ messageBox("¹ß»ýÀϽô 2ÀÚ¸® ", "C001"); model.setFocus("ipt_genrtmi"); return false; } if(discvthh.length < 2){ messageBox("¹ß°ßÀϽô 2ÀÚ¸® ", "C001"); model.setFocus("ipt_discvthh"); return false; } if(discvtmi.length < 2){ messageBox("¹ß°ßÀϽô 2ÀÚ¸® ", "C001"); model.setFocus("ipt_discvtmi"); return false; } if(detlcnts==""){ messageBox("»ó¼¼³»¿ë ±â¼úÀº ÇʼöÇ׸ñ", "I009"); iviewer_rept.model.setFocus("tar_detlcnts"); return false; } var doctorcallyn = iviewer_rept.model.getValue("/root/main/cond/doctorcallyn"); var doctorcalldt = iviewer_rept.model.getValue("/root/main/cond/doctorcalldt"); var mediationyn = iviewer_rept.model.getValue("/root/main/cond/mediationyn"); var mediationdt = iviewer_rept.model.getValue("/root/main/cond/mediationdt"); if( doctorcallyn == "Y" ){ if( !isValidDateTime(doctorcalldt,"YYYYMMDDhhmm") ){ messageBox("´ã´çÀÇ/´çÁ÷ÀÇ È£Ãâ½Ã°£ ÀÔ·ÂÀÌ À߸øµÇ¾ú½À´Ï´Ù.(YYYY-MM-DD HH:MM)", "E"); model.setFocus("ipt_doctorcall"); return false; } } if( mediationyn == "Y" ){ if(!isValidDateTime(mediationdt,"YYYYMMDDhhmm")){ messageBox("ÁßÀç½Ã°£ ÀÔ·ÂÀÌ À߸øµÇ¾ú½À´Ï´Ù.(YYYY-MM-DD HH:MM)", "E"); model.setFocus("ipt_mediation"); return false; } } }else{ //20140820 ÀÍ¸íº¸°íÀÇ °æ¿ì »ó¼¼±â¼ú ³»¿ë¸¸ ÀÖ´õ¶óµµ ÀúÀå µÉ ¼ö ÀÖµµ·Ï ¼öÁ¤. if(!isRequiredControls("tar_detlcnts_how", "tar_detlcnts_why", "tar_detlcnts")){ return false; } } return true; } /** * @--------------------------------------------------- * @desc : Á¾°á¿©ºÎ¸¦ ¼³Á¤ÇÑ´Ù. * @param : * @return : * @--------------------------------------------------- */ function fSetRlstYN(){ // alert("fSetRlstYN"); var rtnval = messageBox("Á¾°á¿©ºÎ¸¸ ¹Ý¿µµË´Ï´Ù. ", "Q003"); if(rtnval == 6){ //¿¹ SetRecInfo(); if(!submit("TXMQR00101")){ messageBox("Á¾°á¿©ºÎ ÀúÀåÀ»","E009");//½ÇÆÐÇÏ¿´½À´Ï´Ù. return false; } var lrg = model.getValue("/root/main/condition/lrg"); if(lrg == "03"){ //°¨¸é»ç·ÊÀΰæ¿ì 󸮻óÅÂ(Á¾°á¿©ºÎ)°¡ 04¹øÀΰæ¿ì°¡ Á¾°áÀÌ´Ù if(model.getValue("/root/main/condition/rsltyn") == "04"){ //Á¾°áÀΰæ¿ì ÀÌÀü Á¾°á»óŸ¦ Á¾°á·Î ¸¸µé¾îÁØ´Ù(ÀçÀü¼ÛÀ» ¸·±âÀ§ÇØ) model.setValue("/root/hidden/rsltyn" , "04"); //Á¾°á } }else{ if(model.getValue("/root/main/condition/rsltyn") == "03"){ //Á¾°áÀΰæ¿ì ÀÌÀü Á¾°á»óŸ¦ Á¾°á·Î ¸¸µé¾îÁØ´Ù(ÀçÀü¼ÛÀ» ¸·±âÀ§ÇØ) model.setValue("/root/hidden/rsltyn" , "03"); //Á¾°á } } model.refresh(); }else{ return false; } return true; } /** * @--------------------------------------------------- * @desc : ´ë»óÀÚ±¸ºÐ¿¡ µû¶ó »ç°í ´ë»óÀÚ Á¤º¸µî·Ï ³»¿ëÀÌ ´Þ¶óÁø´Ù. * @param : * @return : * @--------------------------------------------------- */ function setTrgtView(){ // alert("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 : ¼ºº°Äڵ忡 µû¶ó ¼ºº° ÅØ½ºÆ² ¼³Á¤ÇÑ´Ù. * @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", "¿©ÀÚ"); } } /** * @--------------------------------------------------- * @desc : ´ëºÐ·ù°¡ ¼³Á¤µÇ¾úÀ»¶§ Áߺзù¸¦ ¼³Á¤ÇÏ´Â fuction * @param : lrg(´ëºÐ·ù) * @return : * @--------------------------------------------------- */ function setLrg(lrg){ // alert("setLrg"); iviewer_rept.visible = false; if(lrg == "03"){ iviewer_rept.attribute("height") = "300px"; // È­¸é ÇÏ´ÜÀÇ ¹öư 4°³ ¿øÀ§Ä¡ ó¸® button1.attribute("top") = "718px"; button2.attribute("top") = "718px"; button3.attribute("top") = "718px"; button9.attribute("top") = "718px"; cap_mdl.visible = false; rdo_mdl.visible = false; grp_nonreductcase.visible =false; grp_reductcase.visible = true; iviewer_rept.visible = true; iviewer_rept.src = "SMMQR00900_°¨¸é»ç·Êº¸°í.xrw" ; } else{ cap_mdl.visible =true; rdo_mdl.visible = true; grp_nonreductcase.visible =true; grp_reductcase.visible = false; if(lrg == "01") { iviewer_rept.attribute("height") = "440px"; // ¿¹Ãø°á°ú ±×·ì°ú È­¸é ÇÏ´ÜÀÇ ¹öư 4°³ ¿øÀ§Ä¡ ó¸® grp_nonreductcase.attribute("top") = "630px"; button1.attribute("top") = "730px"; button2.attribute("top") = "730px"; button3.attribute("top") = "730px"; button9.attribute("top") = "730px"; /* iviewer_rept.attribute("height") = "405px"; // ¿¹Ãø°á°ú ±×·ì°ú È­¸é ÇÏ´ÜÀÇ ¹öư 4°³ ¿øÀ§Ä¡ ó¸® grp_nonreductcase.attribute("top") = "592px"; button1.attribute("top") = "718px"; button2.attribute("top") = "718px"; button3.attribute("top") = "718px"; button9.attribute("top") = "718px"; */ 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"; } //´ëºÐ·ù°¡ ºñÀÓ»óÀÏ °æ¿ì if(lrg == "02"){ iviewer_rept.attribute("height") = "460px"; // ¿¹Ãø°á°ú ±×·ì°ú È­¸é ÇÏ´ÜÀÇ ¹öư 4°³ 70px¸¸Å­ ¾Æ·¡·Î À§Ä¡ À̵¿ grp_nonreductcase.attribute("top") = "645px"; button1.attribute("top") = "745px"; button2.attribute("top") = "745px"; button3.attribute("top") = "745px"; button9.attribute("top") = "745px"; 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"; iviewer_rept.src = "SMMQR00800_ºñÀÓ»ó.xrw" ; } rdo_mdl.refresh(); } } /** * @--------------------------------------------------- * @desc : Áߺзù°¡ ¼³Á¤µÇ¾úÀ»¶§ Iview¸¦ ¼³Á¤ÇÏ´Â fuction * @param : lrg(´ëºÐ·ù), mdl(Áߺзù) * @return : * @--------------------------------------------------- */ function SetIviewer(lrg, mdl){ //´ëºÐ·ù°¡ ¼±Åà ¾ÈµÇ¾îÀÖÀ» °æ¿ì µÇµ¹·Á º¸³½´Ù if(lrg == ""){ rdo_mdl.deselect(); return; } //´ëºÐ·ù°¡ ÀÓ»óÀÏ °æ¿ì else if(lrg == "01"){ switch(mdl){ case "01" : iviewer_rept.src = "SMMQR00200_Áø·á¹×Ä¡·á.xrw" ; break; case "02" : iviewer_rept.src = "SMMQR00300_Åõ¾à.xrw" ; break; case "03" : iviewer_rept.src = "SMMQR00400_³«»ó.xrw" ; break; case "04" : iviewer_rept.src = "SMMQR00500_¼öÇ÷.xrw" ; break; case "05" : iviewer_rept.src = "SMMQR00600_Áø´Üº´¸®¿µ»ó°Ë»ç.xrw"; break; case "06" : iviewer_rept.src = "SMMQR00700_±âŸ.xrw" ; break; } } //´ëºÐ·ù°¡ ºñÀÓ»óÀÏ °æ¿ì else if(lrg == "02"){ //iviewer_rept.visible = true; iviewer_rept.window.javascript.fSetDisabled(mdl); } iviewer_rept.visible = true; } /** * @--------------------------------------------------- * @desc : IviewÀÇ »ó¼¼³»¿ëÀ» /root/tmp·Î ºÒ·¯µéÀδÙ. * @param : * @return : * @--------------------------------------------------- */ function GetDetlInfo(){ // alert("GetDetlInfo"); var Lrg = model.getValue("/root/main/condition/lrg"); //´ëºÐ·ù var Mdl = model.getValue("/root/main/condition/mdl"); //Áߺзù 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 : °øÅë±âº»Á¤º¸¸¦ send·Î º¸³½´Ù * @param : * @return : * @--------------------------------------------------- */ function SetRecInfo(){ // alert("SetDetlInfo"); //model.resetInstanceNode("/root/send/cond/recinfo"); model.removeNodeset("/root/send/cond/recinfo"); var Lrg = model.getValue("/root/main/condition/lrg"); if(Lrg == "03"){ if(grd_amt.findrow("", 1, 3) == -1){ grd_amt.subtotal("clear", -1, grd_amt.colRef("reductamt")); model.makeValue("/root/send/cond/recinfo/reductlist", grd_amt.getUpdateDataAll("s")); grd_amt.subtotal("sum", -1, grd_amt.colRef("reductamt"),"", "", 2, "ÃÑ °è"); } }else{ var ChkImprvAct = model.getValue("/root/main/chkcond/chkimprvact"); if(ChkImprvAct.search("01") > -1) model.makeValue("/root/send/cond/recinfo/bizguideaddyn" , "Y"); if(ChkImprvAct.search("02") > -1) model.makeVaLue("/root/send/cond/recinfo/educyn" , "Y"); if(ChkImprvAct.search("03") > -1) model.makeValue("/root/send/cond/recinfo/bizprcsyn" , "Y"); if(ChkImprvAct.search("04") > -1) model.makeValue("/root/send/cond/recinfo/alertyn" , "Y"); if(ChkImprvAct.search("05") > -1) model.makeValue("/root/send/cond/recinfo/imprvplanyn" , "Y"); if(ChkImprvAct.search("06") > -1) model.makeValue("/root/send/cond/recinfo/imprvactetcyn" , "Y"); } var ChkPrognoAcdRslt = model.getValue("/root/main/chkcond/chkprgnoacdrslt"); if(ChkPrognoAcdRslt.search("01") > -1) model.makeValue("/root/send/cond/recinfo/patbodylossyn" , "Y"); if(ChkPrognoAcdRslt.search("02") > -1) model.makeValue("/root/send/cond/recinfo/pateconomylossyn" , "Y"); if(ChkPrognoAcdRslt.search("03") > -1) model.makeValue("/root/send/cond/recinfo/hopeconomylossyn" , "Y"); if(ChkPrognoAcdRslt.search("04") > -1) model.makeValue("/root/send/cond/recinfo/bizdelyaddyn" , "Y"); if(ChkPrognoAcdRslt.search("05") > -1) model.makeValue("/root/send/cond/recinfo/healcaretrobyn" , "Y"); if(ChkPrognoAcdRslt.search("06") > -1) model.makeValue("/root/send/cond/recinfo/prgnoacdyn" , "Y"); //copyNodesetType("/root/send/cond/recinfo", "/root/main/condition", "after"); //copyNodeListType("/root/send/cond/recinfo", "/root/main/condition", "after"); copyNodeType("/root/send/cond/recinfo", "/root/main/condition", "after"); } /** * @--------------------------------------------------- * @desc : tmpÀÇ »ó¼¼³»¿ëÀ» send·Î º¸³½´Ù * @param : * @return : * @--------------------------------------------------- */ function SetDetlInfo(){ // alert("SetDetlInfo"); model.removeNodeset("/root/send/cond/detlinfo"); var Lrg = model.getValue("/root/main/condition/lrg"); //´ëºÐ·ù var Mdl = model.getValue("/root/main/condition/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") ); //Áø·á¹×Ä¡·á_»ç°íÁ¾·ù model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ¿©ºÎ model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ½Ã°£ model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //ÁßÀç¿©ºÎ model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //ÁßÀç½Ã°£ 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") ); //ŸÀӾƿôÀ¯¹« if(model.getValue("/root/tmp/cond/opacd/tmoutyn") == "Y"){ model.makeValue("/root/send/cond/detlinfo/tmoutkind" , model.getValue("/root/tmp/cond/opacd/tmoutkind") ); //ŸÀӾƿôÁ¾·ù } model.makeValue("/root/send/cond/detlinfo/oppartdispyn" , model.getValue("/root/tmp/cond/opacd/oppartdispyn") ); //¼ö¼úºÎÀ§Ç¥½ÄÀ¯¹« 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("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("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("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("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("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("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("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("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("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("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("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("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") ); //Ä¡·á_Áø·á°ü·Ã»ç°í±âŸ»ó¼¼ } } /*2012/08/16 Start if(OrdCureKind == "04"){ //Áø´Ü/¿µ»ó/º´¸®/ÇÙÀÇÇÐ °Ë»ç °ü·Ã»ç°í var ChkTestAcd = model.getValue("/root/tmp/cond/testacd/chktestacd"); if(ChkTestAcd.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/rsltreptyn", "Y"); //À߸øµÈÁø´Ü_¿µ»ó_º´¸®_ÇÙÀÇÇа˻ç°á°úº¸°í¿©ºÎ if(ChkTestAcd.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/curedelyyn", "Y"); //°á°úÈ®Àδ©¶ôÀ¸·ÎóġÁö¿¬¿©ºÎ if(ChkTestAcd.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/dyeseffcyn", "Y"); //Á¶¿µÁ¦ºÎÀÛ¿ë¿©ºÎ if(ChkTestAcd.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/testorgninjuryyn", "Y"); //Áø´Ü°Ë»ç°ü·Ã½ÅüÀû¼Õ»ó if(ChkTestAcd.search("05") > -1){ model.makeValue("/root/send/cond/detlinfo/testacdetcyn" , "Y"); //Áø´Ü_¿µ»ó_º´¸®_ÇÙÀÇÇа˻ç±âŸ¿©ºÎ model.makeValue("/root/send/cond/detlinfo/testacdetccnts" , model.getValue("/root/tmp/cond/testacd/testacdetccnts") ); //Áø´Ü_¿µ»ó_º´¸®_ÇÙÀÇÇа˻ç±âŸ»ó¼¼ } } 2012/08/16 End */ } 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")) ; model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ¿©ºÎ model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ½Ã°£ model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //ÁßÀç¿©ºÎ model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //ÁßÀç½Ã°£ 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("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("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("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/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ¿©ºÎ model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ½Ã°£ model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //ÁßÀç¿©ºÎ model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //ÁßÀç½Ã°£ 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" ) ) ; model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts" ) ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ¿©ºÎ model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ½Ã°£ model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //ÁßÀç¿©ºÎ model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //ÁßÀç½Ã°£ 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" ) ) ; model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts" ) ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ¿©ºÎ model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ½Ã°£ model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //ÁßÀç¿©ºÎ model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //ÁßÀç½Ã°£ 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 != ""){ 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("09") > -1) model.makeValue("/root/send/cond/detlinfo/testbarcderryn" , "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" ) ) ; model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ¿©ºÎ model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //´ã´çÀÇ_´çÁ÷ÀÇ È£Ãâ½Ã°£ model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //ÁßÀç¿©ºÎ model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //ÁßÀç½Ã°£ 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/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //»ó¼¼³»¿ë ±â¼ú model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //»ó¼¼³»¿ë ±â¼ú if (model.getValue("/root/tmp/cond/losscnt") != ""){ model.makeValue("/root/send/cond/detlinfo/losscnt" , model.getValue("/root/tmp/cond/losscnt" )); } 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" )); 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"); } } if(Lrg == "03"){ //°¨¸é»ç·Ê º¸°í model.makeValue("/root/send/cond/detlinfo/insuflagcd" , model.getValue("/root/tmp/cond/insuflagcd" )); 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/civilapldeptcd" , model.getValue("/root/tmp/cond/civilapldeptcd" )); 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/reldremp" , model.getValue("/root/tmp/cond/reldremp" )); model.makeValue("/root/send/cond/detlinfo/detldesccnts" , model.getValue("/root/tmp/cond/detldesccnts" )); var chkcase = model.getValue("/root/tmp/cond/chkcase"); if(chkcase != ""){ if(chkcase.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/optestacdyn" , "Y"); if(chkcase.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/anstacdyn" , "Y"); if(chkcase.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/ordacdyn" , "Y"); if(chkcase.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/noncuresatsfctyn" , "Y"); if(chkcase.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/nondescsatsfctyn" , "Y"); if(chkcase.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/envacdyn" , "Y"); if(chkcase.search("07") > -1){ model.makeValue("/root/send/cond/detlinfo/caseetcyn" , "Y"); model.makeValue("/root/send/cond/detlinfo/caseetccnts" , model.getValue("/root/tmp/cond/caseetccnts" )); } } } } /** * @--------------------------------------------------- * @desc : report¸¦ ÀÛ¼ºÇϱâ À§ÇÑ Instance »ý¼º function * @param : * @return : * @--------------------------------------------------- */ function SetRepDetlInfo(){ // alert("SetRepDetlInfo+"); if(model.getValue("/root/main/condition/acptno") == ""){ 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"); //2012/07/26 Start var grade=model.getValue("/root/main/condition/serdiaggrde"); if(grade<"4" && checkgrade=="false"){ 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", ""); } //2012/07/26 End copyNodeType("/root/send/report/recinfo", "/root/tmp/reptinfo/recinfo", "after"); if(lrg == "01") { if(mdl == "01"){ //Áø·á ¹× Ä¡·á copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/detlinfo", "after"); exeReportPreview("RPMQR00100", "XMLSTR", "/root/send/report"); } if(mdl == "02"){ // Åõ¾à copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/mediinfo", "after"); exeReportPreview("RPMQR00200", "XMLSTR", "/root/send/report"); } if(mdl == "03"){ // ³«»ó copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/fallinfo", "after"); exeReportPreview("RPMQR00300", "XMLSTR", "/root/send/report"); } if(mdl == "04"){ // ¼öÇ÷ copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/tnsinfo", "after"); exeReportPreview("RPMQR00400", "XMLSTR", "/root/send/report"); } if(mdl == "05"){ // Áø´Ü/º´¸®/¿µ»ó/ÇÙÀÇÇÐ °Ë»ç copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/diagtestinfo", "after"); exeReportPreview("RPMQR00500", "XMLSTR", "/root/send/report"); } if(mdl == "06"){ // ±âŸ copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/etcinfo", "after"); exeReportPreview("RPMQR00600", "XMLSTR", "/root/send/report"); } } if(lrg == "02") { //ºñÀÓ»ó copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/nonclincinfo", "after"); if(mdl == "01"){ //È­Àç exeReportPreview("RPMQR00700", "XMLSTR", "/root/send/report"); } if(mdl == "02"){ //ÀÇ·á°¡½º/ÀÇ·áÀü±â exeReportPreview("RPMQR00800", "XMLSTR", "/root/send/report"); } if(mdl == "03"){ //Àü»êÀå¾Ö exeReportPreview("RPMQR00900", "XMLSTR", "/root/send/report"); } if(mdl == "04"){ //µµ³­ exeReportPreview("RPMQR01000", "XMLSTR", "/root/send/report"); } if(mdl == "05"){ //Å»¿ø exeReportPreview("RPMQR01100", "XMLSTR", "/root/send/report"); } if(mdl == "06"){ //Æø·Â/³­µ¿/¼ºÆø·Â exeReportPreview("RPMQR01200", "XMLSTR", "/root/send/report"); } if(mdl == "07"){ //±âŸ exeReportPreview("RPMQR01300", "XMLSTR", "/root/send/report"); } } if(lrg == "03") { copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/reductinfo", "replace"); copyNodeListType("/root/send/report/reductlist", "/root/tmp/reptinfo/reductlist", "replace"); exeReportPreview("RPMQR01400", "XMLSTR", "/root/send/report"); } } /** * @--------------------------------------------------- * @desc : Áߵ ´Ü°è¿¡ µû¶ó¼­ º¸°íÀÚ Á¤º¸ µî·Ï °¨Ãß±â * @param : * @return : * @--------------------------------------------------- */ function fCheckgrade(){ // alert("fCheckgrade"); if(checkgrade=="false"){ 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", ""); }if(checkgrade=="true"){ 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 : * @return : * @--------------------------------------------------- */ function fChangeValue(){ // alert("fChangeValue"); if(pushbutton=="false"){ var ans=messageBox("ÀÍ¸í º¸°í·Î ÁøÇàÇϽðڽÀ´Ï±î?", "Q999"); if(ans=="6"){ pushbutton="true"; btn_anony.attribute("class")="btn2_letter6"; model.setValue("/root/temp/btn_value", "ÀÍ¸íº¸°íÇØÁ¦"); checkgrade="false"; anonybtn = "Y"; fCheckgrade(); } }else if(pushbutton=="true"){ var ans=messageBox("ÀÍ¸í º¸°í¸¦ ÇØÁ¦ÇϽðڽÀ´Ï±î?", "Q999"); if(ans=="6"){ pushbutton="false"; btn_anony.attribute("class")="btn2_letter4"; model.setValue("/root/temp/btn_value", "ÀÍ¸íº¸°í"); checkgrade="true"; anonybtn = "N"; fCheckgrade(); } } model.refresh(); } /** * @--------------------------------------------------- * @desc : ¾ÈÀü»ç°í´Ü°è Ŭ¸¯½Ã À̺¥Æ® ( ÀÍ¸íº¸°í üũ ) * @param : * @return : * @--------------------------------------------------- */ function fChangegrade(){ // alert("fChangegrade"); if(model.getValue("/root/tmp/reptinfo/recinfo/anonyyn")!="Y" && pushbutton=="false"){ btn_anony.disabled="false"; model.makeValue("/root/temp/befserdiaggrde", model.getValue("/root/main/condition/serdiaggrde")); } if(model.getValue("/root/tmp/reptinfo/recinfo/anonyyn")=="Y" && pushbutton=="false"){ btn_anony.disabled="false"; } } /** * @desc : º´½Ç¸®½ºÆ® - º´µ¿¿¡ ÇØ´çÇÏ´Â º´½ÇÄÚµå Á¶È¸ * @param : wardcd - º´µ¿ÄÚµå * @return : void * @authur : ¿ÀÁöÈÆ 2007. 6. 14 */ function reqGetRoomList(wardcd){ // alert("reqGetRoomList"); model.removeNodeset("/root/send/reqdata/wardcd"); model.makeValue("/root/send/reqdata/wardcd", wardcd); submit("TRMMO04107"); } function reqGetAccidentStepList(){ // alert("reqGetAccidentStepList"); submit("TRMQR00104"); }