Merge branch 'tolag3'

This commit is contained in:
leejunho 2025-02-10 17:08:10 +09:00
commit 106c99d27e
13 changed files with 343 additions and 14 deletions

View File

@ -167,9 +167,13 @@ public class SearchVO extends ComDefaultVO implements Serializable {
@JsonProperty("CONFERENCE_GUBUN_NM") @JsonProperty("CONFERENCE_GUBUN_NM")
private String conferenceGubunNm; // 회의 구분 private String conferenceGubunNm; // 회의 구분
/*
* conference
*/
/* /*
* counsel * counsel 시작
*/ */
@JsonProperty("COUNSEL_SEQ") @JsonProperty("COUNSEL_SEQ")
@ -203,7 +207,7 @@ public class SearchVO extends ComDefaultVO implements Serializable {
private String noticeType; // 공지 유형 private String noticeType; // 공지 유형
/* /*
* counsel 시작 * counsel
*/ */
@ -230,6 +234,32 @@ public class SearchVO extends ComDefaultVO implements Serializable {
private String timhderAssign; // 팀장 배정 private String timhderAssign; // 팀장 배정
/* /*
* process 시작 * process
*/
/*
* file 시작
*/
@JsonProperty("FILE_NO")
private String fileNo; // 파일 번호
@JsonProperty("FILE_PATH")
private String filePath; // 파일 경로
@JsonProperty("FILE_CONTENT")
private String fileContent; // 파일 경로
@JsonProperty("CASE_TYPE")
private String caseType; // 케이스 유형
@JsonProperty("LINK_URL")
private String linkUrl; // 링크 URL
@JsonProperty("LINK_TEXT")
private String linkText; // 링크 제목
/*
* file
*/ */
} }

View File

@ -29,6 +29,7 @@ public class SearchServiceImpl extends EgovAbstractServiceImpl implements Search
Map<String, Object> conference = FairnetUtils.searchApplication("conference", searchVO.getSearchKeyword(), searchVO.getPagingSize(), searchVO.getPageIndex()); Map<String, Object> conference = FairnetUtils.searchApplication("conference", searchVO.getSearchKeyword(), searchVO.getPagingSize(), searchVO.getPageIndex());
Map<String, Object> counsel = FairnetUtils.searchApplication("counsel", searchVO.getSearchKeyword(), searchVO.getPagingSize(), searchVO.getPageIndex()); Map<String, Object> counsel = FairnetUtils.searchApplication("counsel", searchVO.getSearchKeyword(), searchVO.getPagingSize(), searchVO.getPageIndex());
Map<String, Object> process = FairnetUtils.searchApplication("process", searchVO.getSearchKeyword(), searchVO.getPagingSize(),searchVO.getPageIndex()); Map<String, Object> process = FairnetUtils.searchApplication("process", searchVO.getSearchKeyword(), searchVO.getPagingSize(),searchVO.getPageIndex());
Map<String, Object> file = FairnetUtils.searchApplication("file", searchVO.getSearchKeyword(), searchVO.getPagingSize(),searchVO.getPageIndex());
BigDecimal totCnt = new BigDecimal(0); BigDecimal totCnt = new BigDecimal(0);
@ -37,6 +38,7 @@ public class SearchServiceImpl extends EgovAbstractServiceImpl implements Search
totCnt = totCnt.add(getTotCnt(conference)); totCnt = totCnt.add(getTotCnt(conference));
totCnt = totCnt.add(getTotCnt(counsel)); totCnt = totCnt.add(getTotCnt(counsel));
totCnt = totCnt.add(getTotCnt(process)); totCnt = totCnt.add(getTotCnt(process));
totCnt = totCnt.add(getTotCnt(file));
model.addAttribute("totCnt", totCnt); model.addAttribute("totCnt", totCnt);
model.addAttribute("board", board); model.addAttribute("board", board);
@ -44,6 +46,7 @@ public class SearchServiceImpl extends EgovAbstractServiceImpl implements Search
model.addAttribute("conference", conference); model.addAttribute("conference", conference);
model.addAttribute("counsel", counsel); model.addAttribute("counsel", counsel);
model.addAttribute("process", process); model.addAttribute("process", process);
model.addAttribute("file", file);
PaginationInfo paginationInfo = new PaginationInfo(); PaginationInfo paginationInfo = new PaginationInfo();
@ -76,6 +79,10 @@ public class SearchServiceImpl extends EgovAbstractServiceImpl implements Search
if(counsel != null) { if(counsel != null) {
totalREcordCount = Integer.valueOf((String)counsel.get("totcnt")); totalREcordCount = Integer.valueOf((String)counsel.get("totcnt"));
} }
}else if("file".equals(searchVO.getSearchType())) {
if(file != null) {
totalREcordCount = Integer.valueOf((String)file.get("totcnt"));
}
}else { }else {
paginationInfo.setTotalRecordCount(totCnt.intValue()); paginationInfo.setTotalRecordCount(totCnt.intValue());
} }

