OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-12-24 f846fa62722566a00436c0ebfc394e9ddf1c0cb6
src/main/webapp/scripts/config.js
@@ -119,6 +119,8 @@
                    file : 314572800    //  100MB
                };
                $rootScope.isMainSearch = false;   // 통합 검색 여부
                //  테이블 설정 및 기능을 관리하는 서비스
                $rootScope.$tableProvider = $tableProvider;
@@ -258,6 +260,24 @@
                    "USER_PERMISSION_MNG_GUIDE" : 2,
                };
                // 쿠키 저장
                $rootScope.setCookie = function (name, value, exp) {
                    var date = new Date();
                    date.setTime(date.getTime() + exp*24*60*60*1000);
                    document.cookie = name + '=' + value + ';expires=' + date.toUTCString() + ';path=/';
                };
                // 쿠키 가져오기
                $rootScope.getCookie = function (name) {
                    var value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
                    return value? value[2] : null;
                }
                // 쿠키 삭제
                $rootScope.deleteCookie = function (name) {
                    document.cookie = name + '=; expires=Thu, 01 Jan 1999 00:00:10 GMT;';
                }
                // 현재 선택된 이슈 타입 아이디 가져오기
                $rootScope.getCurrentIssueTypeId = function () {
                    return $rootScope.issueTypeMenu != null ? $rootScope.issueTypeMenu.id : null;