This commit is contained in:
JSYOO 2021-12-17 11:53:23 +09:00
commit 9e5bf45682
6 changed files with 0 additions and 310 deletions

View File

@ -1,52 +0,0 @@
package nlib.cmm.web;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import nlib.cmm.NlibCommonController;
import nlib.cmm.service.CodeService;
@Controller
public class CodeController extends NlibCommonController {
private static final Logger log = LoggerFactory.getLogger(CodeController.class);
@Resource(name="codeService")
private CodeService codeService;
@RequestMapping( {"/code/listCodes.do"} )
public String listCodes(HttpServletRequest req, @RequestParam Map<String, String> paramMap, ModelMap model) throws Exception {
String lCodeId = paramMap.get("lCodeId");
List<Map<String, String>> resultList = codeService.listCodes(lCodeId);
model.addAttribute("resultList", resultList);
model.addAttribute("lCodeId", lCodeId);
return "nlib/code/listCodes";
}
@RequestMapping( {"/code/listCodesPopup.do"} )
public String listCodesPopup(HttpServletRequest req, @RequestParam Map<String, String> paramMap, ModelMap model) throws Exception {
String lCodeId = paramMap.get("lCodeId");
List<Map<String, String>> resultList = codeService.listCodes(lCodeId);
model.addAttribute("resultList", resultList);
model.addAttribute("lCodeId", lCodeId);
return "nlib/code/listCodesPopup";
}
}

View File

@ -19,7 +19,6 @@ import org.springframework.security.web.savedrequest.RequestCache;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import nlib.bbs.service.ArticleVO;
import nlib.bbs.service.BoardService;

View File

@ -6,7 +6,6 @@ import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -14,20 +13,16 @@ import org.springframework.http.ResponseEntity;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import nlib.cmm.NlibCommonController;
import nlib.cmm.service.NotificationService;
import nlib.cmm.service.NotificationVO;
import nlib.cmm.service.PagingVO;
import nlib.cmm.service.NlibProperty;
import nlib.restful.DataApiReqVO;
import nlib.restful.DataApiResVO;
import nlib.util.StringUtil;
/**

View File

@ -1,66 +0,0 @@
package nlib.cmm.web;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import nlib.cmm.service.NlibProperty;
/**
* <pre>
* @Class Name : SystemController.java
*
* @Description : 각종 시스템 설정관련 기능 모음 클래스
*
*
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
*
* </pre>
*
* @ ------------ -------- ---------------------------
* @ 수정일 수정자 수정내용
* @ ------------ -------- ---------------------------
* @ 2021. 7. 16. KNKIM 최초 생성
*
*
* @author 이씨플라자 * DIGITALSHIP KNKIM
* @since 2021. 7. 16.
* @version 1.0
*
*/
@Controller
public class SystemController {
private static final Logger log = LoggerFactory.getLogger(SystemController.class);
/**
* NLIB 프로퍼티 서비스
*/
@Resource(name="nlibProperty")
NlibProperty nlibProperty;
/**
* NLIB Property 재로드 작업을 요청한다.
*
* @param authentication
* @param model
* @return
*/
@RequestMapping( {"/system/reloadProperties.do"} )
public String reloadProperties(Authentication authentication, ModelMap model) {
// TODO : 시스템관리자인지 권한 체크할
int propCount = nlibProperty.loadProperties();
model.addAttribute("code", String.format("프로퍼티 건수(결과) : %d", propCount));
model.addAttribute("message", "NLIB Property 재로드 작업을 호출했습니다. 로그에서 처리결과를 확인하시기 바랍니다.");
return "nlib/cmm/common";
}
}

View File

