OrderDetailChangeHst.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="ko" xmlns:th="http://www.thymeleaf.org">
  3. <!--
  4. *******************************************************************************
  5. * @source : OrderDetailChangeHst.html
  6. * @desc : 주문상품상세이력 화면
  7. *============================================================================
  8. * STYLE24
  9. * Copyright(C) 2019 TSIT, All rights reserved.
  10. *============================================================================
  11. * VER DATE AUTHOR DESCRIPTION
  12. * === =========== ========== =============================================
  13. * 1.0 2020.12.18 jsh77b 최초 작성
  14. *******************************************************************************
  15. -->
  16. <div class="modalPopup" data-width="780" data-height="400">
  17. <div class="panelStyle">
  18. <div class="panelTitle">
  19. <h2>주문상품상세이력</h2>
  20. <button type="button" class="close" onclick="uifnPopupClose('popupOrderDetailChangeHstForm');"><i class="fa fa-times"></i></button>
  21. </div>
  22. <div class="panelContent" style="overflow-y:auto;">
  23. <form id="cancelRequestFrm">
  24. <div id="gridOrderDetailChangeHstList" style="width:100%; height:300px;" class="ag-theme-balham"></div>
  25. </form>
  26. </div>
  27. </div>
  28. </div>
  29. <!-- data -->
  30. <script th:inline="javascript">
  31. /*<![CDATA[*/
  32. var orderDetailHstList = [[${orderDetailHstList}]];
  33. // specify the columns
  34. var columnDefs4OrderDetailChangeHstList = [
  35. {
  36. headerName : "변경일시"
  37. , field : "updDt"
  38. , width : 150
  39. , cellClass : 'text-center'
  40. , cellRenderer: function(params) {
  41. return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmm").format("YYYY-MM-DD HH:mm") : '';
  42. }
  43. },
  44. {headerName: "변경아이디" , field: "updId" , width: 120 , cellClass: 'text-center'},
  45. {headerName: "변경내용" , field: "ordDtlStatNm" , width: 130 , cellClass: 'text-center'},
  46. {headerName: "주문수량" , field: "ordQty" , width: 80 , cellClass: 'text-center'},
  47. {headerName: "취소수량" , field: "cnclRtnQty" , width: 80 , cellClass: 'text-center'},
  48. {headerName: "출고처" , field: "delvLocNm" , width: 150 , cellClass: 'text-center'},
  49. {headerName: "송장번호" , field: "invoiceNo" , width: 130 , cellClass: 'text-center'},
  50. {headerName: "택배사" , field: "shipCompNm" , width: 130 , cellClass: 'text-center'}
  51. ];
  52. var gridOptions4OrderDetailChangeHstList = orderAgGrid.getGridOptions(columnDefs4OrderDetailChangeHstList);
  53. $(document).ready(function() {
  54. // Create a agGrid
  55. gagaAgGrid.createGrid('gridOrderDetailChangeHstList', gridOptions4OrderDetailChangeHstList);
  56. gridOptions4OrderDetailChangeHstList.api.setRowData(orderDetailHstList);
  57. });
  58. /*]]>*/
  59. </script>
  60. <!-- AgGrid 컬럼 세팅 -->
  61. <script>
  62. // 공통1. 주문상세 그리드 옵션 정보 적용
  63. var orderAgGrid = {
  64. getGridOptions : function(colDefs) {
  65. return {
  66. columnDefs : colDefs
  67. , detailCellRendererParams : {
  68. detailGridOptions : {
  69. columnDefs : []
  70. , defaultColDef : {
  71. resizable: true
  72. }
  73. , suppressLoadingOverlay: false
  74. , onGridReady : function (params) {
  75. params.api.setDomLayout('autoHeight');
  76. }
  77. , onFirstDataRendered : function (params) {
  78. params.api.sizeColumnsToFit();
  79. }
  80. }
  81. , getDetailRowData: function (params) {
  82. params.successCallback(params.data.orderDetailList);
  83. }
  84. }
  85. , defaultColDef: {
  86. resizable: true
  87. }
  88. , isRowMaster: function (dataItem) {
  89. return dataItem ? dataItem.orderDetailList.length > 1 : false;
  90. }
  91. , suppressRowTransform: true
  92. , enableRangeSelection: true
  93. };
  94. }
  95. }
  96. </script>
  97. </html>