|
|
@@ -0,0 +1,209 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="ko"
|
|
|
+ xmlns:th="http://www.thymeleaf.org">
|
|
|
+<!--
|
|
|
+ *******************************************************************************
|
|
|
+ * @source : CustomerSecedeListForm.html
|
|
|
+ * @desc : 탈퇴회원목록 Page
|
|
|
+ *============================================================================
|
|
|
+ * STYLE24
|
|
|
+ * Copyright(C) 2021 TSIT, All rights reserved.
|
|
|
+ *============================================================================
|
|
|
+ * VER DATE AUTHOR DESCRIPTION
|
|
|
+ * === =========== ========== =============================================
|
|
|
+ * 1.0 2021.01.14 jsshin 최초 작성
|
|
|
+ *******************************************************************************
|
|
|
+ -->
|
|
|
+<div id="main">
|
|
|
+ <!-- 메인타이틀 영역 -->
|
|
|
+ <div class="main-title">
|
|
|
+ </div>
|
|
|
+ <!-- //메인타이틀 영역 -->
|
|
|
+
|
|
|
+ <!-- 메뉴 설명 -->
|
|
|
+ <div class="infoBox menu-desc">
|
|
|
+ </div>
|
|
|
+ <!-- //메뉴 설명 -->
|
|
|
+
|
|
|
+ <!-- 검색조건 영역 -->
|
|
|
+ <div class="panelStyle">
|
|
|
+ <form id="searchForm" name="searchForm" action="#" th:action="@{'/customer/secede/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
|
|
|
+ <table class="frmStyle" aria-describedby="검색조건">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col style="width:20%;"/>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col style="width:15%;"/>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col style="width:20%;"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">검색구분</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="searchGb">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option value="custNo">회원번호 </option>
|
|
|
+ <option value="custNm">회원명 </option>
|
|
|
+ <option value="email">이메일</option>
|
|
|
+ <option value="custId">아이디</option>
|
|
|
+ </select>
|
|
|
+ <input type="text" class="w200" name="searchTxt" id="searchTxt"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">사이트</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="siteCd">
|
|
|
+ <option value="">전체</option>
|
|
|
+ <option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">탈퇴사유</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="secedeGb" class="w200">
|
|
|
+ <option value="">전체</option>
|
|
|
+ <option th:if="${secedeGbList}" th:each="oneData, status : ${secedeGbList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">휴대폰번호(숫자만)</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="w200" name="cellPhnno" id="cellPhnno" maxlength="13"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">탈퇴일</th>
|
|
|
+ <td class="dashR" colspan="3" id="terms">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="center">
|
|
|
+ <button type="button" class="btn btn-base btn-lg" id="btnSearch">조회</button>
|
|
|
+ <button type="button" class="btn btn-gray btn-lg" onclick="$('#searchForm')[0].reset();">초기화</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <!-- //검색조건 영역 -->
|
|
|
+
|
|
|
+ <!-- 리스트 영역 -->
|
|
|
+ <div class="panelStyle">
|
|
|
+ <div id="gridList" style="width: 100%; height: 570px" class="ag-theme-balham"></div>
|
|
|
+ </div>
|
|
|
+ <!-- //리스트 영역 -->
|
|
|
+</div>
|
|
|
+
|
|
|
+<script th:inline="javascript">
|
|
|
+ /*<![CDATA[*/
|
|
|
+ // 사이트목록
|
|
|
+ const siteList = gagajf.convertToArray([[${siteList}]]);
|
|
|
+
|
|
|
+ // specify the columns
|
|
|
+ const columnDefs = [
|
|
|
+ {
|
|
|
+ headerName: "사이트", field:'siteCd', width:100, cellClass: 'text-center',
|
|
|
+ valueGetter: function (params) { return gagaAgGrid.lookupValue(siteList, params.data.siteCd); }
|
|
|
+ },
|
|
|
+ {headerName: "회원ID", field:'custId', width:120, cellClass: 'text-center'},
|
|
|
+ {headerName: "회원명", field:'custNm', width:100, cellClass: 'text-center'},
|
|
|
+ {headerName: "핸드폰", field:'cellPhnno', width:140, cellClass: 'text-center'},
|
|
|
+ {
|
|
|
+ headerName: "생년월일", field:'birthYmd', width:90, cellClass: 'text-center',
|
|
|
+ valueGetter: function (params) { return gagaAgGrid.toDateFormat(params.data.birthYmd); }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName: "탈퇴일자", field:'secedeDt', width:120, cellClass: 'text-center',
|
|
|
+ valueGetter: function (params) { return gagaAgGrid.toDateFormat(params.data.secedeDt); }
|
|
|
+ },
|
|
|
+ {headerName: "이메일", field:'email', width:220, cellClass: 'text-center'}
|
|
|
+ ];
|
|
|
+
|
|
|
+ // Get GridOptions
|
|
|
+ let gridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
+
|
|
|
+ // 셀 클릭 이벤트
|
|
|
+ gridOptions.onCellClicked = function(event) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ // 조회
|
|
|
+ $('#btnSearch').on('click', function() {
|
|
|
+ fnSearch();
|
|
|
+ });
|
|
|
+
|
|
|
+ //엔터키 조회
|
|
|
+ $('#searchForm input[name=cellPhnno], #searchForm input[name=searchNm]').on('keypress', function (event) {
|
|
|
+ if (event.which === 13) {
|
|
|
+ fnSearch();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 휴대폰 자동 하이픈
|
|
|
+ $('#searchForm input[name=cellPhnno]').on('input keyup keydown paste change', function () {
|
|
|
+ cfnCellPhonnHypen(this);
|
|
|
+ });
|
|
|
+
|
|
|
+ // 유효성 확인
|
|
|
+ var fnValidationCheck = function () {
|
|
|
+ // 입력 값 체크
|
|
|
+ const $searchGb = $('#searchForm select[name=searchGb]'); // 검색구분
|
|
|
+ const $searchTxt = $('#searchForm input[name=searchTxt]'); // 검색내용
|
|
|
+ let isSearchVaild = true;
|
|
|
+ let validationMessage;
|
|
|
+
|
|
|
+ // 검색구분: O / 검색내용: X
|
|
|
+ if (!gagajf.isNull($searchGb.val())) {
|
|
|
+ if (gagajf.isNull($searchTxt.val())) {
|
|
|
+ validationMessage = '내용을 입력해주세요';
|
|
|
+ isSearchVaild = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 검색구분: X / 검색내용: O
|
|
|
+ if (!gagajf.isNull($searchTxt.val())) {
|
|
|
+ if (gagajf.isNull($searchGb.val())) {
|
|
|
+ validationMessage = '검색구분을 선택해주세요';
|
|
|
+ isSearchVaild = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ if (!isSearchVaild) {
|
|
|
+ mcxDialog.alertC(validationMessage, {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $searchTxt.focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ return isSearchVaild;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ // 검색
|
|
|
+ var fnSearch = function() {
|
|
|
+ // 유효성 체크
|
|
|
+ let validation = fnValidationCheck();
|
|
|
+ if (!validation) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ gagaAgGrid.fetch($('#searchForm').prop('action'), gridOptions, '#searchForm');
|
|
|
+ };
|
|
|
+
|
|
|
+ $(document).ready(function() {
|
|
|
+ // 공통 달력 생성
|
|
|
+ cfnCreateCalendar('#terms', 'stDate', 'edDate', true);
|
|
|
+ $('.btnToday').trigger('click');
|
|
|
+
|
|
|
+ // Create a agGrid
|
|
|
+ gagaAgGrid.createGrid('gridList', gridOptions);
|
|
|
+ });
|
|
|
+
|
|
|
+ /*]]>*/
|
|
|
+</script>
|
|
|
+
|
|
|
+</html>
|