/** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸éÀ» ÃʱâÈ­ ÇÑ´Ù * @param : * @return : * @--------------------------------------------------- */ function fInitalize(){ 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", "C"); model.setValue("/root/init/userinfo/userid", getUserId()); model.setValue("/root/init/userinfo/usernm", getUserName()); model.setValue("/root/init/userinfo/instcd", instcd); //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.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")); grd_cchist.colHidden(1) = true; submit("TRMRT00301"); 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 == "N" || flag == "M") { ipt_icd10cd.disabled = "false"; btn_icd10cd.disabled = "false"; ipt_hngnm.disabled = "false"; ipt_engnm.disabled = "false"; ipt_termfromdd.disabled = "false"; ipt_ccattrcd.disabled = "true"; ipt_termcd.disabled = "true"; if(maininstyn == "Y"){ rdo_essntermflag.disabled = "false"; } if(flag == "M"){ ipt_snmdcnptid.disabled = "true"; btn_snmdcnptid.disabled = "true"; btn_snmddescid.disabled = "true"; ipt_termtodd.disabled = "true"; if(maininstyn == "Y"){ rdo_essntermflag.disabled = "false"; } } else { ipt_snmdcnptid.disabled = "false"; btn_snmdcnptid.disabled = "false"; btn_snmddescid.disabled = "false"; ipt_termtodd.disabled = "false"; if(maininstyn == "Y"){ cap_appinst.disabled = "false"; chk_appinst.disabled = "false"; rdo_essntermflag.disabled = "false"; } } } else if(flag == "AS") { //??? ?? ?? ipt_snmdcnptid.disabled = "true"; btn_snmdcnptid.disabled = "true"; btn_snmddescid.disabled = "true"; ipt_icd10cd.disabled = "true"; btn_icd10cd.disabled = "true"; ipt_hngnm.disabled = "true"; ipt_engnm.disabled = "true";; ipt_termfromdd.disabled = "true"; ipt_termtodd.disabled = "true"; ipt_ccattrcd.disabled = "true"; ipt_termcd.disabled = "true"; chk_appinst.disabled = "true"; rdo_essntermflag.disabled = "true"; } } /** * @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/deptcccdlist/deptcccdinfo"); trv_ccindx.rebuild(); grd_deptcc.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("TRMRT00305")){ model.removenodeset("/root/main/deptcccdlist/deptcccdinfo"); model.setValue(xCondPath+"/selectedIndx",""); grd_deptcc.rebuild(); trv_ccindx.rebuild(); } }else{ model.refresh(); } } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : °úÁÖÈ£¼Ò Ãß°¡½Ã ÁÖÈ£¼Ò Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchCCInfo(){ var sCondPath = "/root/hidden/condition/deptset"; var sSrchedCCCdInfoPath = "/root/main/srchedcccdlist/srchedcccdinfo"; var srchnm = model.getValue(sCondPath+"/srchnm"); srchnm = srchnm.replace(/^ *| *$/g, ""); model.removenode("/root/send"); if(model.getValue(sCondPath+"/srchnm") == ""){ messageBox("Á¶È¸ÇÒ ³»¿ëÀ»","C001"); return; } model.removenodeset(sSrchedCCCdInfoPath); grd_srchedccinfo.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("TRMRT00307"); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : °úÁÖÈ£¼Ò¿¡ ÁÖÈ£¼Ò Ãß°¡ * @param : * @return : * @--------------------------------------------------- */ function fSendDeptCC(){ var sCondPath = "/root/hidden/condition/deptset"; var sIndxListPath = "/root/main/indxlist/item"; var sSrchedCCCdListPath = "/root/main/srchedcccdlist/srchedcccdinfo"; var sDeptCCCdListPath = "/root/main/deptcccdlist/deptcccdinfo"; var sDeptCd = model.getValue(sCondPath+"/selecteddeptcd"); var sIndxCd = model.getValue("/root/hidden/condition/selectedIndx"); var sSrchedCCRowCnt = grd_srchedccinfo.rows - grd_srchedccinfo.fixedrows; var iDeptCCRow = 0; var sTermcd = ""; if(sDeptCd == ""){ messageBox("ºÎ¼­Äڵ带 ¸ÕÀú", "C002"); return; } if(sIndxCd == ""){ messageBox("»öÀÎÄڵ带 ¸ÕÀú", "C002"); return; } for(var iSrchedCCRow = 1; iSrchedCCRow <= sSrchedCCRowCnt; iSrchedCCRow++){ if(model.getValue(sSrchedCCCdListPath+"["+iSrchedCCRow+"]/check") == "true"){ sTermcd = model.geTValue(sSrchedCCCdListPath+"["+iSrchedCCRow+"]/termcd"); if(model.getValue(sDeptCCCdListPath+"[termcd = '"+sTermcd+"' and deptindxcd = '"+sIndxCd+"']/termcd") != "") continue; grd_deptcc.addItem(); iDeptCCRow = grd_deptcc.rows - grd_deptcc.fixedrows; model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/status","I"); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/deptcd",sDeptCd); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/deptnm",model.getValue(sCondPath+"/selecteddeptnm")); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/termcd",sTermcd); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/deptindxcd",sIndxCd); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/termengnm",model.getValue(sSrchedCCCdListPath+"["+iSrchedCCRow+"]/termengnm")); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/termhngnm",model.getValue(sSrchedCCCdListPath+"["+iSrchedCCRow+"]/termhngnm")); model.setValue(sDeptCCCdListPath+"["+iDeptCCRow+"]/deptindxflag",model.getValue("/root/hidden/condition/indxflag")); } } grd_deptcc.rebuild(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : °úÁÖÈ£¼Ò ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveDeptCCInfo(){ 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/deptcccdlist", grd_deptcc.getUpdateDataAll("i")); submit("TXMRT00302"); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÀüüÁÖÈ£¼Ò ÆË¾÷ È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fCallExtnCCInfo(){ setParameter("indxflag", model.getValue("/root/hidden/condition/indxflag")); modal("SPMRT01000", 1,10,10); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelCc(){ model.setValue("/root/hidden/condition/selctedmode", "C"); 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("TRMRT00301"); model.refresh(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ½Å±Ô * @param : * @return : * @--------------------------------------------------- */ function fSetNewCc(){ var iRow = grd_cccd.row; var sIndx = model.getValue("/root/hidden/condition/selectedIndx"); //¼±ÅÃÇÑ »öÀÎ(¹«Á¶°Ç ¼±ÅõǾî¾ß ÇÔ) var sGrd = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd"); //±×¸®µå Áß ÁÖÈ£¼ÒÄÚµå Çϳª¸¦ ¼±ÅÃÇß´Ù¸é sccccd°¡ Á¸ÀçÇÔ var fromdd = ((getCurrentDate()).toDate()).getAddDate(1); if(sIndx == "" || sIndx == null){ var rtn = messageBox("»öÀÎÀ» ", "C002"); return; } model.removeNodeset("/root/main/cccdhist/list"); // ½Å±Ô¹öư Ŭ¸¯½Ã ÀÌ·ÂÁ¶È¸ ±×¸®µå ÃʱâÈ­ fDisabled("N"); btn_delete1.disabled = "true"; model.removeNodeset("/root/send"); model.resetInstanceNode("/root/main/seqcd/seq"); if(sGrd != "") { sIndx = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccindxcd"); } model.makeValue("/root/send/indxcd",sIndx); model.makeValue("/root/send/attrcd", model.getValue("/root/main/peprterminfo/info/ccattrcd")); //¼±ÅÃÇÑ »öÀο¡ ÇØ´çÇÏ´Â ½ÃÄö¼ÈÇÑ ÁÖÈ£¼ÒÄڵ带 °¡Áö°í ¿Â´Ù submit("TRMRT00304"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.setValue("/root/main/peprterminfo/info/ccindxcd", model.getValue("/root/main/seqcd/seq/indxcd")); // Edited by nj 20070927 ¼Ó¼ºÄÚµå´Â snmd-conceptID·Î ÇÔ. //model.setValue("/root/main/peprterminfo/info/ccattrcd", model.getValue("/root/main/seqcd/seq/cccd")); model.setValue("/root/main/peprterminfo/info/ccattrcd", model.getValue("/root/main/peprterminfo/info/snmdcnptid")); model.setValue("/root/main/peprterminfo/info/termcd", model.getValue("/root/main/seqcd/seq/termcd")); model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/init/userinfo/userid")); model.setValue("/root/main/peprterminfo/info/fstrgstrnm", model.getValue("/root/init/userinfo/usernm")); 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"); // Edited by NJ 2007-07-21 getDate()- > getCurrentDate() //model.setValue("/root/main/peprterminfo/info/termfromdd", getDate() ); model.setValue("/root/main/peprterminfo/info/termfromdd", fromdd.getDateFormat()); model.setValue("/root/main/peprterminfo/info/termtodd", "99991231"); // Edited by NJ 2007-07-21 getDate()- > getCurrentDate() //model.setValue("/root/main/peprterminfo/info/attrfromdd", getDate() ); 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/essntermflag", "N"); model.setValue("/root/hidden/condition/status", "N"); //new insert mode model.refresh(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ¼öÁ¤ * @param : * @return : * @--------------------------------------------------- */ function fSetCcUpdt(){ var selTermcd = model.getValue("/root/main/peprterminfo/info/termcd"); var selCcattrcd = model.getValue("/root/main/peprterminfo/info/ccattrcd"); var fromdd = ((getCurrentDate()).toDate()).getAddDate(1); fDisabled("M"); btn_delete1.disabled = "true"; if((selTermcd == "" || selTermcd == null) || (selCcattrcd == "" || selCcattrcd == null)){ var rtn = messageBox("¼öÁ¤ÇÒ ÁÖÈ£¼Ò¸¦ ", "C002"); return; } if(model.getValue("/root/main/peprterminfo/info/termfromdd") == model.getValue("/root/init/today")){ var rtn = messageBox("´çÀÏ µî·ÏÇÑ ¿ë¾î´Â ¼öÁ¤ ", "E001"); return; } model.setValue("/root/hidden/condition/status", "M"); 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/fstrgstrnm", getUserName()); model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/init/userinfo/userid")); model.refresh(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveCcTerm(){ var insCcindxcd = model.getValue("/root/main/peprterminfo/info/ccindxcd"); var insCcattrcd = model.getValue("/root/main/peprterminfo/info/ccattrcd"); var snmdcnptid = model.getValue("/root/main/peprterminfo/info/snmdcnptid"); var insTermcd = model.getValue("/root/main/peprterminfo/info/ccattrcd") + "." + model.getValue("/root/main/peprterminfo/info/termcd"); var rowCnt = grd_cccd.row; if((insTermcd == "") || (insTermcd == "")){ messageBox("¿ë¾îÄÚµå´Â", "I003"); return; } else if((snmdcnptid == "") || (snmdcnptid == null)){ messageBox("SNMD-conceptID´Â", "I003"); return; } model.removeNodeset("/root/send"); model.makeNode("/root/send/reqdata"); model.copyNode("/root/send/reqdata", "/root/main/peprterminfo/info"); model.setValue("/root/send/reqdata/ccindxcd", insCcindxcd); model.setValue("/root/send/reqdata/ccattrcd", insCcattrcd); model.setValue("/root/send/reqdata/termcd", insTermcd); model.setValue("/root/send/reqdata/termfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.setValue("/root/send/reqdata/termtodd", model.getValue("/root/main/peprterminfo/info/termtodd")); model.setValue("/root/send/reqdata/termflag", "2"); //defalut :ÁÖÈ£¼Ò(2) model.setValue("/root/send/reqdata/reprflag", "R"); model.makeValue("/root/send/reqdata/status", model.getValue("/root/hidden/condition/status")); //N:µî·Ï, M:¼öÁ¤ model.makeValue("/root/send/reqdata/maininstyn", model.getValue("/root/hidden/condition/maininstyn")); model.makeValue("/root/send/reqdata/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); model.makeValue("/root/send/reqdata/fstrgstdt", model.getValue("/root/main/peprterminfo/info/fstrgstdate") + model.getValue("/root/main/peprterminfo/info/fstrgsttime")+"00"); if(model.getValue("/root/hidden/condition/status") == "N") { //µ¿ÀÏÇÑ Äڵ尡 ÀÖ´ÂÁö Á¶È¸ÇÑ ÈÄ , ÀÖÀ¸¸é ¿¡·¯¸Þ¼¼Áö if(submit("TXMRT00301")){ model.resetInstanceNode("/root/main/peprterminfo/info"); fDisabled("AS"); model.refresh(); } } else if(model.getValue("/root/hidden/condition/status") == "M" || insTermcd == model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/termcd")) { if(model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/termengnm") != model.getValue("/root/main/peprterminfo/info/termengnm") || model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/termhngnm") != model.getValue("/root/main/peprterminfo/info/termhngnm")) { //if(model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/icd10cd") != model.getValue("/root/main/peprterminfo/info/icd10cd") || // model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/snmdcnptid") != model.getValue("/root/main/peprterminfo/info/snmdcnptid") || // /model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/snmdcnptnm") != model.getValue("/root/main/peprterminfo/info/snmdcnptnm")) if(model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/icd10cd") != model.getValue("/root/main/peprterminfo/info/icd10cd") ) { model.setValue("/root/send/reqdata/status", "ATM"); } else { model.setValue("/root/send/reqdata/status", "TM"); } if(submit("TXMRT00301")){ model.resetInstanceNode("/root/main/peprterminfo/info"); fDisabled("AS"); model.refresh(); } model.setValue("/root/hidden/condition/status", ""); } else if(model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/icd10cd") != model.getValue("/root/main/peprterminfo/info/icd10cd") || model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/snmdcnptid") != model.getValue("/root/main/peprterminfo/info/snmdcnptid") || model.getValue("/root/main/cccdinfo/cccd[" + rowCnt + "]/snmdcnptnm") != model.getValue("/root/main/peprterminfo/info/snmdcnptnm")) { //alert("AA"); model.setValue("/root/send/reqdata/status", "AM"); if(submit("TXMRT00301")){ model.resetInstanceNode("/root/main/peprterminfo/info"); fDisabled("AS"); model.refresh(); model.setValue("/root/hidden/condition/status", ""); } } else { var rtn = messageBox("º¯°æµÈ ³»¿ëÀÌ ¾øÀ¸¹Ç·Î ÀúÀå ", "E001"); return; } } } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò »ç¿ëÁ¾·á * @param : * @return : * @--------------------------------------------------- */ function fEndCcTerm(){ var iRow = grd_cccd.row; var ccattr = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd"); var term = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/termcd"); var insccindxcd = model.getValue("/root/main/peprterminfo/info/ccindxcd"); var insccattrcd = model.getValue("/root/main/peprterminfo/info/ccattrcd"); var insTermcd = model.getValue("/root/main/peprterminfo/info/ccattrcd")+"."+ model.getValue("/root/main/peprterminfo/info/termcd"); if((insTermcd == "" || insTermcd == null)||(insccattrcd == "" || insccattrcd == null)){ var rtn = messageBox("»èÁ¦ÇÒ ÁÖÈ£¼Ò¿ë¾î¸¦ ", "C002"); return; } if(insccattrcd == ccattr && insTermcd == term) { model.setValue("/root/hidden/condition/status", "ATD"); model.removeNodeset("/root/send"); model.makeValue("/root/send/reqdata/indxcd", insccindxcd); model.makeValue("/root/send/reqdata/ccattrcd",insccattrcd); model.makeValue("/root/send/reqdata/termcd", insTermcd); model.makeValue("/root/send/reqdata/status", model.getValue("/root/hidden/condition/status")); //N:µî·Ï, M:¼öÁ¤, D:»èÁ¦ model.makeValue("/root/send/reqdata/termflag", "2"); //¿ë¾î±¸ºÐ model.makeValue("/root/send/reqdata/oldtermfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.makeValue("/root/send/reqdata/termfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd")); model.makeValue("/root/send/reqdata/oldattrfromdd", model.getValue("/root/main/peprterminfo/info/attrfromdd")); model.makeValue("/root/send/reqdata/attrfromdd", model.getValue("/root/main/peprterminfo/info/attrfromdd")); submit("TXMRT00301"); model.resetInstanceNode("/root/main/peprterminfo/info"); model.setValue("/root/hidden/condition/status", ""); model.refresh(); } else { var rtn = messageBox("³»¿ëÀÌ ¼öÁ¤µÇ¾ú½À´Ï´Ù. ¼öÁ¤ ³»¿ëÀ» ÀúÀåÇϽ÷Á¸é ÀúÀå ¹öưÀ» ", "C002"); return; } } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelCcTerm(){ fDisabled("AS"); var sametermmode = model.getValue("/root/hidden/condition/sametermmode"); //2009-04-30 ¿ÀÈÄ 10:51:05 °­ÁöÈÆ ¼öÁ¤ : ±â°üº° »ç¿ë ÀÌ·ÂÁ¶È¸¸¦ ¼±ÅÃÇßÀ»°æ¿ì¿¡´Â »ç¿ëÁ¾·á¸¦ ÇÒ¼ö¾ø´Ù. if(sametermmode != "H"){ btn_delete1.disabled = "false"; } var iRow = grd_cccd.row; var ccindx = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccindxcd"); var ccattr = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd"); var term = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/termcd"); model.setValue("/root/hidden/condition/selectedtermcd", term); model.setValue("/root/main/peprterminfo/info/ccindxcd", ccindx); // »öÀÎÄÚµå model.setValue("/root/main/peprterminfo/info/ccattrcd", ccattr); // ¼Ó¼ºÄÚµå model.setValue("/root/main/peprterminfo/info/termcd", term.substr(term.lastIndexOf(".") + 1, term.length - (term.lastIndexOf(".") + 1))); // ´ëÇ¥ ÁÖÈ£¼Ò ÄÚµå model.setValue("/root/main/peprterminfo/info/snmdcnptid", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/snmdcnptid")); // ½º³ë¸Þµå-cncpt model.setValue("/root/main/peprterminfo/info/snmdcnptnm", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/snmdcnptnm")); // ½º³ë¸Þµå-cncpt¸í model.setValue("/root/main/peprterminfo/info/snmddescid", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/snmddescid")); // ½º³ë¸Þµå-dscrpt model.setValue("/root/main/peprterminfo/info/icd10cd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/icd10cd")); // ICD10CD model.setValue("/root/main/peprterminfo/info/umlscd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/umlscd")); // ICD10CD model.setValue("/root/main/peprterminfo/info/termengnm", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/termengnm")); // ¿µ¹® model.setValue("/root/main/peprterminfo/info/termhngnm", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/termhngnm")); // ÇÑ±Û model.setValue("/root/main/peprterminfo/info/reprflag", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/reprflag")); // ´ëÇ¥¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/termflag", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/termflag")); // ¿ë¾î±¸ºÐ //model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/fstrgstrid")); // µî·ÏÀÚ model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/lastupdtrid")); // model.setValue("/root/main/peprterminfo/info/fstrgstrnm", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/lastupdtrnm")); model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/attrfromdd")); model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/attrtodd")); model.setValue("/root/main/peprterminfo/info/essntermflag", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/essntermflag")); var fstrgstdt = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/fstrgstdt"); var termfromdd = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/termfromdd"); var termtodd = model.getValue("/root/main/cccdinfo/cccd[" + 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-02-28 ¿ÀÀü 10:21:46 °­ÁöÈÆ ¼öÁ¤ : ±â°üº° ÀÌ·ÂÁ¶È¸ Ãß°¡ //model.setValue("/root/hidden/condition/sametermmode", "N"); model.removeNodeset("/root/send"); model.makeValue("/root/send/ccattrcd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd")); model.makeValue("/root/send/termcd", model.getValue("/root/main/cccdinfo/cccd["+iRow+"]/termcd")); model.makeValue("/root/send/termflag", model.getValue("/root/main/cccdinfo/cccd["+iRow+"]/termflag")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); model.makeValue("/root/send/allinsthist", model.getValue("/root/hidden/condition/allinsthist")); submit("TRMRT00308"); model.setValue("/root/main/peprterminfo/info/appinstcd", model.getValue("/root/main/cccdhist/appinstcd/appinstcd")); model.refresh(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fGetSNMDCT(){ var iRow = grd_cccd.row; var sIndx = model.getValue("/root/hidden/condition/selectedIndx"); var sGrd = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd"); //±×¸®µå Áß ÁÖÈ£¼ÒÄÚµå Çϳª¸¦ ¼±ÅÃÇß´Ù¸é sccccd°¡ Á¸ÀçÇÔ model.setValue("/root/main/peprterminfo/info/ccattrcd", model.getValue("/root/main/peprterminfo/info/snmdcnptid")); if(sGrd != "") { sIndx = model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccindxcd"); } model.makeValue("/root/send/indxcd",sIndx); model.makeValue("/root/send/attrcd", model.getValue("/root/main/peprterminfo/info/ccattrcd")); //¼±ÅÃÇÑ »öÀο¡ ÇØ´çÇÏ´Â ½ÃÄö¼ÈÇÑ ÁÖÈ£¼ÒÄڵ带 °¡Áö°í ¿Â´Ù submit("TRMRT00304"); model.setValue("/root/main/peprterminfo/info/termcd", model.getValue("/root/main/seqcd/seq/termcd")); model.refresh(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ICD10 ÆË¾÷ È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fGetICD10(){ /* model.removeNodeset("/root/temp/send"); model.makeValue("/root/temp/send/indxflag", "0"); model.makeValue("/root/temp/send/srchflag", "C"); model.makeValue("/root/temp/send/srchnm", model.getValue("/root/main/peprterminfo/info/icd10cd")); modal("SPMRT01400", 1,10, 10, "SPMRT01400", "/root/temp/send", "/root/temp/receive"); model.setValue("/root/main/peprterminfo/info/icd10cd", model.getValue("/root/temp/receive/cd")); ipt_icd10cd.refresh(); */ setParameter("SPMMO3200_param_nodepath", "/root/temp/diaginfo"); modal("SPMMO03200", 1, 0, 0, "", "", ""); if(getNodesetCount("/root/temp/diaginfo/selectdiaglist") > 1){ messageBox("Áø´ÜÄÚµå´Â Çϳª¸¸", "C002"); model.resetInstanceNode("/root/temp/diaginfo/selectdiaglist"); return; } model.setValue("/root/main/peprterminfo/info/icd10cd", model.getValue("/root/temp/diaginfo/selectdiaglist/diagcd")); ipt_icd10cd.refresh(); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ÀÌ·Â ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelCcTermHist(){ var iRow = grd_cchist.row; var indx = model.getValue("/root/hidden/condition/selectedIndx"); var path = model.getValue("/root/hidden/condition/selectedIndxPath"); var term = model.getValue("/root/main/cccdhist/list[" + iRow + "]/termcd"); model.setValue("/root/hidden/condition/selectedtermcd", term); if( !isNull(iRow) ){ model.setValue("/root/hidden/condition/status", "STM"); model.setValue("/root/main/peprterminfo/info/ccindxcd", indx); //icd9 model.setValue("/root/main/peprterminfo/info/ccattrcd", model.getValue("/root/main/cccdhist/list/attrcd")); // È®ÀåÄÚµå model.setValue("/root/main/peprterminfo/info/termcd", term.substr(term.lastIndexOf(".") + 1, term.length - (term.lastIndexOf(".") + 1))); // ´ëÇ¥¾î(µ¿ÀǾî)ÄÚµå model.setValue("/root/main/peprterminfo/info/snmddescid", model.getValue("/root/main/cccdhist/list/snmddescid")); // ½º³ë¸Þµå-dscrpt model.setValue("/root/main/peprterminfo/info/termengnm", model.getValue("/root/main/cccdhist/list[" + iRow + "]/termengnm")); // ¿µ¹® model.setValue("/root/main/peprterminfo/info/termhngnm", model.getValue("/root/main/cccdhist/list[" + iRow + "]/termhngnm")); // ÇÑ±Û model.setValue("/root/main/peprterminfo/info/reprflag", model.getValue("/root/main/cccdhist/list[" + iRow + "]/reprflag")); // ´ëÇ¥¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/termflag", model.getValue("/root/main/cccdhist/list[" + iRow + "]/termflag")); // ¿ë¾î±¸ºÐ model.setValue("/root/main/peprterminfo/info/fstrgstrid", model.getValue("/root/main/cccdhist/list[" + iRow + "]/lastupdtrid")); model.setValue("/root/main/peprterminfo/info/fstrgstrnm", model.getValue("/root/main/cccdhist/list[" + iRow + "]/lastupdtrnm")); //ÀúÀå½Ã ÇÊ¿äÇÑ Å°°ª model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/cccdhist/list[" + iRow + "]/attrfromdd")); model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/cccdhist/list[" + iRow + "]/attrtodd")); model.setValue("/root/main/peprterminfo/info/snmdcnptid", model.getValue("/root/main/cccdhist/list[" + iRow + "]/snmdcnptid")); // snmdconceptid model.setValue("/root/main/peprterminfo/info/snmdcnptnm", model.getValue("/root/main/cccdhist/list[" + iRow + "]/snmdcnptnm")); model.setValue("/root/main/peprterminfo/info/icd10cd", model.getValue("/root/main/cccdhist/list[" + iRow + "]/icd10cd")); //icd10cd model.setValue("/root/main/peprterminfo/info/umlscd", model.getValue("/root/main/cccdhist/list[" + iRow + "]/umlscd")); //icd10cd var fstrgstdt = model.getValue("/root/main/cccdhist/list[" + iRow + "]/lastupdtdt"); var termfromdd = model.getValue("/root/main/cccdhist/list[" + iRow + "]/termfromdd"); var termtodd = model.getValue("/root/main/cccdhist/list[" + 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 : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼±Åúμ­ °úÁÖÈ£¼Ò Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchDeptCcInfo(){ model.removeNodeset("/root/send"); var selIndxCd = model.getValue("/root/hidden/condition/selectedIndx"); var sDeptCd = model.getValue("/root/hidden/condition/deptset/selecteddeptcd"); if(sDeptCd == ""){ messageBox("ºÎ¼­Äڵ带 ¸ÕÀú", "C002"); return; } if(selIndxCd == ""){ messageBox("»öÀÎÄڵ带 ¸ÕÀú", "C002"); return; } model.makeValue("/root/send/indxcd", selIndxCd); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/send/deptcd", sDeptCd); submit("TRMRT00306"); } /** * @group : * @ver : 2007.04.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼±Åúμ­ °úÁÖÈ£¼Ò »èÁ¦ * @param : * @return : * @--------------------------------------------------- */ function fDelDeptCcTerm(){ var iRow = grd_deptcc.row; if(iRow < 1){ return; } if(model.getValue("/root/main/deptcccdlist/deptcccdinfo["+iRow+"]/status") == "I"){ grd_deptcc.deleteItem(iRow); }else{ model.setValue("/root/main/deptcccdlist/deptcccdinfo["+iRow+"]/status","D"); } grd_deptcc.rebuild(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : °úÁÖÈ£¼ÒÃß°¡ ¸®½ºÆ® ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelAddCcList(){ if(grd_srchedccinfo.row == 0){ var sCheck = model.getValue("/root/main/srchedcccdlist/srchedcccdinfo[1]/check"); if(sCheck == "true"){ var sRowCnt = grd_srchedccinfo.rows- grd_srchedccinfo.fixedRows; for(var iRow=1; iRow <= sRowCnt; iRow++){ model.setValue("/root/main/srchedcccdlist/srchedcccdinfo["+iRow+"]/check","false"); } }else{ var sRowCnt = grd_srchedccinfo.rows- grd_srchedccinfo.fixedRows; for(var iRow=1; iRow <= sRowCnt; iRow++){ model.setValue("/root/main/srchedcccdlist/srchedcccdinfo["+iRow+"]/check","true"); } } grd_srchedccinfo.rebuild(); } } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎÃß°¡ * @param : * @return : * @--------------------------------------------------- */ function fAddIndx(){ model.removeNodeset("/root/send"); model.makeValue("/root/send/paramindx",""); model.setValue("/root/send/paramindx", "2"); modal("SMMRT00100", 1,10, 10, "SMMRT00100", "/root/send", "/root/hidden/condition/getdata"); var child = "SMMRT00100"; if(child != null){ //var getVal = getParameter("setVal"); //model.alert(getVal); //if(getVal == "I" || getVal == "U") { 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("TRMRT00301"); trv_ccindx.refresh(); // } } } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎ ¾ð¾î º¯°æ * @param : * @return : * @--------------------------------------------------- */ function fChngLangIndx(){ 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("TRMRT00301"); trv_ccindx.rebuild(); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : Tree ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelTreeIndx(){ model.removeNodeset("/root/send"); var iIndx = trv_ccindx.focusIndex + 1; var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"); model.makeValue("/root/send/indxcd", selIndxCd); model.makeValue("/root/send/maininstyn", model.getValue("/root/hidden/condition/maininstyn")); model.makeValue("/root/send/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); if(model.getValue("/root/hidden/condition/selctedmode") == "C"){ //ÁÖÈ£¼Ò Äڵ带 ¼±ÅÃÇßÀ»¶§ model.setValue("/root/hidden/condition/selectedIndx", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd")); model.setValue("/root/hidden/condition/selectedIndxDepth", model.getValue("/root/main/indxlist/item[" + iIndx + "]/depth")); model.setValue("/root/hidden/condition/selectedIndxPath", model.getValue("/root/main/indxlist/item[" + iIndx + "]/pathcd")); submit("TRMRT00302"); //À妽º Æ®¸®¸¦ °¡Áö°í ¿Â´Ù grd_cccd.rebuild(); }else{ // °úÁÖÈ£¼ÒÄڵ带 ¼±ÅÃÇßÀ»¶§ model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd")); submit("TRMRT00306"); } } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : °úÁÖÈ£¼Ò ¼±Åà * @param : * @return : * @--------------------------------------------------- */ function fSelDeptDiag(){ 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.removenodeset("/root/main/indxlist/item"); model.removenodeset("/root/main/srchedcccdlist/srchedcccdinfo"); model.removenodeset("/root/main/deptcccdlist/deptcccdinfo"); model.refresh(); } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : »öÀÎ ÄÚµå Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchIndxCd(){ if(model.getValue("/root/hidden/condition/srchindxcd") == "" || model.getValue("/root/hidden/condition/srchindxcd") == null){ var rtn = messageBox("°Ë»öÇÒ »öÀÎÄڵ带 ", "C001"); return; } else { model.setValue("/root/hidden/condition/selectedIndx", model.getValue("/root/hidden/condition/srchindxcd")); //trv_ccindx.vscroll.attribute("pos") = ( parseInt(trv_ccindx.attribute("itemheight")) + 1 ) * trv_ccindx.selectedIndex; trv_ccindx.expandDepth = 5; model.refresh(); trv_ccindx.vscroll.attribute("pos") = ( parseInt(trv_ccindx.attribute("itemheight")) + 1 ) * trv_ccindx.selectedIndex; } } /** * @group : * @ver : 2008.03.19 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼Ò ¿ë¾î Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fSrchCcTerm(){ if(model.getValue("/root/hidden/condition/srchnm") == "" || model.getValue("/root/hidden/condition/srchnm") == null){ var rtn = messageBox("°Ë»ö¾î¸¦ ", "C001"); return; } else { model.removeNodeset("/root/send"); model.makeValue("/root/send/srchflag", model.getValue("/root/hidden/condition/srchflag")); model.makeValue("/root/send/srchnm", model.getValue("/root/hidden/condition/srchnm")); model.makeValue("/root/send/srchfromdd", model.getValue("/root/hidden/condition/srchfromdd")); model.makeValue("/root/send/srchtodd", model.getValue("/root/hidden/condition/srchtodd")); model.makeValue("/root/send/endflag", model.getValue("/root/hidden/condition/endflag")); model.makeValue("/root/send/maininstyn", model.getValue("/root/hidden/condition/maininstyn")); model.makeValue("/root/send/selInstcd", model.getValue("/root/hidden/condition/selInstcd")); var srchnm = model.getValue("/root/hidden/condition/srchnm"); srchnm = srchnm.replace(/^ *| *$/g, ""); if(model.getValue("/root/send/srchflag") == "C" || model.getValue("/root/send/srchflag") == "E") { srchnm = srchnm.toUpperCase(); model.setValue("/root/send/srchnm", srchnm); } if (model.getValue("/root/hidden/condition/selctedmode") == "C" ) { // ÁÖÈ£¼ÒÄÚµå ¼±ÅÃÇßÀ»¶§ model.removeNodeset("/root/main/cccdinfo/cccd"); submit("TRMRT00303"); } else if(model.getValue("/root/hidden/condition/selctedmode") == "P" ) { //°ú ÁÖÈ£¼ÒÄÚµå ¼±ÅÃÇßÀ»°æ¿ì model.removeNodeset("/root/send"); model.removeNodeset("/root/main/deptcccdlist/deptcccdinfo"); model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag")); model.makeValue("/root/send/indxcd", "null"); model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd")); model.makeValue("/root/send/srchflag", model.getValue("/root/hidden/condition/srchflag")); model.makeValue("/root/send/srchnm", model.getValue("/root/hidden/condition/srchnm")); submit("TRMRT00306"); } model.refresh(); } } function fRollbackTerm(){ var icd10cd = model.getValue("/root/main/peprterminfo/info/ccindxcd"); var attrcd = model.getValue("/root/main/peprterminfo/info/ccattrcd"); var termcd = model.getValue("/root/main/peprterminfo/info/termcd"); var fullTermcd = 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/ccindxcd", icd10cd); model.setValue("/root/send/reqdata/ccattrcd", attrcd); model.setValue("/root/send/reqdata/termcd", fullTermcd); model.setValue("/root/send/reqdata/termflag", "2"); model.setValue("/root/send/reqdata/reprflag", "R"); 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")); model.makeValue("/root/send/reqdata/status", "N"); submit("TXMRT00301"); } /** * @group : * @ver : 2008.12.11 * @by : ³ªÁ¾Ãµ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿À¸¥ÂÊ ¸¶¿ì½º ÆË¾÷ È£Ãâ * @param : * @return : * @--------------------------------------------------- */ function fCallPopup(flag){ if(flag == "grd_cccd"){ if(isDataCell()){ setPopupMenu(flag, false, "/root/init/func/mouserght", "label", "value"); } } else if(flag == "trv_ccindx"){ if(trv_ccindx.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 == "C"){ selectedRows = grd_cccd.selectedRows; for(var cnt = 0; cnt <= selectedRows -1; cnt++){ copyNodeset("/root/hidden/reqdata/ccindxlist", "/root/main/cccdinfo/cccd[" + grd_cccd.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_ccindx.focusIndex + 1; var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"); var msg = messageBox("»öÀÎÀ»", "Q012"); if(msg == "7"){ return; } switch(selTab){ case "C": copyNodeset("/root/send/reqdata/ccindxlist", "/root/hidden/reqdata/ccindxlist"); model.makeValue("/root/send/reqdata/chnginfo/chngindxcd", selIndxCd); model.makeValue("/root/send/reqdata/chnginfo/indxflag", selTab); if(msg == "6"){ if(submit("TXMRT00303")){ messageBox("»öÀÎ º¯°æÀÌ","I001"); grd_cccd.refresh(); } else { messageBox("»öÀÎ º¯°æÀ»","E009"); } } model.removeNodeset("/root/send/reqdata"); model.removeNodeset("/root/hidden/reqdata"); break; } } /** * @group : * @ver : 2009.02.09 * @by : °­ÁöÈÆ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±â°üº° ¿ë¾î »ç¿ë¿©ºÎ ¼³Á¤ * @param : * @return : * @--------------------------------------------------- */ function fTermUseSave(){ model.removeNodeset("/root/send/termuse"); var RowCnt = grd_cccd.rows; model.makeValue("/root/send/termuse",getGridUpdateData(grd_cccd)); submit("TXMRT00206"); model.refresh(); } /** * @group : * @ver : 2009-02-28 ¿ÀÀü 10:01:34 * @by : °­ÁöÈÆ * @--------------------------------------------------- * @type : function * @access : public * @desc : ¿ë¾î ÀÌ·Â ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetDiagTermHistList(){ var iRow = grd_cccd.row; grd_cchist.colHidden(1) = true; model.setValue("/root/hidden/condition/sametermmode", "N"); cap_allinsthist.visible = false; cmb_allinsthist.visible = false; btn_modify1.disabled = false; btn_rollback.disabled = false; btn_termsave.disabled = false; btn_delete1.disabled = false; model.removeNodeset("/root/send"); model.makeValue("/root/send/ccattrcd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd")); model.makeValue("/root/send/termcd", model.getValue("/root/main/cccdinfo/cccd["+iRow+"]/termcd")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); submit("TRMRT00308"); } /** * @group : * @ver : 2009-02-23 ¿ÀÈÄ 10:30:15 * @by : °­ÁöÈÆ * @--------------------------------------------------- * @type : function * @access : public * @desc : ±â°üº° ¿ë¾î ÀÌ·Â ¸®½ºÆ® Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetDiagInstTermHistList(){ var iRow = grd_cccd.row; grd_cchist.colHidden(1) = false; cap_allinsthist.visible = true; cmb_allinsthist.visible = true; //2009-04-30 ¿ÀÈÄ 10:37:47 °­ÁöÈÆ ¼öÁ¤ : ±â°üº° »ç¿ëÀÌ·ÂÁ¶È¸À϶§´Â ½ÃÀÛ, Á¾·áÀÏÀÚ ¶§¹®¿¡ ¼öÁ¤ÀÌ ºÒ°¡ÇÏ´Ù. btn_modify1.disabled = true; btn_rollback.disabled = true; btn_termsave.disabled = true; btn_delete1.disabled = true; model.setValue("/root/hidden/condition/sametermmode", "H"); model.removeNodeset("/root/send"); model.makeValue("/root/send/allinsthist", model.getValue("/root/hidden/condition/allinsthist")); model.makeValue("/root/send/ccattrcd", model.getValue("/root/main/cccdinfo/cccd[" + iRow + "]/ccattrcd")); model.makeValue("/root/send/termcd", model.getValue("/root/main/cccdinfo/cccd["+iRow+"]/termcd")); model.makeValue("/root/send/sametermmode", model.getValue("/root/hidden/condition/sametermmode")); submit("TRMRT00308"); }