2023-07-03 12:08 찾교 고도화 관리자, 사용자 관리자 로그 페이지 수정

This commit is contained in:
myname 2023-07-03 12:09:00 +09:00
parent 0486eb1e70
commit d16faaa1b0
5 changed files with 209 additions and 44 deletions

View File

@ -390,7 +390,14 @@ public class EgovLoginLogController {
HttpServletRequest request, Model model, HttpSession session)
throws Exception {
System.out.println("(String)commandMap.get(pageType)");
System.out.println((String)commandMap.get("pageType"));
System.out.println(loginLog.getAdmotId());
System.out.println(loginLog.getAdmotId());
System.out.println(loginLog.getAdmotId());
if("Modify".equals((String)commandMap.get("pageType"))){ //수정
loginLog.setAdmotId(loginLog.getAdmotId().trim());
loginLog = loginLogService.selectLogMethod(loginLog);
}
model.addAttribute("loginLog", loginLog);

View File

@ -288,6 +288,7 @@ public class EgovSysLogAspect {
String className3 = joinPoint.getSignature().getDeclaringType().getSimpleName();
String className2 = joinPoint.getTarget().getClass().getSimpleName();
String methodName = joinPoint.getSignature().getName();
String className4 = joinPoint.getTarget().getClass().getCanonicalName();
String processSeCode = "C";
String processTime = Long.toString(stopWatch.getTotalTimeMillis());
String uniqId = "";
@ -307,6 +308,7 @@ public class EgovSysLogAspect {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();
ip = request.getRemoteAddr();
sysLog.setUrl(request.getRequestURI());
sysLog.setErrorCodeNm(request.getRequestURL().toString());
}
sysLog.setSrvcNm(className);
@ -316,6 +318,7 @@ public class EgovSysLogAspect {
sysLog.setRqesterId(uniqId);
sysLog.setRqesterIp(ip);
sysLog.setTrgetMenuNm(className3);
//sysLog.setErrorCodeNm(className4);
//sysLogService.logInsertSysLog(sysLog);
sysLogService.logInsertAdminSysLog(sysLog);

View File

@ -268,7 +268,7 @@
, 'N'
, NOW()
, #trgetMenuNm#
, #trgetMenuNm#
, #url#
, 'N'
FROM LETTNADMINMETHOD
</update>

View File

@ -1,5 +1,5 @@
<%--
Class Name : EgovLoginLogList.jsp
Class Name : SelectLogMethodList.jsp
Description : 로그인 로그 정보목록 화면
Modification Information

View File

@ -1,42 +1,133 @@
<%--
Class Name : FmsFileModify.jsp
Description : 첨부파일 수정 페이지
Class Name : SelectLogMethodList.jsp
Description : 로그인 로그 정보목록 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.09.16 장동한 최초 생성
2009.03.11 이삼섭 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 장동한
since : 2009.09.16
Copyright (C) 2009 by MOPAS All right reserved.
author : 공통서비스 개발팀 이삼섭
since : 2009.03.11
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" />
<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" />
<c:set var="JsUrl" value="${pageContext.request.contextPath}/js/egovframework/com/uss/ion/pwm/"/>
<!DOCTYPE html>
<html lang="ko">
<html>
<head>
<title>팝업창관리 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javaScript" language="javascript">
<meta http-equiv="Content-Language" content="ko" >
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js'/>" ></script>
<script type="text/javascript">
$( document ).ready(function(){
var tempSearchBgnDe = "${searchVO.searchBgnDe}" ;
var tempSearchEndDe = "${searchVO.searchEndDe}" ;
if(""!=tempSearchBgnDe && tempSearchBgnDe.length==8){
$('#searchBgnDe').val(tempSearchBgnDe.substring(0,4)+"-"+tempSearchBgnDe.substring(4,6)+"-"+tempSearchBgnDe.substring(6,8));
}
if(""!=tempSearchEndDe && tempSearchEndDe.length==8){
$('#searchEndDe').val(tempSearchEndDe.substring(0,4)+"-"+tempSearchEndDe.substring(4,6)+"-"+tempSearchEndDe.substring(6,8));
}
});
/* ********************************************************
* PROTOTYPE JS FUNCTION
******************************************************** */
String.prototype.trim = function(){
return this.replace(/^\s+|\s+$/g, "");
}
String.prototype.replaceAll = function(src, repl){
var str = this;
if(src == repl){return str;}
while(str.indexOf(src) != -1) {
str = str.replace(src, repl);
}
return str;
}
function fn_select(pageNo){
<%--<c:if test="${!empty loginId}">
if(""!= document.frm.searchKeyword.value){
updateRecentSearch();//최근검색어 등록
}
</c:if>--%>
linkPage(1);
}
function fn_egov_select_loginLog(pageNo){
linkPage(1);
}
function fn_egov_inqire_loginLog(logId){
var url = "<c:url value ='/sym/log/clg/InqireLoginLog.do?logId='/>" + logId;
var openParam = "scrollbars=yes,toolbar=0,location=no,resizable=0,status=0,menubar=0,width=640,height=320,left=0,top=0";
window.open(url,"p_loginLogInqire", openParam);
}
function linkPage(pageNo){
var frm = document.frm;
frm.pageIndex.value = pageNo;
frm.action = "<c:url value='/sym/log/clg/SelectLogMethodList.do'/>";
frm.submit();
}
//엑셀 다운로드
function logListExcelDownload(){
document.frm.method = "post";
document.frm.action = "<c:url value='/sym/log/clg/roleListExcelDownload.do'/>";
document.frm.submit();
}
/* 등록 */
function fn_insert(){
var frm = document.frm;
frm.pageType.value="Insert" ;
frm.action = "<c:url value='/sym/log/clg/ViewLogMethod.do'/>";
frm.submit();
}
/* 수정 */
function fn_modify(id){
var frm = document.frm;
frm.pageType.value="Insert" ;
frm.admotId.value = id;
frm.pageType.value = "Modify";
//frm.action = "<c:url value='/uss/ion/cnf/metaTagModifyView.do'/>";
frm.action = "<c:url value='/sym/log/clg/ViewLogMethod.do'/>";
frm.submit();
}
/* 삭제 */
function fn_delete(){
if($("input:checkbox[name='del']").is(":checked")==true){
if(confirm("삭제하시겠습니까?")) {
document.frm.action = "<c:url value='/sym/log/clg/DeleteLogMethod.do'/>";
document.frm.submit();
}
}else{
alert("선택된 항목이 없습니다.");
return false;
}
}
function fnCheckAll(){
if( $("#checkAll").is(':checked') ){
$("input[name=del]").prop("checked", true);
}else{
$("input[name=del]").prop("checked", false);
}
}
/* pagination 페이지 링크 function */
function goList(){
//document.searchForm.submit();
location.href = "/sym/log/clg/SelectLogMethodList.do";
location.href = "<c:url value='/sym/log/clg/SelectLogMethodList.do'/>";
}
/* 등록시 값 확인 */
@ -99,28 +190,45 @@ function fn_delete() {
}
}
</script>
<style>
.del_file_btn{border: none;background-color: transparent;background-image: url(/direct/img/upload_delect_img.png);background-repeat: no-repeat;background-position: center center;vertical-align: middle;margin-top: -4px;margin-right: 15px;}
.file_size{color: #0388d2;font-weight: bold;}
.uploaded_obj{width: 100%;}
</style>
</head>
<body>
<noscript>자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>
<form name="writeForm" method="post">
<input type="hidden" name="del" value="${loginLog.admotId}" />
<input type="hidden" name="admotId" value="${loginLog.admotId}" />
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">관리자로그설정관리</h2>
<p class="tType6 c_999999">관리자 로그 설정을 관리 합니다.</p>
</div>
<div class="pageCont">
<div class="listTop resisterList">
<p class="right block fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p>
</div>
<table class="tbType2">
<div class="cont_wrap">
<div class="box">
<!-- cont_tit -->
<div class="cont_tit">
<h2>관리자로그설정관리상세</h2>
<ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li>
<li>
<p>운영관리</p>
</li>
<li><span>관리자로그설정관리</span></li>
<li><span class="cur_nav">상세화면</span></li>
</ul>
</div>
<!-- //cont_tit -->
<div class="cont">
<!-- list -->
<div class="list tb_type01">
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
@ -138,6 +246,12 @@ function fn_delete() {
<input type="text" size="50" name="methodNm" value="${loginLog.methodNm}" title="methodNm" maxlength="100" />
</td>
</tr>
<tr>
<th><span class="reqArea">기능명</span></th>
<td colspan="3">
<input type="text" size="50" name="approNm" value="${loginLog.approNm}" title="approNm" maxlength="100" />
</td>
</tr>
<tr>
<th><span class="reqArea">파라미터</span></th>
<td colspan="3">
@ -147,9 +261,11 @@ function fn_delete() {
</td>
</tr>
<tr>
<th><span class="reqArea">기능명</span></th>
<th><span class="reqArea">privacy</span></th>
<td colspan="3">
<input name="approNm" value="${loginLog.approNm}" title="approNm" maxlength="100" />
<input type="text" size="50" name="privacy" value="${empty loginLog.admotId ? 'N' : loginLog.privacy }" title="privacy" maxlength="100" />
<br><span class="cfText">*기본값은 N 입니다.</span>
<br><span class="cfText c_ed4555">N / Y *개인정보 포함 여부를 표시합니다.</span>
</td>
</tr>
<c:if test="${!empty loginLog.admotId }">
@ -173,8 +289,47 @@ function fn_delete() {
</c:if>
</div>
</div>
</div>
<!-- //list -->
<!-- btn_wrap -->
<!-- btn_wrap -->
<div class="btn_wrap btn_layout01">
<div class="area_right">
<button type="button" class="btnType02" onclick="fncDeleteGroupPolicy(); return false;">삭제</button>
</div>
<div class="area_right">
<button type="button" class="btnType02" onclick="fncInsertLoginGroupPolicy(); return false;">등록</button>
</div>
</div>
<!-- //btn_wrap -->
<!-- 페이지 네비게이션 시작 -->
<c:if test="${!empty logMethodList}">
<div class="page">
<ul class="inline">
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
</ul>
</div>
</c:if>
<!-- //페이지 네비게이션 끝 -->
</div>
</div>
</div>
<!-- //cont -->
</form>
<!--
<form name="searchForm" method="get" action="<c:url value='/sym/log/clg/SelectLoginLogList.do'/>">
<input name="pageIndex" type="hidden" value="1" />
<input name="searchCondition" type="hidden" />
<input name="searchKeyword" type="hidden" />
<input name="searchConditionSite" type="hidden" />
</form>
-->
</body>
</html>