View File

@ -12,6 +12,17 @@ import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import kcc.com.srch.service.SearchService; import kcc.com.srch.service.SearchService;
import kcc.com.srch.service.SearchVO; import kcc.com.srch.service.SearchVO;
/**
* @packageName : kcc.com.srch.web
* @fileName : SearchController.java
* @author : JunHo Lee
* @date : 2025.02.05
* @description :
* ===========================================================
* DATE AUTHOR NOTE
* -----------------------------------------------------------
* 2025.02.05 JunHo Lee 최초 생성
*/
@Controller @Controller
public class SearchController { public class SearchController {
@ -105,4 +116,18 @@ public class SearchController {
return "com/srch/searchCounsel"; return "com/srch/searchCounsel";
} }
@RequestMapping(value = "/com/srch/SearchFile.do")
public String SearchFile(
ModelMap model
, @ModelAttribute("searchVO") SearchVO searchVO
) throws Exception {
searchVO.setPagingSize("10");
searchVO.setSearchType("file");
searchService.searchListSet(searchVO, model);
return "com/srch/searchFile";
}
} }

View File

@ -359,6 +359,7 @@ public class FairnetUtils {
* , conference - 협의회관리 * , conference - 협의회관리
* , counsel - 상담관리 * , counsel - 상담관리
* , process - 사건처리관리 * , process - 사건처리관리
* , file - 파일검색
* @param searchKeyword : 검색어 * @param searchKeyword : 검색어
* @param pagingSize : 페이징 크기 (무한: -1) * @param pagingSize : 페이징 크기 (무한: -1)
* @param page : 페이지 * @param page : 페이지
@ -371,17 +372,26 @@ public class FairnetUtils {
, int page , int page
) { ) {
if("file".equals(searchType)) {
searchType = "file_test_250122";
}
String url = new SearchGlobalSet().getHost() String url = new SearchGlobalSet().getHost()
+ "/srch_resultjson?" + "/srch_resultjson?"
+ "w=" + searchType + "w=" + searchType
+ "&q=" + "*" + searchKeyword + "*" + "&q=" + searchKeyword
+ "&outmax=" + pagingSize + "&outmax=" + pagingSize
+ "&section=" + "&section="
+ "&pg=" + page; + "&pg=" + page;
try { try {
String response = new RestTemplate().getForObject(url, String.class); String response = new RestTemplate().getForObject(url, String.class);
response = response.replaceAll("\n", "\\n");
response = response.replaceAll("\r", "\\r"); //검색결과 json 형식에 맞지않는 string replace
response = response.replaceAll("\n", "")
.replaceAll("\r", "")
// .replaceAll("\"\"(?!,)", "\"")
.replaceAll("\"att_list\": [\"]", "\"att_list\": []")
;
JsonNode root = new ObjectMapper().readTree(response); JsonNode root = new ObjectMapper().readTree(response);
JsonNode listNode = root.path("section_list") JsonNode listNode = root.path("section_list")
@ -398,6 +408,14 @@ public class FairnetUtils {
Map<String, Object> result = new HashMap<String, Object>(); Map<String, Object> result = new HashMap<String, Object>();
result.put("totcnt", ((TextNode) listNode.get("totcnt")).asText()); result.put("totcnt", ((TextNode) listNode.get("totcnt")).asText());
searchList.stream().forEach(t ->
{
if(t.getLinkText() != null) {
t.setLinkText(t.getLinkText().replaceAll(":", ""));
}
}
);
result.put("list", searchList); result.put("list", searchList);
return result; return result;
} }

View File

@ -38,6 +38,8 @@
url = '/com/srch/SearchBoard.do'; url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){ }else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do'; url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
} }
document.search.searchType.value = type; document.search.searchType.value = type;
document.search.action = url; document.search.action = url;
@ -67,7 +69,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}
@ -125,6 +127,11 @@
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}] 상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a> </a>
</li> </li>
<li>
<a href="#none" onClick="doCollection('file');">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul> </ul>
<c:choose> <c:choose>
<c:when test="${fn:length(board.list) > 0}"> <c:when test="${fn:length(board.list) > 0}">