@ -1,83 +0,0 @@
<%
/**
* <pre>
* @Class Name : listCodes.jsp
*
* @Description : 묻고답하기 목록을 조회한다.
*
*
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
*
* </pre>
*
* @ ------------ -------- ---------------------------
* @ 수정일 수정자 수정내용
* @ ------------ -------- ---------------------------
* @ 2021. 8. 5. KNKIM 최초 생성
*
*
* @author 이씨플라자 * DIGITALSHIP KNKIM
* @since 2021. 8. 5.
* @version 1.0
*
*/
%>
<%@ page language="java" contentType="text/html; charset=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 prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="pageTitle">공통코드</c:set>
<!DOCTYPE html>
<html lang="ko">
<head>
<title><c:out value='${pageTitle}'/></title>
<script>
$( document ).ready(function() {
fn_setPageTitle("<c:out value='${pageTitle}'/>");
}); // document ready
</script>
</head>
<body>
<h1><c:out value='${pageTitle }'/></h1>
메시지 : <c:out value='${message}'/>
&nbsp;<br/>
<form name="codeForm" id="codeForm"
action="${pageContext.request.contextPath}/code/listCodes.do"
method="post">
<!-- 검색조건 -->
<input type="text" name="lCodeId" id="lCodeId" title="검색어" value="<c:out value='${lCodeId }'/>" size="35" maxlength="50" />
<input type="submit" name="btnSearch" id="btnSearch" title="검색버튼" value="검색" />
PAGE_SIZE_OPTION
</form>
<table>
<tr>
<th>코드</th>
<th>코드명</th>
</tr>
<c:forEach var="codeItem" items="${resultList }" varStatus="status">
<tr>
<td><c:out value="${codeItem.sCodeId }" /></td>
<td><c:out value="${codeItem.sCodeNm }" /></td>
</tr>
</c:forEach>
</table>
</body>
</html>

View File

@ -1,103 +0,0 @@
<%
/**
* <pre>
* @Class Name : listCodes.jsp
*
* @Description : 묻고답하기 목록을 조회한다.
*
*
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
*
* </pre>
*
* @ ------------ -------- ---------------------------
* @ 수정일 수정자 수정내용
* @ ------------ -------- ---------------------------
* @ 2021. 8. 5. KNKIM 최초 생성
*
*
* @author 이씨플라자 * DIGITALSHIP KNKIM
* @since 2021. 8. 5.
* @version 1.0
*
*/
%>
<%@ page language="java" contentType="text/html; charset=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 prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="pageTitle">공통코드</c:set>
<!DOCTYPE html>
<html lang="ko">
<head>
<title><c:out value='${pageTitle}'/></title>
<script>
$( document ).ready(function() {
fn_setPageTitle("<c:out value='${pageTitle}'/>");
}); // document ready
function popSubmit() {
var dataList = $("#codeForm").serialize();
//alert("popSubmit : " + dataList);
var url = $("#codeForm").attr('action');
//alert("action : " + url);
$.ajax({
type: "post",
url: url,
data: dataList
}).done(function(response){
$("#myPop").html(response);
});
}
</script>
</head>
<body>
<h1><c:out value='${pageTitle }'/></h1>
메시지 Popup : <c:out value='${message}'/>
&nbsp;<br/>
<form name="codeForm" id="codeForm"
action="${pageContext.request.contextPath}/code/listCodesPopup.do"
method="post">
<!-- 검색조건 -->
<input type="text" name="lCodeId" id="lCodeId" title="검색어" value="<c:out value='${lCodeId }'/>" size="35" maxlength="50" />
<input type="text" name="title" id="title" title="검색어" value="ThisIsTitleVal" size="35" maxlength="50" />
<input type="text" name="content" id="content" value="ThisIsCCCCContent Val" size="35" maxlength="50" />
<input type="button" name="btnSearch" id="btnSearch" title="검색버튼" value="검색" onclick="popSubmit()" />
PAGE_SIZE_OPTION
</form>
<table>
<tr>
<th>코드2222</th>
<th>코드명22222222</th>
</tr>
<c:forEach var="codeItem" items="${resultList }" varStatus="status">
<tr>
<td><c:out value="${codeItem.sCodeId }" /></td>
<td><c:out value="${codeItem.sCodeNm }" /></td>
</tr>
</c:forEach>
</table>
<a href="javascript:void(0)" onclick="gotoInPop('${pageContext.request.contextPath}/inform/selectNCultureOperationInfo.do')">팝업내에서 링크이동</a>
</body>
</html>