/* Àü¹®°£È£ µî·Ï´ë»óÀÚ°ü¸® (SMMNS00200.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ var suppdeptcd = '';//¸Þ´º±×·ì¿¡ µî·ÏµÈ »ç¿ëºÎ¼­ÄÚµå //ÃʱâÁ¤º¸Á¶È¸(Àü¹®ºÐ¾ß, °øÅëÄÚµå) /*********************************************************************************************************************************************************** * @author : dhkim * @desc : Àü¹®ºÐ¾ß ÄÚµå¹× ¸íĪÀ» Á¶È¸ÇÑ´Ù. ***********************************************************************************************************************************************************/ function fSpclCareSearch(suppdeptcd){ //20090205 dhkim //Àü¹®°£È£/BMTÀü¹®°£È£ ·Î ³ª´²Áö°Ô µÇ¸é¼­ »ç¿ëºÎ¼­¿¡ ÇØ´çÇÏ´Â ºÐ¾ß·Î °¢°¢ µî·ÏµÊ. model.removenode('/root/send'); model.makeValue('/root/send/suppdeptcd', suppdeptcd); model.removenode('root/hidden/spclcarefildflaginfo'); model.makenode('root/hidden/spclcarefildflaginfo'); if(!submit('TRMNS00107')){ messageBox('Àü¹®ºÐ¾ß±âÁØÀÚ·á Á¶È¸¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.', 'E999'); } } /*********************************************************************************************************************************************************** * @author : dhkim * @desc : Àü¹®°£È£°â¾÷ºÎ¼­ Á¤º¸ ***********************************************************************************************************************************************************/ function fSpclSideJobSearch(){ //20090128 dhkim //°£È£¿¡ µî·ÏµÈ Àü¹®°£È£°â¾÷ºÎ¼­ Á¤º¸¸¦ Àӽóëµå¿¡ Á¶È¸ÇØ ¿Â´Ù. //°£È£ Å×ÀÌºí¿¡ µî·ÏµÈ Á¶È¸Á¤º¸ //Àü¹®ºÐ¾ßÄÚµå : 022, Àü¹®°£È£ÆÀÄÚµå : 023, Àü¹®°£È£°â¾÷ºÎ¼­ÄÚµå : 024 model.removenode('/root/send'); model.makeValue('/root/send/cdgrupid', '024'); model.removenode('/root/hidden/spclsideinfo'); model.makenode('/root/hidden/spclsideinfo'); if(!submit('TRMNS00110')){ messageBox('°£È£¿¡ µî·ÏµÈ Àü¹®ºÐ¾ß°â¾÷ºÎ¼­Á¤º¸ Á¶È¸¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.', 'E999'); return false; } } // emr.mnwmcode // cdgrupid 022, 023, 024 // 022 : Àü¹®ºÐ¾ß¸®½ºÆ® (grupdetldesc : R <- ÀÇ·Úµ¥ÀÌÅͱ¸ºÐ) // 023 : Àü¹®°£È£ÆÀÄÚµå // 024 : Àü¹®°£È£°â¾÷ºÎ¼­ (»óó/Àå¿ä·ç) /** * È­¸é ÃʱâÈ­ */ function fInit(){ //20090205 dhkim //Àü¹®°£È£/BMTÀü¹®°£È£ ·Î ³ª´²Áö°Ô µÇ¸é¼­ »ç¿ëºÎ¼­¿¡ ÇØ´çÇÏ´Â ºÐ¾ß·Î °¢°¢ µî·ÏµÊ. suppdeptcd = aezfSetSuppDeptcd();//¸Þ´º±×·ì¿¡ µî·ÏµÈ »ç¿ëºÎ¼­ÄÚµå fSpclCareSearch(suppdeptcd); //Àü¹®ºÐ¾ß¸¦ Á¶È¸ÇÑ´Ù. fSpclSideJobSearch(); //Àü¹®ºÐ¾ß °â¾÷ ºÎ¼­¸¦ Á¶È¸ÇÑ´Ù. cmb_spcl.select(0); //Àü¹®ºÐ¾ßÀÇ ÄÞº¸ Á¦ÀÏ Ã¹¹øÂ°·Î ¼±ÅÃµÈ »óÅ } /** * @group : * @ver : 2007.05.16 * @by : Á¤°æÈ­ * @--------------------------------------------------- * @type : function * @access : public * @desc : Á¶È¸ÀÏÀÚ Setting * @param : * @return : * @--------------------------------------------------- */ function select_Date(){ ipt_Fromdd.value = getCurrentDate(); ipt_Enddd.value = getCurrentDate(); } /** * @group : * @ver : 2007.06.15 * @by : Á¤°æÈ­ * @--------------------------------------------------- * @type : function * @access : public * @desc : Àü¹®°£È£ ȯÀÚ¸®½ºÆ®¸¦ Á¶È¸ÇÑ´Ù. * @param : * @return : * @--------------------------------------------------- */ function select_educpatlist(){ var endyn = model.getValue('/root/cond/endyn'); var fromdd = model.getValue('/root/cond/fromdd'); var todd = model.getValue('/root/cond/todd'); if(fromdd == null || fromdd == ''){ fromdd = getCurrentDate(); } if(todd == null || todd == ''){ todd = getCurrentDate(); } //20090128 Àü¹®ºÐ¾ßÁß °â¾÷ÀÎ ºÎ¼­¸¦ ã´Â´Ù. var spcl = model.getValue("/root/cond/spcl"); spcl = fMakeSpclSideQuery(spcl); model.removeNodeSet("/root/eduinfo/edupatlist"); model.removenode('/root/send'); model.makeValue('/root/send/spcl', spcl); model.makeValue('/root/send/fromdd', fromdd); model.makeValue('/root/send/todd', todd); model.makeValue('/root/send/endyn', endyn); if(!submit("TRMNS00201")){ messageBox('µî·Ï´ë»óÀÚ È¯ÀÚÁ¶È¸¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.', 'E999'); return false; } } /** * @group : * @ver : 2007.06.16 * @by : Á¤°æÈ­ * @--------------------------------------------------- * @type : function * @access : public * @desc : Á¶È¸±¸ºÐº° GridSetting * @param : * @return : * @--------------------------------------------------- */ function gridSetting(){ var TitleLeft = 275; var TitleTop = 185; var TitleHeight = 515; // ȯÀÚµî·Ï ¹× Á¶È¸ Clear //clearGroup(grp_pat,0); // Á¶È¸±¸ºÐ¿¡ µû¸¥ GridSetting caption4.text = "µî·ÏȯÀÚ ¸®½ºÆ®"; grp_edu.visible = true; grp_edufg.visible = true; //grp_edufg.attribute ( "left" ) = TitleLeft; model.removeNodeSet("/root/main/eduinfo/edupatlist"); model.refresh(); } /** * @group : * @ver : 2007.06.18 * @by : Á¤°æÈ­ * @--------------------------------------------------- * @type : function * @access : public * @desc : Áø·á±¸ºÐº° ³¯Â¥ Setting * @param : * @return : * @--------------------------------------------------- */ function select_refDate(){ // 6°³¿ùÀÌÀü ³»ºÐºñ³»¿ø if (rdo_reffg.value == "1") { // Á¶È¸ÀÏÀÚ ¼³Á¤ model.makeValue("/root/send/ffromdd", getAddDay(getCurrentDate(), -180)); // 365ÀÏ ÀÌÀü ÀÏÀÚ model.makeValue("/root/send/ftodd", getCurrentDate()); // ÇöÀçÀÏÀÚ model.refresh(); } else // 6°³¿ùÀ̳» ³»ºÐºñ³»¿ø if (rdo_reffg.value == "2") { // Á¶È¸ÀÏÀÚ ¼³Á¤ model.makeValue("/root/send/ffromdd", getCurrentDate()); model.makeValue("/root/send/ftodd", getCurrentDate()); // ÇöÀçÀÏÀÚ model.refresh(); } } /** * @group : * @ver : 2007.06.19 * @by : Á¤°æÈ­ * @--------------------------------------------------- * @type : function * @access : public * @desc : Àü¹®°£È£ ¸¶½ºÅÍ ±âº»Á¤º¸Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function select_educpat(){ var niRow = grd_edupatlist.row; model.removenode('/root/send'); model.makeValue('/root/send/pid', model.getValue('/root/main/eduinfo/edupatlist[' + niRow + ']/pid')); model.makeValue('/root/send/spcl', model.getValue('/root/main/eduinfo/edupatlist[' + niRow + ']/spclcarefildflag')); model.makeValue('/root/send/fromdd', model.getValue('/root/main/eduinfo/edupatlist[' + niRow + ']/educfromdd')); submit("TRMNS00203"); if(model.getValue("/root/main/edupat/edupatinfo/endyn")=="Y"){ grp_end.visible = true; }else{ grp_end.visible = false; } model.refresh(); } /** * @group : * @ver : 2007.06.30 * @by : Á¤°æÈ­ * @--------------------------------------------------- * @type : function * @access : public * @desc : Àü¹®°£È£ ÂüÁ¶´ë»ó°ü¸® °ü¸®È¯ÀÚµî·Ï(ÀÔ·Â/¼öÁ¤) * @param : * @return : * @--------------------------------------------------- */ function PidNewIns(){ model.removenode("/root/send/pidins"); model.makeValue("/root/send/pidins/newyn",model.getValue("/root/main/edupat/edupatinfo/newyn")); model.makeValue("/root/send/pidins/pid",model.getValue("/root/main/edupat/edupatinfo/pid")); var educfromdd; if(model.getValue("/root/main/edupat/edupatinfo/educfromdd") == ""){ educfromdd = getCurrentDate(); }else{ educfromdd = model.getValue("/root/main/edupat/edupatinfo/educfromdd"); } model.makeValue("/root/send/pidins/educfromdd",educfromdd); model.makeValue("/root/send/pidins/glycoskindflag",model.getValue("/root/main/edupat/edupatinfo/glycoskindflag")); model.makeValue("/root/send/pidins/endyn",model.getValue("/root/main/edupat/edupatinfo/endyn")); model.makeValue("/root/send/pidins/toreason",model.getValue("/root/main/edupat/edupatinfo/toreason")); model.makeValue("/root/send/pidins/remark",model.getValue("/root/main/edupat/edupatinfo/remark")); model.makeValue("/root/send/pidins/telno2",model.getValue("/root/main/edupat/edupatinfo/telno2")); model.makeValue("/root/send/pidins/spcl",model.getValue("/root/send/spcl")); submit("TXMNS00201"); model.refresh(); } /** * @group : * @ver : 2007.04.23 * @by : ÇÏÀç·û * @--------------------------------------------------- * @type : function * @access : public * @desc : È­¸é ·Îµå½Ã * @param : * @return : ÀÔ·ÂÇѳ¯Â¥ + ³¯ÀÚ * @--------------------------------------------------- */ function getAddDay(inputday,addend){ var backDate =""; var rt = 0; var yyyy = inputday.substring(0,4) +""; var mm = inputday.substring(4,6) +""; var dd = inputday.substring(6,8) +""; var startDate = new Date(yyyy,(eval(mm)-1),dd); startDate.setTime(startDate.getTime()+(86400000*addend)); NowYear = startDate.getYear();// ³â NowMonth = startDate.getMonth()+1;// ¿ù NowDay = startDate.getDate(); // ÀÏ backDate += NowYear ; //³âµµ if (NowMonth < 10 ) backDate += "0" + NowMonth ; else backDate += (startDate.getMonth() + 1); if (NowDay < 10 ) backDate += "0" + NowDay ; else backDate += (startDate.getDate()); return backDate ; } /*********************************************************************************************************************************************************** * @author : dhkim * @create : 20090128 * @desc : »óó/Àå¿ä·ç ºÐ¾ßÀÇ °æ¿ì »óó, Àå¿ä·ç Äڵ带 ÇÔ²² Á¶È¸Çϵµ·Ï Äõ¸®¸¦ ¸¸µé¾î¼­ Á¶È¸ÇÑ´Ù. ***********************************************************************************************************************************************************/ function fMakeSpclSideQuery(spclFildCd){ var nodesetCnt = getNodesetCount("/root/hidden/spclsideinfo/spclsidelist"); var deptcd = ""; var qryStr = ""; var sideYn = "f"; var retSpclCd = ''; for(var i = 1; i <= nodesetCnt; i++){ deptcd = model.getValue("/root/hidden/spclsideinfo/spclsidelist[" + i + "]/deptcd"); if(i == nodesetCnt){ qryStr += deptcd; }else{ qryStr += deptcd + "|"; } if(spclFildCd == deptcd){ sideYn = "t"; break; } } if(sideYn == "t"){ retSpclCd = qryStr; }else{ retSpclCd = spclFildCd; } //alert(retSpclCd); return retSpclCd; }