CouponPopupRandomInfo.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="ko" xmlns:th="http://www.thymeleaf.org">
  3. <!--
  4. *******************************************************************************
  5. * @source : CouponPopupForm.html
  6. * @desc : 쿠폰 등록 팝업 화면
  7. *============================================================================
  8. * ISTYLE24
  9. * Copyright(C) 2020 TSIT, All rights reserved.
  10. *============================================================================
  11. * VER DATE AUTHOR DESCRIPTION
  12. * === =========== ========== =============================================
  13. * 1.0 2020.12.23 xyzp1539 최초 작성
  14. *******************************************************************************
  15. -->
  16. <span>
  17. <div id="randomCpnList" style="width: 100%; height: 500px" class="ag-theme-balham"></div>
  18. </span>
  19. <script th:inline="javascript">
  20. /*<![CDATA[*/
  21. // 상세조회 리스트
  22. var randomCpnList = [[${randomCpnList}]];
  23. // ag-grid 시리얼 및 난수 리스트
  24. var randomCouponDefs = [
  25. { headerName : "생성쿠폰키워드" , field: "rdCpnNm" , width:150, cellClass: 'text-center'} ,
  26. { headerName: "지급고객번호" , field: "custNo" , width:150, cellClass: 'text-center'},
  27. { headerName: "고객아이디" , field: "custId" , width:150, cellClass: 'text-center'},
  28. { headerName: "고객명" , field: "custNm" , width:150, cellClass: 'text-center'},
  29. { headerName: "지급일" , field: "regDt" , width:150, cellClass: 'text-center'},
  30. { headerName: "쿠폰사용일" , field: "usedDt" , width:150, cellClass: 'text-center'}
  31. ];
  32. var randomCouponGridOptions = gagaAgGrid.getGridOptions(randomCouponDefs);
  33. var randomInfoInit = function() {
  34. gagaAgGrid.createGrid('randomCpnList' , randomCouponGridOptions);
  35. if (randomCpnList != null) {
  36. randomCouponGridOptions.api.setRowData(randomCpnList);
  37. }
  38. }
  39. /*]]>*/
  40. </script>
  41. </html>