|
@@ -0,0 +1,449 @@
|
|
1
|
+require(['config'], function() {
|
|
2
|
+ require([
|
|
3
|
+ ], function($) {
|
|
4
|
+ pageObj.init();
|
|
5
|
+ });
|
|
6
|
+});
|
|
7
|
+
|
|
8
|
+console.log(CONN_KEY);
|
|
9
|
+/********************************************************
|
|
10
|
+ --------------------------------------------------------
|
|
11
|
+ - Object 목록 -
|
|
12
|
+ --------------------------------------------------------
|
|
13
|
+ * const gridColModel = {} : 화면 Grid Object *
|
|
14
|
+ * let pageObj = {} : 화면공통 Object *
|
|
15
|
+ * let listObj = {} : 목록화면 Object *
|
|
16
|
+ * let viewObj = {} : 상세화면 Object *
|
|
17
|
+ * let modifyObj = {} : 수정화면 Object *
|
|
18
|
+ * let createObj = {} : 신규화면 Object *
|
|
19
|
+ *******************************************************/
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+/*화면 변수*/
|
|
23
|
+const OPER07010_BRAND_GRID_ID = '#ITP_OPER07010_brand_jqGrid';
|
|
24
|
+const OPER07010_BRAND_GRID_LIST = '#ITP_OPER07010_brand_jqGrid_list';
|
|
25
|
+const OPER07010_BRAND_GRID_PAGER = '#ITP_OPER07010_brand_jqGridPager';
|
|
26
|
+const OPER07010_BRAND_GRID_EMPTY = '#ITP_OPER07010_brand_jqGridEmpty';
|
|
27
|
+
|
|
28
|
+const OPER07010_STORE_GRID_ID = '#ITP_OPER07010_store_jqGrid';
|
|
29
|
+const OPER07010_STORE_GRID_LIST = '#ITP_OPER07010_store_jqGrid_list';
|
|
30
|
+const OPER07010_STORE_GRID_PAGER = '#ITP_OPER07010_store_jqGridPager';
|
|
31
|
+const OPER07010_STORE_GRID_EMPTY = '#ITP_OPER07010_store_jqGridEmpty';
|
|
32
|
+
|
|
33
|
+let ITP_COMMON_LOAN_DVSN = fn_make_common_cd_list(CODE_LIST, 'LOAN_DVSN', true, '여신구분');
|
|
34
|
+let OPER07010_STORE_GRID_LAST_ROW_ID;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+/*API URL*/
|
|
38
|
+let API_BRAND_BRAND_ING_INFO = '/api/brand/brand-ing-info';
|
|
39
|
+let API_BRAND_STORE_ING_INFO = '/api/brand/store-ing-list';
|
|
40
|
+let API_BRAND_CHANGE_BRAND_SHCO = '/api/brand/change-brand-shco';
|
|
41
|
+let API_STORE_CHANGE_STORE_LOAN = '/api/store/change-store-loan';
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+/*화면 Grid Object*/
|
|
45
|
+const gridColModel = {
|
|
46
|
+ brand: [
|
|
47
|
+ {
|
|
48
|
+ index: 'BRAND_ID', name: 'brandId',
|
|
49
|
+ label: '브랜드ID',
|
|
50
|
+ width: '10', fixed: false, align: 'center',
|
|
51
|
+ sortable: false, hidden: true
|
|
52
|
+ },
|
|
53
|
+ {
|
|
54
|
+ index: 'BRAND_ID', name: 'brandNm',
|
|
55
|
+ label: '브랜드명',
|
|
56
|
+ width: '10', fixed: false, align: 'center',
|
|
57
|
+ sortable: false, hidden: false, classes: 'ui-ellipsis'
|
|
58
|
+ },
|
|
59
|
+ {
|
|
60
|
+ index: 'SHMT_COL_PROC_TYPE', name: 'shmtColProcType',
|
|
61
|
+ label: '출하수거처리구분코드',
|
|
62
|
+ width: '10', fixed: false, align: 'center',
|
|
63
|
+ sortable: false, hidden: true
|
|
64
|
+ },
|
|
65
|
+ {
|
|
66
|
+ index: 'SHMT_COL_PROC_TYPE_Nm', name: 'shmtColProcTypeNm',
|
|
67
|
+ label: '출하수거처리구분',
|
|
68
|
+ width: '10', fixed: false, align: 'center',
|
|
69
|
+ sortable: false, hidden: false
|
|
70
|
+ },
|
|
71
|
+ {
|
|
72
|
+ index: 'PCH_CNT', name: 'pchCnt',
|
|
73
|
+ label: '발주요청건수',
|
|
74
|
+ width: '10', fixed: false, align: 'center',
|
|
75
|
+ sortable: false, hidden: false
|
|
76
|
+ },
|
|
77
|
+ {
|
|
78
|
+ index: 'PODR_CNT', name: 'podrCnt',
|
|
79
|
+ label: '발주진행건수',
|
|
80
|
+ width: '10', fixed: false, align: 'center',
|
|
81
|
+ sortable: false, hidden: false
|
|
82
|
+ },
|
|
83
|
+ {
|
|
84
|
+ index: 'DLV_CNT', name: 'dlvCnt',
|
|
85
|
+ label: '입고대기건수',
|
|
86
|
+ width: '10', fixed: false, align: 'center',
|
|
87
|
+ sortable: false, hidden: false
|
|
88
|
+ },
|
|
89
|
+ {
|
|
90
|
+ index: 'RPCH_CNT', name: 'rpchCnt',
|
|
91
|
+ label: '반품요청건수',
|
|
92
|
+ width: '10', fixed: false, align: 'center',
|
|
93
|
+ sortable: false, hidden: false
|
|
94
|
+ },
|
|
95
|
+ {
|
|
96
|
+ index: 'RODR_CNT', name: 'rodrCnt',
|
|
97
|
+ label: '반품진행건수',
|
|
98
|
+ width: '10', fixed: false, align: 'center',
|
|
99
|
+ sortable: false, hidden: false
|
|
100
|
+ },
|
|
101
|
+ {
|
|
102
|
+ index: 'PICK_CNT', name: 'pickCnt',
|
|
103
|
+ label: '수거대기건수',
|
|
104
|
+ width: '10', fixed: false, align: 'center',
|
|
105
|
+ sortable: false, hidden: false
|
|
106
|
+ },
|
|
107
|
+ {
|
|
108
|
+ index: 'CHG_PASS_YN', name: 'chgPassYn',
|
|
109
|
+ label: '변경여부',
|
|
110
|
+ width: '10', fixed: false, align: 'center',
|
|
111
|
+ sortable: false, hidden: true
|
|
112
|
+ }
|
|
113
|
+ ],
|
|
114
|
+ store: [
|
|
115
|
+ {
|
|
116
|
+ index: 'VIEW_CD', name: 'viewCd',
|
|
117
|
+ label: ITP_MSG_LOCALE.label.viewCd,
|
|
118
|
+ width: '10', fixed: false, align: 'center',
|
|
119
|
+ sortable: false, hidden: true
|
|
120
|
+ },
|
|
121
|
+ {
|
|
122
|
+ index: 'BRAND_ID', name: 'brandId',
|
|
123
|
+ label: '브랜드ID',
|
|
124
|
+ width: '10', fixed: false, align: 'center',
|
|
125
|
+ sortable: false, hidden: true
|
|
126
|
+ },
|
|
127
|
+ {
|
|
128
|
+ index: 'STORE_ID', name: 'storeId',
|
|
129
|
+ label: '매장ID',
|
|
130
|
+ width: '10', fixed: false, align: 'center',
|
|
131
|
+ sortable: false, hidden: true, classes: 'ui-ellipsis'
|
|
132
|
+ },
|
|
133
|
+ {
|
|
134
|
+ index: 'STORE_NM', name: 'storeNm',
|
|
135
|
+ label: '매장명',
|
|
136
|
+ width: '10', fixed: false, align: 'center',
|
|
137
|
+ sortable: false, hidden: false, classes: 'ui-ellipsis'
|
|
138
|
+ },
|
|
139
|
+ {
|
|
140
|
+ index: 'LOAN_DVSN_NM', name: 'loanDvsnNm',
|
|
141
|
+ label: '여신구분',
|
|
142
|
+ width: '10', fixed: false, align: 'center',
|
|
143
|
+ sortable: false, hidden: false
|
|
144
|
+ },
|
|
145
|
+ {
|
|
146
|
+ index: 'PCH_CNT', name: 'pchCnt',
|
|
147
|
+ label: '발주요청건수',
|
|
148
|
+ width: '10', fixed: false, align: 'center',
|
|
149
|
+ sortable: false, hidden: false
|
|
150
|
+ },
|
|
151
|
+ {
|
|
152
|
+ index: 'PODR_CNT', name: 'podrCnt',
|
|
153
|
+ label: '발주진행건수',
|
|
154
|
+ width: '10', fixed: false, align: 'center',
|
|
155
|
+ sortable: false, hidden: false
|
|
156
|
+ },
|
|
157
|
+ {
|
|
158
|
+ index: 'DLV_CNT', name: 'dlvCnt',
|
|
159
|
+ label: '입고대기건수',
|
|
160
|
+ width: '10', fixed: false, align: 'center',
|
|
161
|
+ sortable: false, hidden: false
|
|
162
|
+ },
|
|
163
|
+ {
|
|
164
|
+ index: 'RPCH_CNT', name: 'rpchCnt',
|
|
165
|
+ label: '반품요청건수',
|
|
166
|
+ width: '10', fixed: false, align: 'center',
|
|
167
|
+ sortable: false, hidden: false
|
|
168
|
+ },
|
|
169
|
+ {
|
|
170
|
+ index: 'RODR_CNT', name: 'rodrCnt',
|
|
171
|
+ label: '반품진행건수',
|
|
172
|
+ width: '10', fixed: false, align: 'center',
|
|
173
|
+ sortable: false, hidden: false
|
|
174
|
+ },
|
|
175
|
+ {
|
|
176
|
+ index: 'PICK_CNT', name: 'pickCnt',
|
|
177
|
+ label: '수거대기건수',
|
|
178
|
+ width: '10', fixed: false, align: 'center',
|
|
179
|
+ sortable: false, hidden: false
|
|
180
|
+ },
|
|
181
|
+ {
|
|
182
|
+ index: 'LOAN_DVSN', name: 'loanDvsn',
|
|
183
|
+ label: '여신구분코드',
|
|
184
|
+ width: '10', fixed: false, align: 'center',
|
|
185
|
+ sortable: false, editable: true, formatter: 'select', edittype: 'select',
|
|
186
|
+ editoptions: {value: ITP_COMMON_LOAN_DVSN}
|
|
187
|
+ },
|
|
188
|
+ {
|
|
189
|
+ index: 'CREDT_LIMT_AMT', name: 'credtLimtAmt',
|
|
190
|
+ label: '후불한도',
|
|
191
|
+ width: '10', fixed: false, align: 'center',
|
|
192
|
+ sortable: false, hidden: false, editable: true, edittype: 'text'
|
|
193
|
+ },
|
|
194
|
+ {
|
|
195
|
+ index: 'CHG_PASS_YN', name: 'chgPassYn',
|
|
196
|
+ label: '변경여부',
|
|
197
|
+ width: '10', fixed: false, align: 'center',
|
|
198
|
+ sortable: false, hidden: false
|
|
199
|
+ }
|
|
200
|
+ ]
|
|
201
|
+};
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+/*화면공통 Object*/
|
|
205
|
+let pageObj = {
|
|
206
|
+ init: function () {
|
|
207
|
+ this.ui.init();
|
|
208
|
+ this.event.init();
|
|
209
|
+ },
|
|
210
|
+ ui: {
|
|
211
|
+ init: function () {
|
|
212
|
+ this.view();
|
|
213
|
+ this.grid();
|
|
214
|
+ this.ready();
|
|
215
|
+ },
|
|
216
|
+ view: function() {
|
|
217
|
+ // 버튼 권한설정
|
|
218
|
+ fn_proc_btn_auth('OPER07010');
|
|
219
|
+
|
|
220
|
+ // 공통코드 표시
|
|
221
|
+ $('select').each(function() {
|
|
222
|
+ if($(this).data('select-code')) {
|
|
223
|
+ fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
|
|
224
|
+ }
|
|
225
|
+ });
|
|
226
|
+
|
|
227
|
+ // form alert message 주입
|
|
228
|
+ $('input[data-alert-required="ONLYCHK"]').each(function() {
|
|
229
|
+ if($(this).data('alert-msg') === 'address') {
|
|
230
|
+ $(this).data('alert-msg', ITP_MSG_LOCALE.message.form.emptyAddr);
|
|
231
|
+ }
|
|
232
|
+ });
|
|
233
|
+ },
|
|
234
|
+ grid: function() {
|
|
235
|
+
|
|
236
|
+ },
|
|
237
|
+ ready: function() {
|
|
238
|
+ listObj.init();
|
|
239
|
+ // 브랜드그룹 조회
|
|
240
|
+ afflShopObj.init();
|
|
241
|
+ }
|
|
242
|
+ },
|
|
243
|
+ event: {
|
|
244
|
+ init: function () {
|
|
245
|
+ this.button();
|
|
246
|
+ },
|
|
247
|
+ button: function () {
|
|
248
|
+ // 버튼 클릭 이벤트
|
|
249
|
+ $('button').each(function() {
|
|
250
|
+ var id = $(this).attr('id');
|
|
251
|
+ $(this).on('click', function() {
|
|
252
|
+ switch (id) {
|
|
253
|
+ case 'ITP_BTN_OPER07010_SRH' : listObj.button.search(); break; // 조회 버튼 클릭
|
|
254
|
+ case 'ITP_BTN_OPER07010_MODIFY' : listObj.button.modify(); break; // 수정 버튼
|
|
255
|
+ }
|
|
256
|
+ });
|
|
257
|
+ });
|
|
258
|
+
|
|
259
|
+ $('body').on('click', function(e) {
|
|
260
|
+ var gridId = OPER07010_STORE_GRID_ID.replace('#', '');
|
|
261
|
+ itp_fn_grid_reset_selection(e, OPER07010_STORE_GRID_LAST_ROW_ID, gridId, 'OPER07010');
|
|
262
|
+ })
|
|
263
|
+ }
|
|
264
|
+ },
|
|
265
|
+ switchScreen: function(mode) {
|
|
266
|
+ $('.itp_det_head').find('button[id^="ITP_BTN_OPER07010_"]').each(function(i) {
|
|
267
|
+ $(this).hide();
|
|
268
|
+ });
|
|
269
|
+ $('#ITP_TAB_OPER07010').find('div[id$="_CONTAINER"]').each(function(i) {
|
|
270
|
+ $(this).hide();
|
|
271
|
+ });
|
|
272
|
+ if (mode == 'LIST') { // 목록
|
|
273
|
+ itp_fn_fire_window_resize();
|
|
274
|
+ $('#ITP_AJAX_OPER07010_LIST_CONTAINER').show();
|
|
275
|
+ $('#ITP_FORM_OPER07010_SEARCH').show();
|
|
276
|
+ $('#ITP_BTN_OPER07010_SRH').show();
|
|
277
|
+ $('#ITP_FORM_OPER07010_DELETE_AFFL_SHOP_BTN').show();
|
|
278
|
+ $('#ITP_FORM_OPER07010_SEARCH_AFFL_SHOP_BTN').show();
|
|
279
|
+ $('#ITP_BTN_OPER07010_MODIFY').show();
|
|
280
|
+ } else if(mode == 'ADD') { // 등록
|
|
281
|
+ } else if(mode == 'MODIFY') { // 수정
|
|
282
|
+ } else if(mode == 'VIEW') { // 보기
|
|
283
|
+ }
|
|
284
|
+ }
|
|
285
|
+};
|
|
286
|
+
|
|
287
|
+/*목록화면 Object*/
|
|
288
|
+let listObj = {
|
|
289
|
+ init: function () {
|
|
290
|
+ //this.grid_brand.init();
|
|
291
|
+ this.grid_store.init();
|
|
292
|
+ },
|
|
293
|
+ button: {
|
|
294
|
+ search: function() {
|
|
295
|
+ //listObj.grid_brand.itp_OPER07010_search = true;
|
|
296
|
+ listObj.grid_store.itp_OPER07010_search = true;
|
|
297
|
+ let param = $('#ITP_FORM_OPER07010_SEARCH').serializeObject();
|
|
298
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
299
|
+ param.gridPage = $.jgrid.defaults.page;
|
|
300
|
+ // console.log(JSON.stringify(param));
|
|
301
|
+ listObj.load(param);
|
|
302
|
+ // $(OPER07010_BRAND_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
|
303
|
+ $(OPER07010_STORE_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
|
304
|
+ },
|
|
305
|
+ modify: function() {
|
|
306
|
+ listObj.grid_store.itp_OPER07010_search = true;
|
|
307
|
+ let param = $('#ITP_FORM_OPER07010_SEARCH').serializeObject();
|
|
308
|
+ param.shmtColProcType = $('#ITP_FORM_OPER07010_SEARCH_SHMT_COL_PROC_TYPE').val();
|
|
309
|
+ console.log(param);
|
|
310
|
+ var searchFn = function() {
|
|
311
|
+ listObj.load(param);
|
|
312
|
+ $(OPER07010_STORE_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
|
313
|
+ }
|
|
314
|
+ fn_ajax_call(API_BRAND_CHANGE_BRAND_SHCO, JSON.stringify(param), searchFn, 'POST');
|
|
315
|
+ }
|
|
316
|
+ },
|
|
317
|
+ empty: {
|
|
318
|
+ },
|
|
319
|
+ load: function(param) {
|
|
320
|
+ fn_ajax_call(API_BRAND_BRAND_ING_INFO, param, this.callback, 'GET');
|
|
321
|
+ },
|
|
322
|
+ callback: function(result) {
|
|
323
|
+ listObj.grid_brand.init(result);
|
|
324
|
+ },
|
|
325
|
+ grid_brand: {
|
|
326
|
+ init: function (gridData) {
|
|
327
|
+ let gridDataArr = [];
|
|
328
|
+ gridDataArr.push(gridData);
|
|
329
|
+ this.gridId = OPER07010_BRAND_GRID_ID;
|
|
330
|
+ this.gridList = OPER07010_BRAND_GRID_LIST;
|
|
331
|
+ this.gridEmpty = OPER07010_BRAND_GRID_EMPTY;
|
|
332
|
+ this.gridData = gridData;
|
|
333
|
+ this.unload();
|
|
334
|
+ this.load(gridDataArr);
|
|
335
|
+ },
|
|
336
|
+ gridId: '',
|
|
337
|
+ gridList: '',
|
|
338
|
+ gridEmpty: '',
|
|
339
|
+ gridRows: '',
|
|
340
|
+ // itp_OPER07010_param: {},
|
|
341
|
+ // itp_OPER07010_search: false,
|
|
342
|
+ colModel: gridColModel.brand,
|
|
343
|
+ load: function(gridData) {
|
|
344
|
+ var _this = this;
|
|
345
|
+ var option = {
|
|
346
|
+ gridId: _this.gridId,
|
|
347
|
+ colModel: gridColModel.brand,
|
|
348
|
+ data: gridData,
|
|
349
|
+ loadComplete: function(data) {
|
|
350
|
+ console.log(data);
|
|
351
|
+ $(_this.gridList).find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'hidden');
|
|
352
|
+ (Array.isArray(data.rows) && data.rows.length === 0) ? $(_this.gridEmpty).show() : $(_this.gridEmpty).hide();
|
|
353
|
+ }
|
|
354
|
+ };
|
|
355
|
+ itp_fn_grid_make_local(option);
|
|
356
|
+ },
|
|
357
|
+ reload : function() {
|
|
358
|
+ },
|
|
359
|
+ clearData : function() {
|
|
360
|
+ $(OPER07010_BRAND_GRID_ID).jqGrid('clearGridData', true);
|
|
361
|
+ $(OPER07010_BRAND_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
|
|
362
|
+ $(OPER07010_BRAND_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
|
|
363
|
+ $(OPER07010_BRAND_GRID_EMPTY).show();
|
|
364
|
+ },
|
|
365
|
+ unload : function() {
|
|
366
|
+ $.jgrid.gridUnload(this.gridId);
|
|
367
|
+ }
|
|
368
|
+ },
|
|
369
|
+ grid_store: {
|
|
370
|
+ init: function () {
|
|
371
|
+ this.search();
|
|
372
|
+ },
|
|
373
|
+ itp_OPER07010_param: {},
|
|
374
|
+ itp_OPER07010_search: false,
|
|
375
|
+ colModel: gridColModel.store,
|
|
376
|
+ search: function() {
|
|
377
|
+ pageObj.switchScreen('LIST');
|
|
378
|
+ this.unload();
|
|
379
|
+ this.load();
|
|
380
|
+ },
|
|
381
|
+ load: function() {
|
|
382
|
+ let param = $('#ITP_FORM_OPER07010_SEARCH').serializeObject();
|
|
383
|
+ param.gridSize = $.jgrid.defaults.rowNum;
|
|
384
|
+ var option = {
|
|
385
|
+ gridId: OPER07010_STORE_GRID_ID,
|
|
386
|
+ colModel: gridColModel.store,
|
|
387
|
+ param: param,
|
|
388
|
+ url: DOMAIN + API_BRAND_STORE_ING_INFO,
|
|
389
|
+ pager: OPER07010_STORE_GRID_PAGER,
|
|
390
|
+ onCellSelect: function(rowId, cellIdx, celValue) {
|
|
391
|
+ OPER07010_STORE_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowId, cellIdx, OPER07010_STORE_GRID_LAST_ROW_ID, OPER07010_STORE_GRID_ID), ['actionId'];
|
|
392
|
+ },
|
|
393
|
+ loadComplete: function(data) {
|
|
394
|
+ // console.log(data);
|
|
395
|
+ itp_fn_grid_load_complete(data, OPER07010_STORE_GRID_ID, true, 'number', 'OPER07010', listObj.itp_OPER07010_search, listObj.empty, true, data.gridRecords, true);
|
|
396
|
+ },
|
|
397
|
+ onPaging: function(action) {
|
|
398
|
+ itp_fn_grid_paging(OPER07010_STORE_GRID_ID, action, param);
|
|
399
|
+ }
|
|
400
|
+ };
|
|
401
|
+ itp_fn_grid_make_remote(option);
|
|
402
|
+ },
|
|
403
|
+ reload : function() {
|
|
404
|
+ },
|
|
405
|
+ clearData : function() {
|
|
406
|
+ $(OPER07010_STORE_GRID_ID).jqGrid('clearGridData', true);
|
|
407
|
+ $(OPER07010_STORE_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
|
|
408
|
+ $(OPER07010_STORE_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
|
|
409
|
+ $(OPER07010_STORE_GRID_EMPTY).show();
|
|
410
|
+ },
|
|
411
|
+ unload : function() {
|
|
412
|
+ $.jgrid.gridUnload(OPER07010_STORE_GRID_ID);
|
|
413
|
+ }
|
|
414
|
+ }
|
|
415
|
+};
|
|
416
|
+
|
|
417
|
+/*브랜드그룹 조회 Object*/
|
|
418
|
+let afflShopObj = {
|
|
419
|
+ init: function() {
|
|
420
|
+ this.action();
|
|
421
|
+ },
|
|
422
|
+ button: function() {
|
|
423
|
+ var _this = this;
|
|
424
|
+ $('#ITP_FORM_OPER07010_SEARCH_AFFL_SHOP_BTN').on('click', function() {
|
|
425
|
+ _this.popup();
|
|
426
|
+ });
|
|
427
|
+ // 브랜드그룹 텍스트 삭제 버튼 클릭
|
|
428
|
+ $('#ITP_FORM_OPER07010_DELETE_AFFL_SHOP_BTN').on('click', function() {
|
|
429
|
+ $('#ITP_FORM_OPER07010_SEARCH_AFFL_SHOP_ID').val('');
|
|
430
|
+ $('#ITP_FORM_OPER07010_SEARCH_AFFL_SHOP_NM').val('');
|
|
431
|
+ $('select#ITP_FORM_OPER07010_SEARCH_BRAND_ID option').remove();
|
|
432
|
+ });
|
|
433
|
+ },
|
|
434
|
+ action: function() {
|
|
435
|
+ this.button();
|
|
436
|
+ },
|
|
437
|
+ popup: function() {
|
|
438
|
+ var popFn = function(rowDataPop) {
|
|
439
|
+ if (rowDataPop.AFFL_SHOP) {
|
|
440
|
+ $('#ITP_FORM_OPER07010_SEARCH_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
|
|
441
|
+ $('#ITP_FORM_OPER07010_SEARCH_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
|
|
442
|
+ }
|
|
443
|
+ if (rowDataPop.AFFL_BRAND) {
|
|
444
|
+ fn_make_select_brand(rowDataPop.AFFL_BRAND, 'ITP_FORM_OPER07010_SEARCH_BRAND_ID', true, '선택');
|
|
445
|
+ }
|
|
446
|
+ };
|
|
447
|
+ fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
|
|
448
|
+ }
|
|
449
|
+}
|