// DB¿¡¼­ °ü¸® ÇÏ´Â ¹æ¹ýÀ¸·Î º¯°æ 20161209 - smkim function fOpenNoticePopup() { window.clearInterval(notice_timerId); var systemcd = getUserInfo("systemcd"); var userinstcd = getUserInfo("dutplceinstcd"); var jobkindcd = getUserInfo("jobkindcd"); model.setValue("/root/send/noticeinfo/systemkind", systemcd.substr(0, 3)); model.setValue("/root/send/noticeinfo/userinstcd", userinstcd); model.setValue("/root/send/noticeinfo/jobkindcd", jobkindcd); if(!submit("TRZUM20501")) return; var nWidth = 710; var nHeight = 500; var count = getNodesetCount("/root/main/noticeinfo/ds_noticeList"); for(var nRowNum = count; nRowNum > 0; nRowNum--) { var width = model.getValue("/root/main/noticeinfo/ds_noticeList[" + nRowNum + "]/width"); var height = model.getValue("/root/main/noticeinfo/ds_noticeList[" + nRowNum + "]/height"); if(!isNull(width)) nWidth = parseInt(width); if(!isNull(height)) nHeight = parseInt(height); if(nWidth < 480) nWidth = 480; if(nHeight < 250) nHeight = 250; openInternal("new","SPZSN00500","scn","","","","SPZSN00500","/root/main/noticeinfo/ds_noticeList[" + nRowNum + "]","/root/main/noticeinfo/ds_noticeList","width:" + nWidth + "px; height:" + nHeight + "px;"); } // ûʱÝÁö ¼­¾à¼­ Á¦Ãâ ¿©ºÎ È®ÀÎ ÆË¾÷ 20180228 smkim var systemcd = getSystemCd(); if(systemcd == "HIS031" || systemcd == "HIS032" || systemcd == "MIS030") { var prohibitreqyn = model.getValue("/root/main/noticeinfo/prohibitreqinfo/prohibitreqyn"); if(prohibitreqyn == "N") { open("SPZUM02000"); } } } // hismainweb => noticeweb À¸·Î À̵¿ ( 2013/09/12-¼Õ¼ºÈÆ) //Àӽà °øÁö»çÇ× ÆË¾÷ È£Ãâ function fOpenNoticePopup_old() { var userInstcd = getUserInfo("dutplceinstcd"); var jobkindcd = getUserInfo("jobkindcd"); if((getSystemCd().substring(0,3).toLowerCase() == "his") && (userInstcd == "031")) { // º»¿ø. ÀÇ»ç& °£È£»ç °øÅë °øÁö ----------------------------------------------------- var popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice.html"; var popupWid = "noticepopup"; var w = 530; var h = 390 ; //------------------------------------------------------------------------------------- */ // º»¿ø. ÀÇ»ç& °£È£»ç °³º° °øÁö ----------------------------------------------------- var jobkindcd = getUserInfo("jobkindcd"); var userInstcd = getUserInfo("dutplceinstcd"); // var popupUrl; // var w; // var h; // if(jobkindcd=="0330"){ //popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice.html"; //w = 650; //h = 500 ; // }else if(jobkindcd=="1140") { // popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice_nurse.html"; // w = 550; // h = 150; // } // var popupWid = "noticepopup"; //------------------------------------------------------------------------------------- */ } else if((getSystemCd().substring(0,3).toLowerCase() == "his") && (userInstcd == "032")) { var jobkindcd = getUserInfo("jobkindcd"); var userInstcd = getUserInfo("dutplceinstcd"); var popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice032.html"; var popupWid = "noticepopup"; var w = 530; var h = 390 ; // if(jobkindcd=="0330" || jobkindcd=="1140"){ // Àǻ縸 // popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice032.html"; // w = 480; // h = 210 ; // } //else if(jobkindcd=="1140") { // popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice032_nurse.html"; //01.15 ¼öÁ¤ // w = 550; // h = 210; //} } else if((getSystemCd().substring(0,3).toLowerCase() == "mis") && (userInstcd == "032")) { var popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice032.html"; var popupWid = "noticepopup"; var w = 530; var h = 390 ; //var popupUrl2 = "/himed/webapps/com/noticeinfoweb/html/tempnotice_mis032_2.html"; //var popupWid2 = "noticepopup2"; } else if((getSystemCd().substring(0,3).toLowerCase() == "mis") && (userInstcd == "031")) { var popupUrl = "/himed/webapps/com/noticeinfoweb/html/tempnotice.html"; var popupWid = "noticepopup"; var w = 530; var h = 390 ; //var popupUrl2 = "/himed/webapps/com/noticeinfoweb/html/tempnotice_mis031_2.html"; //var popupWid2 = "noticepopup2"; } var leftPosition = (htmlwindow.screen.availWidth) ? (htmlwindow.screen.availWidth-w)/2 : 0; var topPosition = (htmlwindow.screen.availHeight) ? (htmlwindow.screen.availHeight-h)/2 - (h / 2) - 20 : 0; var prop = 'height='+h+',width='+w+',top='+topPosition+',left='+leftPosition; leftPosition = (htmlwindow.screen.availWidth) ? (htmlwindow.screen.availWidth-w)/2 : 0; topPosition = (htmlwindow.screen.availHeight) ? (htmlwindow.screen.availHeight-h)/2 : 0; var prop2 = 'height='+h+',width='+w+',top='+topPosition+',left='+leftPosition; var currentDate = getCurrentDate(); // °øÁö»çÇ× ¿Ã¸² ³»¸² ¼³Á¤. if((getSystemCd().substring(0,3).toLowerCase() == "mis") && ((userInstcd == "031") || (userInstcd == "032"))) { // if(userInstcd == "031" || userInstcd == "032"){ // openHtml(getDomain() + popupUrl, popupWid, prop); // } // if(userInstcd == "032") // openHtml(getDomain() + popupUrl, popupWid, prop); var todd = (userInstcd == "031") ? "20161213" : "20161214"; if(currentDate >= "20161130" && currentDate <= todd) openHtml(getDomain() + popupUrl, popupWid, prop); }else if((getSystemCd().substring(0,3).toLowerCase() == "his") && ((userInstcd == "031") )){ // if( /*userInstcd == "031" ){ // && */jobkindcd == "0330" ){ // //if(getCurrentDate() < "20161004") // openHtml(getDomain() + popupUrl, popupWid, prop); // } if(currentDate >= "20161130" && currentDate <= "20161213") openHtml(getDomain() + popupUrl, popupWid, prop); }else if((getSystemCd().substring(0,3).toLowerCase() == "his") && ((userInstcd == "032"))){ // if( userInstcd == "032" && (jobkindcd == "0330" || jobkindcd=="1140") ){ //02.10 ¼öÁ¤ // var currentdate = getCurrentDate(); // if(currentdate < "20160211") // openHtml(getDomain() + popupUrl, popupWid, prop); // } // // if(jobkindcd == "0330") { // if(getCurrentDate() <= "20160930") // openHtml(getDomain() + popupUrl, popupWid, prop); // } if(currentDate >= "20161130" && currentDate <= "20161214") openHtml(getDomain() + popupUrl, popupWid, prop); } }