|
@@ -0,0 +1,370 @@
|
|
1
|
+require(['config'], function() {
|
|
2
|
+ require([
|
|
3
|
+ ], function($) {
|
|
4
|
+ pageObj.init();
|
|
5
|
+ });
|
|
6
|
+});
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+//화면변수
|
|
10
|
+const COLLMNG01010_GRID_ID = '#ITP_COLLMNG01010_jqGrid';
|
|
11
|
+const COLLMNG01010_GRID_LIST = '#ITP_COLLMNG01010_jqGrid_list';
|
|
12
|
+const COLLMNG01010_GRID_PAGER = '#ITP_COLLMNG01010_jqGridPager';
|
|
13
|
+const COLLMNG01010_GRID_EMPTY = '#ITP_COLLMNG01010_jqGridEmpty';
|
|
14
|
+
|
|
15
|
+const COLLMNG01010_DETAIL_GRID_ID = '#ITP_COLLMNG01010_DETAIL_jqGrid';
|
|
16
|
+const COLLMNG01010_DETAIL_GRID_LIST = '#ITP_COLLMNG01010_DETAIL_jqGrid_list';
|
|
17
|
+const COLLMNG01010_DETAIL_GRID_PAGER = '#ITP_COLLMNG01010_DETAIL_jqGridPager';
|
|
18
|
+const COLLMNG01010_DETAIL_GRID_EMPTY = '#ITP_COLLMNG01010_DETAIL_jqGridEmpty';
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+//API URL
|
|
22
|
+let API_RTNMNG_RTN_SPPLY_RTN_GRID_LIST = '/api/rtnmng/rtn/spply-rtn-grid-list';
|
|
23
|
+let API_RTNMNG_RTN_INFO_INFO_RTNODR = '/api/rtnmng/rtn/info-rtnOdr';
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+//화면 grid ColModel
|
|
27
|
+const gridColModel = {
|
|
28
|
+ list:[
|
|
29
|
+ {
|
|
30
|
+ index: 'VIEW_CD', name: 'viewCd',
|
|
31
|
+ label: ITP_MSG_LOCALE.label.viewCd,
|
|
32
|
+ width: '10', fixed: false, align: 'center',
|
|
33
|
+ sortable: false, hidden: true
|
|
34
|
+ },
|
|
35
|
+ {
|
|
36
|
+ index: 'BRAND_NM', name: 'brandNm',
|
|
37
|
+ label: ITP_MSG_LOCALE.label.brandNm, // 브랜드명
|
|
38
|
+ width: '10', fixed: false, align: 'center',
|
|
39
|
+ sortable: false, hidden: false
|
|
40
|
+ },
|
|
41
|
+ {
|
|
42
|
+ index: 'RTN_PODR_UNQ_NO', name: 'rtnPodrUnqNo',
|
|
43
|
+ label: ITP_MSG_LOCALE.label.rtnPodrUnqNo, // 반품발주번호
|
|
44
|
+ width: '10', fixed: false, align: 'center',
|
|
45
|
+ sortable: false, hidden: false
|
|
46
|
+ },
|
|
47
|
+ {
|
|
48
|
+ index: 'RTN_ODR_STNM', name: 'rtnOdrStNm',
|
|
49
|
+ label: ITP_MSG_LOCALE.label.rtnOdrStNm, // 번품발주상태명
|
|
50
|
+ width: '8', fixed: false, align: 'center',
|
|
51
|
+ sortable: false, hidden: false
|
|
52
|
+ },
|
|
53
|
+ {
|
|
54
|
+ index: 'RTN_ODR_REG_DT', name: 'rtnOdrRegDt',
|
|
55
|
+ label: ITP_MSG_LOCALE.label.rtnOdrRegDt, // 반품발주일자
|
|
56
|
+ width: '7', fixed: false, align: 'center',
|
|
57
|
+ sortable: false, hidden: false
|
|
58
|
+ },
|
|
59
|
+ {
|
|
60
|
+ index: 'COL_REQ_DT', name: 'colReqDt',
|
|
61
|
+ label: ITP_MSG_LOCALE.label.colReqDt, // 수거요청일
|
|
62
|
+ width: '7', fixed: false, align: 'center',
|
|
63
|
+ sortable: false, hidden: false
|
|
64
|
+ },
|
|
65
|
+ {
|
|
66
|
+ index: 'RTN_WHS_NM', name: 'rtnWhsNm',
|
|
67
|
+ label: ITP_MSG_LOCALE.label.rtnWhsNm, // 수거장소
|
|
68
|
+ width: '10', fixed: false, align: 'center',
|
|
69
|
+ sortable: false, hidden: false
|
|
70
|
+ },
|
|
71
|
+ {
|
|
72
|
+ index: 'RTN_DODR_TOTAL_AMT', name: 'rtnDodrTotalAmt',
|
|
73
|
+ label: ITP_MSG_LOCALE.label.rtnDodrTotalAmt, // 총 수거금액
|
|
74
|
+ width: '7', fixed: false, align: 'center',
|
|
75
|
+ sortable: false, hidden: false
|
|
76
|
+ },
|
|
77
|
+ {
|
|
78
|
+ index: 'RTN_DODR_ITEM_QTY', name: 'rtnDodrItemQty',
|
|
79
|
+ label: ITP_MSG_LOCALE.label.rtnDodrItemQty, // 수거품목수
|
|
80
|
+ width: '6', fixed: false, align: 'center',
|
|
81
|
+ sortable: false, hidden: false
|
|
82
|
+ },
|
|
83
|
+ {
|
|
84
|
+ index: 'RTN_MGR_NM', name: 'rtnMgrNm',
|
|
85
|
+ label: ITP_MSG_LOCALE.label.rtnMgrNm, // 수거 담당자
|
|
86
|
+ width: '7', fixed: false, align: 'center',
|
|
87
|
+ sortable: false, hidden: false
|
|
88
|
+ }
|
|
89
|
+ ],
|
|
90
|
+ view: [],
|
|
91
|
+ detail: [
|
|
92
|
+ {
|
|
93
|
+ index: 'RTN_PODR_DTL_NO', name: 'rtnPodrDtlNo',
|
|
94
|
+ label: ITP_MSG_LOCALE.label.rtnPodrDtlNo, // 반품발주항번
|
|
95
|
+ width: '10', fixed: false, align: 'center',
|
|
96
|
+ sortable: false, hidden: false
|
|
97
|
+ },
|
|
98
|
+ {
|
|
99
|
+ index: 'ITEM_ID', name: 'itemId',
|
|
100
|
+ label: ITP_MSG_LOCALE.label.itemId, // 품목번호
|
|
101
|
+ width: '10', fixed: false, align: 'center',
|
|
102
|
+ sortable: false, hidden: false
|
|
103
|
+ },
|
|
104
|
+ {
|
|
105
|
+ index: 'ITEM_NM', name: 'itemNm',
|
|
106
|
+ label: ITP_MSG_LOCALE.label.itemNm, // 품목명
|
|
107
|
+ width: '10', fixed: false, align: 'center',
|
|
108
|
+ sortable: false, hidden: false
|
|
109
|
+ },
|
|
110
|
+ {
|
|
111
|
+ index: 'UNIT_AMT', name: 'unitAmt',
|
|
112
|
+ label: ITP_MSG_LOCALE.label.unitAmt, // 단가
|
|
113
|
+ width: '10', fixed: false, align: 'center',
|
|
114
|
+ sortable: false, hidden: false
|
|
115
|
+ },
|
|
116
|
+ {
|
|
117
|
+ index: 'UNIT', name: 'unit',
|
|
118
|
+ label: ITP_MSG_LOCALE.label.unit, // 기본단위
|
|
119
|
+ width: '10', fixed: false, align: 'center',
|
|
120
|
+ sortable: false, hidden: false
|
|
121
|
+ },
|
|
122
|
+ {
|
|
123
|
+ index: 'RTN_REQ_QTY', name: 'rtnReqQty',
|
|
124
|
+ label: ITP_MSG_LOCALE.label.rtnReqQty, // 수거수량
|
|
125
|
+ width: '10', fixed: false, align: 'center',
|
|
126
|
+ sortable: false, hidden: false
|
|
127
|
+ },
|
|
128
|
+ {
|
|
129
|
+ index: 'RTN_AMT', name: 'rtnAmt',
|
|
130
|
+ label: ITP_MSG_LOCALE.label.rtnAmt, // 수거금액
|
|
131
|
+ width: '10', fixed: false, align: 'center',
|
|
132
|
+ sortable: false, hidden: false
|
|
133
|
+ },
|
|
134
|
+ {
|
|
135
|
+ index: 'COL_REQ_DT', name: 'colReqDt',
|
|
136
|
+ label: ITP_MSG_LOCALE.label.colReqDt, // 반품발주항번
|
|
137
|
+ width: '10', fixed: false, align: 'center',
|
|
138
|
+ sortable: false, hidden: false
|
|
139
|
+ }
|
|
140
|
+ ]
|
|
141
|
+};
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+/*화면공통 Object*/
|
|
145
|
+let pageObj = {
|
|
146
|
+ init: function() {
|
|
147
|
+ this.ui.init();
|
|
148
|
+ this.event.init();
|
|
149
|
+ },
|
|
150
|
+ ui: {
|
|
151
|
+ init: function() {
|
|
152
|
+ this.view();
|
|
153
|
+ this.grid();
|
|
154
|
+ this.ready();
|
|
155
|
+ },
|
|
156
|
+ view: function() {
|
|
157
|
+ // 버튼 권한설정
|
|
158
|
+ fn_proc_btn_auth('COLLMNG01010');
|
|
159
|
+ // 공통코드 표시
|
|
160
|
+ $('select').each(function() {
|
|
161
|
+ if($(this).data('select-code')) {
|
|
162
|
+ fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
|
|
163
|
+ }
|
|
164
|
+ });
|
|
165
|
+ // 조회일자 지정
|
|
166
|
+ var now = new Date();
|
|
167
|
+ var defaultToDate = new Date(now);
|
|
168
|
+ defaultToDate.setDate(now.getDate()+7);
|
|
169
|
+ $('#ITP_TAB_COLLMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
|
|
170
|
+ $('#ITP_FORM_COLLMNG01010_SEARCH_FROM_DT').datepicker('setDate', '2022.10.01');
|
|
171
|
+ $('#ITP_FORM_COLLMNG01010_SEARCH_TO_DT').datepicker('setDate', '2022.12.01');
|
|
172
|
+ },
|
|
173
|
+ grid: function() {
|
|
174
|
+ itp_fn_jqgrid_resize(COLLMNG01010_GRID_ID, COLLMNG01010_GRID_LIST, 'lg');
|
|
175
|
+ listObj.empty.init();
|
|
176
|
+ itp_fn_fire_window_resize();
|
|
177
|
+ },
|
|
178
|
+ ready: function() {
|
|
179
|
+ listObj.init();
|
|
180
|
+ }
|
|
181
|
+ },
|
|
182
|
+ event: {
|
|
183
|
+ init: function() {
|
|
184
|
+ this.button();
|
|
185
|
+ },
|
|
186
|
+ button: function() {
|
|
187
|
+ // 버튼 클릭 이벤트
|
|
188
|
+ $('button').each(function() {
|
|
189
|
+ var id = $(this).attr('id');
|
|
190
|
+ $(this).on('click', function() {
|
|
191
|
+ switch (id) {
|
|
192
|
+ case 'ITP_BTN_COLLMNG01010_SRH' : listObj.button.search(); break; // 조회 버튼 클릭
|
|
193
|
+ case 'ITP_BTN_COLLMNG01010_NEWREG' : listObj.button.create(); break; // 신규등록 버튼
|
|
194
|
+ case 'ITP_BTN_COLLMNG01010_MODIFY' : modifyObj.button.modify(); break; // 수정 버튼
|
|
195
|
+ case 'ITP_BTN_COLLMNG01010_CANCELLIST' : viewObj.button.cancel(); break; // 취소/목록 버튼
|
|
196
|
+ case 'ITP_BTN_COLLMNG01010_DELETE' : break; // 삭제 버튼
|
|
197
|
+ }
|
|
198
|
+ });
|
|
199
|
+ });
|
|
200
|
+ }
|
|
201
|
+ },
|
|
202
|
+ switchScreen: function(mode) {
|
|
203
|
+ $('.itp_det_head').find('button[id^="ITP_BTN_COLLMNG01010_"]').each(function(i) {
|
|
204
|
+ $(this).hide();
|
|
205
|
+ });
|
|
206
|
+ $('#ITP_TAB_COLLMNG01010').find('div[id$="_CONTAINER"]').each(function(i) {
|
|
207
|
+ $(this).hide();
|
|
208
|
+ });
|
|
209
|
+ if(mode == 'LIST') { // 목록
|
|
210
|
+ fn_show_btn_auth_array(['#ITP_BTN_COLLMNG01010_SRH', '#ITP_BTN_COLLMNG01010_NEWREG']);
|
|
211
|
+ $('#ITP_AJAX_COLLMNG01010_LIST_CONTAINER').show();
|
|
212
|
+ $('#ITP_FORM_COLLMNG01010_SEARCH #ITP_FORM_COLLMNG01010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
|
|
213
|
+ $('#ITP_FORM_COLLMNG01010_SEARCH #ITP_FORM_COLLMNG01010_SEARCH_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
|
|
214
|
+ $('#ITP_BTN_COLLMNG01010_SEARCH_WHS_NM').show();
|
|
215
|
+ $('#ITP_BTN_COLLMNG01010_DELETE_WHS_NM').show();
|
|
216
|
+ } else if(mode == 'ADD') { // 등록
|
|
217
|
+ $('#ITP_AJAX_COLLMNG01010_DETAIL_CONTAINER').show();
|
|
218
|
+ fn_show_btn_auth_array(['#ITP_BTN_COLLMNG01010_CANCELLIST', '#ITP_BTN_COLLMNG01010_SAVE']);
|
|
219
|
+
|
|
220
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
|
|
221
|
+ $(this).attr('id') === 'ITP_FORM_COLLMNG01010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
|
|
222
|
+ if(elem.type === 'select') {
|
|
223
|
+ $(this).val('').prop('selected', true);
|
|
224
|
+ }
|
|
225
|
+ });
|
|
226
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL #ITP_FORM_COLLMNG01010_DETAIL_FILE_NO').val('');
|
|
227
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_BRAND_ID').removeAttr('readonly');
|
|
228
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_BRAND_NM').removeAttr('readonly');
|
|
229
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_BSNS_REG_NO').removeAttr('readonly');
|
|
230
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_CORP_REG_NO').removeAttr('readonly');
|
|
231
|
+ // $('#ITP_FORM_COLLMNG01010_DETAIL_SEARCH_AFFL_SHOP').removeAttr('disabled');
|
|
232
|
+ // $('#ITP_FORM_COLLMNG01010_DETAIL_DELETE_AFFL_SHOP').removeAttr('disabled');
|
|
233
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_SEARCH_AFFL_SHOP').show();
|
|
234
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_DELETE_AFFL_SHOP').show();
|
|
235
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL .itp_form_info').hide();
|
|
236
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL .itp_form_change').show();
|
|
237
|
+
|
|
238
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL #ITP_FORM_COLLMNG01010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
|
|
239
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL #ITP_FORM_COLLMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
|
|
240
|
+
|
|
241
|
+ $('.fnBrandId').text('(자동부여)');
|
|
242
|
+ } else if(mode == 'MODIFY') { // 수정
|
|
243
|
+ $('#ITP_AJAX_COLLMNG01010_DETAIL_CONTAINER').show();
|
|
244
|
+ fn_show_btn_auth_array(['#ITP_BTN_COLLMNG01010_CANCELLIST', '#ITP_BTN_COLLMNG01010_SAVE']);
|
|
245
|
+
|
|
246
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_BRAND_ID').attr('readonly', true);
|
|
247
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_BRAND_NM').attr('readonly', true);
|
|
248
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_BSNS_REG_NO').attr('readonly', true);
|
|
249
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_CORP_REG_NO').attr('readonly', true);
|
|
250
|
+ // $('#ITP_FORM_COLLMNG01010_DETAIL_SEARCH_AFFL_SHOP').attr('disabled', true);
|
|
251
|
+ // $('#ITP_FORM_COLLMNG01010_DETAIL_DELETE_AFFL_SHOP').attr('disabled', true);
|
|
252
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_SEARCH_AFFL_SHOP').hide();
|
|
253
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL_DELETE_AFFL_SHOP').hide();
|
|
254
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL .itp_form_info').show();
|
|
255
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL .itp_form_change').hide();
|
|
256
|
+
|
|
257
|
+ $('#ITP_FORM_COLLMNG01010_DETAIL #ITP_FORM_COLLMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
|
|
258
|
+ } else if(mode == 'VIEW') { // 보기
|
|
259
|
+ $('#ITP_AJAX_COLLMNG01010_VIEW_CONTAINER').show();
|
|
260
|
+ fn_show_btn_auth_array(['#ITP_BTN_COLLMNG01010_MODIFY', '#ITP_BTN_COLLMNG01010_CANCELLIST']);
|
|
261
|
+ }
|
|
262
|
+ }
|
|
263
|
+};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+/*목록화면 Object*/
|
|
267
|
+let listObj = {
|
|
268
|
+ init: function() {
|
|
269
|
+ this.grid.init();
|
|
270
|
+ },
|
|
271
|
+ itp_COLLMNG01010_param: {},
|
|
272
|
+ itp_COLLMNG01010_search: false,
|
|
273
|
+ button: {
|
|
274
|
+ search: function() {
|
|
275
|
+ listObj.itp_COLLMNG01010_search = true;
|
|
276
|
+ let param = $('#ITP_FORM_COLLMNG01010_SEARCH').serializeObject();
|
|
277
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
278
|
+ param.gridPage = $.jgrid.defaults.page;
|
|
279
|
+ param.sbrandId = LOGIN_USER_INFO.sbrandId;
|
|
280
|
+ param.sspplyId = LOGIN_USER_INFO.spplyId;
|
|
281
|
+ param.sidx = '0';
|
|
282
|
+ console.log(JSON.stringify(param));
|
|
283
|
+ $(COLLMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
|
284
|
+ }
|
|
285
|
+ },
|
|
286
|
+ empty: {
|
|
287
|
+ init: function() {
|
|
288
|
+ var _this = this;
|
|
289
|
+ this.push();
|
|
290
|
+ $(COLLMNG01010_GRID_EMPTY).on('click', function() {
|
|
291
|
+ _this.back();
|
|
292
|
+ listObj.itp_COLLMNG01010_param.gridSize = $.jgrid.defaults.rowNum;
|
|
293
|
+ $(COLLMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(listObj.itp_COLLMNG01010_param)}).trigger('reloadGrid');
|
|
294
|
+ });
|
|
295
|
+ },
|
|
296
|
+ push: function() {
|
|
297
|
+ let param = $('#ITP_FORM_COLLMNG01010_SEARCH').serializeObject();
|
|
298
|
+ listObj.itp_COLLMNG01010_param = param;
|
|
299
|
+ listObj.itp_COLLMNG01010_param.sidx = '0';
|
|
300
|
+ },
|
|
301
|
+ back: function() {
|
|
302
|
+ $('#ITP_FORM_COLLMNG01010_SERVICE_BRAND_TYPE').val(listObj.itp_COLLMNG01010_param.brandType);
|
|
303
|
+ $('#ITP_FORM_COLLMNG01010_SERVICE_ST_CD').val(listObj.itp_COLLMNG01010_param.stCd);
|
|
304
|
+ $('#ITP_FORM_COLLMNG01010_SEARCH_BRAND_NM').val(listObj.itp_COLLMNG01010_param.brandNm);
|
|
305
|
+ console.log('here');
|
|
306
|
+ console.log(listObj.itp_COLLMNG01010_param);
|
|
307
|
+ }
|
|
308
|
+ },
|
|
309
|
+ grid: {
|
|
310
|
+ init: function() {
|
|
311
|
+ // 데이터 없을때
|
|
312
|
+ listObj.empty.push();
|
|
313
|
+ this.search();
|
|
314
|
+ },
|
|
315
|
+ colModel: gridColModel.list,
|
|
316
|
+ search: function() {
|
|
317
|
+ pageObj.switchScreen('LIST');
|
|
318
|
+ this.unload();
|
|
319
|
+ this.load();
|
|
320
|
+ },
|
|
321
|
+ load: function() {
|
|
322
|
+ let param = $('#ITP_FORM_COLLMNG01010_SEARCH').serializeObject();
|
|
323
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
324
|
+ param.sbrandId = 'BRD221100002';
|
|
325
|
+ param.sspplyId = 'SPY221100004';
|
|
326
|
+ param.sidx = '0';
|
|
327
|
+ console.log(JSON.stringify(param));
|
|
328
|
+ var option = {
|
|
329
|
+ gridId: COLLMNG01010_GRID_ID,
|
|
330
|
+ colModel: gridColModel.list,
|
|
331
|
+ param: param,
|
|
332
|
+ url: DOMAIN + API_RTNMNG_RTN_SPPLY_RTN_GRID_LIST,
|
|
333
|
+ pager: COLLMNG01010_GRID_PAGER,
|
|
334
|
+ onCellSelect: function(rowId, cellIdx, cellValue) {
|
|
335
|
+ var cm = $(this).jqGrid('getGridParam', 'colModel');
|
|
336
|
+ var colNm = cm[cellIdx].name;
|
|
337
|
+ if (colNm === 'pchPodrUnqNo') {
|
|
338
|
+ const pchPodrUnqNoVal = $(this).jqGrid('getCell', rowId, 'pchPodrUnqNo');
|
|
339
|
+ const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
|
|
340
|
+ const spplyIdVal = fn_make_user_info.get('spplyId');
|
|
341
|
+ const key = {pchPodrUnqNo: pchPodrUnqNoVal, brandId: brandIdVal, spplyId: spplyIdVal};
|
|
342
|
+ var param = $.param(key);
|
|
343
|
+ viewObj.init(param);
|
|
344
|
+ }
|
|
345
|
+ },
|
|
346
|
+ loadComplete: function(data) {
|
|
347
|
+ console.log(data);
|
|
348
|
+ itp_fn_grid_load_complete(data, COLLMNG01010_GRID_ID, true, 'number', 'COLLMNG01010', listObj.itp_COLLMNG01010_search, listObj.empty, true, data.gridRecords, true);
|
|
349
|
+ var ids = $(COLLMNG01010_GRID_ID).getDataIDs();
|
|
350
|
+ $.each(ids, function(idx, rowId) {
|
|
351
|
+ $(COLLMNG01010_GRID_ID).jqGrid('setCell', rowId, 'pchPodrUnqNo', '', ITP_GRID_COL_STYLE.link);
|
|
352
|
+ });
|
|
353
|
+ },
|
|
354
|
+ onPaging: function(action) {
|
|
355
|
+ itp_fn_grid_paging(COLLMNG01010_GRID_ID, action, param);
|
|
356
|
+ }
|
|
357
|
+ };
|
|
358
|
+ itp_fn_grid_make_remote(option);
|
|
359
|
+ },
|
|
360
|
+ clearData: function() {
|
|
361
|
+ $(COLLMNG01010_GRID_ID).jqGrid('clearGridData', true);
|
|
362
|
+ $(COLLMNG01010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
|
|
363
|
+ $(COLLMNG01010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
|
|
364
|
+ $(COLLMNG01010_GRID_EMPTY).show();
|
|
365
|
+ },
|
|
366
|
+ unload: function() {
|
|
367
|
+ $.jgrid.gridUnload(COLLMNG01010_GRID_ID);
|
|
368
|
+ }
|
|
369
|
+ }
|
|
370
|
+}
|