| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <!DOCTYPE html>
- <html lang="ko" xmlns:th="http://www.thymeleaf.org">
- <!--
- *******************************************************************************
- * @source : OrderDetailChangeHst.html
- * @desc : 주문상품상세이력 화면
- *============================================================================
- * STYLE24
- * Copyright(C) 2019 TSIT, All rights reserved.
- *============================================================================
- * VER DATE AUTHOR DESCRIPTION
- * === =========== ========== =============================================
- * 1.0 2020.12.18 jsh77b 최초 작성
- *******************************************************************************
- -->
- <div class="modalPopup" data-width="780" data-height="400">
- <div class="panelStyle">
- <div class="panelTitle">
- <h2>주문상품상세이력</h2>
- <button type="button" class="close" onclick="uifnPopupClose('popupOrderDetailChangeHstForm');"><i class="fa fa-times"></i></button>
- </div>
-
- <div class="panelContent" style="overflow-y:auto;">
- <form id="cancelRequestFrm">
- <div id="gridOrderDetailChangeHstList" style="width:100%; height:300px;" class="ag-theme-balham"></div>
- </form>
- </div>
- </div>
- </div>
- <!-- data -->
- <script th:inline="javascript">
- /*<![CDATA[*/
- var orderDetailHstList = [[${orderDetailHstList}]];
- // specify the columns
- var columnDefs4OrderDetailChangeHstList = [
- {
- headerName : "변경일시"
- , field : "updDt"
- , width : 150
- , cellClass : 'text-center'
- , cellRenderer: function(params) {
- return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmm").format("YYYY-MM-DD HH:mm") : '';
- }
- },
- {headerName: "변경아이디" , field: "updId" , width: 120 , cellClass: 'text-center'},
- {headerName: "변경내용" , field: "ordDtlStatNm" , width: 130 , cellClass: 'text-center'},
- {headerName: "주문수량" , field: "ordQty" , width: 80 , cellClass: 'text-center'},
- {headerName: "취소수량" , field: "cnclRtnQty" , width: 80 , cellClass: 'text-center'},
- {headerName: "출고처" , field: "delvLocNm" , width: 150 , cellClass: 'text-center'},
- {headerName: "송장번호" , field: "invoiceNo" , width: 130 , cellClass: 'text-center'},
- {headerName: "택배사" , field: "shipCompNm" , width: 130 , cellClass: 'text-center'}
- ];
- var gridOptions4OrderDetailChangeHstList = orderAgGrid.getGridOptions(columnDefs4OrderDetailChangeHstList);
- $(document).ready(function() {
- // Create a agGrid
- gagaAgGrid.createGrid('gridOrderDetailChangeHstList', gridOptions4OrderDetailChangeHstList);
- gridOptions4OrderDetailChangeHstList.api.setRowData(orderDetailHstList);
- });
- /*]]>*/
- </script>
- <!-- AgGrid 컬럼 세팅 -->
- <script>
- // 공통1. 주문상세 그리드 옵션 정보 적용
- var orderAgGrid = {
- getGridOptions : function(colDefs) {
- return {
- columnDefs : colDefs
- , detailCellRendererParams : {
- detailGridOptions : {
- columnDefs : []
- , defaultColDef : {
- resizable: true
- }
- , suppressLoadingOverlay: false
- , onGridReady : function (params) {
- params.api.setDomLayout('autoHeight');
- }
- , onFirstDataRendered : function (params) {
- params.api.sizeColumnsToFit();
- }
- }
- , getDetailRowData: function (params) {
- params.successCallback(params.data.orderDetailList);
- }
- }
- , defaultColDef: {
- resizable: true
- }
- , isRowMaster: function (dataItem) {
- return dataItem ? dataItem.orderDetailList.length > 1 : false;
- }
- , suppressRowTransform: true
- , enableRangeSelection: true
- };
- }
- }
- </script>
- </html>
|