require(['config'], function() { require([ ], function($) { pageObj.init(); }); }); //화면변수 const POMNG04010_GRID_ID = '#ITP_POMNG04010_jqGrid'; const POMNG04010_GRID_LIST = '#ITP_POMNG04010_jqGrid_list'; const POMNG04010_GRID_PAGER = '#ITP_POMNG04010_jqGridPager'; const POMNG04010_GRID_EMPTY = '#ITP_POMNG04010_jqGridEmpty'; const POMNG04010_GRID_DETAIL_ID = '#ITP_POMNG04010_DETAIL_jqGrid'; const POMNG04010_GRID_DETAIL_LIST = '#ITP_POMNG04010_DETAIL_jqGrid_list'; const POMNG04010_GRID_DETAIL_PAGER = '#ITP_POMNG04010_DETAIL_jqGridPager'; const POMNG04010_GRID_DETAIL_EMPTY = '#ITP_POMNG04010_DETAIL_jqGridEmpty'; //API URL let API_POMNG_PO_DETAIL_GRID_LIST = '/api/pomng/po/detail-grid-list'; let API_POMNG_PO_INFO_PCHODR_ = '/api/pomng/po/info-pchOdr'; let API_POMNG_PO_CANCEL_PCHPO = '/api/pomng/po/cancel-pchPo'; //화면 grid ColModel const gridColModel = { list:[ { index: 'VIEW_CD', name: 'viewCd', label: ITP_MSG_LOCALE.label.viewCd, width: '10', fixed: false, align: 'center', sortable: false, hidden: true }, { index: 'BRAND_NM', name: 'brandNm', label: ITP_MSG_LOCALE.label.brandNm, // 브랜드명 width: '10', fixed: false, align: 'center', sortable: false, hidden: true }, { index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo', label: ITP_MSG_LOCALE.label.pchPodrUnqNo, // 발주번호 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PCH_ODR_ST_NM', name: 'pchOdrStNm', label: ITP_MSG_LOCALE.label.pchOdrStNm, // 발주상태명 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PODR_DT', name: 'podrDt', label: ITP_MSG_LOCALE.label.podrDt, // 발주일자 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'LOCATION_NM', name: 'locationNm', label: ITP_MSG_LOCALE.label.locationNm, // 입고처 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'SPPLY_NM', name: 'spplyNm', label: ITP_MSG_LOCALE.label.spplyNm, // 공급업체명 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PODR_TOTAL_AMT', name: 'podrTotalAmt', label: ITP_MSG_LOCALE.label.podrTotalAmt, // 총 발주금액 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PODR_ITEM_QTY', name: 'podrItemQty', label: ITP_MSG_LOCALE.label.podpodrItemQtyrDt, // 발주품목수 width: '10', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PODR_MGR_NM', name: 'podrMgrNm', label: ITP_MSG_LOCALE.label.podrMgrNm, // 발주담당자 width: '10', fixed: false, align: 'center', sortable: false, hidden: false } ], view: [], detail: [ { index: 'VIEW_CD', name: 'viewCd', label: ITP_MSG_LOCALE.label.viewCd, width: '10', fixed: false, align: 'center', sortable: false, hidden: true }, { index: 'ITEM_ID', name: 'itemId', label: ITP_MSG_LOCALE.label.itemId, // 품목번호 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'ITEM_NM', name: 'itemNm', label: ITP_MSG_LOCALE.label.itemNm, // 품목명 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'UNIT_AMT', name: 'unitAmt', label: ITP_MSG_LOCALE.label.unitAmt, // 단가 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'UNIT', name: 'unit', label: ITP_MSG_LOCALE.label.unit, // 기본단위 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PODR_QTY', name: 'podrQty', label: ITP_MSG_LOCALE.label.podrQty, // 발주수량 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo', label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PODR_AMT', name: 'podrAmt', label: ITP_MSG_LOCALE.label.podrAmt, // 발주금액 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'WHS_PASS_QTY', name: 'whsPassQty', label: ITP_MSG_LOCALE.label.whsPassQty, // 발주항번 width: '5', fixed: false, align: 'center', sortable: false, hidden: false }, { index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo', label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번 width: '5', fixed: false, align: 'center', sortable: false, hidden: false } ] }; /*화면공통 Object*/ let pageObj = { init: function() { this.ui.init(); this.event.init(); }, ui: { init: function() { } } }; console.log(CONN_KEY); console.log(CODE_LIST);