123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- // 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);
- }
- }
|