View File

@ -38,6 +38,8 @@
url = '/com/srch/SearchBoard.do'; url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){ }else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do'; url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
} }
document.search.searchType.value = type; document.search.searchType.value = type;
document.search.action = url; document.search.action = url;
@ -66,7 +68,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}
@ -124,6 +126,11 @@
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}] 상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a> </a>
</li> </li>
<li>
<a href="#none" onClick="doCollection('file');">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul> </ul>
<c:choose> <c:choose>
<c:when test="${fn:length(completed.list) > 0}"> <c:when test="${fn:length(completed.list) > 0}">

View File

@ -38,6 +38,8 @@
url = '/com/srch/SearchBoard.do'; url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){ }else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do'; url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
} }
document.search.searchType.value = type; document.search.searchType.value = type;
document.search.action = url; document.search.action = url;
@ -66,7 +68,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}
@ -124,6 +126,11 @@
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}] 상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a> </a>
</li> </li>
<li>
<a href="#none" onClick="doCollection('file');">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul> </ul>
<c:choose> <c:choose>
<c:when test="${fn:length(conference.list) > 0}"> <c:when test="${fn:length(conference.list) > 0}">

View File

@ -38,6 +38,8 @@
url = '/com/srch/SearchBoard.do'; url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){ }else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do'; url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
} }
document.search.searchType.value = type; document.search.searchType.value = type;
document.search.action = url; document.search.action = url;
@ -66,7 +68,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}
@ -124,6 +126,11 @@
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}] 상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a> </a>
</li> </li>
<li>
<a href="#none" onClick="doCollection('file');">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul> </ul>
<c:choose> <c:choose>
<c:when test="${fn:length(counsel.list) > 0}"> <c:when test="${fn:length(counsel.list) > 0}">

View File

