/************************************************************************************************ @author : äÈñö @version : 2007-07-01 °¢Á¾ List¿Í Á¤º¸µéÀ» ÃʱâÈ­ ½ÃŲ´Ù. *************************************************************************************************/ var gRcptInfoPath = "/root/main/info/rcptinfo"; var gPatInfoPath = "/root/main/info/patinfo"; var gAcptInfoPath = "/root/main/info/acptinfo"; var gSendPath = "/root/send"; var gAcptPath = "/root/main/list/acpt"; var gPkgPath = "/root/main/list/pkglist"; var gAcptDtlPath = "/root/main/list/acptdtl"; var gRcptDtltPath = "/root/main/list/rcptdtl"; var gChngPath = "/root/main/info/chnginfo"; var gCardDtlInfoPath = "/root/main/info/cardinfo"; var gCashDtlInfoPath = "/root/main/info/cashinfo"; var gHiddenPath = "/root/hidden/"; /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ¼ö³³°ú °ü·ÃµÈ Á¤º¸µéÀ» reset½ÃŲ´Ù. "/root/main/info/rcptinfo/opmi"³ëµå´Â ±¸Ã¼ÀûÀÎ °ª ÇʵåµéÀ» °¡Áö°í Àֱ⿡ remove½ÃŰÁö ¾Ê°í ³ª¸ÓÁö´Â ¸ðµÎ remove½ÃŲÈÄ copynodeÇØ¿Â´Ù. °è»ê¿¡ ÀÇÇØ¼­ °áÁ¤µÈ ¼ö³³ °á°ú °ª°ú ÀÌ¹Ì ¼ö³³µÈ ÀÚ·áµé¿¡ ´ëÇÑ Ã³¸®°¡ ÀÌ¿øÈ­ µÇ±â ¶§¹®¿¡ ÀÌ·¸°Ô ó¸® ÇÑ´Ù. ************************************************************************************************/ function fInitRcptInfo(){ model.resetInstanceNode(gRcptInfoPath + "/opmi"); //rcpt detail clear model.removeNodeset(gRcptInfoPath + "/s_card/card"); model.removeNodeset(gRcptInfoPath + "/s_cash/cash"); model.removeNodeset(gRcptInfoPath + "/s_dcgm/dcgm"); model.removeNodeset(gRcptInfoPath + "/s_unco/unco"); model.removeNodeset(gRcptInfoPath + "/s_bank/bank"); //RcptDetail List Clear model.removeNodeset(gRcptDtltPath + "/cardlist"); model.removeNodeset(gRcptDtltPath + "/cashlist"); model.removeNodeset(gRcptDtltPath + "/banklist"); model.removeNodeset(gRcptDtltPath + "/dcgmlist"); model.removeNodeset(gRcptDtltPath + "/uncolist"); //Change detail clear model.resetInstanceNode(gChngPath); model.resetInstanceNode(gCardDtlInfoPath); model.resetInstanceNode(gCashDtlInfoPath); //model.refresh(); 2008.09.26 } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ±âÃÊÁ¤º¸ÄÚµåµéÀ» ·ÎµåÇÑ´Ù. ************************************************************************************************/ function fGetBaseInfo(){ // °è»ê»óÅÂ, Á¢¼ö»óÅÂ, ¼ö°¡°è»ê»óÅ zbcfGetCodeList( new Array("P0030","A0107","P0049","P0076","P0073", "A0393","R0077","P0076","R0001"), new Array("/root/init/baseinfo","/root/init/baseinfo","/root/init/baseinfo", "/root/init/baseinfo","/root/init/baseinfo", "/root/init/baseinfo","/root/init/baseinfo/relacdlst","/root/init/baseinfo","/root/init/baseinfo/banklst") ) model.setValue( gSendPath + "/srchinstcd", getUserInfo("dutplceinstcd") ); submit("TRAHA00104",false); } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ÃʱâÈ­ ************************************************************************************************/ function fInitInfo(){ model.resetinstancenode("/root/main/list"); model.resetinstancenode(gPkgPath); model.resetInstanceNode(gPatInfoPath + "/item"); //acpt detail clear model.removeNodeset(gAcptPath + "/acptlist"); model.removeNodeset("/root/main/list/acptdtl"); model.removeNodeset("/root/main/list/hist"); //opmi info clear fInitRcptInfo(); //send clear model.removeNodeset( gSendPath + "/s_opmi/opmi"); model.removeNodeset( gSendPath + "/s_card/card"); model.removeNodeset( gSendPath + "/s_cash/cash"); model.removeNodeset( gSendPath + "/s_bank/bank"); model.removeNodeset( gSendPath + "/s_dcgm/dcgm"); model.removeNodeset( gSendPath + "/s_unco/unco"); //hidden clear model.removeNodeset("/root/hidden"); //³¯Â¥ ±â°£ ¼±Åà model.setValue( gSendPath + "/srchfromdd", getCurrentDate().toDate().getAddDate(-1, "Y").getDateFormat()); model.setValue( gSendPath + "/srchtodd", getCurrentDate()); model.setFocus("ipt_pid"); //2008.09.26 model.refresh(); } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 Á¤»êÈ­¸é ÃʱâÈ­ ************************************************************************************************/ function fChngInfoInit(){ model.resetInstanceNode("/root/main/info/chnginfo"); //model.refresh(); 2008.09.26 } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 Á¢¼öÈ­¸é¿¡¼­ ȯÀÚÀÇ id¿Í Á¢¼ö key°ªÀ» ³Ñ°åÀ»¶§...ÇØ´ç ÀڷḦ searchÇØ¼­ ó¸® ÇÑ´Ù. ************************************************************************************************/ function fCheckOpener(){ if(checkOpener()){ var spid = opener.javascript.getParameter("SMAHA02100_PARAM_PID"); var srsrvdd = opener.javascript.getParameter("SMAHA02100_PARAM_RSRVDD"); var srsrvno = opener.javascript.getParameter("SMAHA02100_PARAM_RSRVNO"); var shealexamflag = opener.javascript.getParameter("SMAHA02100_PARAM_HEALEXAMFLAG"); var sorddd = opener.javascript.getParameter("SMAHA02100_PARAM_ORDDD"); //var sjobflag = opener.javascript.getParameter("SMAHA02100_PARAM_JOBFLAG"); if(sorddd == ""){ sorddd = srsrvdd } ipt_pid.value = spid; model.setValue( gPatInfoPath + "/item/pid" , spid); model.setValue( gSendPath + "/srchpid" , spid); model.setValue( gSendPath + "/srchfromdd" , sorddd); model.setValue( gSendPath + "/srchtodd" , sorddd); model.setValue( gSendPath + "/srchparamrsrvdd" , srsrvdd); model.setValue( gSendPath + "/srchparamrsrvno" , srsrvno); model.setValue( gSendPath + "/srchhealexamflag" , shealexamflag); //model.setValue( gSendPath + "/srchjobflag" , sjobflag); fGetPatInfo(2); if(!isXPathTextNull(gPatInfoPath + "/item/pid")){ //ÇØ´ç °Ç¸¸ Á¶È¸ ÇÑ´Ù. btn_search.dispatch("DOMActivate"); } }else{ model.setValue( gSendPath + "/srchparamrsrvdd" , ""); model.setValue( gSendPath + "/srchparamrsrvno" , ""); model.setValue( gSendPath + "/srchparamhealexamflag" , ""); } } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ȯÀÚÀ̸§À» ÀÔ·ÂÇßÀ»¶§ searchÇÏ´Â popupÈ­¸éÀ» ¿Ã¸®°í ȯÀÚ¸¦ ¼±ÅÃÇÑÈÄ ³»¿ªÀ» Á¶È¸ÇÑ´Ù. ************************************************************************************************/ function fSearchPatinfo(){ var oldpid = model.getValue( gSendPath + "/srchpid") var oldhngnm = model.getValue( gSendPath + "/srchhngnm"); // µî·Ï¹øÈ£ À϶§ if (model.getFocus() == "ipt_pid"){ if (model.getValue(gPatInfoPath + "/item/pid") != oldpid || oldpid == "") { fSearchPatInfo("SMAHA02100", "pid", ipt_pid.currentText , "Y", gPatInfoPath + "/item",ipt_pid.attribute("ref"),ipt_pnm.attribute("ref") ); } }else{ if (model.getValue(gPatInfoPath + "/hngnm") != oldhngnm || oldhngnm == "") { fSearchPatInfo("SMAHA02100", "pnm",ipt_pnm.currentText , "Y",gPatInfoPath + "/item",ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") ); } } model.setValue( gSendPath + "/srchpifSearchPatinfod", model.getValue(gPatInfoPath + "/item[1]/pid") ); model.setValue( gSendPath + "/srchhngnm", model.getValue(gPatInfoPath + "/item[1]/hngnm") ); //ÆÄ¶ó¹ÌÅͰªÀ» ´Ù½Ã ¾ø´Â°ÍÀ¸·Î ´ëüÇÑ´Ù. model.setValue( gSendPath + "/srchparamrsrvdd" , ""); model.setValue( gSendPath + "/srchparamrsrvno" , ""); model.setValue( gSendPath + "/srchparamhealexamflag" , ""); //³¯Â¥µµ ´Ù½Ã 1³â°£À¸·Î ó¸® ÇÑ´Ù. model.setValue( gSendPath + "/srchfromdd", getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat()); model.setValue( gSendPath + "/srchtodd", getCurrentDate()); if ( model.getValue("root/temp/okflag") == 'ok'){ btn_search.dispatch("DOMActivate"); } // ¼º°øÀûÀ¸·Î ¼±ÅÃÇÑ È¯ÀÚ°¡ ÀÖÀ¸¸é ÇØ´ç ȯÀÚÀÇ Á¢¼ö³»¿ªÀ» Á¶È¸ÇÑ´Ù. //if( !isXPathTextNull( gPatInfoPath + "/item[1]/pid") ){ // inputEnterKey("btn_search", "DOMActivate"); //btn_search.dispatch("DOMActivate"); //} } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ÆÐŰÁö Äڵ带 FindÇÑ´Ù.. ************************************************************************************************/ function fSearchPkg(){ var old_pkgcd = model.getValue( gChngPath + "/before/before_pkgcd"); var old_cmpycd = model.getValue( gChngPath + "/before/before_cmpycd"); var old_conseq = model.getValue( gChngPath + "/before/before_conseq"); var shealexamdtlflag = model.getValue( gSendPath + "/srchhealexamdtlflag"); if( old_cmpycd != "-" && old_cmpycd != ""){ fGetPkgCd("SMAHA02100", "C", "N","nm" , ipt_pkgcd.currentText , shealexamdtlflag, opt_sex.value , gChngPath + "/after" ); if (model.getValue( gChngPath + "/after/pkgcd") != ""){ model.setValue( gChngPath + "/after/after_cmpycd" , model.getValue( gChngPath + "/after/cmpycd" )); model.setValue( gChngPath + "/after/after_cmpynm" , model.getValue( gChngPath + "/after/cmpynm" )); model.setValue( gChngPath + "/after/after_conseq" , model.getValue( gChngPath + "/after/conseq" )); model.setValue( gChngPath + "/after/after_pkgcd" , model.getValue( gChngPath + "/after/pkgcd" )); model.setValue( gChngPath + "/after/after_pkgnm" , model.getValue( gChngPath + "/after/pkgnm" )); model.makeValue( gChngPath + "/after/after_conhistseq" , model.getValue( gChngPath + "/after/conhistseq" )); } //fGetCmpyDetlCdList(model.getValue(gChngPath + "/after/after_cmpycd")); } else { fGetPkgCd("SMAHA02100", "P", "N","nm" , ipt_pkgcd.currentText , shealexamdtlflag, opt_sex.value , gChngPath + "/after" ); if (model.getValue( gChngPath + "/after/pkgcd") != ""){ model.setValue( gChngPath + "/after/after_cmpycd" , model.getValue( gChngPath + "/after/cmpycd" )); model.setValue( gChngPath + "/after/after_cmpynm" , model.getValue( gChngPath + "/after/cmpynm")); model.setValue( gChngPath + "/after/after_conseq" , model.getValue( gChngPath + "/after/conseq" )); model.setValue( gChngPath + "/after/after_pkgcd" , model.getValue( gChngPath + "/after/pkgcd" )); model.setValue( gChngPath + "/after/after_pkgnm" , model.getValue( gChngPath + "/after/pkgnm" )); model.makeValue( gChngPath + "/after/after_conhistseq" , model.getValue( gChngPath + "/after/conhistseq" )); } } model.makeValue("/root/main/info/patinfo/item/conseq" , model.getValue("/root/main/info/rcptinfo/opmi/conseq")); model.makeValue("/root/main/info/patinfo/item/conhistseq" , model.getValue("/root/main/info/rcptinfo/opmi/conhistseq")); model.refresh(); // 2008.09.26 model.refresh(); // 2008.09.26 } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ¼±ÅÃµÈ È¯ÀÚÀÇ °ÇÁø³»¿ªÀ» Á¶È¸ÇÑ´Ù. ************************************************************************************************/ function fGetList(){ if(isXPathTextNull(gSendPath + "/srchtodd") || isXPathTextNull(gSendPath + "/srchfromdd")) return; var shealexamflag = fGetHealExamFlag(); var shealexamdetlflag = fGetHealExamDetlFlag(); model.setValue(gSendPath + "/srchinstcd" , getUserInfo("dutplceinstcd")); model.setValue(gSendPath + "/srchhealexamflag" , shealexamflag); model.setValue(gSendPath + "/srchpid" , model.getValue(gPatInfoPath + "/item/pid")); model.resetInstanceNode(gSendPath + "/s_opmi/opmi"); model.resetInstanceNode(gSendPath + "/s_dcgm/dcgm"); model.resetInstanceNode(gSendPath + "/s_unco/unco"); model.resetInstanceNode(gSendPath + "/s_card/card"); model.resetInstanceNode(gSendPath + "/s_cash/cash"); model.resetInstanceNode(gSendPath + "/s_bank/bank"); model.resetinstancenode(gPkgPath); if(submit("TRAHA02101", false)){ rdo_cardyn.disabled = false; output28.disabled = false; output29.disabled = false; var vAcptCnt = getNodesetCount(gAcptPath + "/acptlist"); if(vAcptCnt > 0){ //Á¢¼ö³»¿ªÀÌ ÀÖ´Ù¸é fSetSelectAcpt(1); //fGetRcptList(); model.refresh(); }else{ //Á¢¼ö³»¿ªÀÌ ¾ø´Ù¸é //acpt detail clear model.removeNodeset("/root/main/list/acptdtl"); model.removeNodeset("/root/main/list/hist"); //opmi info clear fInitRcptInfo(); //send clear model.removeNodeset(gSendPath + "/s_opmi/opmi"); model.removeNodeset(gSendPath + "/s_dcgm/dcgm"); model.removeNodeset(gSendPath + "/s_unco/unco"); model.removeNodeset(gSendPath + "/s_card/card"); model.removeNodeset(gSendPath + "/s_cash/cash"); model.removeNodeset(gSendPath + "/s_bank/bank"); //hidden clear model.removeNodeset("/root/hidden"); } } } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 Á¢¼öµÈ ³»¿ªÀ» ¼±ÅÃÇÑ´Ù. °è»ê»óÅ¿¡ µû¶ó¼­ °è»ê¹öư, ¼ö³³¹öư, ¿µ¼öÁõ Ãâ·Â¹öưÀ» Ȱ¼ºÈ­ ºñȰ¼ºÈ­ ½ÃŲ´Ù. ************************************************************************************************/ function fSetSelectAcpt(selectRow){ if(isXPathTextNull(model.getValue(gAcptPath + "/acpt["+selectRow+"]/rsrvdd"))) return; //Á¤»êÁ¤º¸ reset fChngInfoInit(); //ÇöÀç Á¢¼ö Á¤º¸¸¦ Áö¿ì°í »õ·Î ¸¸µç´Ù. model.removeNodeset(gAcptInfoPath); model.makeNode(gAcptInfoPath); copyNodeListType(gAcptInfoPath, gAcptPath + "/acptlist["+selectRow+"]", "after") model.setValue(gPkgPath + "/pkgcd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/pkgcd")); model.setValue(gPkgPath + "/pkgnm" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/pkgnm")); model.setValue(gPkgPath + "/disccd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/disccd")); model.setValue(gPkgPath + "/uncocd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/uncocd")); model.setValue(gSendPath + "/srchhealexamflag" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/healexamflag")); model.makeValue(gSendPath + "/srchhealexamdetlflag" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/healexamdetlflag")); model.setValue(gSendPath + "/srchrsrvdd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rsrvdd")); model.setValue(gSendPath + "/srchrsrvno" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rsrvno")); model.setValue(gSendPath + "/srchorddd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/orddd")); model.setValue(gSendPath + "/srchpkgnm" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/pkgnm")); model.setValue(gSendPath + "/srchdiscd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/disccd")); model.setValue(gSendPath + "/srchuncocd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/uncocd")); var rcptstat = model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rcptstat"); var statflag = model.getValue(gAcptPath + "/acptlist["+selectRow+"]/statflag"); //°è»êµÈ »óÅÂÀÌ¸é ¼ö³³¹öư ºñȰ¼ºÈ­ /* if(rcptstat == "X" || rcptstat == "S"){ btn_rcpt.disabled = false; }else{ btn_rcpt.disabled = true; } */ fGetAcptDtlList(selectRow); } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 °ÇÁø Á¢¼ö°ÇÀÇ ¼¼ºÎ³»¿ªÀ» Á¶È¸ÇÑ´Ù. Ãß°¡°Ë»ç, °è»ê³»¿ª, ¼ö³³³»¿ª ************************************************************************************************/ function fGetAcptDtlList(selectRow){ var sacptstat = model.getValue(gAcptPath + "/acptlist[" + selectRow + "]/acptstat"); var srcptstat = model.getValue(gAcptPath + "/acptlist[" + selectRow + "]/rcptstat"); var sjobflag = model.getValue(gSendPath + "/srchjobflag"); model.setValue(gSendPath + "/srchhealexamflag" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/healexamflag")); model.setValue(gSendPath + "/srchrsrvdd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rsrvdd")); model.setValue(gSendPath + "/srchrsrvno" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rsrvno")); model.setValue(gSendPath + "/srchrcptstat" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rcptstat")); model.setValue(gSendPath + "/rcptdd" , model.getValue(gAcptPath + "/acptlist["+selectRow+"]/rcptdd")); btn_changrcpt.disabled = false; if(submit("TRAHA02102", false)){ if(srcptstat == "N"){ //if(srcptstat == "Y"){ if(getNodesetCount(gAcptDtlPath + "/opmilist") > 0){ fGetRcptDtlList(1); } //} }else{ //°è»ê±îÁö ÁøÇàµÈ »óÅÂÀÌ¸é °è»ê³»¿ªÀ» summaryÇÑ ÀÚ·á·Î Á¶È¸ÇÑ´Ù. if(srcptstat == "X"){ btn_changrcpt.disabled = true; fGetOpmiFromOscl(); }else{ model.resetInstanceNode("/root/main/info/rcptinfo"); //copyNodeListTupe(gRcptDtltPath,gAcptDtlPath); if(getNodesetCount(gAcptDtlPath + "/cardlist") > 0 ){ fNodeCheck(gRcptDtltPath + "/cardlist"); copyNodesetType(gRcptDtltPath + "/cardlist", gAcptDtlPath + "/cardlist", "replace", model, model) //model.copyNode("gRcptDtltPath/cardlist", gAcptDtlPath + "/cardlist") } if(getNodesetCount(gAcptDtlPath + "/cashlist") > 0 ){ fNodeCheck(gRcptDtltPath + "/cashlist"); copyNodesetType(gRcptDtltPath + "/cashlist", gAcptDtlPath + "/cashlist", "replace", model, model) //model.copyNode("gRcptDtltPath/cashlist", gAcptDtlPath + "/cashlist") } if(getNodesetCount(gAcptDtlPath + "/banklist") > 0 ){ fNodeCheck(gRcptDtltPath + "/banklist"); copyNodesetType(gRcptDtltPath + "/banklist", gAcptDtlPath + "/banklist", "replace", model, model) } if(getNodesetCount(gAcptDtlPath + "/dcgmlist") > 0 ){ fNodeCheck(gRcptDtltPath + "/dcgmlist"); copyNodesetType(gRcptDtltPath + "/dcgmlist", gAcptDtlPath + "/dcgmlist", "replace", model, model) //model.copyNode("gRcptDtltPath/dcgmlist", gAcptDtlPath + "/dcgmlist") } if(getNodesetCount(gAcptDtlPath + "/uncolist") > 0 ){ fNodeCheck(gRcptDtltPath + "/uncolist"); copyNodesetType(gRcptDtltPath + "/uncolist", gAcptDtlPath + "/uncolist", "replace", model, model) //model.copyNode("gRcptDtltPath/uncolist", gAcptDtlPath + "/dcgmlist") } } } model.refresh(); } } function fNodeCheck(NodeName){ if(getNodesetCount(NodeName) > 0){ return; } else{ model.makeNode(NodeName); } } function fGetRcptList(){ model.makeValue("/root/send/srchrcptdd", model.getValue("/root/main/list/acpt/acptlist/orddd")); if ( submit("TRAHA02104",false)){ if ( getNodesetCount(gRcptDtltPath + "/dcgmlist") > 0 ){ model.makeNode(gRcptInfoPath + "/s_dcgm/dcgm"); model.copyNode(gRcptInfoPath + "/s_dcgm/dcgm",gRcptDtltPath + "/dcgmlist"); } if ( getNodesetCount(gRcptDtltPath + "/uncolist") > 0 ){ model.makeNode(gRcptInfoPath + "/s_unco/unco"); model.copyNode(gRcptInfoPath + "/s_unco/unco",gRcptDtltPath + "/uncolist"); } if ( getNodesetCount(gRcptDtltPath + "/cardlist") > 0 ){ model.makeNode(gRcptInfoPath + "/s_card/card"); model.copyNode(gRcptInfoPath + "/s_card/card",gRcptDtltPath + "/cardlist"); } if ( getNodesetCount(gRcptDtltPath + "/cashlist") > 0 ){ model.makeNode(gRcptInfoPath + "/s_cash/cash"); model.copyNode(gRcptInfoPath + "/s_cash/cash",gRcptDtltPath + "/cashlist"); } } } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ±â ¼ö³³µÈ ³»¿ªÀ» Á¶È¸ ÇÑ´Ù. ÇÒÀÎ, °¨¸é, ¹Ì¼ö³»¿ª, Ä«µå³»¿ª, Çö±Ý¿µ¼öÁõ³»¿ª ************************************************************************************************/ function fGetRcptDtlList(selectRow){ openLoadingBar("¼ö³³ ¼¼ºÎ Á¤º¸¸¦ Á¶È¸ ÁßÀÔ´Ï´Ù.") ; model.setValue(gSendPath + "/srchrcptdd" , model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptdd")); model.setValue(gSendPath + "/srchrcptno" , model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptno")); model.makeValue(gSendPath + "/rcptno" , model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptno")); model.setValue(gSendPath + "/srchrcptseqno" , model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptseqno")); model.setValue(gSendPath + "/srchcretno" , model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/cretno")); var spid = model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/pid"); var sdisccd = model.getValue( gSendPath + "/srchdiscd"); var dopmi_totamt = 0; var dopmi_baseexamamt = 0; var dopmi_addexamamt = 0; var dopmi_payinsubamt = 0; var dopmi_payhealcntramt = 0; var dopmi_cmpyamt = 0; var dopmi_ownbamt = 0; var dopmi_ownuncoamt = 0; var dopmi_totuncoamt = 0; var dopmi_discamt = 0; var dopmi_reduamt = 0; var dopmi_totdiscamt = 0; var dopmi_specamt = 0; var dopmi_precashamt = 0; var dopmi_precardamt = 0; var dopmi_preonlineamt = 0; var dopmi_premdlrcptamt = 0; var dopmi_totprercptamt = 0; var dopmi_mdlrremamt = 0; var dopmi_mdlrcptamt = 0; var dopmi_restamt = 0; var dopmi_rcptamt = 0; var dopmi_cardamt = 0; var dopmi_cashamt = 0; var dopmi_onlineamt = 0; var sopmi_mdlyn = 'N'; var sopmi_paygubun = "N"; //¼ö³³¹æ¹ý //ÀÌ¹Ì ¼ö³³µÈ »óÅÂÀ̱⠶§¹®¿¡ °è»ê°ú ¼ö³³ ¹öưÀº ºñȰ¼ºÈ­ ½ÃÄѳõ´Â´Ù. //btn_calc.disabled = true; //btn_rcpt.disabled = true; //½ÃÀÛÇϱâÀü ¼ö³³°ú °ü·ÃµÈ nodesetµéÀ» reset¶Ç´Â remove½ÃŲ´Ù. fInitRcptInfo(); dopmi_totamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/totamt")); dopmi_baseexamamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/baseexamamt")); dopmi_addexamamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/addexamamt")); dopmi_payinsubamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/payinsubamt")); dopmi_payhealcntramt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/payhealcntramt")); dopmi_cmpyamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/cmpyamt")); dopmi_ownbamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/ownbamt")); dopmi_ownuncoamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/ownuncoamt")); dopmi_totuncoamt = dopmi_payinsubamt + dopmi_payhealcntramt + dopmi_cmpyamt + dopmi_ownuncoamt; dopmi_discamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/discamt")); dopmi_reduamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/reduamt")); dopmi_totdiscamt = dopmi_discamt + dopmi_reduamt; dopmi_specamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/specamt")); dopmi_precashamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/precashamt")); dopmi_precardamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/precardamt")); dopmi_preonlineamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/preonlineamt")); dopmi_premdlrcptamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/premdlrcptamt")); dopmi_totprercptamt = dopmi_precashamt + dopmi_precardamt + dopmi_preonlineamt + dopmi_premdlrcptamt; dopmi_mdlrcptamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/mdlrcptamt")); dopmi_mdlremamt = 0; dopmi_restamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/restamt")); dopmi_rcptamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/rcptamt")); //dopmi_rcptamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/payrcptamt"));//½ÇÁ¦ÀÇ ³³ºÎÇұݾ×À¸·Î ¼ÂÆÃ dopmi_cardamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/cardamt")); //dopmi_cardamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/payrcptamt"));//½ÇÁ¦ÀÇ ³³ºÎÇұݾ×À¸·Î ¼ÂÆÃ dopmi_cashamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/cashamt")); //dopmi_cashamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/payrcptamt"));//½ÇÁ¦ÀÇ ³³ºÎÇұݾ×À¸·Î ¼ÂÆÃ dopmi_onlineamt = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/onlineamt")); if(model.getValue("/root/print/ui") == "1"){ //Ä«µå/Çö±Ý¿µ¼öÁõ Ãë¼Ò±Ý¾×À̶ó¸é dopmi_rcptamt = dopmi_rcptamt * -1; dopmi_cardamt = dopmi_cardamt * -1; dopmi_cashamt = dopmi_cashamt * -1; } sopmi_orgrcptdd = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/orgrcptdd")); sopmi_orgrcptno = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/orgrcptno")); sopmi_orgrcptseqno = eval(model.getValue(gAcptDtlPath + "/opmilist[" + selectRow + "]/orgrcptseqno")); model.setValue(gRcptInfoPath + "/opmi/pid" , spid ); model.setValue(gRcptInfoPath + "/opmi/opmi_totamt" , dopmi_totamt); model.setValue(gRcptInfoPath + "/opmi/opmi_baseexamamt" , dopmi_baseexamamt); model.setValue(gRcptInfoPath + "/opmi/opmi_addexamamt" , dopmi_addexamamt); model.setValue(gRcptInfoPath + "/opmi/opmi_payinsubamt" , dopmi_payinsubamt); model.setValue(gRcptInfoPath + "/opmi/opmi_payhealcntramt" , dopmi_payhealcntramt); model.setValue(gRcptInfoPath + "/opmi/opmi_cmpyamt" , dopmi_cmpyamt); model.setValue(gRcptInfoPath + "/opmi/opmi_ownbamt" , dopmi_ownbamt); model.setValue(gRcptInfoPath + "/opmi/opmi_ownuncoamt" , dopmi_ownuncoamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_totuncoamt" , dopmi_totuncoamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_discamt" , dopmi_discamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_reduamt" , dopmi_reduamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_disccd" , sdisccd ); model.setValue(gRcptInfoPath + "/opmi/opmi_totdiscamt" , dopmi_totdiscamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_specamt" , dopmi_specamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_precashamt" , dopmi_precashamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_precardamt" , dopmi_precardamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_preonlineamt" , dopmi_preonlineamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_premdlrcptamt" , dopmi_premdlrcptamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_totprercptamt" , dopmi_totprercptamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_mdlrcptamt" , dopmi_mdlrcptamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_mdlremamt" , dopmi_mdlrremamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_restamt" , dopmi_restamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_rcptamt" , dopmi_rcptamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_cardamt" , dopmi_cardamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_cashamt" , dopmi_cashamt ); model.setValue(gRcptInfoPath + "/opmi/opmi_onlineamt" , dopmi_onlineamt ); if(dopmi_mdlrcptamt > 0){ sopmi_mdlyn = 'Y'; } model.setValue(gRcptInfoPath + "/opmi/opmi_mdlyn" , sopmi_mdlyn ); //Ä«µå¼ö³³±Ý¾×ÀÌ ÀÖ°í, Ä«µå·Î ¸ðµç ±Ý¾×À» ¼ö³³ÇßÀ¸¸é Ä«µå¼ö³³.. //if(dopmi_cardamt > 0 && dopmi_cardamt == dopmi_rcptamt){ if(getNodesetCount(gRcptInfoPath + "/card")){ sopmi_paygubun = "Y"; } //Çö±ÝÀε¥ Çö±Ý¿µ¼öÁõ ±âÁرݾ׺¸´Ù Å©¸é Çö±Ý¿µ¼öÁõÀ¸·Î ¾Æ´Ï¸é Çö±ÝÀ¸·Î ó¸® ÇÑ´Ù. if(dopmi_cashamt >= 5000){ sopmi_paygubun = "N"; } model.setValue(gRcptInfoPath + "/opmi/opmi_paygubun" , sopmi_paygubun ); model.setValue(gRcptInfoPath + "/opmi/opmi_orgrcptdd" , sopmi_orgrcptdd ); model.setValue(gRcptInfoPath + "/opmi/opmi_orgrcptno" , sopmi_orgrcptno ); model.setValue(gRcptInfoPath + "/opmi/opmi_orgrcptseqno" , sopmi_orgrcptseqno ); //°è»êÀÌ µÈ »óÅÂÀ̸é ȯºÒ¹öư Ȱ¼ºÈ­ if(model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptstat") == "Y"){ btn_refund.disabled = false; }else { btn_refund.disabled = true; } //¼ö³³µÈ ³»¿ªÀ» Á¤»êºÎºÐÀ¸·Î copyÇÑ´Ù. fSetChngInfo(); if(model.getValue("/root/main/list/acptdtl/opmilist/rcptdd")!=""){ model.makeValue("/root/send/srchrcptdd",model.getValue("/root/main/list/acptdtl/opmilist/rcptdd")); }else if(model.getValue("/root/main/list/acptdtl/oscllist/rcptdd")!=""){ model.makeValue("/root/send/srchrcptdd",model.getValue("/root/main/list/acptdtl/oscllist/rcptdd")); }else{ model.makeValue("/root/send/srchrcptdd",model.getValue("/root/main/info/acptinfo/acptlist/rsrvdd")); } model.makeValue("/root/send/srchrsrvdd",model.getValue("/root/main/info/acptinfo/acptlist/rsrvdd")); model.makeValue("/root/send/srchrsrvno",model.getValue("/root/main/info/acptinfo/acptlist/rsrvno")); if(submit("TRAHA02104", false)){ if(getNodesetCount(gRcptDtltPath + "/dcgmlist") > 0){ model.makeNode(gRcptInfoPath + "/s_dcgm/dcgm"); model.copyNode(gRcptInfoPath + "/s_dcgm/dcgm",gRcptDtltPath + "/dcgmlist"); } if(getNodesetCount(gRcptDtltPath + "/uncolist") > 0){ model.makeNode(gRcptInfoPath + "/s_unco/unco"); model.copyNode(gRcptInfoPath + "/s_unco/unco",gRcptDtltPath + "/uncolist"); } if(getNodesetCount(gRcptDtltPath + "/banklist") > 0){ model.makeNode(gRcptInfoPath + "/s_bank/bank"); model.copyNode(gRcptInfoPath + "/s_bank/bank",gRcptDtltPath + "/banklist"); } if(getNodesetCount(gRcptDtltPath + "/cardlist") > 0){ model.makeNode(gRcptInfoPath + "/s_card/card"); model.copyNode(gRcptInfoPath + "/s_card/card",gRcptDtltPath + "/cardlist"); } if(getNodesetCount(gRcptDtltPath + "/cashlist") > 0){ model.makeNode(gRcptInfoPath + "/s_cash/cash"); model.copyNode(gRcptInfoPath + "/s_cash/cash",gRcptDtltPath + "/cashlist"); } } //¿µ¼öÁõ Ãâ·Â ¹öưÀº Ȱ¼ºÈ­ ( Ãë¼ÒµÈ°ÍÀ» Á¦¿ÜÇϸé Ãâ·Â°¡´ÉÇϰÔ..) if(model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptstat") == "C"){ //btn_reprt.disabled = true; }else{ //btn_reprt.disabled = false; } /*********************************************************************************** * ¼ö³³aphpopmi(rcpstat) »óű¸ºÐ¿¡ µû¸¥ disabled setting * Y:¼ö³³ * C:(+)¼ö³³Ãë¼Ò * D:(-)¼ö³³Ãë¼Ò * null:¹Ì¼ö³³(ÀÚ·á¾øÀ½) ***********************************************************************************/ var opmircptstat = model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptstat"); if (opmircptstat == "Y") { if (grd_rcptcard.rows > 1 || grd_rcptcash.rows > 1){ //btn_rcpt.disabled = true; btn_refund.disabled = false; btn_changrcpt.disabled = true; //button52.disabled = true; //button53.disabled = true; //rdo_cardyn.disabled = true; //output28.disabled = true; //output29.disabled = true; }else{ //btn_rcpt.disabled = true; btn_refund.disabled = false; btn_changrcpt.disabled = false; //button52.disabled = false; //button53.disabled = false; //rdo_cardyn.disabled = false; //output28.disabled = false; //output29.disabled = false; } }else if (opmircptstat == "C" || opmircptstat == "D"){ //btn_rcpt.disabled = true; btn_refund.disabled = true; btn_changrcpt.disabled = true; //button52.disabled = true; //button53.disabled = true; /*********************************************************************************** * Á¢¼ö ahamacpt(rcpstat) »óű¸ºÐ¿¡ µû¸¥ disabled setting * Y:¹Ì°è»ê * X:°ÇÁø°è»ê * N:°ÇÁø¼ö³³ ***********************************************************************************/ var srcptstat = model.getValue(gAcptPath + "/acptlist[" + selectRow + "]/rcptstat"); /********************************************* [ 2007-10-17 ±è»óÁø ] °ÇÁø°è»êÁßÀÌ¸é ¼ö³³¹æ¹ýÀÌ ¼±ÅõǾßÇÑ´Ù. *********************************************/ /* if (srcptstat == "X") { rdo_cardyn.disabled = false; output28.disabled = true; output29.disabled = true; }else{ rdo_cardyn.disabled = true; output28.disabled = true; output29.disabled = true; } */ //rdo_cardyn.disabled = true; }else{ //btn_rcpt.disabled = false; //btn_refund.disabled = true; //btn_changrcpt.disabled = true; //rdo_cardyn.disabled = false; } //model.refresh(); // 2008.09.26 model.makeValue( gSendPath + "/rcptno", model.getValue(gAcptDtlPath + "/opmilist["+selectRow+"]/rcptno")); closeLoadingBar(); //ó¸®Áß È­¸éÀ» closeÇÑ´Ù. } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 Ä«µå¼ö³³ÀÇ ¼¼ºÎ³»¿ªÀ» Á¶È¸ÇÑ´Ù. ************************************************************************************************/ function fGetCardDtlInfo(SelectRow){ if(SelectRow <= 0) return; model.resetInstanceNode(gCardDtlInfoPath); model.setValue(gCardDtlInfoPath + "/cardrcptdd" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/aprvdd" )); model.setValue(gCardDtlInfoPath + "/cardcmpycd" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/cardcmpycd" )); model.setValue(gCardDtlInfoPath + "/cardno" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/cardno" )); model.setValue(gCardDtlInfoPath + "/valiterm" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/valiterm" )); model.setValue(gCardDtlInfoPath + "/allotmm" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/allotmm" )); model.setValue(gCardDtlInfoPath + "/cardamt" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/cardamt" )); model.setValue(gCardDtlInfoPath + "/aprvno" , model.getValue( gRcptDtltPath + "/cardlist[" + SelectRow + "]/aprvno" )); // 2008.09.26 model.refresh(); // 2008.09.26 } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ±â ¼ö³³µÈ ³»¿ªÀ» Á¶È¸ ÇÑ´Ù. Çö±Ý¿µ¼öÁõ¼ö³³ÀÇ ¼¼ºÎ³»¿ªÀ» Á¶È¸ÇÑ´Ù. ************************************************************************************************/ function fGetCashDtlInfo(SelectRow){ if(SelectRow <= 0) return; model.resetInstanceNode(gCashDtlInfoPath); model.setValue(gCashDtlInfoPath + "/qualcnfmflag" , model.getValue( gRcptDtltPath + "/cashlist[" + SelectRow + "]/qualcnfmflag" )); model.setValue(gCashDtlInfoPath + "/qualcnfmno" , model.getValue( gRcptDtltPath + "/cashlist[" + SelectRow + "]/qualcnfmno" )); model.setValue(gCashDtlInfoPath + "/aprvdd" , model.getValue( gRcptDtltPath + "/cashlist[" + SelectRow + "]/aprvdd" )); model.setValue(gCashDtlInfoPath + "/cashamt" , model.getValue( gRcptDtltPath + "/cashlist[" + SelectRow + "]/cashamt" )); model.setValue(gCashDtlInfoPath + "/aprvno" , model.getValue( gRcptDtltPath + "/cashlist[" + SelectRow + "]/aprvno" )); model.setValue(gCashDtlInfoPath + "/remfact" , model.getValue( gRcptDtltPath + "/cashlist[" + SelectRow + "]/remfact" )); // 2008.09.26 model.refresh(); // 2008.09.26 } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ¼ö³³µÈ ³»¿ªÀ» ¼±ÅÃÇϸé Á¤»êÀÛ¾÷À» À§ÇÑ data¸¦ ¼¼ÆÃÇÑ´Ù. ************************************************************************************************/ function fSetChngInfo(){ //"/root/main/info/acptinfo"; ///root/main/info/chnginfo/before/before_pkgcd model.makeValue(gChngPath + "/before/before_rsrvdd", model.getValue(gAcptInfoPath + "/acptlist/rsrvdd" )); model.makeValue(gChngPath + "/before/before_rsrvno", model.getValue(gAcptInfoPath + "/acptlist/rsrvno" )); model.makeValue(gChngPath + "/before/before_healexamflag", model.getValue(gAcptInfoPath + "/acptlist/healexamflag" )); model.makeValue(gChngPath + "/before/before_healexamdetlflag", model.getValue(gAcptInfoPath + "/acptlist/healexamdetlflag" )); model.makeValue(gChngPath + "/before/before_instcd", model.getValue(gAcptInfoPath + "/acptlist/instcd" )); model.makeValue(gChngPath + "/before/before_pid", model.getValue(gAcptInfoPath + "/acptlist/pid" )); model.makeValue(gChngPath + "/before/before_orddd", model.getValue(gAcptInfoPath + "/acptlist/orddd" )); model.makeValue(gChngPath + "/before/before_cretno", model.getValue(gAcptInfoPath + "/acptlist/cretno" )); model.makeValue(gChngPath + "/before/before_orddeptcd", model.getValue(gAcptInfoPath + "/acptlist/orddeptcd" )); model.makeValue(gChngPath + "/before/before_orddrid", model.getValue(gAcptInfoPath + "/acptlist/orddrid" )); model.makeValue(gChngPath + "/before/before_cmpynm", model.getValue(gAcptInfoPath + "/acptlist/cmpynm" )); model.makeValue(gChngPath + "/before/before_pkgcd", model.getValue(gAcptInfoPath + "/acptlist/pkgcd" )); model.makeValue(gChngPath + "/before/before_pkgnm", model.getValue(gAcptInfoPath + "/acptlist/pkgnm" )); model.makeValue(gChngPath + "/before/before_cmpycd", model.getValue(gAcptInfoPath + "/acptlist/cmpycd" )); model.makeValue(gChngPath + "/before/before_cmpynm", model.getValue(gAcptInfoPath + "/acptlist/cmpynm" )); model.makeValue(gChngPath + "/before/before_conseq", model.getValue(gAcptInfoPath + "/acptlist/conseq" )); model.makeValue(gChngPath + "/before/before_conhistseq", model.getValue(gAcptInfoPath + "/acptlist/conhistseq" )); model.makeValue(gChngPath + "/before/before_pkguncocd", model.getValue(gAcptInfoPath + "/acptlist/uncocd" )); model.makeValue(gChngPath + "/before/before_baseexamamt", model.getValue(gRcptInfoPath + "/opmi/opmi_baseexamamt" )); model.makeValue(gChngPath + "/before/before_addexamamt", model.getValue(gRcptInfoPath + "/opmi/opmi_addexamamt" )); model.makeValue(gChngPath + "/before/before_totamt", model.getValue(gRcptInfoPath + "/opmi/opmi_totamt" )); model.makeValue(gChngPath + "/before/before_disccd", model.getValue(gRcptInfoPath + "/opmi/opmi_disccd" )); model.makeValue(gChngPath + "/before/before_totdiscamt", model.getValue(gRcptInfoPath + "/opmi/opmi_totdiscamt" )); model.makeValue(gChngPath + "/before/before_ownuncoamt", model.getValue(gRcptInfoPath + "/opmi/opmi_ownuncoamt" )); model.makeValue(gChngPath + "/before/before_cmpyamt", model.getValue(gRcptInfoPath + "/opmi/opmi_cmpyamt" )); model.makeValue(gChngPath + "/before/before_payhealcntramt", model.getValue(gRcptInfoPath + "/opmi/opmi_payhealcntramt" )); model.makeValue(gChngPath + "/before/before_payinsubamt", model.getValue(gRcptInfoPath + "/opmi/opmi_payinsubamt" )); model.makeValue(gChngPath + "/before/before_totuncoamt", model.getValue(gRcptInfoPath + "/opmi/opmi_totuncoamt" )); model.makeValue(gChngPath + "/before/before_mdlrcptamt", model.getValue(gRcptInfoPath + "/opmi/opmi_mdlrcptamt" )); model.makeValue(gChngPath + "/before/before_restamt", model.getValue(gRcptInfoPath + "/opmi/opmi_restamt" )); model.makeValue(gChngPath + "/before/before_rcptamt", model.getValue(gRcptInfoPath + "/opmi/opmi_rcptamt" )); model.makeValue(gChngPath + "/after/after_rsrvdd", model.getValue(gAcptInfoPath + "/acptlist/rsrvdd" )); model.makeValue(gChngPath + "/after/after_rsrvno", model.getValue(gAcptInfoPath + "/acptlist/rsrvno" )); model.makeValue(gChngPath + "/after/after_healexamflag", model.getValue(gAcptInfoPath + "/acptlist/healexamflag" )); model.makeValue(gChngPath + "/after/after_healexamdetlflag", model.getValue(gAcptInfoPath + "/acptlist/healexamdetlflag" )); model.makeValue(gChngPath + "/after/after_instcd", model.getValue(gAcptInfoPath + "/acptlist/instcd" )); model.makeValue(gChngPath + "/after/after_pid", model.getValue(gAcptInfoPath + "/acptlist/pid" )); model.makeValue(gChngPath + "/after/after_orddd", model.getValue(gAcptInfoPath + "/acptlist/orddd" )); model.makeValue(gChngPath + "/after/after_cretno", model.getValue(gAcptInfoPath + "/acptlist/cretno" )); model.makeValue(gChngPath + "/after/after_orddeptcd", model.getValue(gAcptInfoPath + "/acptlist/orddeptcd" )); model.makeValue(gChngPath + "/after/after_orddrid", model.getValue(gAcptInfoPath + "/acptlist/orddrid" )); model.makeValue(gChngPath + "/after/after_cmpynm", model.getValue(gAcptInfoPath + "/acptlist/cmpynm" )); model.makeValue(gChngPath + "/after/after_pkgcd", model.getValue(gAcptInfoPath + "/acptlist/pkgcd" )); model.makeValue(gChngPath + "/after/after_pkgnm", model.getValue(gAcptInfoPath + "/acptlist/pkgnm" )); model.makeValue(gChngPath + "/after/after_cmpycd", model.getValue(gAcptInfoPath + "/acptlist/cmpycd" )); model.makeValue(gChngPath + "/after/after_cmpynm", model.getValue(gAcptInfoPath + "/acptlist/cmpynm" )); model.makeValue(gChngPath + "/after/after_conseq", model.getValue(gAcptInfoPath + "/acptlist/conseq" )); model.makeValue(gChngPath + "/after/after_conhistseq", model.getValue(gAcptInfoPath + "/acptlist/conhistseq" )); model.makeValue(gChngPath + "/after/after_pkguncocd", model.getValue(gAcptInfoPath + "/acptlist/uncocd" )); model.makeValue(gChngPath + "/after/after_baseexamamt", model.getValue(gRcptInfoPath + "/opmi/opmi_baseexamamt" )); model.makeValue(gChngPath + "/after/after_addexamamt", model.getValue(gRcptInfoPath + "/opmi/opmi_addexamamt" )); model.makeValue(gChngPath + "/after/after_totamt", model.getValue(gRcptInfoPath + "/opmi/opmi_totamt" )); model.makeValue(gChngPath + "/after/after_disccd", model.getValue(gRcptInfoPath + "/opmi/opmi_disccd" )); model.makeValue(gChngPath + "/after/after_totdiscamt", model.getValue(gRcptInfoPath + "/opmi/opmi_totdiscamt" )); model.makeValue(gChngPath + "/after/after_ownuncoamt", model.getValue(gRcptInfoPath + "/opmi/opmi_ownuncoamt" )); model.makeValue(gChngPath + "/after/after_cmpyamt", model.getValue(gRcptInfoPath + "/opmi/opmi_cmpyamt" )); model.makeValue(gChngPath + "/after/after_payhealcntramt", model.getValue(gRcptInfoPath + "/opmi/opmi_payhealcntramt" )); model.makeValue(gChngPath + "/after/after_payinsubamt", model.getValue(gRcptInfoPath + "/opmi/opmi_payinsubamt" )); model.makeValue(gChngPath + "/after/after_totuncoamt", model.getValue(gRcptInfoPath + "/opmi/opmi_totuncoamt" )); model.makeValue(gChngPath + "/after/after_mdlrcptamt", model.getValue(gRcptInfoPath + "/opmi/opmi_mdlrcptamt" )); model.makeValue(gChngPath + "/after/after_restamt", model.getValue(gRcptInfoPath + "/opmi/opmi_restamt" )); model.makeValue(gChngPath + "/after/after_rcptamt", model.getValue(gRcptInfoPath + "/opmi/opmi_rcptamt" )); model.makeValue(gChngPath + "/after/empid" , model.getValue(gAcptInfoPath + "/acptlist/empid")); model.makeValue(gChngPath + "/after/empnm" , model.getValue(gAcptInfoPath + "/acptlist/empnm")); model.makeValue(gChngPath + "/after/emprelacd", model.getValue(gAcptInfoPath + "/acptlist/relacd")); model.makeValue(gChngPath + "/after/famypid" , model.getValue(gAcptInfoPath + "/acptlist/famypid")); model.makeValue(gChngPath + "/after/famypnm" , model.getValue(gAcptInfoPath + "/acptlist/famypnm")); model.makeValue(gChngPath + "/after/famyrelacd", model.getValue(gAcptInfoPath + "/acptlist/famyrelacd")); model.makeValue(gChngPath + "/after/recmempid" , model.getValue(gAcptInfoPath + "/acptlist/recmempid")); model.makeValue(gChngPath + "/after/recmempnm" , model.getValue(gAcptInfoPath + "/acptlist/recmempnm")); } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 Á¢¼ö»óŰ¡ °è»ê±îÁö¸¸ ÁøÇàµÇ¾ú´Ù¸é °è»êµÈ ÀÚ·áµéÀ» summaryÇØ¼­ º»Àκδã±Ý ¹× ¹Ì¼ö±Ý, ÇÒÀαÝÀ» °áÁ¤ÇÑ´Ù. ¼ö³³À» ÇÒ ¼ö ÀÖµµ·Ï °á°ú ValueObject¸¦ ¸®ÅÏÇÑ´Ù. ************************************************************************************************/ function fGetOpmiFromOscl(){ fInitRcptInfo(); //RcptDetail Info Clear model.setValue( gSendPath + "/srchjobflag", "RCPT"); //±Ý¾×À» °è»êÇÑ´Ù lib if(submit("TRAHA02103", false)){ if(getNodesetCount(gHiddenPath + "/opmi_out") > 0){ model.copyNode(gRcptInfoPath + "/opmi",gHiddenPath + "/opmi_out"); } if(getNodesetCount(gHiddenPath + "/dcgm_out") > 0){ model.makeNode(gRcptInfoPath + "/s_dcgm/dcgm"); model.copyNode(gRcptInfoPath + "/s_dcgm/dcgm",gHiddenPath + "/dcgm_out"); model.makeNode(gRcptDtltPath + "/dcgmlist"); copyNodesetType("/root/main/list/rcptdtl/dcgmlist", gHiddenPath + "/dcgm_out", "replace"); } if(getNodesetCount(gHiddenPath + "/unco_out") > 0){ model.makeNode(gRcptInfoPath + "/s_unco/unco"); model.copyNode(gRcptInfoPath + "/s_unco/unco",gHiddenPath + "/unco_out"); model.makeNode(gRcptDtltPath + "/uncolist"); copyNodesetType("/root/main/list/rcptdtl/uncolist", gHiddenPath + "/unco_out", "replace"); } if(getNodesetCount(gHiddenPath + "/banklist") > 0){ model.makeNode(gRcptInfoPath + "/banklist/bank"); model.copyNode(gRcptInfoPath + "/banklist",gHiddenPath + "/banklist"); model.makeNode("/root/main/list/rcptdtl/banklist"); copyNodesetType("/root/main/list/rcptdtl/banklist", gHiddenPath + "/cardlist", "replace"); } if(getNodesetCount(gHiddenPath + "/cardlist") > 0){ model.makeNode(gRcptInfoPath + "/cardlist/card"); model.copyNode(gRcptInfoPath + "/cardlist",gHiddenPath + "/cardlist"); model.makeNode("/root/main/list/rcptdtl/cardlist"); copyNodesetType("/root/main/list/rcptdtl/cardlist", gHiddenPath + "/cardlist", "replace"); } if(getNodesetCount(gHiddenPath + "/cashlist") > 0){ model.makeNode(gRcptInfoPath + "/cashlist/cash"); model.copyNode(gRcptInfoPath + "/cashlist",gHiddenPath + "/cashlist"); model.makeNode("/root/main/list/rcptdtl/cashlist"); copyNodesetType("/root/main/list/rcptdtl/cashlist", gHiddenPath + "/cashlist", "replace"); } //model.refresh(); // 2008.09.26 } } /************************************************************************************************ @author : äÈñö @version : 2007-07-01 ¼±ÅÃµÈ °ÇÁøÁ¢¼ö°Ç¿¡ ´ëÇÑ ¼ö°¡°è»êÀ» ½Ç½ÃÇÑ´Ù. Á¢¼ö½Ã ¹ß»ýµÈ ¹Ì°è»êµÈ ó¹æÀ» Àо ¼ö°¡°è»êÀ» ½Ç½ÃÇÑ´Ù. ¼ö°¡°è»ê ·ÎÁ÷Àº ¿ø¹«ÀÇ ¼ö°¡°è»ê È帧¿¡ µû¶ó¼­ 󸮰¡ µÇ°í °á°ú·Î °ÇÁø°è»ê³»¿ª Å×ÀÌºí¿¡ ÀÚ·á°¡ »ý¼ºµÈ´Ù. °á°ú°ªÀ¸·Î °è»ê³»¿ª summary, ÇÒÀÎÀÚ·á, ¹Ì¼öÀÚ·á°¡ returnµÈ´Ù. ************************************************************************************************/ function fCalculate(){ if(isXPathTextNull(gSendPath + "/srchrsrvdd")){ return; }else{ var krnm = model.getValue(gPatInfoPath + "/item/hngnm"); var orddd = model.getValue( gSendPath + "/srchorddd"); var pkgnm = model.getValue( gSendPath + "/srchpkgnm"); model.setValue( gSendPath + "/srchjobflag", "RCPT"); /* //°è»ê½Ç½Ã È®ÀÎ ¸Þ¼¼Áö var rtn = messageBox( krnm + " ´ÔÀÇ " + orddd + "ÀÏÀÚ " + pkgnm + "\n" + "±Ý¾× °è»êÀ» ÇϽðڽÀ´Ï±î?","Q999"); if (rtn == 7 ){ return; } */ //openLoadingBar("¼ö³³ ÇÒ ±Ý¾×À» °è»êÁßÀÔ´Ï´Ù.!"); model.makeValue("/root/send/gubunflag", "F"); //°è»êÇ÷¹±×¸¦ À§ÇØ Á¢¼ö¿¡¼­¿Í ºÐ¸® Çϱâ À§ÇØ if(submit("TXAHA02101", false)){ //closeLoadingBar(); //ó¸®Áß È­¸éÀ» closeÇÑ´Ù. //°è»ê ¹öư ºñȰ¼ºÈ­ hiddenchange(); var shealexamflag = model.getValue(gSendPath + "/srchhealexamflag"); var srsrvdd = model.getValue(gSendPath + "/srchrsrvdd"); var srsrvno = model.getValue(gSendPath + "/srchrsrvno"); var sinstcd = model.getValue(gSendPath + "/srchinstcd"); //°è»êÀ» ½Ç½ÃÇÑ Á¢¼ö°Ç¿¡ ´ëÇØ¼­ »óŸ¦ °è»êÀ¸·Î ¹Ù²Ù·Î rebuildÇÑ´Ù. for(var iCount = 1; iCount< grd_acptlist.rows ; iCount++){ if(model.getValue(gAcptPath + "/acptlist["+iCount+"]/healexamflag") == shealexamflag && model.getValue(gAcptPath + "/acptlist["+iCount+"]/rsrvdd") == srsrvdd && model.getValue(gAcptPath + "/acptlist["+iCount+"]/rsrvno") == srsrvno && model.getValue(gAcptPath + "/acptlist["+iCount+"]/instcd") == sinstcd){ model.setValue(gAcptPath + "/acptlist["+iCount+"]/rcptstat", "X"); grd_acptlist.rebuild(); if(getNodesetCount(gAcptDtlPath + "/dcgmlist") > 0){ fNodeCheck(gRcptDtltPath + "/dcgmlist"); for(var ii=0; ii