/** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸éÀ» ÃʱâÈ­ ÇÑ´Ù * @param : * @return : * @--------------------------------------------------- */ function fInitalize(){ grd_termlist.colHidden(1) = true; var currentTime = getCurrentTime(); var instcd = getUserInfo("dutplceinstcd"); // Edited by NJ 2007-07-21 getDate() -> getCurrentDate() //model.setValue("/root/init/today", getDate()); model.setValue("/root/init/today", getCurrentDate()); model.setValue("/root/init/curruntTime", currentTime.substr(0,4)); model.setValue("/root/hidden/condition/selctedmode", "D"); model.setValue("/root/init/userinfo/userid", getUserId()); model.setValue("/root/init/userinfo/usernm", getUserName()); model.setValue("/root/init/userinfo/instcd", getUserInfo("dutplceinstcd")); //2009-05-06 ¿ÀÀü 9:55:28 °­ÁöÈÆ ¼öÁ¤ : ¼±ÅÃÇÒ¼öÀÖ´Â ±â°üÀ» °øÅëÄÚµå·Î °ü¸®ÇÑ´Ù. zbcfGetCodeList( new Array("M0534"), new Array("/root/init/M0534list") ); //È­¸éÇÏ´ÜÀÇ »ç¿ëµÇ´Â ±â°ü CheckBox instance ÃʱâÈ­ copyNodeset("/root/init/M0534selcmb", "/root/init/M0534list", "replace");//Áß¾ÓÀÇ·á¿øÀ϶§ º¸ÀÌ´Â ±â°ü¼±Åà Combo Instance ÃʱâÈ­ copyNodeset("/root/init/M0534allcmb", "/root/init/M0534list", "replace");//±â°üº°ÀÌ·ÂÁ¶È¸ÀÇ Combo Instance ÃʱâÈ­ addComboInstance("/root/init/M0534selcmb", "cdid^cdnm", "001^Àüü", "M0534"); addComboInstance("/root/init/M0534allcmb", "cdid^cdnm", "-^Àüü", "M0534"); //2009-03-12 ¿ÀÀü 10:59:38 °­ÁöÈÆ ¼öÁ¤ : Á¢¼Ó ±â°üº° º¸¿©Áö´Â Ç׸ñÀÌ ´Ù¸£´Ù. //maininstyn : Áß¾Ó°ü¸®ÀÚ¿©ºÎ, selInstcd : ¼±Åñâ°üÄÚµå if(instcd == "001"){ //Áß¾ÓÀÇ·á¿ø¿¡¼­ Á¢¼ÓÇÒ°æ¿ì model.setValue("/root/hidden/condition/maininstyn", "Y"); cap_selInst.visible = true; cmb_selInst.visible = true; cmb_selInst.value = "001"; cap_selInst.refresh(); btn_saverow.disabled = true; } else{ model.setValue("/root/hidden/condition/maininstyn", "N"); model.setValue("/root/hidden/condition/selInstcd", instcd); } model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/indxviewmode")); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); submit("TRMRT00701"); model.refresh(); } /** * @group : * @ver : 2007.03.20 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¹öư Enable / Disable * @param : * @return : * @--------------------------------------------------- */ function fDisabled(flag) { var maininstyn = model.getValue("/root/hidden/condition/maininstyn"); if(flag == "ETN" || flag == "ETM") { cmb_icd9cd.disabled = "false"; if(flag == "ETM"){ ipt_opattrcd.disabled = "true"; btn_opattrcd.disabled = "true"; ipt_termcd.disabled = "true"; ipt_snmdcnptid.disabled = "false"; ipt_termtodd.disabled = "true"; if(maininstyn == "Y"){ rdo_essntermflag.disabled = "false"; } } else { ipt_opattrcd.disabled = "true"; btn_opattrcd.disabled = "true"; ipt_termcd.disabled = "true"; ipt_snmdcnptid.disabled = "false"; ipt_termtodd.disabled = "false"; opt_Hdicd9cd.visible = "false"; cmb_icd9cd.visible = "true"; btn_delete2.disabled = "true"; if(maininstyn == "Y"){ cap_appinst.disabled = "false"; chk_appinst.disabled = "false"; rdo_essntermflag.disabled = "false"; } } //btn_snmddescid.disabled = "false"; ipt_termfromdd.disabled = "false"; ipt_engnm.disabled = "false"; ipt_hngnm.disabled = "false"; cmb_reprflag.disabled = "false"; //ipt_verflag.disabled = "false"; btn_medreccd.disabled = "false"; cmb_version.disabled = "false"; ipt_calcscor.disabled = "false"; } else if(flag == "TN" || flag == "TM") { ipt_opattrcd.disabled = "true"; btn_opattrcd.disabled = "true"; ipt_termcd.disabled = "true"; cmb_reprflag.disabled = "false"; ipt_engnm.disabled = "false"; ipt_hngnm.disabled = "false"; ipt_termfromdd.disabled = "false"; ipt_termtodd.disabled = "false"; cmb_version.disabled = "true"; ipt_snmdcnptid.disabled = "false"; // µ¿ÀǾî À϶§µµ conceptid µî·Ï °¡´É chk_appinst.disabled = "true"; rdo_essntermflag.disabled = "true"; //btn_snmdcnptid.disabled = "true"; } else if(flag == "AS") { //??? ?? ?? cmb_icd9cd.disabled = "true"; ipt_opattrcd.disabled = "true"; btn_opattrcd.disabled = "true"; ipt_termcd.disabled = "true"; ipt_snmdcnptid.disabled = "true"; btn_snmdcnptid.disabled = "true"; //btn_snmddescid.disabled = "true"; ipt_engnm.disabled = "true"; ipt_hngnm.disabled = "true"; cmb_reprflag.disabled = "true"; //ipt_verflag.disabled = "true"; btn_medreccd.disabled = "true"; ipt_termfromdd.disabled = "true"; ipt_termtodd.disabled = "true"; ipt_calcscor.disabled = "true"; cmb_version.disabled = "true"; chk_appinst.disabled = "true"; rdo_essntermflag.disabled = "true"; } } function fCntlReset(flag) { if(flag == "TN"){ model.resetInstanceNode("/root/main/peprterminfo/info/termengnm"); model.resetInstanceNode("/root/main/peprterminfo/info/termhngnm"); model.resetInstanceNode("/root/main/peprterminfo/info/reprflag"); } if((flag == "ETN") || (flag == "SAVE")){ model.resetInstanceNode("/root/main/peprterminfo/info/snmdcnptid"); model.resetInstanceNode("/root/main/peprterminfo/info/snmdcnptnm"); model.resetInstanceNode("/root/main/peprterminfo/info/calcscorcd"); model.resetInstanceNode("/root/main/peprterminfo/info/opattrverflag"); model.resetInstanceNode("/root/main/peprterminfo/info/icd9cd"); model.resetInstanceNode("/root/main/icd9cdlist/info"); model.resetInstanceNode("/root/main/peprterminfo/info/opattrcd"); model.resetInstanceNode("/root/main/peprterminfo/info/termcd"); model.resetInstanceNode("/root/main/peprterminfo/info/opattrmedireccd"); model.resetInstanceNode("/root/main/peprterminfo/info/termengnm"); model.resetInstanceNode("/root/main/peprterminfo/info/termhngnm"); model.resetInstanceNode("/root/main/peprterminfo/info/reprflag"); model.resetInstanceNode("/root/main/peprterminfo/info/attrfromdd"); model.resetInstanceNode("/root/main/peprterminfo/info/icdfromdd"); } } function fAddRow(flag) { var iRow = 0; var currentTime = getCurrentTime(); if(flag == "I") { grd_icd9.addItem(); iRow = grd_icd9.row - grd_icd9.fixedRows + 1; model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/state", "I"); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9todd", "99991231"); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9fromdd", model.getValue("/root/init/today")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/fstrgstdt", model.getValue("/root/init/today") + currentTime.substr(0,6)); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/lastupdtdt", model.getValue("/root/init/today") + currentTime.substr(0,6)); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/fstrgstrid", model.getValue("/root/init/userinfo/userid")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/lastupdtrid", model.getValue("/root/init/userinfo/userid")); } else if(flag == "D") { grd_opcd.addItem(); iRow = grd_opcd.row - grd_opcd.fixedRows + 1; model.setValue("/root/main/opcdinfo/opcd[" + iRow + "]/state", "I" ); model.setValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrtodt", "99991231235959"); } } /** * @group : * @ver : 2007.04.11 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : ºÎ¼­¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fCallDeptInfo(){ var xCondPath = "/root/hidden/condition"; model.removenodeset("/root/main/indxlist/item"); model.removenodeset("/root/main/deptopcdlist/deptopcdinfo"); trv_dgindx.rebuild(); grd_deptop.rebuild(); zbcfOpenInstDeptCodeList("deptnm", model.getValue(xCondPath+"/deptset/selecteddeptnm"), xCondPath+"/deptset/selecteddeptcd", xCondPath+"/deptset/selecteddeptnm", "ordduseryn", ""); if(model.getValue(xCondPath+"/deptset/selecteddeptcd") != ""){ model.removenode("/root/send"); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd")); if(submit("TRMRT00710")){ model.removenodeset("/root/main/deptopcdlist/deptopcdinfo"); model.setValue(xCondPath+"/selectedIndx",""); grd_deptop.rebuild(); trv_dgindx.rebuild(); } }else{ model.refresh(); } } /** * @group : * @ver : 2007.04.11 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : °ú¼ö¼ú ¿ë¾î Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchDeptOpInfo(){ var xCondPath = "/root/hidden/condition"; var sIndxCd = model.getValue(xCondPath+"/selectedIndx"); var sDeptCd = model.getValue(xCondPath+"/deptset/selecteddeptcd"); if(sDeptCd == ""){ messageBox("ºÎ¼­Äڵ带 ¸ÕÀú", "C002"); return; } if(sIndxCd == ""){ messageBox("»öÀÎÄڵ带 ¸ÕÀú", "C002"); return; } model.removeNodeset("/root/send"); model.makeValue("/root/send/indxcd", sIndxCd); model.makeValue("/root/send/indxflag", model.getValue(xCondPath+"/indxflag")); model.makeValue("/root/send/deptcd", sDeptCd); submit("TRMRT00711"); } /** * @group : * @ver : 2007.04.12 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : °ú¼ö¼ú ¿ë¾î ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveDeptOpInfo(){ var xCondPath = "/root/hidden/condition"; var sSelIndxCd = model.getValue(xCondPath+"/selectedIndx"); model.removenode("/root/send"); model.makeValue("/root/send/indxcd", sSelIndxCd); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/send/deptcd", model.getValue(xCondPath+"/deptset/selecteddeptcd")); model.makeValue("/root/send/deptopcdlist", grd_deptop.getUpdateDataAll("i")); submit("TXMRT00702"); } /** * @group : * @ver : 2007.04.12 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : °ú¼ö¼ú¿¡ ¼ö¼ú Ãß°¡ * @param : * @return : * @--------------------------------------------------- */ function fSendDeptOp(){ var sCondPath = "/root/hidden/condition/deptset"; var sIndxListPath = "/root/main/indxlist/item"; var sSrchedOpCdListPath = "/root/main/srchedopcdlist/srchedopcdinfo"; var sDeptOpCdListPath = "/root/main/deptopcdlist/deptopcdinfo"; var sDeptCd = model.getValue(sCondPath+"/selecteddeptcd"); var sIndxCd = model.getValue("/root/hidden/condition/selectedIndx"); var sIndxNm = model.getValue("/root/main/indxlist/item[indxcd='"+sIndxCd+"']/indxhngnm");; var sSrchedOpRowCnt = grd_srchedopinfo.rows - grd_srchedopinfo.fixedrows; var iDeptOpRow = 0; var sTermcd = ""; if(sDeptCd == ""){ messageBox("ºÎ¼­Äڵ带 ¸ÕÀú", "C002"); return; } if(sIndxCd == ""){ messageBox("»öÀÎÄڵ带 ¸ÕÀú", "C002"); return; } for(var iSrchedOpRow = 1; iSrchedOpRow <= sSrchedOpRowCnt; iSrchedOpRow++){ if(model.getValue(sSrchedOpCdListPath+"["+iSrchedOpRow+"]/check") == "true"){ sTermcd = model.getValue(sSrchedOpCdListPath+"["+iSrchedOpRow+"]/termcd"); if(model.getValue(sDeptOpCdListPath+"[termcd = '"+sTermcd+"' and deptindxcd = '"+sIndxCd+"']/termcd") != "") continue; grd_deptop.addItem(); iDeptOpRow = grd_deptop.rows - grd_deptop.fixedrows; model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/status","I"); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/deptcd",sDeptCd); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/deptnm",model.getValue(sCondPath+"/selecteddeptnm")); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/termcd",sTermcd); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/deptindxcd",sIndxCd); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/deptindxnm",sIndxNm); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/termengnm",model.getValue(sSrchedOpCdListPath+"["+iSrchedOpRow+"]/termengnm")); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/termhngnm",model.getValue(sSrchedOpCdListPath+"["+iSrchedOpRow+"]/termhngnm")); model.setValue(sDeptOpCdListPath+"["+iDeptOpRow+"]/deptindxflag",model.getValue("/root/hidden/condition/indxflag")); } } grd_deptop.rebuild(); } /** * @group : * @ver : 2007.04.12 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : °ú¼ö¼ú Ãß°¡½Ã ¼ö¼ú ¿ë¾î Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchOpInfo(){ var sCondPath = "/root/hidden/condition/deptset"; var sSrchedOpCdInfoPath = "/root/main/srchedopcdlist/srchedopcdinfo"; var srchnm = model.getValue(sCondPath+"/srchnm"); srchnm = srchnm.replace(/^ *| *$/g, ""); model.removenode("/root/send"); if(model.getValue(sCondPath+"/srchnm") == ""){ messageBox("Á¶È¸ÇÒ ³»¿ëÀ»","C001"); return; } model.removenodeset(sSrchedOpCdInfoPath); grd_srchedopinfo.rebuild(); model.makeValue("/root/send/srchflag", model.getValue(sCondPath+"/srchflag")); // model.makeValue("/root/send/srchnm", srchnm); // ?????? model.makeValue("/root/send/termflag",model.getValue("/root/hidden/condition/indxflag")); // ???????? submit("TRMRT00712"); } /** * @group : * @ver : 2007.04.16 * @by : ÀÌÀº¿µ * @--------------------------------------------------- * @type : function * @access : public * @desc : Àüü¼ö¼úÁ¶È¸ ÆË¾÷ È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fCallExtnOpInfo(){ setParameter("indxflag", model.getValue("/root/hidden/condition/indxflag")); modal("SPMRT01000", 1,10,10); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö°¡ Á¶È¸ È­¸é È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fGetCalcScor(){ model.removeNodeset("/root/temp"); model.makeValue("/root/temp", model.getValue("/root/main/peprterminfo/info/calcscorcd")); modal("SMPIC00200", 1,10, 10, "SMPIC00200", "/root/temp", "/root/temp"); model.setValue("/root/main/peprterminfo/info/calcscorcd", model.getValue("/root/temp/mech/calcscorcd")); ipt_calcscor.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö¼ú ¿ë¾î ¸®½ºÆ®¸¦ Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSelOpList(){ btn_addrow.attribute("visibility") = "hidden"; btn_delrow.attribute("visibility") = "hidden"; btn_saverow.attribute("visibility") = "visible"; btn_modify.attribute("visibility") = "hidden"; model.setValue("/root/hidden/condition/selctedmode", "D"); model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/indxviewmode")); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); submit("TRMRT00701"); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : °ú¼ö¼ú ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelDeptOp(){ btn_addrow.attribute("visibility") = "hidden"; btn_delrow.attribute("visibility") = "hidden"; btn_saverow.attribute("visibility") = "hidden"; btn_modify.attribute("visibility") = "hidden"; model.setValue("/root/hidden/condition/deptset/srchflag","H"); model.setValue("/root/hidden/condition/deptset/srchnm",""); model.setValue("/root/hidden/condition/deptset/selecteddeptcd",""); model.setValue("/root/hidden/condition/deptset/selecteddeptnm",""); model.setValue("/root/hidden/condition/selctedmode", "P"); model.setValue("/root/hidden/condition/indxflag", "9"); // Áø´Ü : 0, ¼ö¼ú : 9 model.removenodeset("/root/main/indxlist/item"); model.removenodeset("/root/main/srchedopcdlist/srchedopcdinfo"); model.removenodeset("/root/main/deptopcdlist/deptopcdinfo"); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö¼ú ¿ë¾î ½Å±Ô µî·Ï½Ã È®ÀåÄÚµå »ý¼º * @param : * @return : * @--------------------------------------------------- */ function fGetNewExtCd(){ //ICD9ÄÚµå ¼±Åà ½Ã, »õ·Î¿î È®Àå, ¿ë¾îÄÚµå ¹× ICD½ÃÀÛÀÏÀÚ ÇÔ²² Á¶È¸ var iCd = cmb_icd9cd.focusIndex + 1; var selCd = model.getValue("/root/main/icd9cdlist/info[" + iCd + "]/icd9cd"); // var iSelCd = selCd.substr(0,2) + "." + selCd.substr(2, selCd.length-2); // Edited by Nj 2007-08-07 IDC9ÄÚµåÀÇ '.'À» »èÁ¦Çϱâ·ÎÇÔ var iSelCd = selCd; var path = model.getValue("/root/hidden/condition/selectedIndxPath"); //À妽ºÄÚµå.¼Ó¼ºÄÚµå.¿ë¾îÄÚµå model.removeNodeset("/root/send"); model.removeNodeset("/root/main/temp"); model.makeValue("/root/send/icd9cd", iSelCd); model.setValue("/root/hidden/condition/selectedicd9", iSelCd); model.makeNode("/root/main/temp/icd9info"); submit("TRMRT00707"); model.setValue("/root/main/peprterminfo/info/icd9cd", selCd); model.setValue("/root/main/peprterminfo/info/opattrcd", model.getValue("/root/main/temp/icd9info/opattrcd")); model.setValue("/root/main/peprterminfo/info/termcd", model.getValue("/root/main/temp/icd9info/termcd")); var path = model.getValue("/root/hidden/condition/selectedIndxPath").split("."); model.setValue("/root/main/peprterminfo/info/opattrdrindxcd", path[path.length-2]); if(model.getValue("/root/main/temp/icd9info/opattrmedireccd") == ""){ model.setValue("/root/main/peprterminfo/info/opattrmedireccd", model.getValue("/root/main/peprterminfo/info/opattrdrindxcd")); } else { model.setValue("/root/main/peprterminfo/info/opattrmedireccd", model.getValue("/root/main/temp/icd9info/opattrmedireccd")); } model.setValue("/root/main/peprterminfo/info/icdfromdd", model.getValue("/root/main/temp/icd9info/icdfromdd")); // Edited by NJ 2007-07-21 getDate()- > getCurrentDate() //model.setValue("/root/main/peprterminfo/info/attrfromdd", getDate()); model.setValue("/root/main/peprterminfo/info/attrfromdd", getCurrentDate()); model.setValue("/root/main/peprterminfo/info/attrtodd", "99991231"); model.setValue("/root/main/peprterminfo/info/reprflag", "R"); //½Å±Ô¸ðµåÀ϶§¿¡´Â µðÆúÆ® R model.setValue("/root/main/peprterminfo/info/termflag", "9"); model.setValue("/root/main/peprterminfo/info/fstrgstdate", model.getValue("/root/init/today")); model.setValue("/root/main/peprterminfo/info/fstrgsttime", model.getValue("/root/init/curruntTime")); model.setValue("/root/main/peprterminfo/info/fstrgstdt", model.getValue("/root/main/peprterminfo/info/fstrgstdate")+model.getValue("/root/main/peprterminfo/info/fstrgsttime")+"00"); model.setValue("/root/main/peprterminfo/info/termfromdd", model.getValue("/root/init/today")); model.setValue("/root/main/peprterminfo/info/termtodd", "99991231"); model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/init/userinfo/userid")); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : µ¿ÀÇ¾î ¸®½ºÆ®¿¡¼­ ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fGetSynom(){ var iRow = grd_termlist.row; var indx = model.getValue("/root/hidden/condition/selectedIndx"); var path = model.getValue("/root/hidden/condition/selectedIndxPath"); var term = model.getValue("/root/main/sametermlist/info[" + iRow + "]/termcd"); model.setValue("/root/hidden/condition/selectedtermcd", term); opt_Hdicd9cd.visible = "true"; cmb_icd9cd.visible = "false"; btn_delete2.disabled = "false"; fDisabled("AS"); if( !isNull(iRow) ){ model.setValue("/root/hidden/condition/status", "STM"); //model.setValue("/root/main/peprterminfo/info/icd9cd", term.split(".")[0] + term.split(".")[1]); //icd9 //model.setValue("/root/main/peprterminfo/info/opattrcd", term.split(".")[2]); // È®ÀåÄÚµå //model.setValue("/root/main/peprterminfo/info/termcd", term.split(".")[3]); // ´ëÇ¥¾î(µ¿ÀǾî)ÄÚµå model.setValue("/root/main/peprterminfo/info/icd9cd", term.split(".")[0]); //icd9 model.setValue("/root/main/peprterminfo/info/opattrcd", term.split(".")[1]); // È®ÀåÄÚµå model.setValue("/root/main/peprterminfo/info/termcd", term.split(".")[2]); // ´ëÇ¥¾î(µ¿ÀǾî)ÄÚµå model.setValue("/root/main/peprterminfo/info/snmdcnptid", model.getValue("/root/main/sametermlist/info[" + iRow + "]/snmdcnptid")); // ½º³ë¸Þµå-dscrpt model.setValue("/root/main/peprterminfo/info/snmdcnptnm", model.getValue("/root/main/sametermlist/info[" + iRow + "]/snmdcnptnm")); // ½º³ë¸Þµå¸í model.setValue("/root/main/peprterminfo/info/calcscorcd", model.getValue("/root/main/sametermlist/info[" + iRow + "]/calcscorcd")); // ¼ö°¡ÄÚµå model.setValue("/root/main/peprterminfo/info/termengnm", model.getValue("/root/main/sametermlist/info[" + iRow + "]/termengnm")); // ¿µ¹® model.setValue("/root/main/peprterminfo/info/termhngnm", model.getValue("/root/main/sametermlist/info[" + iRow + "]/termhngnm")); // ÇÑ±Û model.setValue("/root/main/peprterminfo/info/reprflag", model.getValue("/root/main/sametermlist/info[" + iRow + "]/reprflag")); // ´ëÇ¥¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/termflag", model.getValue("/root/main/sametermlist/info[" + iRow + "]/termflag")); // ¿ë¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/main/sametermlist/info[" + iRow + "]/lastupdtrnm")); //ÀúÀå½Ã ÇÊ¿äÇÑ Å°°ª model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/sametermlist/info[" + iRow + "]/attrfromdd")); model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/sametermlist/info[" + iRow + "]/attrtodd")); model.setValue("/root/main/peprterminfo/info/icdfromdd", model.getValue("/root/main/sametermlist/info[" + iRow + "]/icdfromdd")); model.setValue("/root/main/peprterminfo/info/alttermcd", model.getValue("/root/main/sametermlist/info[" + iRow + "]/alttermcd")); var fstrgstdt = model.getValue("/root/main/sametermlist/info[" + iRow + "]/fstrgstdt"); var termfromdd = model.getValue("/root/main/sametermlist/info[" + iRow + "]/termfromdd"); var termtodd = model.getValue("/root/main/sametermlist/info[" + iRow + "]/termtodd"); model.setValue("/root/main/peprterminfo/info/fstrgstdt", fstrgstdt); // µî·ÏÀÏ model.setValue("/root/main/peprterminfo/info/fstrgstdate", fstrgstdt.substr(0,8)); model.setValue("/root/main/peprterminfo/info/fstrgsttime", fstrgstdt.substr(8,4)); model.setValue("/root/main/peprterminfo/info/termfromdd", termfromdd); // ½ÃÀÛÀÏ model.setValue("/root/main/peprterminfo/info/termtodd", termtodd); // Á¾·áÀÏ model.refresh(); } } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö¼ú¿ë¾î »ç¿ëÁ¾·á * @param : * @return : * @--------------------------------------------------- */ function fEndOpTerm(){ var selTermcd = model.getValue("/root/hidden/condition/selectedtermcd"); var selCd = model.getValue("/root/main/peprterminfo/info/icd9cd"); // var insicd9cd = selCd.substr(0,2) + "." + selCd.substr(2, selCd.length-2); // Edited by Nj 2007-08-07 IDC9ÄÚµåÀÇ '.'À» »èÁ¦Çϱâ·Î ÇÔ var insicd9cd = selCd var insopattrcd = model.getValue("/root/main/peprterminfo/info/opattrcd"); var insTermcd = model.getValue("/root/main/peprterminfo/info/termcd"); var fullTermCode = insicd9cd + "." + insopattrcd + "." + insTermcd; var sRow = grd_termlist.rows - grd_termlist.fixedRows; if(insTermcd == "" || insTermcd == null){ var rtn = messageBox("»èÁ¦ÇÒ ¼ö¼ú¿ë¾î Äڵ带 ", "C002"); return; } //´ëÇ¥¾îÀÏÁö¶óµµ µ¿ÀǾî/À¯»ç¾î°¡ ¾ø´Ù¸é »èÁ¦ °¡´ÉÇÔ. if(model.getValue("/root/main/peprterminfo/info/reprflag") == "R" && sRow >= 1) { model.makeValue("/root/send/reqdata/termcd", fullTermCode); model.makeValue("/root/send/reqdata/opattrcd", insicd9cd + "." + insopattrcd); model.makeValue("/root/send/reqdata/termflag", model.getValue("/root/hidden/condition/indxflag")); if(submit("TRMRT00709")){ var sametermyn = model.getValue("/root/hidden/exists/sametermyn"); if(sametermyn == "Y"){ var rtn = messageBox("´ëÇ¥¾î´Â »èÁ¦ ", "E001"); return; } } else { return; } } var rtn = messageBox("¼±ÅÃÇÑ ¼ö¼ú¿ë¾î¸¦", "Q001"); if( rtn == "6") { //¼ö¼úÄڵ带 »èÁ¦ÇϽðڽÀ´Ï±î? var altmsg = messageBox("´ëüÄڵ带", "Q014"); if(altmsg == "6"){ btn_altterm.disabled = "false"; var ref1 = "/root/main/peprterminfo/info/alttermcd"; var altflag = fCallTermSrch(ref1); btn_altterm.disabled = "true"; if(!altflag){ return; } } model.setValue("/root/hidden/condition/status", "TD"); model.removeNodeset("/root/send/reqdata"); model.makeValue("/root/send/reqdata/indxcd", model.getValue("/root/hidden/condition/selectedIndx")); model.makeValue("/root/send/reqdata/icd9cd", insicd9cd); model.makeValue("/root/send/reqdata/opattrcd", insicd9cd + "." + insopattrcd); model.makeValue("/root/send/reqdata/termcd", fullTermCode); model.makeValue("/root/send/reqdata/status", model.getValue("/root/hidden/condition/status")); //N:µî·Ï, M:¼öÁ¤, D:»èÁ¦ model.makeValue("/root/send/reqdata/termflag", "9"); //¿ë¾î±¸ºÐ model.makeValue("/root/send/reqdata/termfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.makeValue("/root/send/reqdata/oldtermfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.makeValue("/root/send/reqdata/attrfromdd", model.getValue("/root/main/peprterminfo/info/attrfromdd")); model.makeValue("/root/send/reqdata/oldattrfromdd", model.getValue("/root/main/peprterminfo/info/attrfromdd")); model.makeValue("/root/send/reqdata/alttermcd", model.getValue("/root/main/peprterminfo/info/alttermcd")); submit("TXMRT00701"); } else if( rtn == "7") { return; } var iRow = grd_opcd.findRow(insicd9cd + "." + insopattrcd, 0, 4, true, true); grd_opcd.row = iRow; model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ½Å±Ô ¿ë¾î µî·Ï * @param : * @return : * @--------------------------------------------------- */ function fSetNewTerm(){ var sIndx = model.getValue("/root/hidden/condition/selectedIndx"); var fromdd = ((getCurrentDate()).toDate()).getAddDate(1); if(sIndx == "" || sIndx == null){ var rtn = messageBox("»öÀÎÀ» ", "C002"); return; } model.removeNodeset("/root/main/sametermlist/info"); // ½Å±Ô¹öư Ŭ¸¯½Ã µ¿ÀÇ¾î ±×¸®½º ÃʱâÈ­ fCntlReset("ETN"); fDisabled("ETN"); model.setValue("/root/hidden/condition/status", "ETN"); model.removeNodeset("/root/send"); model.makeValue("/root/send/indxcd",sIndx); model.makeValue("/root/send/indxflag",model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/main/peprterminfo/info/reprflag", ""); //¼±ÅÃÇÑ À妽º¿¡ ÇØ´çÇÏ´Â icd9Äڵ带 °¡Áö°í ¿Â´Ù.. submit("TRMRT00706"); // Edited by NJ 2007-07-21 getDate() -> getCurrentDate() //model.setValue("/root/main/peprterminfo/info/attrfromdd", getDate()); model.setValue("/root/main/peprterminfo/info/termfromdd", fromdd.getDateFormat()); model.setValue("/root/main/peprterminfo/info/termtodd", "99991231"); model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/peprterminfo/info/termtodd")); model.setValue("/root/main/peprterminfo/info/fstrgstdate", getCurrentDate()); model.setValue("/root/main/peprterminfo/info/fstrgsttime", getCurrentTime()); model.setValue("/root/main/peprterminfo/info/fstrgstrid", getUserName()); model.setValue("/root/main/peprterminfo/info/essntermflag", "N"); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : µ¿ÀÇ¾î µî·Ï * @param : * @return : * @--------------------------------------------------- */ function fSetInj(){ //µ¿ÀÇ¾î ½Å±Ô var jRow = grd_opcd.row; var term1 = model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/termcd"); //¼ö¼ú¿ë¾î ±×¸®µå¿¡¼­ ¼±ÅÃÇÑ term var opattr = model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/opattrcd"); //±×¸®µå¿¡¼­ ¼±ÅÃÇÑ term var icd9cd = model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/icd9cd"); //±×¸®µå¿¡¼­ ¼±ÅÃÇÑ term var indx = model.getValue("/root/hidden/condition/selectedIndx"); //Æ®¸®¿¡¼­ ¼±ÅÃÇÑ index var fromdd = ((getCurrentDate()).toDate()).getAddDate(1); if(term1 == "" || term1 == null){ var rtn = messageBox("¼ö¼ú ¿ë¾î¸¦ ", "C002"); return; } fDisabled("TN"); opt_Hdicd9cd.visible = "true"; cmb_icd9cd.visible = "false"; btn_delete2.disabled = "true"; fCntlReset("TN"); model.setValue("/root/hidden/condition/status", "TN"); //term¸¸ new model.removeNodeset("/root/send"); model.removeNodeset("/root/main/temp"); model.makeValue("/root/send/reqdata/reqdata/icd9cd", icd9cd); model.makeValue("/root/send/reqdata/reqdata/opattrcd", opattr); model.makeNode("/root/main/temp/info"); submit("TRMRT00708"); //Edited by nj 20071010 ICD9Äڵ忡¼­ .À» Á¦°Å //icd9cd = icd9cd.substr(0,2) + icd9cd.substr(3, icd9cd.length-2); model.setValue("/root/main/peprterminfo/info/icd9cd", icd9cd); model.setValue("/root/main/peprterminfo/info/opattrcd", model.getValue("/root/main/temp/info/opattrcd").split(".")[1]); model.setValue("/root/main/peprterminfo/info/termcd", model.getValue("/root/main/temp/info/termcd")); model.setValue("/root/main/peprterminfo/info/reprflag", ""); model.setValue("/root/main/peprterminfo/info/opattrmedireccd", model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/opattrmedireccd")); //model.setValue("/root/main/peprterminfo/info/opattrdrindxcd", model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/opattrmedireccd").split(".")[0]); var path = model.getValue("/root/hidden/condition/selectedIndxPath").split("."); model.setValue("/root/main/peprterminfo/info/opattrdrindxcd", path[path.length-2]); model.setValue("/root/main/peprterminfo/info/termflag", "9"); model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/init/userinfo/userid")); model.setValue("/root/main/peprterminfo/info/termengnm", model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/termengnm")); model.setValue("/root/main/peprterminfo/info/termhngnm", model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/termhngnm")); model.makeValue("/root/main/peprterminfo/info/oldattrfromdd", model.getValue("/root/main/opcdinfo/opcd[" + jRow + "]/attrfromdd")); //½Å±Ô µî·Ï ¸ðµå´Â µðÆúÆ®¸¦ ¼³Á¤ model.setValue("/root/main/peprterminfo/info/fstrgstdate", model.getValue("/root/init/today")); model.setValue("/root/main/peprterminfo/info/fstrgsttime", model.getValue("/root/init/curruntTime")); model.setValue("/root/main/peprterminfo/info/fstrgstdt", model.getValue("/root/main/peprterminfo/info/fstrgstdate")+model.getValue("/root/main/peprterminfo/info/fstrgsttime")+"00"); model.setValue("/root/main/peprterminfo/info/termfromdd", fromdd.getDateFormat()); model.setValue("/root/main/peprterminfo/info/termtodd", "99991231"); model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/init/userinfo/usernm")); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿ë¾î ¼öÁ¤ * @param : * @return : * @--------------------------------------------------- */ function fSetTermUpdt(){ var selTermcd = model.getValue("/root/hidden/condition/selectedtermcd"); var fromdd = ((getCurrentDate()).toDate()).getAddDate(1); if(selTermcd == "" || selTermcd == null){ var rtn = messageBox("icd9 Äڵ带 ", "C002"); return; } // Edited by NJ 2007-07-21 getDate() -> getCurrentDate() //var today = getDate(); var today = getCurrentDate(); if(model.getValue("/root/main/peprterminfo/info/termfromdd") == today){ var rtn = messageBox("´çÀÏ µî·ÏÇÑ ¿ë¾î´Â ¼öÁ¤ ", "E001"); return; } fDisabled("ETM"); btn_delete2.disabled = "true"; model.setValue("/root/hidden/condition/status", "ETM"); model.makeValue("/root/main/peprterminfo/info/oldtermfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.makeValue("/root/main/peprterminfo/info/oldattrfromdd", model.getValue("/root/main/peprterminfo/info/attrfromdd")); model.setValue("/root/main/peprterminfo/info/termfromdd", fromdd.getDateFormat()); model.setValue("/root/main/peprterminfo/info/termtodd", "99991231"); model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/peprterminfo/info/termtodd")); model.setValue("/root/main/peprterminfo/info/fstrgstdate", getCurrentDate()); model.setValue("/root/main/peprterminfo/info/fstrgsttime", getCurrentTime()); model.setValue("/root/main/peprterminfo/info/fstrgstrid", getUserName()); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö¼ú¿ë¾î ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveOp(){ var selCd = model.getValue("/root/main/peprterminfo/info/icd9cd"); //var insicd9cd = selCd.substr(0,2) + "." + selCd.substr(2, selCd.length-2); // Edited by Nj 2007-08-07 IDC9ÄÚµåÀÇ '.'À» »èÁ¦Çϱâ·Î ÇÔ var insicd9cd = selCd; var insopattrcd = model.getValue("/root/main/peprterminfo/info/opattrcd"); var insTermcd = model.getValue("/root/main/peprterminfo/info/termcd"); var fullTermCode = insicd9cd + "." + insopattrcd + "." + insTermcd; var rowCnt = grd_opcd.row; var orgReprFlag = model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/reprflag"); //»ó´Ü ±×¸®µåÀÇ ¿ø·¡ ´ëÇ¥¾î±¸ºÐ var chngReprFlag = model.getValue("/root/main/peprterminfo/info/reprflag"); //ÀúÀå Àü ¼±ÅÃÇÑ ´ëÇ¥¾î±¸ºÐ model.removeNodeset("/root/send"); model.makeNode("/root/send/reqdata"); model.copyNode("/root/send/reqdata", "/root/main/peprterminfo/info"); model.setValue("/root/send/reqdata/icd9cd", insicd9cd); model.setValue("/root/send/reqdata/opattrcd", insicd9cd + "." + insopattrcd); model.setValue("/root/send/reqdata/termcd", fullTermCode); model.setValue("/root/send/reqdata/fstrgstdt", model.getValue("/root/main/peprterminfo/info/fstrgstdate") + model.getValue("/root/main/peprterminfo/info/fstrgsttime")+"00"); model.setValue("/root/send/reqdata/termflag", "9"); //defalut :¼ö¼ú¿ë¾î(9) model.makeValue("/root/send/reqdata/indxcd", model.getValue("/root/hidden/condition/selectedIndx")); model.makeValue("/root/send/reqdata/status", model.getValue("/root/hidden/condition/status")); //TN:¿ë¾î¸¸ µî·Ï, ETN:¿ë¾î,¼Ó¼ºÇÔ²²µî·Ï,TM:¿ë¾î¸¸¼öÁ¤, EM:¼Ó¼º¸¸¼öÁ¤, //ETM:¿ë¾î,¼Ó¼ºÇÔ²²¼öÁ¤, ¿ë¾î¼öÁ¤+´ëÇ¥¾î±³È¯, ETM:¼Ó¼º¼öÁ¤+´ëÇ¥¾î±³È¯, ETFM:¿ë¾î,¼Ó¼º¼öÁ¤+´ëÇ¥¾î±³È¯, FM:´ëÇ¥¾î¸¸ ±³È¯ model.makeValue("/root/send/reqdata/maininstyn", model.getValue("/root/hidden/condition/maininstyn")); model.makeValue("/root/send/reqdata/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); if(model.getValue("/root/hidden/condition/status") == "ETN" || model.getValue("/root/hidden/condition/status") == "TN") { if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } else if( model.getValue("/root/hidden/condition/status") == "STM" ) { //¿À¸¥ÂÊ ±×¸®µå¿¡¼­ Á¤º¸¸¦ ¼±ÅÃÇßÀ» ¶§ var sRowCnt = grd_termlist.row; var OrgReprFlag2 = model.getValue("/root/main/sametermlist/info[" + sRowCnt + "]/reprflag"); if(fullTermCode == model.getValue("/root/main/sametermlist/info[" + sRowCnt + "]/termcd")) { if(model.getValue("/root/main/sametermlist/info[" + sRowCnt + "]/termengnm") != model.getValue("/root/main/peprterminfo/info/termengnm") || model.getValue("/root/main/sametermlist/info[" + sRowCnt + "]/termhngnm") != model.getValue("/root/main/peprterminfo/info/termhngnm") || model.getValue("/root/main/sametermlist/info[" + sRowCnt + "]/termflag") != model.getValue("/root/main/peprterminfo/info/termflag")) { if( OrgReprFlag2 != chngReprFlag ){ if( OrgReprFlag2 != "R" ) { //µ¿ÀǾ À¯»ç¾î¸¦ ´ëÇ¥¾î·Î ¼öÁ¤ÇÏ´Â °æ¿ì (´ëÇ¥¾î±¸ºÐÄڵ带 ¸Â±³È¯) if( chngReprFlag != "R" ) model.setValue("/root/send/reqdata/status", "TM"); else { model.setValue("/root/send/reqdata/reprflag", OrgReprFlag2); //´ëÇ¥¾î±¸ºÐÀ» ±³È¯Çϱâ À§ÇØ ¿ø·¡ °ªÀ» ´Ù½Ã ¼¼ÆÃÇÑ´Ù. model.setValue("/root/send/reqdata/status", "TFM"); } if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } else { var rtn = messageBox("´ëÇ¥¾î¸¦ µ¿ÀǾ À¯»ç¾î·Î ¼öÁ¤ ", "E001"); return; //µ¿ÀǾ ´ëÇ¥¾î·Î ¹Ù²Ù´Â °Í¸¸ Çã¿ë } } else { model.setValue("/root/send/reqdata/status", "TM"); if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } } else { var rtn = messageBox("º¯°æµÈ ³»¿ëÀÌ ¾øÀ¸¹Ç·Î ÀúÀå ", "E001"); return; } } else { var rtn = messageBox("½Å±ÔÀÔ·Â ¹öưÀ» ", "C002"); return; } } else { if(fullTermCode == model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/termcd")) { // ¿ë¾î¸íĪÀÌ ¹Ù²ï °æ¿ì if(model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/termengnm") != model.getValue("/root/main/peprterminfo/info/termengnm") || model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/termhngnm") != model.getValue("/root/main/peprterminfo/info/termhngnm") || model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/termflag") != model.getValue("/root/main/peprterminfo/info/termflag")) { if(model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/opattrverflag") != model.getValue("/root/main/peprterminfo/info/opattrverflag") || //model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/opattrdrindxcd") != model.getValue("/root/main/peprterminfo/info/opattrdrindxcd") || model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/opattrmedireccd") != model.getValue("/root/main/peprterminfo/info/opattrmedireccd") || //model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/snmdcnptid") != model.getValue("/root/main/peprterminfo/info/snmdcnptid") || model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/calcscorcd") != model.getValue("/root/main/peprterminfo/info/calcscorcd")) { if(orgReprFlag != chngReprFlag ){ if(orgReprFlag != "R" ) { //µ¿ÀǾ À¯»ç¾î¸¦ ´ëÇ¥¾î·Î ¼öÁ¤ÇÏ´Â °æ¿ì (´ëÇ¥¾î±¸ºÐÄڵ带 ¸Â±³È¯) if( chngReprFlag != "R" ) model.setValue("/root/send/reqdata/status", "ETM"); else { model.setValue("/root/send/reqdata/orgreprflag", orgReprFlag); //´ëÇ¥¾î±¸ºÐÀ» ±³È¯Çϱâ À§ÇØ ¿ø·¡ °ªÀ» ´Ù½Ã ¼¼ÆÃÇÑ´Ù. model.setValue("/root/send/reqdata/status", "ETFM"); } if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } else { var rtn = messageBox("´ëÇ¥¾î¸¦ µ¿ÀǾ À¯»ç¾î·Î ¼öÁ¤ ", "E001"); return; //µ¿ÀǾ ´ëÇ¥¾î·Î ¹Ù²Ù´Â °Í¸¸ Çã¿ë } } else { model.setValue("/root/send/reqdata/status", "ETM"); if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } } else { //¿ë¾îÅ×ÀÌºí¸¸ ¼öÁ¤µÇ¾úÀ» °æ¿ì if(orgReprFlag != chngReprFlag ){ if(orgReprFlag != "R" ) { //µ¿ÀǾ À¯»ç¾î¸¦ ´ëÇ¥¾î·Î ¼öÁ¤ÇÏ´Â °æ¿ì (´ëÇ¥¾î±¸ºÐÄڵ带 ¸Â±³È¯) if( chngReprFlag != "R" ) model.setValue("/root/send/reqdata/status", "TM"); else { model.setValue("/root/send/reqdata/orgreprflag", orgReprFlag); //´ëÇ¥¾î±¸ºÐÀ» ±³È¯Çϱâ À§ÇØ ¿ø·¡ °ªÀ» ´Ù½Ã ¼¼ÆÃÇÑ´Ù. model.setValue("/root/send/reqdata/status", "TFM"); } if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.refresh(); } } else { var rtn = messageBox("´ëÇ¥¾î¸¦ µ¿ÀǾ À¯»ç¾î·Î ¼öÁ¤ ", "E001"); return; } } else { model.setValue("/root/send/reqdata/status", "TM"); if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } } } else { //¼Ó¼º¸¸ ¼öÁ¤ if(model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/opattrverflag") != model.getValue("/root/main/peprterminfo/info/opattrverflag") || //model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/opattrdrindxcd") != model.getValue("/root/main/peprterminfo/info/opattrdrindxcd") || model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/opattrmedireccd") != model.getValue("/root/main/peprterminfo/info/opattrmedireccd") || //model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/snmdcnptid") != model.getValue("/root/main/peprterminfo/info/snmdcnptid") || model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/calcscorcd") != model.getValue("/root/main/peprterminfo/info/calcscorcd")) { if(orgReprFlag != chngReprFlag ){ if(orgReprFlag != "R" ) { //µ¿ÀǾ À¯»ç¾î¸¦ ´ëÇ¥¾î·Î ¼öÁ¤ÇÏ´Â °æ¿ì (´ëÇ¥¾î±¸ºÐÄڵ带 ¸Â±³È¯) model.setValue("/root/send/reqdata/reprflag", orgReprFlag); //´ëÇ¥¾î±¸ºÐÀ» ±³È¯Çϱâ À§ÇØ ¿ø·¡ °ªÀ» ´Ù½Ã ¼¼ÆÃÇÑ´Ù. if( chngReprFlag != "R" ) model.setValue("/root/send/reqdata/status", "ETM"); else { model.setValue("/root/send/reqdata/reprflag", orgReprFlag); //´ëÇ¥¾î±¸ºÐÀ» ±³È¯Çϱâ À§ÇØ ¿ø·¡ °ªÀ» ´Ù½Ã ¼¼ÆÃÇÑ´Ù. model.setValue("/root/send/reqdata/status", "EFM"); } if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } else { var rtn = messageBox("´ëÇ¥¾î¸¦ µ¿ÀǾ À¯»ç¾î·Î ¼öÁ¤ ", "E001"); return; //µ¿ÀǾ ´ëÇ¥¾î·Î ¹Ù²Ù´Â °Í¸¸ Çã¿ë } } else { model.setValue("/root/send/reqdata/status", "EM"); if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } } else { //¿ë¾îÅ×ÀÌºí¸¸ ¼öÁ¤µÇ¾úÀ» °æ¿ì if(orgReprFlag != chngReprFlag ){ if(orgReprFlag != "R" ) { //µ¿ÀǾ À¯»ç¾î¸¦ ´ëÇ¥¾î·Î ¼öÁ¤ÇÏ´Â °æ¿ì (´ëÇ¥¾î±¸ºÐÄڵ带 ¸Â±³È¯) if( chngReprFlag != "R" ) model.setValue("/root/send/reqdata/status", "TM"); else { model.setValue("/root/send/reqdata/reprflag", orgReprFlag); //´ëÇ¥¾î±¸ºÐÀ» ±³È¯Çϱâ À§ÇØ ¿ø·¡ °ªÀ» ´Ù½Ã ¼¼ÆÃÇÑ´Ù. model.setValue("/root/send/reqdata/status", "FM"); } if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } else { var rtn = messageBox("´ëÇ¥¾î¸¦ µ¿ÀǾ À¯»ç¾î·Î ¼öÁ¤ ", "E001"); return; //µ¿ÀǾ ´ëÇ¥¾î·Î ¹Ù²Ù´Â °Í¸¸ Çã¿ë } } else { if (model.getValue("/root/main/opcdinfo/opcd[" + rowCnt + "]/snmdcnptid") != model.getValue("/root/main/peprterminfo/info/snmdcnptid")) { model.setValue("/root/send/reqdata/status", "TM"); if(submit("TXMRT00701")){ fCntlReset("SAVE"); model.removeNodeset("/root/main/sametermlist"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.refresh(); } } else { var rtn = messageBox("¼öÁ¤µÈ »çÇ×ÀÌ ¾øÀ¸¹Ç·Î ¼öÁ¤ ", "E001"); return; } } } } } else { var rtn = messageBox("¿ë¾î¸¦ ÀÔ·ÂÇϽ÷Á¸é ÀÔ·Â ¹öưÀ» ", "C002"); return; } } fDisabled("AS"); btn_delete2.disabled = "false"; model.setValue("/root/hidden/condition/status", ""); //¼­ºê¹Ô ½ÇÇà ÈÄ »óÅ ÃʱâÈ­ } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : µ¿ÀÇ¾î ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetSynomList(){ grd_termlist.colHidden(1) = true; var iRow = grd_opcd.row; opt_Hdicd9cd.visible = "true"; cmb_icd9cd.visible = "false"; cap_allinsthist.visible = "false"; cmb_allinsthist.visible = "false"; fDisabled("S"); btn_insert2.disabled = "false"; button4.disabled = "false"; btn_save1.disabled = "false"; btn_delete2.disabled = "false"; //2009-04-28 ¿ÀÈÄ 3:21:38 °­ÁöÈÆ ¼öÁ¤ : Áß¾ÓÀÌ ¾Æ´Ñ ±â°üÀϰæ¿ì È®Àå,¿ë¾îÄڵ尡 000.00ÀΰÍÀº ¼öÁ¤ºÒ°¡Ã³¸® var term = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termcd"); var diagattrcd = model.getValue("/root/main/peprterminfo/info/opattrcd"); var termcd = model.getValue("/root/main/peprterminfo/info/termcd"); var maininstyn = model.getValue("/root/hidden/condition/maininstyn"); if(maininstyn == "N" && diagattrcd == "000" && termcd == "00"){ btn_modify1.disabled = true; } else{ btn_modify1.disabled = false; } model.setValue("/root/hidden/condition/sametermmode", "U"); model.removeNodeset("/root/send"); model.makeValue("/root/send/opattrcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrcd")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); model.makeValue("/root/send/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); submit("TRMRT00705"); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿ë¾î ÀÌ·Â ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetOpTermHistList(){ grd_termlist.colHidden(1) = true; var iRow = grd_opcd.row - grd_opcd.fixedRows + 1; opt_Hdicd9cd.visible = "true"; cmb_icd9cd.visible = "false"; cap_allinsthist.visible = "false"; cmb_allinsthist.visible = "false"; fDisabled("S"); btn_insert2.disabled = "false"; button4.disabled = "false"; btn_save1.disabled = "false"; btn_delete2.disabled = "false"; //2009-04-28 ¿ÀÈÄ 3:21:38 °­ÁöÈÆ ¼öÁ¤ : Áß¾ÓÀÌ ¾Æ´Ñ ±â°üÀϰæ¿ì È®Àå,¿ë¾îÄڵ尡 000.00ÀΰÍÀº ¼öÁ¤ºÒ°¡Ã³¸® var term = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termcd"); var diagattrcd = model.getValue("/root/main/peprterminfo/info/opattrcd"); var termcd = model.getValue("/root/main/peprterminfo/info/termcd"); var maininstyn = model.getValue("/root/hidden/condition/maininstyn"); if(maininstyn == "N" && diagattrcd == "000" && termcd == "00"){ btn_modify1.disabled = true; } else{ btn_modify1.disabled = false; } model.setValue("/root/hidden/condition/sametermmode", "N"); model.removeNodeset("/root/send"); model.makeValue("/root/send/opattrcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrcd")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); model.makeValue("/root/send/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); submit("TRMRT00705"); model.refresh(); } /** * @group : * @ver : 2009.03.19 * @by : °­ÁöÈÆ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿ë¾î ±â°üº° ÀÌ·Â ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetDiagInstTermHistList(){ var iRow = grd_opcd.row - grd_opcd.fixedRows + 1; opt_Hdicd9cd.visible = "true"; cmb_icd9cd.visible = "false"; fDisabled("AS"); grd_termlist.colHidden(1) = false; cap_allinsthist.visible = "true"; cmb_allinsthist.visible = "true"; btn_insert2.disabled = "true"; btn_modify1.disabled = "true"; button4.disabled = "true"; btn_save1.disabled = "true"; btn_delete2.disabled = "true"; model.setValue("/root/hidden/condition/sametermmode", "H"); model.removeNodeset("/root/send"); model.makeValue("/root/send/opattrcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrcd")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); model.makeValue("/root/send/allinsthist", model.getValue("/root/hidden/condition/allinsthist")); submit("TRMRT00705"); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö¼ú ¿ë¾î ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelOpTerm(){ opt_Hdicd9cd.visible = "true"; cmb_icd9cd.visible = "false"; //2009-03-20 ¿ÀÀü 9:12:31 °­ÁöÈÆ ¼öÁ¤ : ±â°üº° »ç¿ë ÀÌ·ÂÁ¶È¸¿¡¼­´Â ½Å±ÔÀԷ¿ÜÀÇ Operation ±ÝÁö var sameTermMode = model.getValue("/root/hidden/condition/sametermmode"); if(sameTermMode != "H"){ btn_delete2.disabled = "false"; } fDisabled("AS"); var iRow = grd_opcd.row; var opattr = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrcd"); var term = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termcd"); var icd9cd = term.split(".")[0]; var opattrcd = term.split(".")[1]; var termcd = term.split(".")[2]; if( !isNull(iRow) ) { model.setValue("/root/hidden/condition/status", ""); model.setValue("/root/hidden/condition/selectedtermcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termcd")); model.setValue("/root/main/peprterminfo/info/icd9cd", icd9cd); //icd9 model.setValue("/root/main/peprterminfo/info/opattrcd", opattrcd); // È®ÀåÄÚµå model.setValue("/root/main/peprterminfo/info/termcd", termcd); // ´ëÇ¥¾î(µ¿ÀǾî)ÄÚµå model.setValue("/root/main/peprterminfo/info/snmdcnptid", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/snmdcnptid")); // ½º³ë¸Þµå-dscrpt model.setValue("/root/main/peprterminfo/info/snmdcnptnm", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/snmdcnptnm")); // ½º³ë¸Þµå-dscrpt model.setValue("/root/main/peprterminfo/info/snmddescid", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/snmddescid")); // ½º³ë¸Þµå-cncpt model.setValue("/root/main/peprterminfo/info/termengnm", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termengnm")); // ¿µ¹® model.setValue("/root/main/peprterminfo/info/termhngnm", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termhngnm")); // ÇÑ±Û model.setValue("/root/main/peprterminfo/info/reprflag", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/reprflag")); // ´ëÇ¥¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/termflag", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termflag")); // ¿ë¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/opattrdrindxcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrdrindxcd")); // ÀÇ»ç»öÀÎ model.setValue("/root/main/peprterminfo/info/opattrmedireccd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrmedireccd")); // Àǹ«±â·Ï»öÀÎ model.setValue("/root/main/peprterminfo/info/opattrverflag", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrverflag")); // ¹öÀü model.setValue("/root/main/peprterminfo/info/calcscorcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/calcscorcd")); // ¼ö°¡ÄÚµå model.setValue("/root/main/peprterminfo/info/umlscd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/umlscd")); // UMLSÄÚµå //model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/fstrgstrid")); model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/lastupdtrnm")); model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/attrfromdd")); model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/attrtodd")); model.setValue("/root/main/peprterminfo/info/icdfromdd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/icdfromdd")); model.setValue("/root/main/peprterminfo/info/alttermcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/alttermcd")); model.setValue("/root/main/peprterminfo/info/essntermflag", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/essntermflag")); var fstrgstdt = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/fstrgstdt"); var termfromdd = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termfromdd"); var termtodd = model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termtodd"); model.setValue("/root/main/peprterminfo/info/fstrgstdt", fstrgstdt); // µî·ÏÀÏ model.setValue("/root/main/peprterminfo/info/fstrgstdate", fstrgstdt.substr(0,8)); model.setValue("/root/main/peprterminfo/info/fstrgsttime", fstrgstdt.substr(8,4)); model.setValue("/root/main/peprterminfo/info/termfromdd", termfromdd); // ½ÃÀÛÀÏ model.setValue("/root/main/peprterminfo/info/termtodd", termtodd); // Á¾·áÀÏ //2009-04-28 ¿ÀÈÄ 3:21:38 °­ÁöÈÆ ¼öÁ¤ : Áß¾ÓÀÌ ¾Æ´Ñ ±â°üÀϰæ¿ì È®Àå,¿ë¾îÄڵ尡 000.00ÀΰÍÀº ¼öÁ¤ºÒ°¡Ã³¸®, ±â°üº°»ç¿ëÀÌ·ÂÁ¶È¸À϶§µµ ºÒ°¡ var maininstyn = model.getValue("/root/hidden/condition/maininstyn"); if(sameTermMode != "H"){ if(maininstyn == "N" && opattrcd == "000" && termcd == "00"){ btn_modify1.disabled = true; } else{ btn_modify1.disabled = false; } } else{ btn_modify1.disabled = true; } model.removeNodeset("/root/send"); model.makeValue("/root/send/opattrcd", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/opattrcd")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); model.makeValue("/root/send/allinsthist", model.getValue("/root/hidden/condition/allinsthist")); model.makeValue("/root/send/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); model.makeValue("/root/send/termcd", term); model.makeValue("/root/send/termflag", model.getValue("/root/main/opcdinfo/opcd[" + iRow + "]/termflag")); submit("TRMRT00705"); model.setValue("/root/main/peprterminfo/info/appinstcd", model.getValue("/root/main/sametermlist/appinstcd/appinstcd")); model.refresh(); } } function fChngLangIndx(){ var selectedmode = model.getValue("/root/hidden/condition/selctedmode"); if(selectedmode != "P"){ model.removeNodeset("/root/send"); model.makeValue("/root/send/mode",model.getValue("/root/hidden/condition/indxviewmode")); model.makeValue("/root/send/indxflag",model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/send/indxuseflag",model.getValue("/root/hidden/condition/indxuseflag")); submit("TRMRT00701"); trv_dgindx.rebuild(); model.refresh(); } } function fSelICD9List(){ var sSelectedMode = model.getValue("/root/hidden/condition/selctedmode"); btn_addrow.attribute("visibility") = "visible"; btn_delrow.attribute("visibility") = "visible"; btn_saverow.attribute("visibility") = "visible"; btn_modify.attribute("visibility") = "visible"; if(sSelectedMode == "D" || sSelectedMode == "P") { model.setValue("/root/hidden/condition/indxflag", "9"); model.removeNodeset("/root/send"); model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/indxviewmode")); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); submit("TRMRT00701"); model.refresh(); } model.setValue("/root/hidden/condition/selctedmode", "I"); } function fICD9Save(){ model.removeNodeset("/root/send"); var RowCnt = grd_icd9.rows; model.makeValue("/root/send/reqdata",""); var cnt = 1; for ( i=1; i<=RowCnt; i++) { if(model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/state") == "I" || model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/state") == "U" || model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/state") == "D") { model.makeValue("/root/send/reqdata[" + cnt + "]/state", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/state")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9cd", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9cd")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9drindxcd", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9drindxcd")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9medireccd", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9medireccd")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9engnm", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9engnm")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9hngnm", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9hngnm")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9seqno", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9seqno")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9fromdd", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9fromdd")); model.makeValue("/root/send/reqdata[" + cnt + "]/icd9todd", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/icd9todd")); model.makeValue("/root/send/reqdata[" + cnt + "]/fstrgstrid", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/fstrgstrid")); model.makeValue("/root/send/reqdata[" + cnt + "]/lastupdtrid", model.getValue("/root/main/opcdinfo/icd9cd[" + i + "]/lastupdtrid")); cnt++; } } model.makeValue("/root/send/reqdata/indxcd", model.getValue("/root/hidden/condition/selectedIndx")); model.makeValue("/root/send/reqdata/indxflag", model.getValue("/root/hidden/condition/indxflag")); submit("TXMRT00703"); grd_icd9.rebuild(); model.refresh(); } /** * @group : * @ver : 2008.07.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ICD9ÄÚµå »èÁ¦ * @param : * @return : * @--------------------------------------------------- */ function fDelRow(flag) { var iRow = grd_icd9.row - grd_icd9.fixedRows + 1; if(model.getValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9cd") == ""){ return; } if(flag == "I") { iRow = grd_icd9.row - grd_icd9.fixedRows + 1; model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/state", "D"); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9todd", model.getValue("/root/init/today")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/lastupdtdt", model.getValue("/root/init/today")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/lastupdtrid", model.getValue("/root/init/userinfo/userid")); } model.refresh(); } /** * @group : * @ver : 2008.11.29 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »ç¿ëÁ¾·á ¿ë¾î µÇ»ì¸®±â * @param : * @return : * @--------------------------------------------------- */ function fRollbackTerm(){ var icd9cd = model.getValue("/root/main/peprterminfo/info/icd9cd"); var attrcd = model.getValue("/root/main/peprterminfo/info/opattrcd"); var termcd = model.getValue("/root/main/peprterminfo/info/termcd"); var fullTermcd = icd9cd + "." + attrcd + "." + termcd; model.removeNodeset("/root/send"); model.makeNode("/root/send/reqdata"); model.copyNode("/root/send/reqdata", "/root/main/peprterminfo/info"); model.setValue("/root/send/reqdata/icd9cd", icd9cd); model.setValue("/root/send/reqdata/opattrcd", icd9cd + "." + attrcd); model.setValue("/root/send/reqdata/termcd", fullTermcd); model.setValue("/root/send/reqdata/termflag", "9"); model.setValue("/root/send/reqdata/termfromdd", model.getValue("/root/init/today")); model.setValue("/root/send/reqdata/termtodd", "99991231"); model.makeValue("/root/send/reqdata/indxcd", model.getValue("/root/hidden/condition/selectedIndx")); if(termcd == "00"){ model.makeValue("/root/send/reqdata/status", "ETN"); model.makeValue("/root/send/reqdata/attrfromdd", model.getValue("/root/init/today")); model.makeValue("/root/send/reqdata/attrtodd", "99991231"); } else { model.makeValue("/root/send/reqdata/status", "TN"); } submit("TXMRT00701"); } /** * @group : * @ver : 2008.11.29 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ICD9 * @param : * @return : * @--------------------------------------------------- */ function fEditRow(flag){ var iRow = grd_icd9.row - grd_icd9.fixedRows + 1; var currentTime = getCurrentTime(); if(model.getValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9cd") == ""){ return; } if(flag == "I") { model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/state", "U"); model.makeValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/oldfromdd", model.getValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9fromdd")); model.makeValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/oldtodd", model.getValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9todd")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9fromdd", model.getValue("/root/init/today")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/icd9todd", "99991231"); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/fstrgstdt", model.getValue("/root/init/today") + currentTime.substr(0,6)); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/fstrgstrid", model.getValue("/root/init/userinfo/userid")); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/lastupdtdt", model.getValue("/root/init/today") + currentTime.substr(0,6)); model.setValue("/root/main/opcdinfo/icd9cd[" + iRow + "]/lastupdtrid", model.getValue("/root/init/userinfo/userid")); } model.refresh(); } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿À¸¥ÂÊ ¸¶¿ì½º ÆË¾÷ È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fCallPopup(flag){ if(flag == "grd_opcd"){ if(isDataCell()){ setPopupMenu(flag, false, "/root/init/func/mouserght", "label", "value"); } } else if(flag == "trv_dgindx"){ if(trv_dgindx.value == ""){ return; } setPopupMenu(flag, false, "/root/init/func/trvmouserght", "label", "value"); } else { initPopupMenu(); } } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎ º¯°æ ó¸® * @param : * @return : * @--------------------------------------------------- */ function fModifyIndx(){ var selTab = model.getValue("/root/hidden/condition/selctedmode"); model.removenode("/root/hidden/reqdata"); if(selTab == "D"){ selectedRows = grd_opcd.selectedRows; for(var cnt = 0; cnt <= selectedRows -1; cnt++){ copyNodeset("/root/hidden/reqdata/opindxlist", "/root/main/opcdinfo/opcd[" + grd_opcd.selectedrow(cnt) + "]", "append"); } } } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎ º¯°æÇÒ À妽º·Î À̵¿ ó¸® * @param : * @return : * @--------------------------------------------------- */ function fPasteIndx(){ var selTab = model.getValue("/root/hidden/condition/selctedmode"); var iIndx = trv_dgindx.focusIndex + 1; var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"); var selIndxDrdiflag = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxdrdiflag"); var msg = messageBox("»öÀÎÀ»", "Q012"); if(msg == "7"){ return; } switch(selTab){ case "D": copyNodeset("/root/send/reqdata/opindxlist", "/root/hidden/reqdata/opindxlist"); model.makeValue("/root/send/reqdata/chnginfo/chngindxcd", selIndxCd); model.makeValue("/root/send/reqdata/chnginfo/indxdrdiflag", selIndxDrdiflag); model.makeValue("/root/send/reqdata/chnginfo/indxflag", selTab); if(msg == "6"){ if(submit("TXMRT00704")){ messageBox("»öÀÎ º¯°æÀÌ","I001"); grd_opcd.refresh(); } else { messageBox("»öÀÎ º¯°æÀ»","E009"); } } model.removeNodeset("/root/send/reqdata"); model.removeNodeset("/root/hidden/reqdata"); break; } } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ´ëüÄÚµå °Ë»ö * @param : * @return : * @--------------------------------------------------- */ function fCallTermSrch(ref1){ var alttermcd = model.getValue("/root/main/peprterminfo/info/alttermcd"); var curr_date = model.getValue("/root/init/today"); model.removeNodeset("/root/temp/terminfo/altterminfo"); setParameter("SPMRT01500_param_nodepath", "/root/temp/terminfo/altterminfo"); setParameter("SPMRT01500_SEARCHDATA", alttermcd); setParameter("SPMRT01500_FLAG", "5"); setParameter("stndd", curr_date); // 2009-08-03 nj Ãß°¡ setParameter("maininstyn", "Y"); modal("SPMRT01500"); if(getParameter("SPMRT01500_FLAG") == ""){ return; } if(getNodesetCnt(model,"/root/temp/terminfo/altterminfo")>0){ model.setValue(ref1, model.getValue("/root/temp/terminfo/altterminfo/selectoplist/opcd")); ipt_alttermcd.refresh(); return true; } else { return false; } } /** * @group : * @ver : 2009.02.11 * @by : °­ÁöÈÆ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±â°üº° ¿ë¾î »ç¿ë¿©ºÎ ¼³Á¤ * @param : * @return : * @--------------------------------------------------- */ function fTermUseSave(){ model.removeNodeset("/root/send"); var RowCnt = grd_opcd.rows; model.makeValue("/root/send/termuse",getGridUpdateData(grd_opcd)); submit("TXMRT00206"); model.refresh(); }