123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- //메인화면 창 사이즈 설정
- function getWindowWidth(){
- return (screen.width - (screen.width - screen.availWidth) > 1280) ?
- 1280 : screen.width - (screen.width - screen.availWidth);
- }
- function getWindowHeight(){
- return (screen.height - (screen.height - screen.availHeight) > 990) ?
- 990 : screen.height - (screen.height - screen.availHeight);
- }
- function getScrollBarsYN(){
- return (getWindowWidth() < 1280 || getWindowHeight() < 990) ? 'yes' : 'no';
- }
- function setWindowSize() {
-
- var winWidth = getWindowWidth();
- var winHeight = getWindowHeight();
- if (winWidth == 1280 && winHeight < 990)
- {
- winWidth = winWidth + 20 ;
- }
- if (winWidth < 1280 && winHeight == 990)
- {
- winHeight = winHeight + 20 ;
- }
- resizeTo(winWidth, winHeight);
- }
- //scrollbar
- function setBodyScroll(){
- document.body.scroll = getScrollBarsYN();
- }
- //viewer object반환
- function getViewerObject(name){
- return document.all.item(systemcd+"_"+name);
- }
- //메인 닫기 클릭시 처리
- function setWindowClose(mainstatus){
- var status = getViewerObject("sysMessage");//message Object
- status.window.javascript.setGlobalVariable("mainclose", mainstatus);
- }
- //비밀번호 변경
- function passwordUpdate()
- {
- var status = getViewerObject("sysMessage");//message Object
- status.window.javascript.modal("SPZUM01100", "", null, null, null, null, null, "width:505px;height:370px");
- }
- //로그아웃
- function userLogout() {
- var status = getViewerObject("sysMessage");//message Object
- if ( confirm("로그아웃 하시겠습니까?") ) {
- closePopupWindow();
- delUserInfo();
- hismainForm.action = "logout.live";
- hismainForm.submit();
- }
- }
- // 로그아웃(xrw 에서만 호출하기 위한 메소드)
- // 다수의 child 가 존재할 경우 해당 child 들을 모두 닫은 후에(xrw에서수행) 로그아웃하기 위해 새로 생성
- function logout() {
- hismainForm.action = "logout.live";
- hismainForm.submit();
- }
- //로그아웃시 세션정보 삭제
- function delUserInfo(){
- var status = getViewerObject("sysMessage");//message Object
- var userInfoKeyStr = sessionFormat
- var userInfoKeyArr = userInfoKeyStr.split("|");
- var len = userInfoKeyArr.length;
- for(i=0;i<len;i++) {
- status.window.javascript.setGlobalVariable(userInfoKeyArr[i], "");
- }
- status.window.javascript.setGlobalVariable("userinfos", "");
-
- }
- //로그아웃시 열린 팝업 close
- function closePopupWindow() {
- var status = getViewerObject("sysMessage");//message Object
- status.window.javascript.fLogout();
- }
- //열린화면
- function openScreenList(){
- var posX = window.event.screenX-224;
- var posY = window.event.screenY;
- var status = getViewerObject("sysMessage");//message Object
- status.window.javascript.fOpenScreenList(posX, posY);
- }
- //바로가기 등록
- function insShortcutMenu(){
- var status = getViewerObject("sysMessage");//message Object
- status.window.javascript.modal("SPZUM01300", "", "", "", "", "", "", "width:709; height:875; align:center; sysmenu:hidden; ");
- }
|