|
@@ -0,0 +1,436 @@
|
|
1
|
+require(['config'], function() {
|
|
2
|
+ require([], function($) {
|
|
3
|
+ listObj.init();
|
|
4
|
+ });
|
|
5
|
+});
|
|
6
|
+
|
|
7
|
+/********************************************************
|
|
8
|
+ --------------------------------------------------------
|
|
9
|
+ - Object 목록 -
|
|
10
|
+ --------------------------------------------------------
|
|
11
|
+ * const gridColModel = {} : 화면 Grid Object *
|
|
12
|
+ * let pageObj = {} : 화면공통 Object *
|
|
13
|
+ * let listObj = {} : 목록화면 Object *
|
|
14
|
+ * let viewObj = {} : 상세화면 Object *
|
|
15
|
+ * let modifyObj = {} : 수정화면 Object *
|
|
16
|
+ * let createObj = {} : 신규화면 Object *
|
|
17
|
+ *******************************************************/
|
|
18
|
+
|
|
19
|
+/*화면 변수*/
|
|
20
|
+const INOUTMNG01010_GRID_ID = '#ITP_INOUTMNG01010_jqGrid';
|
|
21
|
+const INOUTMNG01010_GRID_LIST = '#ITP_INOUTMNG01010_jqGrid_list';
|
|
22
|
+const INOUTMNG01010_GRID_PAGER = '#ITP_INOUTMNG01010_jqGridPager';
|
|
23
|
+const INOUTMNG01010_GRID_EMPTY = '#ITP_INOUTMNG01010_jqGridEmpty';
|
|
24
|
+
|
|
25
|
+let ITP_FORM_INOUTMNG01010_DETAIL_IS_WRITING = false;
|
|
26
|
+let INOUTMNG01010_LAST_ROW_ID;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+/*API URL*/
|
|
30
|
+let API_DETAIL_GRID_LIST = '/api/pomng/inoutmng/target-grid-list'; // 목록
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+/*화면 Grid ColModel*/
|
|
34
|
+const gridColModel = {
|
|
35
|
+ list: [
|
|
36
|
+ {
|
|
37
|
+ index: 'BRAND_ID', name: 'brandId',
|
|
38
|
+ label: ITP_MSG_LOCALE.label.brandId, //브랜드아이디
|
|
39
|
+ width: '13', fixed: false, align: 'center',
|
|
40
|
+ sortable: false, hidden: true
|
|
41
|
+ },
|
|
42
|
+ {
|
|
43
|
+ index: 'BRAND_NM', name: 'brandNm',
|
|
44
|
+ label: ITP_MSG_LOCALE.label.brandNm, //브랜드명
|
|
45
|
+ width: '10', fixed: false, align: 'center',
|
|
46
|
+ sortable: false, hidden: false
|
|
47
|
+ },
|
|
48
|
+ {
|
|
49
|
+ index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
|
|
50
|
+ label: ITP_MSG_LOCALE.label.pchPodrUnqNo, //구매발주번호
|
|
51
|
+ width: '10', fixed: false, align: 'center',
|
|
52
|
+ sortable: false, hidden: false
|
|
53
|
+ },
|
|
54
|
+ {
|
|
55
|
+ index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
|
|
56
|
+ label: ITP_MSG_LOCALE.label.pchPodrDtlNo, //구매발주항번
|
|
57
|
+ width: '10', fixed: false, align: 'center',
|
|
58
|
+ sortable: false, hidden: false
|
|
59
|
+ },
|
|
60
|
+ {
|
|
61
|
+ index: 'ITEM_ID', name: 'itemId',
|
|
62
|
+ label: ITP_MSG_LOCALE.label.itemId, //품목아이디
|
|
63
|
+ width: '10', fixed: false, align: 'center',
|
|
64
|
+ sortable: false, hidden: false
|
|
65
|
+ },
|
|
66
|
+ {
|
|
67
|
+ index: 'ITEM_NM', name: 'itemNm',
|
|
68
|
+ label: ITP_MSG_LOCALE.label.itemNm, //품목명
|
|
69
|
+ width: '10', fixed: false, align: 'left',
|
|
70
|
+ sortable: false, hidden: false
|
|
71
|
+ },
|
|
72
|
+ {
|
|
73
|
+ index: 'WHS_ID', name: 'whsId',
|
|
74
|
+ label: ITP_MSG_LOCALE.label.whsId, //납품창고아이디
|
|
75
|
+ width: '13', fixed: false, align: 'center',
|
|
76
|
+ sortable: false, hidden: true
|
|
77
|
+ },
|
|
78
|
+ {
|
|
79
|
+ index: 'WHS_NM', name: 'whsNm',
|
|
80
|
+ label: ITP_MSG_LOCALE.label.whsNm, //납품창고명
|
|
81
|
+ width: '15', fixed: false, align: 'left',
|
|
82
|
+ sortable: false, hidden: false
|
|
83
|
+ },
|
|
84
|
+ {
|
|
85
|
+ index: 'LOCATION', name: 'location',
|
|
86
|
+ label: ITP_MSG_LOCALE.label.location, //납품LOCATION
|
|
87
|
+ width: '15', fixed: false, align: 'center',
|
|
88
|
+ sortable: false, hidden: true
|
|
89
|
+ },
|
|
90
|
+ {
|
|
91
|
+ index: 'UNIT_AMT', name: 'unitAmt',
|
|
92
|
+ label: ITP_MSG_LOCALE.label.unitAmt, //단가
|
|
93
|
+ width: '6', fixed: false, align: 'right',
|
|
94
|
+ sortable: false, hidden: false,
|
|
95
|
+ formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
96
|
+ },
|
|
97
|
+ {
|
|
98
|
+ index: 'PODR_QTY', name: 'podrQty',
|
|
99
|
+ label: ITP_MSG_LOCALE.label.podrQty, //발주수량
|
|
100
|
+ width: '10', fixed: false, align: 'right',
|
|
101
|
+ sortable: false, hidden: false,
|
|
102
|
+ formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
103
|
+ },
|
|
104
|
+ {
|
|
105
|
+ index: 'SHMT_QTY', name: 'shmtQty',
|
|
106
|
+ label: ITP_MSG_LOCALE.label.shmtQty, //출고수량
|
|
107
|
+ width: '10', fixed: false, align: 'right',
|
|
108
|
+ sortable: true, editable: true, edittype: 'text',
|
|
109
|
+ editrules: {required: true, number:true},
|
|
110
|
+ formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
111
|
+ },
|
|
112
|
+ {
|
|
113
|
+ index: 'STCK_QTY', name: 'stckQty',
|
|
114
|
+ label: ITP_MSG_LOCALE.label.stckQty, //현 재고
|
|
115
|
+ width: '10', fixed: false, align: 'right',
|
|
116
|
+ sortable: false, hidden: false,
|
|
117
|
+ formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
118
|
+ },
|
|
119
|
+ {
|
|
120
|
+ index: 'EXPRY_YN', name: 'expryYn',
|
|
121
|
+ label: ITP_MSG_LOCALE.label.expryYn, //유통기한여부
|
|
122
|
+ width: '10', fixed: false, align: 'center',
|
|
123
|
+ sortable: false, hidden: false
|
|
124
|
+ },
|
|
125
|
+ {
|
|
126
|
+ index: 'EXPRY_PERIOD', name: 'expryPeriod',
|
|
127
|
+ label: ITP_MSG_LOCALE.label.expryPeriod, //유통기한기간
|
|
128
|
+ width: '10', fixed: false, align: 'center',
|
|
129
|
+ sortable: false, hidden: true
|
|
130
|
+ },
|
|
131
|
+ {
|
|
132
|
+ index: 'EXPRY_DATE', name: 'expryDate',
|
|
133
|
+ label: ITP_MSG_LOCALE.label.expryDate, //유통일자
|
|
134
|
+ width: '20', fixed: false, align: 'center',
|
|
135
|
+ sortable: false, hidden: false,
|
|
136
|
+ editable:true, sorttype:"date"
|
|
137
|
+ },
|
|
138
|
+ {
|
|
139
|
+ index: 'PODR_AMT', name: 'podrAmt',
|
|
140
|
+ label: ITP_MSG_LOCALE.label.podrAmt, //발주금액
|
|
141
|
+ width: '10', fixed: false, align: 'right',
|
|
142
|
+ sortable: false, hidden: false,
|
|
143
|
+ formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
144
|
+ },
|
|
145
|
+ {
|
|
146
|
+ index: 'DLV_REQ_DT', name: 'dlvReqDt',
|
|
147
|
+ label: ITP_MSG_LOCALE.label.dlvReqDt, //납품요청일
|
|
148
|
+ width: '10', fixed: false, align: 'center',
|
|
149
|
+ sortable: false, hidden: false
|
|
150
|
+ },
|
|
151
|
+ {
|
|
152
|
+ index: 'SHMT_WHS_ID', name: 'shmtWhsId',
|
|
153
|
+ label: ITP_MSG_LOCALE.label.shmtWhsId, //출고창고아이디
|
|
154
|
+ width: '10', fixed: false, align: 'right',
|
|
155
|
+ sortable: false, hidden: true
|
|
156
|
+ },
|
|
157
|
+ {
|
|
158
|
+ index: 'SHMT_LOCATION', name: 'shmtLocation',
|
|
159
|
+ label: ITP_MSG_LOCALE.label.shmtLocation, //출고LOCATION
|
|
160
|
+ width: '10', fixed: false, align: 'center',
|
|
161
|
+ sortable: false, hidden: true
|
|
162
|
+ },
|
|
163
|
+ {
|
|
164
|
+ index: 'SHMT_WHS_NM', name: 'shmtWhsNm',
|
|
165
|
+ label: ITP_MSG_LOCALE.label.shmtWhsNm, //출고창고명
|
|
166
|
+ width: '10', fixed: false, align: 'center',
|
|
167
|
+ sortable: false, hidden: false
|
|
168
|
+ }
|
|
169
|
+ ]
|
|
170
|
+};
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+/*목록화면 Object*/
|
|
175
|
+let listObj = {
|
|
176
|
+ init: function () {
|
|
177
|
+ this.view();
|
|
178
|
+ this.action();
|
|
179
|
+ this.event.init();
|
|
180
|
+ this.grid.init();
|
|
181
|
+ },
|
|
182
|
+ view: function() {
|
|
183
|
+ // 버튼 권한설정
|
|
184
|
+ fn_proc_btn_auth('INOUTMNG01010');
|
|
185
|
+
|
|
186
|
+ // 공통코드 표시
|
|
187
|
+ $('select').each(function() {
|
|
188
|
+ if($(this).data('select-code')) {
|
|
189
|
+ fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
|
|
190
|
+ }
|
|
191
|
+ });
|
|
192
|
+
|
|
193
|
+ var now = new Date();
|
|
194
|
+ $('#ITP_TAB_INOUTMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
|
|
195
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setDate(now.getDate())));
|
|
196
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_TO_DT').datepicker('setDate', new Date(now.setDate(now.getDate()+30)));
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+ },
|
|
200
|
+ itp_INOUTMNG01010_search: false,
|
|
201
|
+ button: {
|
|
202
|
+ search: function() {
|
|
203
|
+ console.log("search event");
|
|
204
|
+ listObj.itp_INOUTMNG01010_search = true;
|
|
205
|
+ let param = $('#ITP_FORM_INOUTMNG01010_SEARCH').serializeObject();
|
|
206
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
207
|
+ param.gridPage = $.jgrid.defaults.page;
|
|
208
|
+ param.sbrandId = fn_make_user_info.get('brandId');
|
|
209
|
+ $(INOUTMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
|
210
|
+ },
|
|
211
|
+ shmtout: function() {
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+ console.log("search event");
|
|
218
|
+ listObj.itp_INOUTMNG01010_search = true;
|
|
219
|
+ let param = $('#ITP_FORM_INOUTMNG01010_SEARCH').serializeObject();
|
|
220
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
221
|
+ param.gridPage = $.jgrid.defaults.page;
|
|
222
|
+ param.sbrandId = fn_make_user_info.get('brandId');
|
|
223
|
+ $(INOUTMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+ }
|
|
230
|
+ },
|
|
231
|
+ action: function () {
|
|
232
|
+ var _this = this;
|
|
233
|
+ // 납품장소 조회 버튼 클릭
|
|
234
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SHMT_WHS_NM').on('click', function() {
|
|
235
|
+ console.log("=================================");
|
|
236
|
+ _this.popup('S');
|
|
237
|
+ });
|
|
238
|
+ // 납품장소 텍스트 삭제 버튼 클릭
|
|
239
|
+ $('#ITP_FORM_INOUTMNG01010_DELETE_SHMT_WHS_NM').on('click', function() {
|
|
240
|
+ console.log("=================================");
|
|
241
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SSHMT_WHS_NM').val('');
|
|
242
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SSHMTWHS_ID').val('');
|
|
243
|
+
|
|
244
|
+ });
|
|
245
|
+
|
|
246
|
+ // 수정 화면에서의 납품장소 조회 버튼 클릭
|
|
247
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_WHS_NM').on('click', function() {
|
|
248
|
+ console.log("=================================");
|
|
249
|
+ _this.popup('W');
|
|
250
|
+ });
|
|
251
|
+ // 납품장소 텍스트 삭제 버튼 클릭
|
|
252
|
+ $('#ITP_FORM_INOUTMNG01010_DELETE_WHS_NM').on('click', function() {
|
|
253
|
+ console.log("=================================");
|
|
254
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SWHS_NM').val('');
|
|
255
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SWHS_ID').val('');
|
|
256
|
+ });
|
|
257
|
+
|
|
258
|
+ },
|
|
259
|
+ popup: function (arg) {
|
|
260
|
+ var popFn ;
|
|
261
|
+ // 팝업
|
|
262
|
+ if (arg == "S") {
|
|
263
|
+ popFn = this.callback.shmtwhs;
|
|
264
|
+ } else {
|
|
265
|
+ popFn = this.callback.whs;
|
|
266
|
+ }
|
|
267
|
+
|
|
268
|
+ const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
|
|
269
|
+ fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
|
|
270
|
+
|
|
271
|
+ },
|
|
272
|
+ callback: {
|
|
273
|
+ shmtwhs: function(rowDataPop) {
|
|
274
|
+ console.log(rowDataPop);
|
|
275
|
+ if(rowDataPop) {
|
|
276
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SSHMT_WHS_NM').val(rowDataPop.whsNm);
|
|
277
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SSHMTWHS_ID').val(rowDataPop.whsId);
|
|
278
|
+ }
|
|
279
|
+
|
|
280
|
+ },
|
|
281
|
+ whs: function(rowDataPop) {
|
|
282
|
+ console.log(rowDataPop);
|
|
283
|
+ if(rowDataPop) {
|
|
284
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SWHS_NM').val(rowDataPop.whsNm);
|
|
285
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SWHS_ID').val(rowDataPop.whsId);
|
|
286
|
+ }
|
|
287
|
+
|
|
288
|
+ }
|
|
289
|
+ },
|
|
290
|
+ event: {
|
|
291
|
+ init: function () {
|
|
292
|
+ this.button();
|
|
293
|
+ },
|
|
294
|
+ button: function () {
|
|
295
|
+ // 버튼 클릭 이벤트
|
|
296
|
+ $('button').each(function() {
|
|
297
|
+ var id = $(this).attr('id');
|
|
298
|
+ $(this).on('click', function() {
|
|
299
|
+ console.log("button");
|
|
300
|
+ console.log(id);
|
|
301
|
+ switch (id) {
|
|
302
|
+ case 'ITP_BTN_INOUTMNG01010_SRH' : listObj.button.search(); break; // 조회 버튼 클릭
|
|
303
|
+ case 'ITP_BTN_INOUTMNG01010_OUT' : listObj.button.shmtout(); break; // 출하지시 버튼
|
|
304
|
+
|
|
305
|
+ }
|
|
306
|
+ });
|
|
307
|
+ });
|
|
308
|
+
|
|
309
|
+ $('body').on('click', function(e) {
|
|
310
|
+ var gridId = INOUTMNG01010_GRID_ID.replace('#', '');
|
|
311
|
+ var rids = $(INOUTMNG01010_GRID_ID).jqGrid('getDataIDs');
|
|
312
|
+ var last_row_id = rids[rids.length - 1];
|
|
313
|
+
|
|
314
|
+ itp_fn_grid_reset_selection(e, last_row_id, gridId, 'INOUTMNG01010');
|
|
315
|
+ });
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+ }
|
|
319
|
+ },
|
|
320
|
+ empty: {
|
|
321
|
+ init: function() {
|
|
322
|
+ var _this = this;
|
|
323
|
+ this.push();
|
|
324
|
+ $(INOUTMNG01010_GRID_EMPTY).on('click', function() {
|
|
325
|
+ _this.back();
|
|
326
|
+ _this.itp_INOUTMNG01010_param.gridSize = $.jgrid.defaults.rowNum;
|
|
327
|
+ $(INOUTMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_INOUTMNG01010_param)}).trigger('reloadGrid');
|
|
328
|
+ });
|
|
329
|
+ },
|
|
330
|
+ itp_INOUTMNG01010_param: {},
|
|
331
|
+ push: function() {
|
|
332
|
+ let param = $('#ITP_FORM_INOUTMNG01010_SEARCH').serializeObject();
|
|
333
|
+ listObj.itp_INOUTMNG01010_param = param;
|
|
334
|
+ },
|
|
335
|
+ back: function() {
|
|
336
|
+ /*
|
|
337
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_FROM_DT').val(this.itp_INOUTMNG01010_param.fromDt);
|
|
338
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_TO_DT').val(this.itp_INOUTMNG01010_param.toDt);
|
|
339
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SPPLY_ID').val(this.itp_INOUTMNG01010_param.sspplyId);
|
|
340
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_SPPLY_NM').val(this.itp_INOUTMNG01010_param.sspplyNm);
|
|
341
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_WHS_NM').val(this.itp_INOUTMNG01010_param.swhsNm);
|
|
342
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_WHS_ID').val(this.itp_INOUTMNG01010_param.swhsId);
|
|
343
|
+ $('#ITP_FORM_INOUTMNG01010_SEARCH_ITEM_NM').val(this.itp_INOUTMNG01010_param.sitemNm);
|
|
344
|
+ */
|
|
345
|
+ }
|
|
346
|
+ },
|
|
347
|
+ grid: {
|
|
348
|
+ init: function () {
|
|
349
|
+ // 데이터 없을때
|
|
350
|
+ listObj.empty.push();
|
|
351
|
+ itp_fn_jqgrid_resize(INOUTMNG01010_GRID_ID, INOUTMNG01010_GRID_LIST, 'lg');
|
|
352
|
+ itp_fn_fire_window_resize();
|
|
353
|
+ this.search();
|
|
354
|
+
|
|
355
|
+ },
|
|
356
|
+ colModel: gridColModel.list,
|
|
357
|
+ search: function() {
|
|
358
|
+ this.unload();
|
|
359
|
+ this.load();
|
|
360
|
+ },
|
|
361
|
+ load: function() {
|
|
362
|
+ let param = $('#ITP_FORM_INOUTMNG01010_SEARCH').serializeObject();
|
|
363
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
364
|
+ param.sbrandId = fn_make_user_info.get('brandId');
|
|
365
|
+
|
|
366
|
+ var option = {
|
|
367
|
+ multiselect: true,
|
|
368
|
+ autowidth: true,
|
|
369
|
+ gridId: INOUTMNG01010_GRID_ID,
|
|
370
|
+ colModel: gridColModel.list,
|
|
371
|
+ param: param,
|
|
372
|
+ url: DOMAIN + API_DETAIL_GRID_LIST,
|
|
373
|
+ pager: INOUTMNG01010_GRID_PAGER,
|
|
374
|
+
|
|
375
|
+ onCellSelect: function(rowid, cellIdx, cellValue) {
|
|
376
|
+ INOUTMNG01010_LAST_ROW_ID = itp_fn_set_data_editable(rowid, cellIdx, INOUTMNG01010_LAST_ROW_ID, INOUTMNG01010_GRID_ID, ['pchPodrUnqNo']);
|
|
377
|
+ /*
|
|
378
|
+ if(rowid && rowid!==INOUTMNG01010_LAST_ROW_ID){
|
|
379
|
+ console.log("onCellSelect if in");
|
|
380
|
+ console.log(INOUTMNG01010_LAST_ROW_ID);
|
|
381
|
+ jQuery(INOUTMNG01010_GRID_ID).jqGrid('restoreRow',INOUTMNG01010_LAST_ROW_ID);
|
|
382
|
+ jQuery(INOUTMNG01010_GRID_ID).jqGrid('editRow',rowid,true,pickdates);
|
|
383
|
+ INOUTMNG01010_LAST_ROW_ID=rowid;
|
|
384
|
+ }
|
|
385
|
+
|
|
386
|
+ function pickdates(rowid){
|
|
387
|
+ console.log("pickdates if in");
|
|
388
|
+ jQuery("#"+id+"_expryDate",INOUTMNG01010_GRID_ID).datepicker({dateFormat:"yyyy.mm.dd"});
|
|
389
|
+ }
|
|
390
|
+ */
|
|
391
|
+ },
|
|
392
|
+ /*
|
|
393
|
+ onSelectRow: function(id){
|
|
394
|
+ console.log("onSelectRow");
|
|
395
|
+ console.log(id);
|
|
396
|
+ if(id && id!==INOUTMNG01010_LAST_ROW_ID){
|
|
397
|
+ console.log("onSelectRow if in");
|
|
398
|
+ console.log(INOUTMNG01010_LAST_ROW_ID);
|
|
399
|
+ jQuery(INOUTMNG01010_GRID_ID).jqGrid('restoreRow',INOUTMNG01010_LAST_ROW_ID);
|
|
400
|
+ jQuery(INOUTMNG01010_GRID_ID).jqGrid('editRow',id,true,pickdates);
|
|
401
|
+ INOUTMNG01010_LAST_ROW_ID=id;
|
|
402
|
+ }
|
|
403
|
+
|
|
404
|
+ function pickdates(id){
|
|
405
|
+ console.log("pickdates if in");
|
|
406
|
+ jQuery("#"+id+"_expryDate",INOUTMNG01010_GRID_ID).datepicker({dateFormat:"yyyy.mm.dd"});
|
|
407
|
+ }
|
|
408
|
+ }, */
|
|
409
|
+ loadComplete: function(data) {
|
|
410
|
+ itp_fn_grid_load_complete(data, INOUTMNG01010_GRID_ID, true, 'number', 'INOUTMNG01010', listObj.itp_INOUTMNG01010_search, listObj.empty, true, data.gridRecords, true);
|
|
411
|
+ var ids = $(INOUTMNG01010_GRID_ID).getDataIDs();
|
|
412
|
+ $.each(ids, function(idx, rowId) {
|
|
413
|
+ $(INOUTMNG01010_GRID_ID).jqGrid('setCell', rowId, 'storeId', '', ITP_GRID_COL_STYLE.link);
|
|
414
|
+ });
|
|
415
|
+ },
|
|
416
|
+ onPaging: function(action) {
|
|
417
|
+ itp_fn_grid_paging(INOUTMNG01010_GRID_ID, action, param);
|
|
418
|
+ }
|
|
419
|
+ };
|
|
420
|
+ itp_fn_grid_make_remote(option);
|
|
421
|
+ },
|
|
422
|
+ button: {
|
|
423
|
+ },
|
|
424
|
+ unload : function() {
|
|
425
|
+ $.jgrid.gridUnload(INOUTMNG01010_GRID_ID);
|
|
426
|
+ },
|
|
427
|
+ clearData : function() {
|
|
428
|
+ $(INOUTMNG01010_GRID_ID).jqGrid('clearGridData', true);
|
|
429
|
+ $(INOUTMNG01010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
|
|
430
|
+ $(INOUTMNG01010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
|
|
431
|
+ $(INOUTMNG01010_GRID_EMPTY).show();
|
|
432
|
+ }
|
|
433
|
+ }
|
|
434
|
+};
|
|
435
|
+
|
|
436
|
+
|