|
|
|
@ -33,26 +33,30 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="selectTaskModal" class="modal fade" tabindex="-1" aria-hidden="true" style="height:auto;"
|
|
|
|
|
data-bs-backdrop="static" data-bs-focus="false" data-bs-keyboard="false">
|
|
|
|
|
<div class="modal-dialog modal-sm" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-body" style="min-height:10em; min-width:30%;">
|
|
|
|
|
<span class="row g-3" style="display: flex;flex-direction:column">
|
|
|
|
|
<div style="text-align:center" class="h3 fw-bold">업무를 선택하세요.</div>
|
|
|
|
|
<button type="button" class="btn btn-xl btn-primary">주정차</button>
|
|
|
|
|
<button type="button" class="btn btn-xl btn-primary">전용차로</button>
|
|
|
|
|
<button type="button" class="btn btn-xl btn-primary">장애인</button>
|
|
|
|
|
<button type="button" class="btn btn-xl btn-primary">전기차</button>
|
|
|
|
|
<button type="button" class="btn btn-xl btn-primary">밤샘주차</button>
|
|
|
|
|
<button type="button" class="btn btn-xl btn-primary">미세먼지</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
|
|
|
|
|
|
|
|
|
|
<c:set var="onload">
|
|
|
|
|
|
|
|
|
|
if("${param.taskSeCd}" == "" || $("#layout-navbar").find("input[name='taskSeCd'][value='${param.taskSeCd}']").length == 0){
|
|
|
|
|
$("#layout-navbar input[name='taskSeCd'][value='DPV']").prop("checked", true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#layout-navbar input[name='taskSeCd'][value='${param.taskSeCd}']").prop("checked", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var checkedId = $("#layout-navbar input[name='taskSeCd']:checked")[0].id;
|
|
|
|
|
var checkedText = $("label[for='"+checkedId+"']").text();
|
|
|
|
|
$("#home").html("과태료통합관리시스템<br/>("+checkedText+")");
|
|
|
|
|
|
|
|
|
|
$("#layout-navbar input[name='taskSeCd']").on("click", function(){
|
|
|
|
|
$("#userNav--top").click();
|
|
|
|
|
window.open(wctx.url("/")+"?taskSeCd="+this.value, "_blank", "");
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
</c:set>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -68,6 +72,8 @@
|
|
|
|
|
pageObject.childReq = [];
|
|
|
|
|
pageObject.parentRes = [];
|
|
|
|
|
|
|
|
|
|
var MY_INFO = {};
|
|
|
|
|
|
|
|
|
|
function getBrowserName() {
|
|
|
|
|
var agent = navigator.userAgent.toUpperCase();
|
|
|
|
|
if (agent.indexOf('TRIDENT') >= 0) {
|
|
|
|
@ -98,40 +104,79 @@
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var MY_INFO = {};
|
|
|
|
|
ajax.get({
|
|
|
|
|
url:wctx.url("/user/myInfo.do"),
|
|
|
|
|
data:{},
|
|
|
|
|
success:resp => {
|
|
|
|
|
MY_INFO = resp.myInfo;
|
|
|
|
|
if(MY_INFO.user.status == "A" || MY_INFO.user.status == "D" || MY_INFO.user.locked == "Y"){
|
|
|
|
|
if(MY_INFO.user.status == "A"){
|
|
|
|
|
alert("계정이 미승인 상태입니다.");
|
|
|
|
|
} else if(MY_INFO.user.status == "D"){
|
|
|
|
|
alert("삭제된 계정입니다.");
|
|
|
|
|
} else if(MY_INFO.user.locked == "Y"){
|
|
|
|
|
alert("잠금처리된 계정입니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var form = $("<form action=\"/logout.do\", method=\"POST\">");
|
|
|
|
|
$("<input name=\"${_csrf.parameterName}\" value=\"${_csrf.token}\" type=\"hidden\">").appendTo(form);
|
|
|
|
|
form.appendTo("body").submit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
${functions}
|
|
|
|
|
|
|
|
|
|
${topScript}
|
|
|
|
|
|
|
|
|
|
${userMenus}
|
|
|
|
|
|
|
|
|
|
${dashboardScript}
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
${onload}
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url:wctx.url("/user/myInfo.do"),
|
|
|
|
|
data : {},
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
MY_INFO = resp.myInfo;
|
|
|
|
|
|
|
|
|
|
var msg = "";
|
|
|
|
|
var available = true;
|
|
|
|
|
|
|
|
|
|
if(MY_INFO.user.status == "A" || MY_INFO.user.status == "D" || MY_INFO.user.locked == "Y"){
|
|
|
|
|
|
|
|
|
|
if(MY_INFO.user.status == "A"){
|
|
|
|
|
msg = "계정이 미승인 상태입니다.";
|
|
|
|
|
} else if(MY_INFO.user.status == "D"){
|
|
|
|
|
msg = "삭제된 계정입니다.";
|
|
|
|
|
} else if(MY_INFO.user.locked == "Y"){
|
|
|
|
|
msg = "잠금처리된 계정입니다.";
|
|
|
|
|
}
|
|
|
|
|
available = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!(MY_INFO.info.isAdmin) && !(MY_INFO.info.hasTaskAuth)){
|
|
|
|
|
msg = "계정에 부여된 업무권한이 없습니다.";
|
|
|
|
|
available = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(msg != ""){
|
|
|
|
|
alert(msg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//로그아웃
|
|
|
|
|
if(!available){
|
|
|
|
|
var form = $("<form action=\"/logout.do\", method=\"POST\">");
|
|
|
|
|
$("<input name=\"${_csrf.parameterName}\" value=\"${_csrf.token}\" type=\"hidden\">").appendTo(form);
|
|
|
|
|
form.appendTo("body").submit();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//업무 체크
|
|
|
|
|
if("${param.taskSeCd}" == "" || $("#layout-navbar").find("input[name='taskSeCd'][value='${param.taskSeCd}']").length == 0){
|
|
|
|
|
$("#layout-navbar input[name='taskSeCd'][value='DPV']").prop("checked", true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#layout-navbar input[name='taskSeCd'][value='${param.taskSeCd}']").prop("checked", true);
|
|
|
|
|
}
|
|
|
|
|
$("#layout-navbar input[name='taskSeCd']").on("click", function(){
|
|
|
|
|
$("#userNav--top").click();
|
|
|
|
|
window.open(wctx.url("/")+"?taskSeCd="+this.value, "_blank", "");
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//좌측상단제목
|
|
|
|
|
var checkedId = $("#layout-navbar input[name='taskSeCd']:checked")[0].id;
|
|
|
|
|
var checkedText = $("label[for='"+checkedId+"']").text();
|
|
|
|
|
$("#home").html("과태료통합관리시스템<br/>("+checkedText+")");
|
|
|
|
|
|
|
|
|
|
//대시보드 로드
|
|
|
|
|
${dashboardScript}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|