@ -0,0 +1,182 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.css" >
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/beta.fix.js"></script>
<script type="text/javascript" src="/js/datepicker.js"></script>
<script type="text/javascript">
function goSearch(obj){
document.search.submit();
}
function linkPage(pageNo){
document.search.pageIndex.value = pageNo ;
document.search.action = '/com/srch/SearchFile.do';
document.search.submit();
}
function doCollection(type){
var url = '';
if(type === 'ALL'){
url = '/com/srch/Search.do';
}else if(type === 'process'){
url = '/com/srch/SearchProcess.do';
}else if(type === 'conference'){
url = '/com/srch/SearchConference.do';
}else if(type === 'completed'){
url = '/com/srch/SearchCompleted.do';
}else if(type === 'board'){
url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
}
document.search.searchType.value = type;
document.search.action = url;
document.search.submit();
}
</script>
<style>
.page-content{padding-left:0;padding-right:0;}
.cs-search-wrapper {margin-top:40px;font-family:'Malgun Gothic';}
.cs-search{position: relative;}
.cs-search .blue_window{display:inline-block;width:561px;height:40px;border: 1px solid #676fb2;border-right:0;}
.cs-search label{background:url(/img/search-fofair.png) no-repeat 15px 50%;width:147px;height:40px;margin-bottom:0;
text-indent:-999em;}
.cs-search .query{width:100%;height:100%;padding:4px 10px;border:0;font-size:15px;}
.cs-search .query::-webkit-input-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .query::-moz-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .query:-ms-input-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .query:-moz-placeholder {font-family:'Malgun Gothic';color: #757575;font-size:15px;letter-spacing: -1px;}
.cs-search .cs-search-btn{width:57px;height:40px;white-space: nowrap;background: #818ce3;color: #fff;-moz-box-shadow: inset 0 0 10px #5f6cd4;-webkit-box-shadow: inset 0 0 10px #5f6cd4;box-shadow:inset 0 0 10px #5f6cd4;}
.cs-search-lnb{overflow:hidden;list-style:none;border-bottom:1px solid #e8e8e8}
.cs-search-lnb li{float:left;}
.cs-search-lnb li:first-child{margin-left:139px;}
.cs-search-lnb li a{position:relative;display:block;height:54px;margin: 2px 8px 0;padding: 0 8px;line-height:54px;}
.cs-search-lnb li a.on{color: #5f6cd4;font-weight:700}
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;}
.result-link:hover{text-decoration:underline;}
.result-list{position: relative;margin-bottom:23px;}
.result-list:last-child{margin-bottom:0;}
.result-date{color:#545454;line-height: 1.4;}
.result-content{padding:4px 0;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
</style>
<div class="cs-search-wrapper">
<div class="search-form-wrap">
<form:form name="search" id="search" action="/com/srch/Search.do" class="search-form" method="post">
<input type="hidden" id="pageIndex" name="pageIndex" value="1"/>
<input type="hidden" id="searchType" name="searchType" value="file"/>
<fieldset>
<div class="cs-search">
<label for="query">kofair</label>
<span class="blue_window">
<input name="searchKeyword" id="searchKeyword" type="text" value="${searchVO.searchKeyword}" class="query" title="검색어 입력" placeholder="한국공정거래조정원 통합검색" >
</span>
<a style="display: unset;"><input type="button" value="검색" class="cs-search-btn" onClick="javascript:goSearch(this);" />&nbsp;
</a>
</div>
</fieldset>
</form:form>
</div>
<c:if test="${not empty searchVO.searchKeyword}">
<ul class="cs-search-lnb">
<li><a href="#none" onClick="javascript:doCollection('ALL');">통합검색</a></li>
<li>
<a href="#none" onClick="doCollection('process');">
사건처리 관리 [${empty process.totcnt ? "0":process.totcnt}]
</a>
</li>
<li>
<a href="#none" onClick="doCollection('conference');">
협의회 관리 [${empty conference.totcnt ? "0":conference.totcnt}]
</a>
</li>
<li>
<a href="#none" onClick="doCollection('completed');">
사건종료 관리 [${empty completed.totcnt ? "0":completed.totcnt}]
</a>
</li>
<li>
<a href="#none" onClick="doCollection('board');">
게시판 [${empty board.totcnt ? "0":board.totcnt}]
</a>
</li>
<li>
<a href="#none" onClick="doCollection('counsel');">
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a>
</li>
<li>
<a href="#none" onClick="doCollection('file');" class="on">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul>
<c:choose>
<c:when test="${fn:length(file.list) > 0}">
<div class="cs-content-search">
<div class="cs-result-stats">검색어 '<c:out value="${searchVO.searchKeyword}"/>'에 대해 총 ${file.totcnt}건이 검색되었습니다.</div>
<div class="result-box cass">
<h2>사건파일</h2>
<c:forEach var="list" items="${file.list}" varStatus="sts1">
<div class="result-list">
<c:choose>
<c:when test="${list.caseType eq '종료사건'}">
<a href="/gtm/case/trublend/trublendView/View.do?type=TP_RCEPTEDIT&caseNo=${list.linkUrl}" class="result-link" target="_blank">${list.linkText}</a>
</c:when>
<c:when test="${list.caseType eq '처리 중 사건'}">
<a href="/gtm/case/trublprocessmng/rceptEdit/Edit.do?type=TP_RCEPTEDIT&caseNo=${list.linkUrl}" class="result-link" target="_blank">${list.linkText}</a>
</c:when>
<c:when test="${list.caseType eq '협의회'}">
<a href="/gtm/case/trublcfrncmng/endNticeView/View.do?type=N&cfrncNo=${list.linkUrl}" class="result-link" target="_blank">${list.linkText}</a>
</c:when>
</c:choose>
<div class="result-content">관련메뉴: ${list.caseType} </div>
<div class="result-content">첨부파일명: ${list.fileName}</div>
<div class="result-content">첨부파일 내용 : ${list.fileContent}</div>
</div>
</c:forEach>
</div>
<div class="page">
<ul class="inline">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="linkPage" />
</ul>
</div>
</div>
</c:when>
<c:otherwise>
<div class="result-box h2">
<p>'<c:out value="${searchVO.searchKeyword}"/>'에 대한 검색결과가 없습니다.</p>
<ul>
<li>단어의 철자가 정확한지 확인해 보세요.</li>
<li>한글을 영어로 혹은 영어를 한글로 입력했는지 확인해 보세요.</li>
<li>검색어의 단어 수를 줄이거나, 보다 일반적인 검색어로 다시 검색해 보세요.</li>
<li>두 단어 이상의 검색어인 경우, 띄어쓰기를 확인해 보세요.</li>
</ul>
</div>
</c:otherwise>
</c:choose>
</c:if>
</div>

View File

@ -32,6 +32,8 @@
url = '/com/srch/SearchBoard.do'; url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){ }else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do'; url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
} }
document.search.searchType.value = type; document.search.searchType.value = type;
document.search.action = url; document.search.action = url;
@ -61,7 +63,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}
@ -119,6 +121,11 @@
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}] 상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a> </a>
</li> </li>
<li>
<a href="#none" onClick="doCollection('file');">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul> </ul>
<c:choose> <c:choose>
<c:when test="${totCnt ne '0'}"> <c:when test="${totCnt ne '0'}">
@ -224,6 +231,31 @@
<a href="#none" class="result-link.more" onClick="javascript:doCollection('counsel');">더보기</a> <a href="#none" class="result-link.more" onClick="javascript:doCollection('counsel');">더보기</a>
</div> </div>
</c:if> </c:if>
<c:if test="${fn:length(file.list) > 0}">
<div class="result-box cass">
<h2>사건파일</h2>
<c:forEach var="list" items="${file.list}" varStatus="sts1">
<div class="result-list">
<c:choose>
<c:when test="${list.caseType eq '종료사건'}">
<a href="/gtm/case/trublend/trublendView/View.do?type=TP_RCEPTEDIT&caseNo=${list.linkUrl}" class="result-link" target="_blank">${list.linkText}</a>
</c:when>
<c:when test="${list.caseType eq '처리 중 사건'}">
<a href="/gtm/case/trublprocessmng/rceptEdit/Edit.do?type=TP_RCEPTEDIT&caseNo=${list.linkUrl}" class="result-link" target="_blank">${list.linkText}</a>
</c:when>
<c:when test="${list.caseType eq '협의회'}">
<a href="/gtm/case/trublcfrncmng/endNticeView/View.do?type=N&cfrncNo=${list.linkUrl}" class="result-link" target="_blank">${list.linkText}</a>
</c:when>
</c:choose>
<div class="result-content">관련메뉴: ${list.caseType} </div>
<div class="result-content">첨부파일명: ${list.fileName}</div>
<div class="result-content">첨부파일 내용 : ${list.fileContent}</div>
</div>
</c:forEach>
<a href="#none" class="result-link.more" onClick="javascript:doCollection('file');">더보기</a>
</div>
</c:if>
</div> </div>
</c:when> </c:when>
<c:otherwise> <c:otherwise>

