202 lines
8.3 KiB
Plaintext
202 lines
8.3 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String connector = person.getUserId();
|
|
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<!-- //JSTL 페이징 변수선언 -->
|
|
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
|
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
|
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
|
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
|
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
|
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
|
|
<c:set var="connector" value="<%=connector %>" />
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
});
|
|
|
|
function fn_search(){
|
|
document.form1.action = "/customerMng/customerMngDashBoard.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_goOriginalList(targetName,targetValue){
|
|
|
|
if("" != targetName && "" != targetValue){
|
|
if(targetName == "search_measure_type"){
|
|
var resultList = fnc_getCodeList("<%=Constants.MEASURE_TYPE_CD%>");
|
|
|
|
if(0 < resultList.length){
|
|
for (var i = 0; i < resultList.length; i++) {
|
|
var commonCodeId = resultList[i].CODE_ID;
|
|
var commonCodeName = resultList[i].CODE_NAME;
|
|
|
|
if(targetValue == commonCodeName){
|
|
$("#"+targetName).val(commonCodeId);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
$("#"+targetName).val(targetValue);
|
|
}
|
|
}
|
|
|
|
document.form1.action = "/customerMng/customerMngList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="search_measure_type" id="search_measure_type">
|
|
<input type="hidden" name="search_product_division" id="search_product_division">
|
|
<input type="hidden" name="search_performer" id="search_performer">
|
|
<input type="hidden" name="search_mng_type" id="search_mng_type">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>고객지원 현황</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="Year">연도</label></td>
|
|
<td>
|
|
<select name="search_year" id="search_year" style="width:200px;" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear}" var="req_year">
|
|
<option value="${req_year}"${param.search_year eq req_year ? 'selected':'' }>${req_year}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="8%">
|
|
<col width="8%">
|
|
<c:if test="${!empty productDivisionList}">
|
|
<c:forEach var="info" items="${productDivisionList}" varStatus="status">
|
|
<col width="7%">
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${!empty performerList}">
|
|
<c:forEach var="info" items="${performerList}" varStatus="status">
|
|
<col width="7%">
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${!empty mngTypeList}">
|
|
<c:forEach var="info" items="${mngTypeList}" varStatus="status">
|
|
<col width="7%">
|
|
</c:forEach>
|
|
</c:if>
|
|
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="2">발생건수</td>
|
|
<td colspan="3">발생비용</td>
|
|
<td colspan="${fn:length(productDivisionList)}">제품구분</td>
|
|
<td colspan="${fn:length(performerList)}">수행사</td>
|
|
<td colspan="${fn:length(mngTypeList)}">유형</td>
|
|
</tr>
|
|
<tr class="plm_thead">
|
|
<td>합계</td>
|
|
<td>유상</td>
|
|
<td>무상</td>
|
|
<c:if test="${!empty productDivisionList}">
|
|
<c:forEach var="info" items="${productDivisionList}" varStatus="status">
|
|
<td>${info.CODE_NAME}</td>
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${!empty performerList}">
|
|
<c:forEach var="info" items="${performerList}" varStatus="status">
|
|
<td>${info.CODE_NAME}</td>
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${!empty mngTypeList}">
|
|
<c:forEach var="info" items="${mngTypeList}" varStatus="status">
|
|
<td>${info.CODE_NAME}</td>
|
|
</c:forEach>
|
|
</c:if>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td title="${info.TOTAL_ISSUE_COUNT}">${info.TOTAL_ISSUE_COUNT}</td>
|
|
<td title="<fmt:formatNumber value="${info.SUM_MOUNT}"/>"><fmt:formatNumber value="${info.SUM_MOUNT}"/></td>
|
|
<td onclick="fn_goOriginalList('search_measure_type','유상');" title="<fmt:formatNumber value="${info.SUM_PAID_MEASURE_AMOUNT}"/>" style="cursor:pointer;"><fmt:formatNumber value="${info.SUM_PAID_MEASURE_AMOUNT}"/></td>
|
|
<td onclick="fn_goOriginalList('search_measure_type','무상');" title="<fmt:formatNumber value="${info.SUM_FREE_MEASURE_AMOUNT}"/>" style="cursor:pointer;"><fmt:formatNumber value="${info.SUM_FREE_MEASURE_AMOUNT}"/></td>
|
|
<c:if test="${!empty productDivisionList}">
|
|
<c:forEach var="commCD" items="${productDivisionList}" varStatus="status">
|
|
<c:set var="colName" value="${commCD.CODE_NAME}${commCD.CODE_ID}" />
|
|
<td onclick="fn_goOriginalList('search_product_division','${commCD.CODE_ID}');" title="${info[colName]}" style="cursor:pointer;">${info[colName]}</td>
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${!empty performerList}">
|
|
<c:forEach var="commCD" items="${performerList}" varStatus="status">
|
|
<c:set var="colName" value="${commCD.CODE_NAME}${commCD.CODE_ID}" />
|
|
<td onclick="fn_goOriginalList('search_performer','${commCD.CODE_ID}');" title="${info[colName]}" style="cursor:pointer;">${info[colName]}</td>
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${!empty mngTypeList}">
|
|
<c:forEach var="commCD" items="${mngTypeList}" varStatus="status">
|
|
<c:set var="colName" value="${commCD.CODE_NAME}${commCD.CODE_ID}" />
|
|
<td onclick="fn_goOriginalList('search_mng_type','${commCD.CODE_ID}');" title="${info[colName]}" style="cursor:pointer;">${info[colName]}</td>
|
|
</c:forEach>
|
|
</c:if>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="${fn:length(productDivisionList)+fn:length(performerList)+fn:length(mngTypeList)+3}" align="center">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |