/* ================================================================================================= - ¿Ü·¡µî·Ï PMO001.js - ÀÛ¼ºÀÚ : À¯Á¤¶õ - ÀÛ¼º½ÃÀÛÀÏÀÚ : 2007.03.13 ================================================================================================== */ var gs_olnw = "O" ; //±¸È¯ 'O' ½Åȯ 'N' var gs_fdrc = "R" ; //½Åȯ 'F' ÃÊÁø 'D' ÀçÁø 'R' var gs_rgtp = "OO"; //Á¢¼ö±¸ºÐ + Áø·áÇüÅÂ(¿Ü·¡[O],ÀÀ±Þ[E]) var gs_prcs = "0" ; //󸮴ܰè var init_ptbs; var init_otpt; var init_ptin; //var init_ptdc; var init_opmi; var init_oscl; var grid_init_h_ptsp; var grid_init_h_otpt; var grid_init_h_unco; var grid_init_h_card; var grid_init_h_dcgm; var grid_init_h_dcgm2; var grid_init_h_cnst; var grid_init_h_inbs; var grid_init_h_hndc; var grid_init_h_cash; var grid_init_h_onln; var grid_init_m_ptin; //var grid_init_m_ptdc; var grid_init_m_otpt; var grid_init_m_opmi; var grid_init_m_oscl; var grid_init_m_card; var grid_init_m_cash; var grid_init_m_dcgm; var grid_init_c_otpt; var grid_init_t_otpt; /**--------------------------------------------------- * @desc : ´ÜÀϱ¸Á¶ ÀνºÅϽº ÃʱâÈ­ * @--------------------------------------------------- */ function fOneInstanceReset(gubn){ if (gubn == "ptbs") { model.resetInstanceNode("/root/main/ptbs"); model.resetInstanceNode("/root/main/patinfo"); } else if (gubn == "ptin") model.resetInstanceNode("/root/main/ptin"); //else if (gubn == "ptdc") model.resetInstanceNode("/root/main/ptdc"); else if (gubn == "otpt") model.resetInstanceNode("/root/main/otpt"); else if (gubn == "opmi") model.resetInstanceNode("/root/main/opmi"); else if (gubn == "all"){ model.resetInstanceNode("/root/main/ptbs"); model.resetInstanceNode("/root/main/patinfo"); model.resetInstanceNode("/root/main/ptin"); //model.resetInstanceNode("/root/main/ptdc"); model.resetInstanceNode("/root/main/otpt"); model.resetInstanceNode("/root/main/otpt_old"); model.resetInstanceNode("/root/main/opmi"); model.resetInstanceNode("/root/main/aipm"); model.resetInstanceNode("/root/main/icpm"); model.resetInstanceNode("/root/hidden/com"); model.resetInstanceNode("/root/hidden/flag"); //2015/05/07 ÀÌÁ¤Åà Ãß°¡ model.resetInstanceNode("/root/main/oscl"); model.resetInstanceNode("/root/main/bogj"); model.resetInstanceNode("/root/main/h_chrt"); model.resetInstanceNode("/root/send"); model.resetInstanceNode("/root/temp"); model.resetInstanceNode("/root/cmp"); model.resetInstanceNode("/root/hidden/temp"); model.resetInstanceNode("/root/hidden/rcv"); model.resetInstanceNode("/root/send2"); model.resetInstanceNode("/root/jinchalryotemp"); model.resetInstanceNode("/root/hidden/rcv"); model.resetInstanceNode("/root/checkdrscheSend"); //2015/05/07 ÀÌÁ¤Åà Ãß°¡ } //°¢Á¾ ¹öư color ÃʱâÈ­, ÄÞº¸¹Ú½º Ȱ¼ºÈ­ ¿©ºÎ, ¹öư Ȱ¼ºÈ­ ¿©ºÎ //¼±ÅÃÁø·á¿©ºÎ ¹öư Ȱ¼ºÈ­ rdo_specordyn.disabled = false; //ƯÀÌȯÀÚ¿©ºÎ ¹öư»ö ÃʱâÈ­ btn_patspcfyn.attribute("background-color") = "#c0c0c0"; } /**--------------------------------------------------- * @desc : ¸ÖƼ±¸Á¶ ÀνºÅϽº ÃʱâÈ­ * @--------------------------------------------------- */ function fMultiInstanceReset(){ model.removeNodeset("/root/main/h_otpt/otpt"); model.removeNodeset("/root/main/h_unco/unco"); //error model.removeNodeset("/root/main/h_card/card"); //error model.removeNodeset("/root/main/h_dcgm/dcgm"); //error model.removeNodeset("/root/main/h_dcgm2/dcgm"); model.removeNodeset("/root/main/h_cash/cash"); //error model.removeNodeset("/root/main/h_onln/onln"); model.removeNodeset("/root/main/h_ptsp/ptsp"); model.removeNodeset("/root/main/h_cnst/cnst"); //error model.removeNodeset("/root/main/h_srdg/srdg"); //model.removeNodeset("/root/main/h_inbs/inbs"); //model.removeNodeset("/root/main/h_jabo/jabo"); model.removeNodeset("/root/main/h_hndc/hndc"); model.removeNodeset("/root/main/m_ptin/ptin"); //model.removeNodeset("/root/main/m_ptdc/ptdc"); model.removeNodeset("/root/main/m_otpt/otpt"); model.removeNodeset("/root/main/m_opmi/opmi"); model.removeNodeset("/root/main/m_oscl/oscl"); model.removeNodeset("/root/main/m_card/card"); model.removeNodeset("/root/main/m_cash/cash"); model.removeNodeset("/root/main/m_dcgm/dcgm"); model.removeNodeset("/root/main/c_otpt/otpt"); model.removeNodeset("/root/main/t_otpt/otpt"); } /**--------------------------------------------------- * @desc : ´ÜÀÏ ÀνºÅϽº backup * @--------------------------------------------------- */ function fOneInstanceBackUp(){ init_ptbs = instance1.selectSingleNode("/root/main/ptbs").xml; init_otpt = instance1.selectSingleNode("/root/main/otpt").xml; init_ptin = instance1.selectSingleNode("/root/main/ptin").xml; //init_ptdc = instance1.selectSingleNode("/root/main/ptdc").xml; init_opmi = instance1.selectSingleNode("/root/main/opmi").xml; init_oscl = instance1.selectSingleNode("/root/main/oscl").xml; } /**--------------------------------------------------- * @desc : ¸ÖƼ ÀνºÅϽº backup * @--------------------------------------------------- */ function fMultiInstanceBackUp(){ grid_init_h_otpt = instance1.selectSingleNode("/root/main/h_otpt"); grid_init_h_unco = instance1.selectSingleNode("/root/main/h_unco"); grid_init_h_card = instance1.selectSingleNode("/root/main/h_card"); grid_init_h_dcgm = instance1.selectSingleNode("/root/main/h_dcgm"); grid_init_h_dcgm2 = instance1.selectSingleNode("/root/main/h_dcgm2"); grid_init_h_cash = instance1.selectSingleNode("/root/main/h_cash"); grid_init_h_onln = instance1.selectSingleNode("/root/main/h_onln"); grid_init_h_ptsp = instance1.selectSingleNode("/root/main/h_ptsp"); grid_init_h_cnst = instance1.selectSingleNode("/root/main/h_cnst"); grid_init_h_srdg = instance1.selectSingleNode("/root/main/h_srdg"); grid_init_m_ptin = instance1.selectSingleNode("/root/main/m_ptin"); //grid_init_m_ptdc = instance1.selectSingleNode("/root/main/m_ptdc"); grid_init_m_otpt = instance1.selectSingleNode("/root/main/m_otpt"); grid_init_m_opmi = instance1.selectSingleNode("/root/main/m_opmi"); grid_init_m_oscl = instance1.selectSingleNode("/root/main/m_oscl"); grid_init_m_card = instance1.selectSingleNode("/root/main/m_card"); grid_init_m_cash = instance1.selectSingleNode("/root/main/m_cash"); grid_init_m_dcgm = instance1.selectSingleNode("/root/main/m_dcgm"); grid_init_c_otpt = instance1.selectSingleNode("/root/main/c_otpt"); grid_init_t_otpt = instance1.selectSingleNode("/root/main/t_otpt"); } /**--------------------------------------------------- * @desc : ¸ÖƼ ÀνºÅϽº Copy * @--------------------------------------------------- */ function fMultiInstanceCopy(){ var curNode_otpt = instance1.selectSingleNode("/root/main/h_otpt"); if(curNode_otpt != null) model.removeNodeset("/root/main/h_otpt/otpt"); //grid1.rebuild(); var curNode_unco = instance1.selectSingleNode("/root/main/h_unco"); if(curNode_unco != null) model.removeNodeset("/root/main/h_unco/unco"); var curNode_card = instance1.selectSingleNode("/root/main/h_card"); if(curNode_card != null) model.removeNodeset("/root/main/h_card/card"); var curNode_dcgm = instance1.selectSingleNode("/root/main/h_dcgm"); if(curNode_dcgm != null) model.removeNodeset("/root/main/h_dcgm/dcgm"); var curNode_dcgm2 = instance1.selectSingleNode("/root/main/h_dcgm2"); if(curNode_dcgm2 != null) model.removeNodeset("/root/main/h_dcgm2/dcgm"); var curNode_cash = instance1.selectSingleNode("/root/main/h_cash"); if(curNode_cash != null) model.removeNodeset("/root/main/h_cash/cash"); var curNode_onln = instance1.selectSingleNode("/root/main/h_onln"); if(curNode_onln != null) model.removeNodeset("/root/main/h_onln/onln"); var curNode_cnst = instance1.selectSingleNode("/root/main/h_cnst"); if(curNode_cnst != null) model.removeNodeset("/root/main/h_cnst/cnst"); //var curNode_inbs = instance1.selectSingleNode("/root/main/h_inbs"); //if(curNode_inbs != null) // model.removeNodeset("/root/main/h_inbs/inbs"); var curNode_srdg = instance1.selectSingleNode("/root/main/h_srdg"); if(curNode_srdg != null) model.removeNodeset("/root/main/h_srdg/srdg"); //var curNode_jabo = instance1.selectSingleNode("/root/main/h_jabo"); //if(curNode_jabo != null) // model.removeNodeset("/root/main/h_jabo/jabo"); //grid2.Rebuild(); var curNode_hndc = instance1.selectSingleNode("/root/main/h_hndc"); if(curNode_hndc != null) model.removeNodeset("/root/main/h_hndc/hndc"); var curNode_ptsp = instance1.selectSingleNode("/root/main/h_ptsp"); if(curNode_ptsp != null) model.removeNodeset("/root/main/h_ptsp/ptsp"); //model.removeNodeset("/root/main/h_inpt"); //model.removeNodeset("/root/main/h_inpt2"); var curNode_m_ptin = instance1.selectSingleNode("/root/main/m_ptin"); if(curNode_m_ptin != null) model.removeNodeset("/root/main/m_ptin/ptin"); //var curNode_m_ptdc = instance1.selectSingleNode("/root/main/m_ptdc"); // if(curNode_m_ptdc != null) // model.removeNodeset("/root/main/m_ptdc/ptdc"); var curNode_m_otpt = instance1.selectSingleNode("/root/main/m_otpt"); if(curNode_m_otpt != null) model.removeNodeset("/root/main/m_otpt/otpt"); var curNode_m_opmi = instance1.selectSingleNode("/root/main/m_opmi"); if(curNode_m_opmi != null) model.removeNodeset("/root/main/m_opmi/opmi"); var curNode_m_oscl = instance1.selectSingleNode("/root/main/m_oscl"); if(curNode_m_oscl != null) model.removeNodeset("/root/main/m_oscl/oscl"); var curNode_m_card = instance1.selectSingleNode("/root/main/m_card"); if(curNode_m_card != null) model.removeNodeset("/root/main/m_card/card"); var curNode_m_cash = instance1.selectSingleNode("/root/main/m_cash"); if(curNode_m_cash != null) model.removeNodeset("/root/main/m_cash/cash"); var curNode_m_dcgm = instance1.selectSingleNode("/root/main/m_dcgm"); if(curNode_m_dcgm != null) model.removeNodeset("/root/main/m_dcgm/dcgm"); var curNode_c_otpt = instance1.selectSingleNode("/root/main/c_otpt"); if(curNode_c_otpt != null) model.removeNodeset("/root/main/c_otpt/otpt"); //2008-01-10 À̵¿½Ä Ãß°¡ - ´çÀÏÁ¢¼ö³»¿ª ÃʱâÈ­ var curNode_t_otpt = instance1.selectSingleNode("/root/main/t_otpt"); if(curNode_t_otpt != null) model.removeNodeset("/root/main/t_otpt/otpt"); } /**--------------------------------------------------- * @desc : ±âº» µ¥ÀÌÅÍ ÃʱâÈ­ * : °¢ ´ÜÀ§º°·Î ÃʱâÈ­ °¡´ÉÇϵµ·Ï ÇÔ¼ö ºÐ¸® * @--------------------------------------------------- */ function fBaseDataInit(gubn){ gs_olnw = "O" ; //±¸È¯ 'O' ½Åȯ 'N' gs_fdrc = "R" ; //½Åȯ 'F' ÃÊÁø 'D' ÀçÁø 'R' gs_rgtp = "OO"; //Á¢¼ö±¸ºÐ + Áø·áÇüÅÂ(¿Ü·¡[O],ÀÀ±Þ[E]) gs_prcs = "0" ; //󸮴ܰè //com, ptbs, otpt, ptin, ptdc, opmi if (gubn == "com") fBaseDataInitCom(); else if (gubn == "ptbs") fBaseDataInitPtbs(); else if (gubn == "otpt") fBaseDataInitOtpt(); else if (gubn == "ptin") fBaseDataInitPtin(); //else if (gubn == "ptdc") fBaseDataInitPtdc(); else if (gubn == "opmi") fBaseDataInitOpmi(); else if (gubn == "all"){ fBaseDataInitCom(); fBaseDataInitPtbs(); fBaseDataInitOtpt(); fBaseDataInitPtin(); //fBaseDataInitPtdc(); if (instance1.selectSingleNode("/root/main/opmi/opmi_payamt") != null) fBaseDataInitOpmi(); cmb_suppkind.disabled = true; cmb_suppkindresn.disabled = true; cmb_medamtfreeresn.disabled = true; cmb_fsexamflag.disabled = true; btn_calcscorcalc.disabled = false; btn_save.disabled = true; btn_updt.disabled = true; btn_cncl.disabled = false; btn_stat.attribute("background-color") = "#c0c0c0"; //btn_otpt.selected = false; //btn_m_otpt.selected = true; //btn_c_otpt.selected = false; //model.toggle("case6"); //2016/07/18 Ä¡°ú È­¸é ÃʱâÈ­½Ã Ä«µå°¡ ¼±Åõǵµ·Ï ¿äûÇÔ¿¡ µû¶ó¼­ ±âÁØÀÚ·á·Î üũÇϵµ·Ï ¼öÁ¤(ÀÌÁ¤ÅÃ) var chk_value= model.getValue("/root/paminit/P6587list/P6587[cdid='01']/cdnm"); if(isNull(chk_value)){ model.makeValue("/root/hidden/com/cardcashflag" , "C"); //Y-Ä«µå, N-Çö±Ý¿µ¼öÁõ, C-Çö±Ý }else{ model.makeValue("/root/hidden/com/cardcashflag" , chk_value); //Y-Ä«µå, N-Çö±Ý¿µ¼öÁõ, C-Çö±Ý } //model.setValue("/root/hidden/com/cardcashflag" , "C"); //Y-Ä«µå, N-Çö±Ý¿µ¼öÁõ, C-Çö±Ý model.setValue("/root/hidden/com/cash_indinstflag" , "00"); //00-¼Òµæ°øÁ¦, 01-ÁöÃâÁõºñ, 02-¹Ì½ÂÀÎ //20100401 Çö±Ý¿µ¼öÁõ Àǹ«È­ //rdo_indyn.disabled = true; model.setFocus("ipt_pid"); //Çʿ信 µû¶ó Ãß°¡ } } function fBaseDataInitCom(){ //±×´ë·Î »ç¿ëÇÒÁö ¹ÌÁ¤ FInit_detail0() //Áø·á½Ã°£ ¼¼ÆÃ model.setValue("/root/main/otpt/otpt_ordtm",(getCurrentTime()).substring(0,4)); model.setValue("/root/hidden/com/menu_erflag",""); //2009-06-06 À̵¿½Ä ¼öÁ¤ - ȯÀÚÄ«µå¹ßÇà ±¸ºÐÀ» ¿ø¹«°øÅëÄÚµå 'P0022' ¿¡ ³Ö°í °ü¸®ÇÔ. if( model.getValue("/root/init/P0022/P0022list[cd = '110']/nm") != 'N' ){ model.setValue("/root/hidden/com/idcard","Y"); } model.setValue("/root/hidden/com/rcptpapr","Y"); model.setValue("/root/hidden/com/engrcptpapr",""); model.setValue("/root/hidden/com/orgflag","N"); //¿µ¼öÁõ ¿øº»ÀÌ µðÆúÆ® model.setValue("/root/hidden/com/histstat","R"); //2008-11-27 À̵¿½ÄÃß°¡ //ÀÚ°ÝÁ¶È¸ À¯¹« //2009-07-27 À̵¿½Ä ¼öÁ¤ - ÀÚ°ÝÁ¶È¸¿©ºÎ¸¦ ¿ø¹«°øÅëÄÚµå 'P0022' ¿¡ ³Ö°í °ü¸®ÇÔ. if( model.getValue("/root/init/P0022/P0022list[cd = '150']/nm") != 'N' ){ model.setValue("/root/hidden/com/searchInsuInfoYN", 'Y'); } model.setValue("/root/hidden/com/rsrvdesc","´çÀÏÁ¢¼ö"); //ÀÓÀǰ¨¸é, ¹Ì¼ö¾× ÄÚµå ÃʱâÈ­. model.resetInstanceNode("/root/hidden/m_etc"); //Çö±Ý¿µ¼öÁõ ÀÚµ¿½ÂÀÎ ¿©ºÎ if( model.getValue("/root/init/P0022/P0022list[cd = '160' ]/nm") == 'Y'){ model.setValue("/root/hidden/com/autocashyn", model.getvalue("/root/init/P0022/P0022list[cd = '160' ]/nm")); } } function fBaseDataInitPtbs(){ model.setValue("/root/main/ptbs/ptbs_engnm","-"); model.setValue("/root/main/ptbs/ptbs_chinm","-"); model.setValue("/root/main/ptbs/ptbs_btype","-"); model.setValue("/root/main/ptbs/ptbs_rh","-"); model.setValue("/root/main/ptbs/ptbs_hometel","-"); model.setValue("/root/main/ptbs/ptbs_mpphontel","-"); model.setValue("/root/main/ptbs/ptbs_etctel1","-"); model.setValue("/root/main/ptbs/ptbs_etctel2","-"); model.setValue("/root/main/ptbs/ptbs_zipcd1","000"); model.setValue("/root/main/ptbs/ptbs_zipcd2","00"); model.setValue("/root/main/ptbs/ptbs_zipcdseq","1"); model.setValue("/root/main/ptbs/ptbs_highaddr","-"); model.setValue("/root/main/ptbs/ptbs_detladdr","-"); model.setValue("/root/main/ptbs/ptbs_recmerrela","-"); model.setValue("/root/main/ptbs/ptbs_viprem","-"); model.setValue("/root/main/ptbs/ptbs_inhospyn","N"); model.setValue("/root/hidden/flag/ptbs_flag","-"); } function fBaseDataInitOtpt(){ model.setValue("/root/main/otpt/otpt_orddeptcd","-"); //Áø·á°ú model.setValue("/root/main/otpt/otpt_orddrid","-"); //Áø·áÀÇ»ç model.setValue("/root/main/otpt/otpt_orddd",PMO001_TODAY); //Áø·áÀÏÀÚ model.setValue("/root/main/otpt/otpt_ordtype","O"); //Áø·áÇüÅ =>°øÅëÄÚµå ÂüÁ¶ model.setValue("/root/main/otpt/otpt_specordyn","N"); //¼±ÅÃÁø·á¿©ºÎ model.setValue("/root/main/otpt/otpt_mskind","M"); //ÁÖºÎÀ¯Çü model.setValue("/root/main/otpt/otpt_insucd","-"); //º¸ÇèÀÚ±âÈ£ model.setValue("/root/main/otpt/otpt_insukind","-"); //º¸ÇèÀ¯Çü model.setValue("/root/main/otpt/otpt_suppkind","00"); //º¸Á¶À¯Çü model.setValue("/root/main/otpt/otpt_suppkindresn","-"); //º¸Á¶À¯Çü»çÀ¯ model.setValue("/root/main/otpt/otpt_medamtestmyn","Y"); //ÁøÂû·á»êÁ¤¿©ºÎ model.setValue("/root/main/otpt/otpt_medamtfreeresn","00"); //ÁøÂû·á¹Ì»êÁ¤»çÀ¯ model.setValue("/root/main/otpt/otpt_medamtpostyn","N"); //ÁøÂû·á¼±ÈÄºÒ => È®ÀÎÇÊ¿ä N ¼±ºÒ, Y ÈÄºÒ //2015/08/17 ÀÌÁ¤Åà ÁÖ¼®Ã³¸®(¸ÖƼ ÀÔ·ÂÃß°¡ ÈÄ ÀçÁøÀ¸·Î ÃÊÀçÁø µ¹¾Æ°¡´Â Çö»ó ¼öÁ¤) //model.setValue("/root/main/otpt/otpt_fsexamflag","R"); //ÃÊÀçÁø //2015/08/17 ÀÌÁ¤Åà ÁÖ¼®Ã³¸® model.setValue("/root/main/otpt/otpt_hosoutexptresncd","00"); //ºÐ¾÷¿¹¿Ü model.setValue("/root/main/otpt/otpt_updtcnclresn","-"); //º¯°æÃë¼Ò»çÀ¯ model.setValue("/root/main/otpt/otpt_disccd","-"); //ÇÒÀÎ model.setValue("/root/main/otpt/otpt_etcordflag","-"); //¿¬¼Ó/±âŸ±¸ºÐ model.setValue("/root/main/otpt/otpt_calcmthdflag","N"); //¼ö°¡°è»êÇüÅ : °³º° model.setValue("/root/main/otpt/otpt_calcbaseflag",""); //°è»ê±âÁØ : Áø·áÀÏÀÚ, ½Ç½ÃÀÏÀÚ => È®ÀÎÇÊ¿ä model.setValue("/root/main/otpt/otpt_clincstdyacptflag","N"); //ÀÓ»ó½ÃÇè(¿¬±¸¿ë) //2007.07.28 À̵¿½Ä Ãß°¡ model.setValue("/root/main/otpt/otpt_chrtlendyn","Y"); //Â÷Æ®´ëÃâ¿©ºÎ model.setValue("/root/hidden/flag/otpt_flag","-"); model.setValue("/root/main/otpt/otpt_handicaprbookpossnyn","N"); model.setValue("/root/main/otpt/otpt_outercdrgstyn","N"); //2007-10-18 À̵¿½Ä Ãß°¡ model.setValue("/root/main/otpt/otpt_ordreqformflag", "-"); //¼ö±ÞÀýÂ÷ - '-' } function fBaseDataInitPtin(){ model.setValue("/root/main/ptin/ptin_insukind","-"); model.setValue("/root/main/ptin/ptin_insucd","-"); model.setValue("/root/main/ptin/ptin_insunm","-"); model.setValue("/root/main/ptin/ptin_insuno","-"); model.setValue("/root/main/ptin/ptin_insdnm","-"); model.setValue("/root/main/ptin/ptin_insdrrgstno1","-"); model.setValue("/root/main/ptin/ptin_insdrrgstno2","-"); model.setValue("/root/main/ptin/ptin_insdrela","-"); model.setValue("/root/main/ptin/ptin_fromdd",PMO001_TODAY); model.setValue("/root/main/ptin/ptin_todd",PMO001_MAXDATE); model.setValue("/root/hidden/flag/ptin_flag","-"); } //function fBaseDataInitPtdc(){ // model.setValue("/root/main/ptdc/ptdc_disccd","-"); //ÇÒÀÎÄÚµå // //model.setValue("/root/main/ptdc/ptdc_disccd2","-"); //ÇÒÀÎÄÚµå2 : ÄÚµåÀԷ°ª // model.setValue("/root/main/ptdc/ptdc_discflag","D"); //ÇÒÀα¸ºÐ : °øÅëÄÚµå È®ÀÎÈÄ ¼¼ÆÃ ÇÊ¿ä // model.setValue("/root/main/ptdc/ptdc_disccls","-"); //ÇÒÀκзù±¸ºÐ : °øÅëÄÚµå È®ÀÎÈÄ ¼¼ÆÃ ÇÊ¿ä // model.setValue("/root/main/ptdc/ptdc_fromdd",PMO001_TODAY); //½ÃÀÛÀÏÀÚ // model.setValue("/root/main/ptdc/ptdc_todd",PMO001_MAXDATE); //Á¾·áÀÏÀÚ // model.setValue("/root/main/ptdc/ptdc_empid","-"); //Á÷¿ø»ç¹ø // model.setValue("/root/main/ptdc/ptdc_emprela","-"); //Á÷¿ø°úÀÇ °ü°è // model.setValue("/root/main/ptdc/ptdc_discappacptyn","N"); //ÇÒÀνÅû¼­Á¢¼ö¿©ºÎ // model.setValue("/root/main/ptdc/ptdc_profacptyn","N"); //Áõ¸í¼­Á¢¼ö¿©ºÎ // model.setValue("/root/main/ptdc/ptdc_profacptdd","-"); //Áõ¸í¼­Á¢¼öÀÏÀÚ // model.setValue("/root/main/ptdc/ptdc_remfact","-"); //Âü°í»çÇ× // model.setValue("/root/hidden/flag/ptdc_flag","-"); //} function fBaseDataInitOpmi(){ model.setValue("/root/main/opmi/opmi_payamt","0"); model.setValue("/root/main/opmi/opmi_payownbamt","0"); model.setValue("/root/main/opmi/opmi_payinsubamt","0"); model.setValue("/root/main/opmi/opmi_handcapfund","0"); model.setValue("/root/main/opmi/opmi_procsubtamt","0"); model.setValue("/root/main/opmi/opmi_ersubtamt","0"); model.setValue("/root/main/opmi/opmi_nopyamt","0"); model.setValue("/root/main/opmi/opmi_specamt","0"); model.setValue("/root/main/opmi/opmi_discamt","0"); model.setValue("/root/main/opmi/opmi_reduamt","0"); model.setValue("/root/main/opmi/opmi_bloddiscamt","0"); model.setValue("/root/main/opmi/opmi_totownbamt","0"); model.setValue("/root/main/opmi/opmi_precardamt","0"); model.setValue("/root/main/opmi/opmi_precashamt","0"); model.setValue("/root/main/opmi/opmi_preonlineamt","0"); model.setValue("/root/main/opmi/opmi_mdlrcptamt","0"); model.setValue("/root/main/opmi/opmi_premdlrcptamt","0"); model.setValue("/root/main/opmi/opmi_uncoamt","0"); model.setValue("/root/main/opmi/opmi_cashamt","0"); model.setValue("/root/main/opmi/opmi_cardamt","0"); model.setValue("/root/main/opmi/opmi_onlineamt","0"); model.setValue("/root/main/opmi/opmi_restamt","0"); model.setValue("/root/main/opmi/opmi_paydepoamt","0"); //³³ÀÔ±Ý model.setValue("/root/main/opmi/opmi_totamt","0"); model.setValue("/root/main/opmi/opmi_totnopyamt","0"); model.setValue("/root/main/opmi/opmi_subtamt","0"); model.setValue("/root/main/opmi/opmi_totreduamt","0"); model.setValue("/root/main/opmi/opmi_pregdmndamt","0"); model.setValue("/root/main/opmi/opmi_prepregdmndamt","0"); model.setValue("/root/main/opmi/opmi_suppamt","0"); model.setValue("/root/main/opmi/opmi_heallifeamtclamamt","0"); //20090701 1.´Ü¼öó¸® °í½ÃÀû¿ë model.setValue("/root/main/opmi/opmi_payinsurestamt","0"); model.setValue("/root/main/opmi/opmi_payownbamt100","0"); model.setValue("/root/main/opmi/opmi_payinsubamt100","0"); model.setValue("/root/main/opmi/opmi_totownbamt100","0"); // 20110701 ¹Ì¿ë¸ñÀû¼ºÇü ºÎ°¡°¡Ä¡¼¼ Àû¿ë model.setValue("/root/main/opmi/opmi_taxamt","0"); if (instance1.selectSingleNode("/root/main/opmi/opmi_targetamt") == null) { model.makeNode("/root/main/opmi/opmi_targetamt"); } model.setValue("/root/main/opmi/opmi_targetamt","0"); model.setValue("/root/main/opmi/opmi_paypsnflag","1"); //³³ºÎÀÚ ¼¼ÆÃ : º»ÀÎ model.setValue("/root/hidden/flag/opmi_flag","-"); } //Àç¿øÈ¯ÀÚÀÎÁö üũÇÕ´Ï´Ù.2007/05/22 Á¶¿µ»ó function fInhospynCheck() { if (model.getValue("/root/main/ptbs/ptbs_inhospyn") == "M"){ //º¸ÇèÀ¯ÇüÀÌ ÀϹÝÀÎ °æ¿ì¿¡´Â ¸Þ¼¼Áö·Î È®ÀÎ ÈÄ Á¢¼ö °¡´ÉÇÏ°Ô ÇÑ´Ù. if( model.getValue("/root/main/otpt/otpt_insukind") == gsInsu_IlBan){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÀÔ¿ø¼ö³³ÇÒ ³»¿ªÀÌ ÀÖ½À´Ï´Ù. \nÀÔ¿ø¼ö³³ ÈÄ ÁøÇàÇϼ¼¿ä!","I999",""); /* var retValue = messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÀÔ¿ø¼ö³³ÇÒ ³»¿ªÀÌ ÀÖ½À´Ï´Ù. \nÀÔ¿ø¼ö³³ ÈÄ ÁøÇàÇϼ¼¿ä! °è¼Ó ÁøÇà ÇϽðڽÀ´Ï±î?","Q999",""); if( retValue != '6' ){ return false; } */ }else{ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÀÔ¿ø¼ö³³ÇÒ ³»¿ªÀÌ ÀÖ½À´Ï´Ù. \nÀÔ¿ø¼ö³³ ÈÄ ÁøÇàÇϼ¼¿ä!","E999",""); //return false; } }else if (model.getValue("/root/main/ptbs/ptbs_inhospyn") == "I") { //º¸ÇèÀ¯ÇüÀÌ ÀϹÝÀÎ °æ¿ì¿¡´Â ¸Þ¼¼Áö·Î È®ÀÎ ÈÄ Á¢¼ö °¡´ÉÇÏ°Ô ÇÑ´Ù. if( model.getValue("/root/main/otpt/otpt_insukind") == gsInsu_IlBan){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÇöÀç Àç¿ø ÁßÀÔ´Ï´Ù!","I999",""); /* var retValue = messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÇöÀç Àç¿ø ÁßÀÔ´Ï´Ù! °è¼Ó ÁøÇà ÇϽðڽÀ´Ï±î?","Q999",""); if( retValue != '6' ){ return false; } */ }else{ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÇöÀç Àç¿ø ÁßÀÔ´Ï´Ù!","E999",""); //return false; } }else if (model.getValue("/root/main/ptbs/ptbs_inhospyn") == "D") { if( model.getValue("/root/main/otpt/otpt_insukind") == gsInsu_IlBan){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ´çÀÏ DSC/CHEMO ȯÀÚÀÔ´Ï´Ù!","I999",""); /* var retValue = messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ´çÀÏ DSC/CHEMO ȯÀÚÀÔ´Ï´Ù! °è¼Ó ÁøÇà ÇϽðڽÀ´Ï±î?","Q999",""); if( retValue != '6' ){ return false; } */ }else{ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ´çÀÏ DSC/CHEMO ȯÀÚÀÔ´Ï´Ù! ÀÔ¿ø¼ö³³¿¡¼­ ¼ö³³Çϼ¼¿ä!","E999",""); //return false; } }else if (model.getValue("/root/main/ptbs/ptbs_inhospyn") == "E") { if( model.getValue("/root/main/otpt/otpt_insukind") == gsInsu_IlBan){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÀÀ±Þ ȯÀÚÀÔ´Ï´Ù!","I999",""); /* var retValue = messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÀÀ±Þ ȯÀÚÀÔ´Ï´Ù! °è¼Ó ÁøÇà ÇϽðڽÀ´Ï±î?","Q999",""); if( retValue != '6' ){ return false; } */ }else{ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ÀÀ±Þ ȯÀÚÀÔ´Ï´Ù!","E999",""); //return false; } //2009-06-26 À̵¿½Ä Ãß°¡ //°¡Åð¿øÈ¯ÀÚ ¸Þ¼¼Áö }else if (model.getValue("/root/main/ptbs/ptbs_inhospyn") == "T"){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â °¡Åð¿ø È¯ÀÚ(Åð¿ø½É»ç ¹Ì¿Ï·á) ÀÔ´Ï´Ù!","E999",""); //return false; }else if (model.getValue("/root/main/ptbs/ptbs_inhospyn") == "R"){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â °¡Åð¿ø È¯ÀÚ(Åð¿ø½É»ç ¿Ï·á) ÀÔ´Ï´Ù!","E999",""); //return false; //2008-08-22 À̵¿½Ä Ãß°¡ - ¿Ü·á¿äÀ² Åð¿øÈ¯ÀÚÀÎ °æ¿ì üũ Á¦¿Ü }else if(model.getValue("/root/main/ptbs/ptbs_tdaydsch") == "I" && model.getValue("/root/main/otpt/otpt_orddd") == getCurrentDate() ){ //°¡Á¤°£È£ ´çÀÏ Åð¿øÈ¯ÀÚ °¡Á¢¼ö°¡´É //20080624 À̵¿½Ä ¼öÁ¤ - ±è¼÷ÀÎ ¼±»ý´Ô º¯°æ ¿äû '´çÀÏ Åð¿ø È¯ÀÚ' Á¢¼ö ±â´É »èÁ¦ //if( model.getValue("/root/main/otpt/otpt_etcordflag") != 'N' ){ if( model.getValue("/root/main/otpt/otpt_insukind") == gsInsu_IlBan){ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ´çÀÏÅð¿øÈ¯ÀÚÀÔ´Ï´Ù!","I999",""); /* var retValue = messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ´çÀÏÅð¿øÈ¯ÀÚÀÔ´Ï´Ù! °è¼Ó ÁøÇà ÇϽðڽÀ´Ï±î?","Q999",""); if( retValue != '6' ){ return false; } */ }else{ messageBox("È®ÀÎ! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " ȯÀÚ´Â ´çÀÏÅð¿øÈ¯ÀÚÀÔ´Ï´Ù!","E999",""); //return false; } //} } return true; } //function fDiscCDSelect() //{ // //ÇÒÀÎ Àû¿ëÇß´Ù°¡ ÇØÁ¦ÇÏ´Â °æ¿ì : disccd üũ // var ptdc_disccd = model.getValue("/root/main/ptdc/ptdc_disccd"); // // //model.setValue("/root/main/ptdc/ptdc_disccd2",ptdc_disccd); // model.refresh(); // // if (gs_olnw == "O") // { // var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid"); // // if (ptdc_disccd != "" && ptdc_disccd != " " && ptdc_disccd != null && ptdc_disccd != "-") // { // fDiscCDRef(ptbs_pid,ptdc_disccd,"D"); // model.setValue("/root/main/otpt/otpt_disccd",model.getValue("/root/main/ptdc/ptdc_disccd")); // model.setValue("/root/main/ptdc/ptdc_disccls","D"); // // } // else // { // model.setValue("/root/main/otpt/otpt_disccd",model.getValue("/root/main/ptdc/ptdc_disccd")); // model.setValue("/root/main/ptdc/ptdc_empid","-"); // //model.setValue("/root/main/ptdc/ptdc_empnm","-"); //2007-09-21 À̵¿½Ä ¼öÁ¤ - Á¸ÀçÇÏÁö ¾Ê´Â ³ëµå!!! // //Á÷¿ø±Ù¹«ºÎ¼­»èÁ¦ // model.setValue("/root/main/ptdc/ptdc_emprela","-"); // //model.setValue("/root/main/ptdc/ptdc_empexstflag","-"); //ÀçÁ÷¿©ºÎ // model.setValue("/root/main/ptdc/ptdc_fromdd",PMO001_TODAY); // model.setValue("/root/main/ptdc/ptdc_todd",PMO001_MAXDATE); // model.setValue("/root/main/ptdc/ptdc_discappacptyn","N"); // model.setValue("/root/main/ptdc/ptdc_profacptyn","N"); // } // } // else // { // if (ptdc_disccd != "" && ptdc_disccd != " " && ptdc_disccd != null && ptdc_disccd != "-") // { // model.setValue("/root/main/otpt/otpt_disccd",model.getValue("/root/main/ptdc/ptdc_disccd")); // } // else // { // model.setValue("/root/main/otpt/otpt_disccd",model.getValue("/root/main/ptdc/ptdc_disccd")); // model.setValue("/root/main/ptdc/ptdc_empid","-"); // model.setValue("/root/main/ptdc/ptdc_empnm","-"); // //Á÷¿ø±Ù¹«ºÎ¼­»èÁ¦ // model.setValue("/root/main/ptdc/ptdc_emprela","-"); // //model.setValue("/root/main/ptdc/ptdc_empexstflag","-"); //ÀçÁ÷¿©ºÎ // } // } // // model.refresh(); //} function fSuppKindSelect(){ var otpt_insukind = model.getValue("/root/main/otpt/otpt_insukind"); var otpt_suppkind = model.getValue("/root/main/otpt/otpt_suppkind"); if(otpt_suppkind != supp_BASE){ cmb_suppkindresn.disabled = false; }else{ cmb_suppkindresn.disabled = true; //2017/12/18 ÀÌÁ¤Åà Ãß°¡ cmb_suppkindresn.value = "-"; //2017/12/18 ÀÌÁ¤Åà Ãß°¡ } if(otpt_suppkind == supp_JABH && (otpt_insukind != gsSanJae && otpt_insukind != gsJaboKind)){ messageBox("Àü¾× º¸ÇèÀںδãÀº »êÀç/ÀÚº¸ÀÎ °æ¿ì¿¡¸¸ ÇØ´çÇÕ´Ï´Ù!", "E999", ""); model.setValue("/root/main/otpt/otpt_suppkind", supp_BASE); model.refresh(); } /* supp_HANDI = "71" ¼³Á¤µÇ¾îÀÖÀ½(PMOCOM.js) °æºÏ´ëº´¿ø ¼³Á¤°ª Ʋ¸² ÀÓ»ó½ÃÇè(71) if(otpt_insukind == supp_HANDI && otpt_insukind != gsBoHo2){ messageBox("Àå¾ÖÀÎÀº ÀÇ·á±Þ¿©2Á¾ÀÎ °æ¿ì¿¡¸¸ ÇØ´çÇÕ´Ï´Ù!", "E999", ""); model.setValue("/root/main/otpt/otpt_suppkind", supp_BASE); model.refresh(); } */ } /** * ´ë±¸ Àå¾ÖÀα¸°­Áø·á¼¾ÅÍ Á¢¼ö°ü·Ã °³¹ß */ /* function fClinicCheck_Test(){ fClinicCheck_Test("A", "/root/main/ptbs", "/root/main/otpt", "/root/main/h_hndc/hndc", "/root/init"); return; var otpt_pid = model.getValue("/root/main/ptbs/ptbs_pid"); var otpt_orddeptcd = model.getValue("/root/main/otpt/otpt_orddeptcd"); var hndc_bslvflag = model.getValue("/root/main/h_hndc/hndc/hndc_bslvflag"); // ±âÃÊ»ýȰ¼ö±ÞÀÚ var hndc_slflag = model.getValue("/root/main/h_hndc/hndc/hndc_slflag"); // °æÁõ ¹× ÁßÁõ Ç÷¡±× var uncocd = model.getValue("/root/main/otpt/otpt_uncocd"); var insukind = model.getValue("/root/main/otpt/otpt_insukind"); if(!(insukind=="11" || insukind=="21" || insukind=="22")){ // °Çº¸, ÀÇ·á±Þ¿© 1, 2Á¾¿¡ ´ëÇØ¼­¸¸ üũÇϵµ·Ï ÇÔ if(uncocd == "A43" || uncocd == "A44" || uncocd == "A45"){ model.makeValue("/root/hidden/m_etc/uncocd", ""); model.makeValue("/root/main/otpt/otpt_uncocd", ""); model.refresh(); } return true; } if(isNull(otpt_pid)){ messageBox("ȯÀÚ¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù.", "E"); return false; } if(isNull(otpt_orddeptcd)){ messageBox("Áø·á°ú°¡ ¼±ÅõÇÁö ¾Ê¾Ò½À´Ï´Ù.", "E"); return false; } if(otpt_orddeptcd=="2242400000"){ // ´ë±¸Àå¾ÖÀα¸°­¼¾ÅÍ // ¼¼°³ÀÇ ¹Ì¼öÄڵ尡 Á¾·áµÇ¾ú´Ù¸é »ç¾÷ÀÌ Á¾·áµÈ°É·Î ÆÇ´Ü if(getNodesetCount("/root/init/uncocd[cd='A43']")==0 && // ±¹¹Î±âÃÊ»ýȰÀÚÀå¾ÖÀÎ_50% getNodesetCount("/root/init/uncocd[cd='A44']")==0 && // Ä¡°ú¿µ¿ªÁßÁõÀå¾ÖÀÎ_30% getNodesetCount("/root/init/uncocd[cd='A45']")==0){ // Ä¡°ú¿µ¿ª°æÁõÀå¾ÖÀÎ_10% return true; }else{ if(getNodesetCount("/root/main/h_hndc/hndc")==0){ messageBox("ÇØ´ç ȯÀÚ´Â Àå¾ÖÀÎ µî·ÏÀÌ µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù.\nÀå¾ÖÀÎ µî·Ï ÈÄ ÁøÇàºÎʵ右´Ï´Ù.", "E"); btn_hndc.dispatch("DOMActivate"); if(getNodesetCount("/root/temp/handcappat/handcappatlist[gubun='2']")>0){ hndc_bslvflag = model.getValue("/root/temp/handcappat/handcappatlist[gubun='2']/hndc_bslvflag"); hndc_slflag = model.getValue("/root/temp/handcappat/handcappatlist[gubun='2']/hndc_slflag"); if(hndc_bslvflag == "Y" && insukind=="11"){ messageBox("°Ç°­º¸Çè ȯÀÚ´Â ±âÃÊ»ýȰ ¼ö±ÞÀÚ Àå¾ÖÀÎÀ¸·Î µî·ÏµÉ ¼ö ¾ø½À´Ï´Ù.\nÀå¾ÖÀÎ µî·ÏÁ¤º¸¸¦ È®ÀÎ ºÎʵ右´Ï´Ù.", "E"); return false; }else if(hndc_bslvflag == "Y" && (insukind=="21" || insukind=="22")){ model.makeValue("/root/hidden/m_etc/uncocd", "A43"); //¹Ì¼ö 50% model.makeValue("/root/main/otpt/otpt_uncocd", "A43"); model.refresh(); return true; }else if(hndc_slflag=="S"){ // ÁßÁõ model.makeValue("/root/hidden/m_etc/uncocd", "A44"); //¹Ì¼ö 30% model.makeValue("/root/main/otpt/otpt_uncocd", "A44"); model.refresh(); return true; }else if(hndc_slflag=="L"){ // °æÁõ model.makeValue("/root/hidden/m_etc/uncocd", "A45"); //¹Ì¼ö 10% model.makeValue("/root/main/otpt/otpt_uncocd", "A45"); model.refresh(); return true; }else{ return true; } }else{ messageBox("ÇØ´ç ȯÀÚ´Â Àå¾ÖÀÎ µî·ÏÀÌ µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù.\nÀå¾ÖÀÎ µî·Ï ÈÄ ÁøÇàºÎʵ右´Ï´Ù.", "E"); return false; } }else if(getNodesetCount("/root/main/h_hndc/hndc")>=1){ if(hndc_bslvflag == "Y" && insukind=="11"){ messageBox("°Ç°­º¸Çè ȯÀÚ´Â ±âÃÊ»ýȰ ¼ö±ÞÀÚ Àå¾ÖÀÎÀ¸·Î µî·ÏµÉ ¼ö ¾ø½À´Ï´Ù.\nÀå¾ÖÀÎ µî·ÏÁ¤º¸¸¦ È®ÀÎ ºÎʵ右´Ï´Ù.", "E"); return false; }else if(hndc_bslvflag == "Y" && (insukind=="21" || insukind=="22")){ model.makeValue("/root/hidden/m_etc/uncocd", "A43"); //¹Ì¼ö 50% model.makeValue("/root/main/otpt/otpt_uncocd", "A43"); model.refresh(); return true; }else if(hndc_slflag=="S"){ // ÁßÁõ model.makeValue("/root/hidden/m_etc/uncocd", "A44"); //¹Ì¼ö 30% model.makeValue("/root/main/otpt/otpt_uncocd", "A44"); model.refresh(); return true; }else if(hndc_slflag=="L"){ // °æÁõ model.makeValue("/root/hidden/m_etc/uncocd", "A45"); //¹Ì¼ö 10% model.makeValue("/root/main/otpt/otpt_uncocd", "A45"); model.refresh(); return true; }else{ return true; } } } }else{ return true; } } */