View File

@ -38,6 +38,8 @@
url = '/com/srch/SearchBoard.do'; url = '/com/srch/SearchBoard.do';
}else if(type === 'counsel'){ }else if(type === 'counsel'){
url = '/com/srch/SearchCounsel.do'; url = '/com/srch/SearchCounsel.do';
}else if(type === 'file'){
url = '/com/srch/SearchFile.do';
} }
document.search.searchType.value = type; document.search.searchType.value = type;
document.search.action = url; document.search.action = url;
@ -66,7 +68,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}
@ -124,6 +126,11 @@
상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}] 상담 관리 [${empty counsel.totcnt ? "0":counsel.totcnt}]
</a> </a>
</li> </li>
<li>
<a href="#none" onClick="doCollection('file');">
사건파일 [${empty file.totcnt ? "0":file.totcnt}]
</a>
</li>
</ul> </ul>
<c:choose> <c:choose>
<c:when test="${fn:length(process.list) > 0}"> <c:when test="${fn:length(process.list) > 0}">

View File

@ -238,7 +238,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}

View File

@ -39,7 +39,7 @@
.cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4} .cs-search-lnb li a.on:after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:3px;background:#5f6cd4}
.cs-content-search{padding:16px 0 0 163px;} .cs-content-search{padding:16px 0 0 163px;}
.cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;} .cs-result-stats{font-size:13px;color:#808080;margin-bottom:38px;}
.result-box{max-width:618px;padding:16px 0;border-top:1px solid #e8e8e8} .result-box{max-width:918px;padding:16px 0;border-top:1px solid #e8e8e8}
.result-box h2{margin-bottom: 10px;font-size:15px;} .result-box h2{margin-bottom: 10px;font-size:15px;}
.result-link{font-size:18px;color:#1a0dab;} .result-link{font-size:18px;color:#1a0dab;}
.result-link.more{font-size:16px;} .result-link.more{font-size:16px;}