marseyes пре 2 година
родитељ
комит
3418d8858b

+ 16 - 14
src/main/webapp/app/loanmng/LOANMNG03010.html

@@ -2,7 +2,7 @@
2 2
 	<div class="itp_cont">
3 3
 		<article class="itp_detail">
4 4
 			<div class="itp_det_head fix">
5
-				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i><strong>미납금 현황</strong></h2>
5
+				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i><strong>미납금관리</strong></h2>
6 6
 				<div class="pull-right itp_cicon">
7 7
 					<button type="button" id="ITP_BTN_LOANMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8 8
 				</div>				
@@ -13,27 +13,29 @@
13 13
 						<div class="itp_srh_border fix">
14 14
 							<div class="col-xs-12">
15 15
 								<form id="ITP_FORM_LOANMNG03010_SEARCH" class="form-horizontal">
16
+									<input type="hidden" id="ITP_FORM_LOANMNG03010_SEARCH_BRAND_ID" name="sbrandId" value="">
17
+									<input type="hidden" id="ITP_FORM_LOANMNG03010_SEARCH_STORE_ID" name="sstoreId" value="">
18
+								
16 19
 									<div class="form-group">
17
-										<div class="col-xs-1 itp_ip itp_noMar">
18
-											<select id="ITP_FORM_LOANMNG03010_SERVICE_LOAN_DVSN" class="form-control itp_input" name="servicebrandNm">
19
-												<option value="">브랜드 *</option>
20
-											</select>
20
+										<div class="col-xs-2 itp_ip itp_noMar">
21
+											<input type="text" id="ITP_FORM_LOANMNG03010_SEARCH_STORE_NM" class="form-control itp_input" name="sstoreNm" placeholder="매장선택" readonly="readonly" value="" />
21 22
 										</div>
22
-										<div class="col-xs-3 itp_ip">
23
-											<input type="text" id="ITP_FORM_LOANMNG03010_SEARCH_STORE_NM" class="form-control itp_input" name="sStoreNm" placeholder="매장명" />
23
+										<div class="col-xs-1 itp_ip itp_noMar">
24
+											<button type="button" id="ITP_BTN_LOANMNG03010_SEARCH_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
25
+											<button type="button" id="ITP_BTN_LOANMNG03010_SEARCH_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
24 26
 										</div>
25
-										<div class="col-xs-5 itp_ip itp_noMar">
26
-											<div class="col-xs-2 itp_ip itp_noMar" style="width:22%; top:3px">
27
-												<label>미납금범위</label>
27
+										<div class="col-xs-3 itp_ip itp_noMar">
28
+											<div class="col-xs-3 itp_ip itp_noMar" style="top:2px">
29
+												<label>정산요청일</label>
28 30
 											</div>
29
-											<div class="col-xs-7 itp_ip">
31
+											<div class="col-xs-8 itp_ip itp_noMar">
30 32
 												<div class="input-daterange input-group date">
31
-													<input type="text" id="ITP_FORM_LOANMNG03010_SEARCH_" class="form-control itp_input" name="" value="">
33
+													<input type="text" id="ITP_FORM_LOANMNG03010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="">
32 34
 													<span class="input-group-addon itp_date_to">~</span>
33
-													<input type="text" id="ITP_FORM_LOANMNG03010_SEARCH_" class="form-control itp_input" name="" value="">
35
+													<input type="text" id="ITP_FORM_LOANMNG03010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="">
34 36
 												</div>
35 37
 											</div>
36
-										</div>
38
+										</div>										
37 39
 									</div>
38 40
 								</form>
39 41
 							</div>

+ 821 - 0
src/main/webapp/js/app/loanmng/ITP_LOANMNG03010.js

@@ -0,0 +1,821 @@
1
+/********************************************************
2
+ --------------------------------------------------------
3
+ - Object 목록								            -
4
+ --------------------------------------------------------
5
+ * const gridColModel = {}	: 화면 Grid Object			*
6
+ * let pageObj = {}			: 화면공통 Object			*
7
+ * let listObj = {}			: 목록화면 Object			*
8
+ * let viewObj = {}			: 상세화면 Object			*
9
+ * let modifyObj = {}		: 수정화면 Object			*
10
+ * let createObj = {}		: 신규화면 Object			*
11
+ * let locInfoObj = {}		: 로케이션정보 Object				*
12
+ *******************************************************/
13
+
14
+/*화면 변수*/
15
+const LOANMNG03010_GRID_ID = '#ITP_LOANMNG03010_jqGrid';
16
+const LOANMNG03010_GRID_LIST = '#ITP_LOANMNG03010_jqGrid_list';
17
+const LOANMNG03010_GRID_PAGER = '#ITP_LOANMNG03010_jqGridPager';
18
+const LOANMNG03010_GRID_EMPTY = '#ITP_LOANMNG03010_jqGridEmpty';
19
+
20
+const LOANMNG03010_VIEW_GRID_ID = '#ITP_LOANMNG03010_VIEW_jqGrid';
21
+const LOANMNG03010_VIEW_GRID_LIST = '#ITP_LOANMNG03010_VIEW_jqGrid_list';
22
+const LOANMNG03010_VIEW_GRID_PAGER = '#ITP_LOANMNG03010_VIEW_jqGridPager';
23
+const LOANMNG03010_VIEW_GRID_EMPTY = '#ITP_LOANMNG03010_VIEW_jqGridEmpty';
24
+
25
+const LOANMNG03010_DETAIL_GRID_ID = '#ITP_LOANMNG03010_DETAIL_jqGrid';
26
+const LOANMNG03010_DETAIL_GRID_LIST = '#ITP_LOANMNG03010_DETAIL_jqGrid_list';
27
+const LOANMNG03010_DETAIL_GRID_PAGER = '#ITP_LOANMNG03010_DETAIL_jqGridPager';
28
+const LOANMNG03010_DETAIL_GRID_EMPTY = '#ITP_LOANMNG03010_DETAIL_jqGridEmpty';
29
+
30
+let ITP_FORM_LOANMNG03010_DETAIL_IS_DUPLICATE = false;
31
+let ITP_FORM_LOANMNG03010_DETAIL_IS_WRITING = false;
32
+let LOANMNG03010_DETAIL_GRID_LAST_ROW_ID;
33
+
34
+/*API URL*/
35
+let UNPAID_MNG_DETAIL_GRID_LIST = '/api/unpaid/mng/detail-grid-list';
36
+let UNPAID_MNG_STL_GRID_LIST = '/api/unpaid/mng/stl-grid-list';
37
+let UNPAID_MNG_INFO_UNPAID = '/api/unpaid/mng/info-unpaid';
38
+
39
+let WHS_MNG_ADD_WHS = '/api/whs/mng/add-whs';
40
+let WHS_MNG_MIDIFY_WHS = '/api/whs/mng/modify-whs';
41
+let WHS_MNG_REMOVE_WHS = '/api/whs/mng/remove-whs'; 
42
+
43
+/*화면 Grid ColModel*/
44
+const gridColModel = {
45
+	list: [
46
+		{
47
+			index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
48
+			label: "정산관리고유번호", 
49
+			width: '0', fixed: false, align: 'center',
50
+			sortable: false, hidden: true
51
+		},
52
+		{
53
+			index: 'BRAND_ID', name: 'brandId',
54
+			label: "브랜드ID", 
55
+			width: '0', fixed: false, align: 'center',
56
+			sortable: false, hidden: true
57
+		},
58
+		{
59
+			index: 'STORE_ID', name: 'storeId',
60
+			label: "매장ID", 
61
+			width: '0', fixed: false, align: 'center',
62
+			sortable: false, hidden: true
63
+		},
64
+		{
65
+			index: 'BRAND_NM', name: 'brandNm',
66
+			label: ITP_MSG_LOCALE.label.brandNm, //브랜드
67
+			width: '13', fixed: false, align: 'center',
68
+			sortable: false, hidden: false
69
+		},
70
+		{
71
+			index: 'STORE_NM', name: 'storeNm',
72
+			label: "매장명", 
73
+			width: '13', fixed: false, align: 'center',
74
+			sortable: false, hidden: false
75
+		},
76
+		{
77
+			index: 'STTL_ST_NM', name: 'sttlStNm',
78
+			label: "상태", 
79
+			width: '8', fixed: false, align: 'center',
80
+			sortable: false, hidden: false
81
+		},
82
+		{
83
+			index: 'STTL_REQ_DT', name: 'sttlReqDt',
84
+			label: "정산요청일", 
85
+			width: '10', fixed: false, align: 'center',
86
+			sortable: false, hidden: false
87
+		},
88
+		{
89
+			index: 'STTL_DT', name: 'sttlDt',
90
+			label: "정산일", 
91
+			width: '10', fixed: false, align: 'center',
92
+			sortable: false, hidden: false
93
+		},		
94
+		{
95
+			index: 'STTL_REQ_AMT', name: 'sttlReqAmt',
96
+			label: '정산요청금액', 
97
+			width: '10', fixed: false, align: 'center',
98
+			sortable: false, hidden: false, 
99
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
100
+		},
101
+		{
102
+			index: 'STTL_AMT', name: 'sttlAmt',
103
+			label: '정산금액', 
104
+			width: '10', fixed: false, align: 'center',
105
+			sortable: false, hidden: false, 
106
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
107
+		},
108
+		{
109
+			index: 'ACCT_BAL', name: 'acctBal',
110
+			label: '잔액', 
111
+			width: '10', fixed: false, align: 'center',
112
+			sortable: false, hidden: false, 
113
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
114
+		}		
115
+	],
116
+	view: [
117
+		{
118
+			index: 'VIEW_CD', name: 'viewCd',
119
+			label: ITP_MSG_LOCALE.label.viewCd,
120
+			width: '10', fixed: false, align: 'center',
121
+			sortable: false, hidden: true
122
+		},		
123
+		{
124
+			index: 'LOCATION', name: 'location',
125
+			label: "로케이션",
126
+			width: '10', fixed: false, align: 'center',
127
+			sortable: false, editable: false, edittype: 'text',
128
+			editrules: {required: true}
129
+		},
130
+		{
131
+			index: 'LOCATION_NM', name: 'locationNm',
132
+			label: "로케이션명",
133
+			width: '12', fixed: false, align: 'center',
134
+			sortable: true, editable: false, edittype: 'text',
135
+			editrules: {required: true}
136
+		},
137
+		{
138
+			index: 'STCK_DVSN_NM', name: 'stckDvsnNm',
139
+			label: "관리등록",
140
+			width: '10', fixed: false, align: 'center',
141
+			sortable: false, editable: false, edittype: 'text'
142
+		},
143
+		{
144
+			index: 'LOC_ST_NM', name: 'locStNm',
145
+			label: "상태",
146
+			width: '10', fixed: false, align: 'center',
147
+			sortable: false, editable: false, edittype: 'text'
148
+		}
149
+	],
150
+	detail: [
151
+		{
152
+			index: 'VIEW_CD', name: 'viewCd',
153
+			label: ITP_MSG_LOCALE.label.viewCd,
154
+			width: '10', fixed: false, align: 'center',
155
+			sortable: false, hidden: true
156
+		},
157
+		{
158
+			index: 'LOCATION', name: 'location',
159
+			label: "로케이션",
160
+			width: '10', fixed: false, align: 'center',
161
+			sortable: false, editable: true, edittype: 'text',
162
+			editrules: {required: false}
163
+		},
164
+		{
165
+			index: 'LOCATION_NM', name: 'locationNm',
166
+			label: "로케이션명",
167
+			width: '12', fixed: false, align: 'center',
168
+			sortable: false, editable: true, edittype: 'text',
169
+			editrules: {required: true}
170
+		}
171
+	]
172
+};
173
+
174
+require(['config'], function() {
175
+	require([
176
+		'kakao.map.util'
177
+	], function($) {
178
+		pageObj.init();
179
+	});
180
+});
181
+
182
+/*화면공통 Object*/
183
+let pageObj = {
184
+	init: function () {
185
+		this.ui.init();
186
+		this.event.init();
187
+		locInfoObj.init();
188
+	},
189
+	ui: {
190
+		init: function () {
191
+			this.view();
192
+			this.grid();
193
+			this.ready();
194
+		},
195
+		view: function() {
196
+			// 버튼 권한설정
197
+			fn_proc_btn_auth('LOANMNG03010');
198
+			
199
+			// 공통코드 표시
200
+			$('select').each(function() {
201
+		        if($(this).data('select-code')) {
202
+		            fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
203
+		        }
204
+		    });
205
+
206
+			// 조회일자 지정
207
+			var now = new Date();
208
+			$('#ITP_TAB_LOANMNG03010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);			
209
+			$('#ITP_FORM_LOANMNG03010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
210
+			$('#ITP_FORM_LOANMNG03010_SEARCH_TO_DT').datepicker('setDate', new Date());
211
+			
212
+		},
213
+		grid: function() {
214
+			itp_fn_jqgrid_resize(LOANMNG03010_GRID_ID, LOANMNG03010_GRID_LIST, 'lg');
215
+			listObj.empty.init();
216
+			itp_fn_fire_window_resize();
217
+		},
218
+		ready: function() {
219
+			listObj.init();
220
+		}
221
+	},
222
+	event: {
223
+		init: function () {
224
+			this.button();
225
+		},
226
+		button: function () {
227
+			// 버튼 클릭 이벤트
228
+			$('button').each(function() {
229
+				var id = $(this).attr('id');
230
+				$(this).on('click', function() {
231
+					switch (id) {
232
+						case 'ITP_BTN_LOANMNG03010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
233
+						case 'ITP_BTN_LOANMNG03010_NEWREG'				: listObj.button.create(); 		break;	// 신규등록 버튼
234
+						case 'ITP_BTN_LOANMNG03010_MODIFY'				: modifyObj.button.modify();	break;	// 수정 버튼
235
+						case 'ITP_BTN_LOANMNG03010_CANCELLIST'			: createObj.button.cancel(); 	break;	// 취소/목록 버튼
236
+						case 'ITP_BTN_LOANMNG03010_DELETE'				: 								break;	// 삭제 버튼
237
+						case 'ITP_BTN_LOANMNG03010_SAVE'				: createObj.button.save(); 		break;	// 저장 버튼
238
+						case 'ITP_BTN_LOANMNG03010_DETAIL_ADDROW'		: locInfoObj.button.addRow();	break;	// 상세:추가버튼
239
+						case 'ITP_BTN_LOANMNG03010_DETAIL_DELROW'		: locInfoObj.button.delRow();	break;	// 상세:삭제버튼
240
+						case 'ITP_BTN_LOANMNG03010_DETAIL_ADDRESS_SEARCH'		: createObj.button.address();	break;	// 신규등록 주소 찾기
241
+						case 'ITP_BTN_LOANMNG03010_SEARCH_SRH'			: createObj.button.popupStore();	break;	// 매장선택 팝업
242
+						case 'ITP_BTN_LOANMNG03010_SEARCH_MODIFY'		: createObj.button.eraseStore();	break;	// 매장선택 삭제
243
+					}
244
+				});
245
+			});
246
+
247
+			$('body').on('click', function(e) {
248
+				var gridId = LOANMNG03010_DETAIL_GRID_ID.replace('#', '');
249
+				var rids = $(LOANMNG03010_DETAIL_GRID_ID).jqGrid('getDataIDs');
250
+				var last_row_id = rids[rids.length - 1];
251
+				itp_fn_grid_reset_selection(e, last_row_id, gridId, 'LOANMNG03010_DETAIL');
252
+			});
253
+
254
+		}
255
+	},
256
+	switchScreen: function(mode) {
257
+		if(mode == 'LIST') { // 목록
258
+			$('#ITP_BTN_LOANMNG03010_MODIFY').hide();
259
+			$('#ITP_BTN_LOANMNG03010_CANCELLIST').hide();
260
+			$('#ITP_BTN_LOANMNG03010_DELETE').hide();
261
+			$('#ITP_BTN_LOANMNG03010_SAVE').hide();
262
+			
263
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_SRH');
264
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_NEWREG');
265
+
266
+			$('#ITP_AJAX_LOANMNG03010_LIST_CONTAINER').show();
267
+			$('#ITP_AJAX_LOANMNG03010_DETAIL_CONTAINER').hide();
268
+			$('#ITP_AJAX_LOANMNG03010_VIEW_CONTAINER').hide();
269
+		} else if(mode == 'ADD') { // 등록
270
+			ITP_FORM_LOANMNG03010_DETAIL_IS_DUPLICATE = true;
271
+
272
+			$('#ITP_BTN_LOANMNG03010_SRH').hide();
273
+			$('#ITP_BTN_LOANMNG03010_MODIFY').hide();
274
+			$('#ITP_BTN_LOANMNG03010_NEWREG').hide();
275
+			$('#ITP_BTN_LOANMNG03010_DELETE').hide();
276
+			
277
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_CANCELLIST');
278
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_SAVE');
279
+
280
+			$('#ITP_AJAX_LOANMNG03010_LIST_CONTAINER').hide();
281
+			$('#ITP_AJAX_LOANMNG03010_DETAIL_CONTAINER').show();
282
+			$('#ITP_AJAX_LOANMNG03010_VIEW_CONTAINER').hide();
283
+
284
+			$('#ITP_FORM_LOANMNG03010_DETAIL_VIEW_CD').val('C');
285
+			$('#ITP_FORM_LOANMNG03010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
286
+			$('#ITP_FORM_LOANMNG03010_DETAIL .fnBrandNm').text(fn_make_user_info.get('brandNm'));
287
+			$('#ITP_FORM_LOANMNG03010_DETAIL .fnWhsId').text('');
288
+			$('#ITP_FORM_LOANMNG03010_DETAIL .fnRegDtm').text('');
289
+			$('#ITP_FORM_LOANMNG03010_DETAIL_STORE_ID').val('');
290
+			$('#ITP_FORM_LOANMNG03010_DETAIL_WHS_ID').val('');
291
+			$('#ITP_FORM_LOANMNG03010_DETAIL_WHS_ST_CD').val('');
292
+			$('#ITP_FORM_LOANMNG03010_DETAIL_WHS_NM').val('');
293
+			$('#ITP_FORM_LOANMNG03010_DETAIL_MGR_TEL_NO').val('');
294
+			$('#ITP_FORM_LOANMNG03010_DETAIL_MGR_NM').val('');
295
+			$('#ITP_FORM_LOANMNG03010_DETAIL_STORE_NM').val('');
296
+			$('#ITP_FORM_LOANMNG03010_DETAIL_ZIPNO').val('');
297
+			$('#ITP_FORM_LOANMNG03010_DETAIL_ADRES').val('');
298
+			$('#ITP_FORM_LOANMNG03010_DETAIL_ADRES_DTL').val('');
299
+			
300
+		} else if(mode == 'MODIFY') { // 수정
301
+			$('#ITP_BTN_LOANMNG03010_SRH').hide();
302
+			$('#ITP_BTN_LOANMNG03010_MODIFY').hide();
303
+			$('#ITP_BTN_LOANMNG03010_NEWREG').hide();
304
+			$('#ITP_BTN_LOANMNG03010_DELETE').hide();
305
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_CANCELLIST');
306
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_SAVE');
307
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_RESET_PW');
308
+
309
+			$('#ITP_AJAX_LOANMNG03010_LIST_CONTAINER').hide();
310
+			$('#ITP_AJAX_LOANMNG03010_DETAIL_CONTAINER').show();
311
+			$('#ITP_AJAX_LOANMNG03010_VIEW_CONTAINER').hide();
312
+			// $('#ITP_FORM_LOANMNG03010_DETAIL_USER_ID').attr('readonly', true);
313
+			// $('#ITP_FORM_LOANMNG03010_DETAIL_DUP').attr('disabled', true);
314
+			$('#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_AFFL_SHOP_NM').attr('readonly', true);
315
+
316
+			$('#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_AFFL_SHOP').hide();
317
+			$('#ITP_FORM_LOANMNG03010_DETAIL_DELETE_AFFL_SHOP').hide();
318
+		} else if(mode == 'VIEW') { // 보기
319
+			$('#ITP_BTN_LOANMNG03010_SRH').hide();
320
+			$('#ITP_BTN_LOANMNG03010_NEWREG').hide();
321
+			$('#ITP_BTN_LOANMNG03010_DELETE').hide();
322
+			$('#ITP_BTN_LOANMNG03010_SAVE').hide();
323
+			
324
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_MODIFY');
325
+			fn_show_btn_auth('#ITP_BTN_LOANMNG03010_CANCELLIST');
326
+
327
+			$('#ITP_AJAX_LOANMNG03010_LIST_CONTAINER').hide();
328
+			$('#ITP_AJAX_LOANMNG03010_DETAIL_CONTAINER').hide();
329
+			$('#ITP_AJAX_LOANMNG03010_VIEW_CONTAINER').show();
330
+		}
331
+	}
332
+};
333
+
334
+/*목록화면 Object*/
335
+let listObj = {
336
+	init: function () {
337
+		this.grid.init();
338
+	},
339
+	itp_LOANMNG03010_search: false,
340
+	button: {
341
+		search: function() {
342
+			listObj.itp_LOANMNG03010_search = true;
343
+			let param = $('#ITP_FORM_LOANMNG03010_SEARCH').serializeObject();
344
+			param.gridSize = $.jgrid.defaults.rowNum;
345
+			param.gridPage = $.jgrid.defaults.page;
346
+			$(LOANMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
347
+		},
348
+		create: function() {
349
+			pageObj.switchScreen('ADD');			
350
+			itp_fn_form_clear_validate(null, '#ITP_FORM_LOANMNG03010_DETAIL');						
351
+			// 로케이션 리스트 조회
352
+			createObj.init();
353
+		}
354
+	},
355
+	empty: {
356
+		init: function() {
357
+			var _this = this;
358
+			this.push();
359
+			$(LOANMNG03010_GRID_EMPTY).on('click', function() {
360
+				_this.back();
361
+				_this.itp_LOANMNG03010_param.gridSize = $.jgrid.defaults.rowNum;
362
+				$(LOANMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_LOANMNG03010_param)}).trigger('reloadGrid');
363
+			});
364
+		},
365
+		itp_LOANMNG03010_param: {},
366
+		push: function() {
367
+			let param = $('#ITP_FORM_LOANMNG03010_SEARCH').serializeObject();
368
+			listObj.itp_LOANMNG03010_param = param;
369
+		},
370
+		back: function() {
371
+			$('#ITP_FORM_LOANMNG03010_SEARCH_STORE_ID').val(listObj.itp_LOANMNG03010_param.sstoreId);
372
+			$('#ITP_FORM_LOANMNG03010_SEARCH_STORE_NM').val(listObj.itp_LOANMNG03010_param.sstoreNm);
373
+			$('#ITP_FORM_LOANMNG03010_SEARCH_FROM_DT').val(listObj.itp_LOANMNG03010_param.fromDt);
374
+			$('#ITP_FORM_LOANMNG03010_SEARCH_TO_DT').val(listObj.itp_LOANMNG03010_param.toDt);
375
+		}
376
+	},
377
+	grid: {
378
+		init: function () {
379
+			// 데이터 없을때
380
+			listObj.empty.push();
381
+			this.search();
382
+		},
383
+		colModel: gridColModel.list,
384
+		search: function() {
385
+			pageObj.switchScreen('LIST');
386
+			this.unload();
387
+			this.load();
388
+		},
389
+		load: function() {
390
+			$('#ITP_FORM_LOANMNG03010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
391
+			
392
+			let param = $('#ITP_FORM_LOANMNG03010_SEARCH').serializeObject();
393
+			param.gridSize = $.jgrid.defaults.rowNum;
394
+
395
+			var option = {
396
+				gridId: LOANMNG03010_GRID_ID,
397
+				colModel: gridColModel.list,
398
+				param: JSON.stringify(param),
399
+				url: DOMAIN + UNPAID_MNG_DETAIL_GRID_LIST,
400
+				pager: LOANMNG03010_GRID_PAGER,
401
+				onCellSelect: function(rowId, cellIdx, cellValue) {
402
+					var cm = $(this).jqGrid('getGridParam', 'colModel');
403
+					var colNm = cm[cellIdx].name;
404
+					if (colNm == 'storeNm') {
405
+						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
406
+						
407
+						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
408
+						var param = $.param(key);
409
+						viewObj.init(param);
410
+					}
411
+				},
412
+				loadComplete: function(data) {
413
+					console.log(data);
414
+					itp_fn_grid_load_complete(data, LOANMNG03010_GRID_ID, true, 'number', 'LOANMNG03010', listObj.itp_LOANMNG03010_search, listObj.empty, true, data.gridRecords, true);
415
+					var ids = $(LOANMNG03010_GRID_ID).getDataIDs();
416
+					$.each(ids, function(idx, rowId) {
417
+						$(LOANMNG03010_GRID_ID).jqGrid('setCell', rowId, 'storeNm', '', ITP_GRID_COL_STYLE.link);
418
+					});
419
+				},
420
+				onPaging: function(action) {
421
+					itp_fn_grid_paging(LOANMNG03010_GRID_ID, action, param);
422
+				}
423
+			};
424
+			itp_fn_grid_make_remote(option);
425
+		},
426
+		clearData : function() {
427
+			$(LOANMNG03010_GRID_ID).jqGrid('clearGridData', true);
428
+			$(LOANMNG03010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
429
+			$(LOANMNG03010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
430
+			$(LOANMNG03010_GRID_EMPTY).show();
431
+		},
432
+		unload : function() {
433
+			$.jgrid.gridUnload(LOANMNG03010_GRID_ID);
434
+		}
435
+	}
436
+};
437
+
438
+/*상세화면 Object*/
439
+let viewObj = {
440
+	init: function (param) {
441
+		this.load(param);
442
+	},
443
+	load: function(param) {
444
+		fn_ajax_call(UNPAID_MNG_INFO_UNPAID, param, this.callback, 'GET');
445
+	},
446
+	callback: function (result) {
447
+		// console.log(result);
448
+		pageObj.switchScreen('VIEW');
449
+		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_BRAND_ID').val(result.brandId);
450
+		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STORE_ID').val(result.storeId);
451
+		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_WHS_ID').val(result.whsId);
452
+		
453
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnBrandNm').text(result.brandNm);
454
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnStCd').text(result.whsStNm);
455
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnWhsId').text(result.whsId);
456
+
457
+		// 리스트 조회
458
+		// viewObj.grid.init();
459
+	},
460
+	grid: {
461
+		init: function() {
462
+			this.unload();
463
+			this.load();
464
+		},
465
+		load : function() {
466
+			let param = $('#ITP_FORM_LOANMNG03010_VIEW').serializeObject();
467
+			param.gridSize = $.jgrid.defaults.rowNum;
468
+			param.pagingYn = false; // 페이징안함
469
+
470
+			var option = {
471
+				gridId: LOANMNG03010_VIEW_GRID_ID,
472
+				colModel: gridColModel.view,
473
+				param: JSON.stringify(param),
474
+				url: DOMAIN + UNPAID_MNG_STL_GRID_LIST,
475
+				pager: LOANMNG03010_VIEW_GRID_PAGER,
476
+				loadComplete: function(data) {
477
+					itp_fn_grid_load_complete(data, LOANMNG03010_VIEW_GRID_ID, true, undefined, 'LOANMNG03010_VIEW');
478
+				},
479
+				onPaging: function(action) {
480
+					var pagingFn = {
481
+						callBack: function(args) {
482
+							$(args).trigger('reloadGrid');
483
+						}
484
+					};
485
+					if (itp_fn_check_grid_is_writing(LOANMNG03010_VIEW_GRID_ID)) {
486
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, LOANMNG03010_VIEW_GRID_ID);
487
+						return 'stop';
488
+					} else {
489
+						itp_fn_grid_paging(LOANMNG03010_VIEW_GRID_ID, action, param);
490
+					}
491
+				},
492
+				onSortCol: function(index, columnIndex, sortOrder) {
493
+					var sortingFn = {
494
+						callBack: function(args) {
495
+							$(args).trigger('reloadGrid');
496
+						}
497
+					};
498
+					if (itp_fn_check_grid_is_writing(LOANMNG03010_VIEW_GRID_ID)) {
499
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, LOANMNG03010_VIEW_GRID_ID);
500
+						return 'stop';
501
+					} else {
502
+						itp_fn_grid_sorting(LOANMNG03010_VIEW_GRID_ID, index, sortOrder);
503
+					}
504
+				}
505
+			};
506
+			itp_fn_grid_make_remote(option);
507
+		},
508
+		clearData : function() {
509
+			$(LOANMNG03010_VIEW_GRID_ID).jqGrid('clearGridData', true);
510
+			$(LOANMNG03010_VIEW_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
511
+			$(LOANMNG03010_VIEW_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
512
+			$(LOANMNG03010_VIEW_GRID_EMPTY).show();
513
+		},
514
+		unload : function() {
515
+			$.jgrid.gridUnload(LOANMNG03010_VIEW_GRID_ID);
516
+		}
517
+	}
518
+};
519
+
520
+/*수정화면 Object*/
521
+let modifyObj = {
522
+	init: function () {
523
+	},
524
+	button: {
525
+		modify: function (param) {
526
+			itp_fn_form_clear_validate(null, '#ITP_FORM_LOANMNG03010_DETAIL');
527
+			const brandIdVal = $('#ITP_FORM_LOANMNG03010_VIEW_BRAND_ID').val();
528
+			const whsIdVal = $('#ITP_FORM_LOANMNG03010_VIEW_WHS_ID').val();
529
+			const key = {brandId: brandIdVal, whsId: whsIdVal, storeId: '', viewCd: 'R'};
530
+			var param = $.param(key);
531
+			modifyObj.load(param);
532
+		}
533
+	},
534
+	load: function(param) {
535
+		fn_ajax_call(UNPAID_MNG_INFO_UNPAID, param, this.callback, 'GET');
536
+	},
537
+	callback: function (result) {
538
+		// console.log(result);
539
+		pageObj.switchScreen('MODIFY');
540
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_VIEW_CD').val('U');
541
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_BRAND_ID').val(result.brandId);
542
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_STORE_ID').val(result.storeId);
543
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_WHS_ID').val(result.whsId);
544
+				
545
+		$('#ITP_FORM_LOANMNG03010_DETAIL .fnBrandNm').text(result.brandNm);
546
+		$('#ITP_FORM_LOANMNG03010_DETAIL .fnWhsId').text(result.whsId);
547
+		$('#ITP_FORM_LOANMNG03010_DETAIL .fnRegDtm').text(result.sysRegDttm);
548
+		
549
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_WHS_ST_CD').val(result.whsStCd);
550
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_WHS_NM').val(result.whsNm);
551
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_WHS_NM').val(result.whsNm);
552
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_MGR_TEL_NO').val(result.mgrTelNo);
553
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_MGR_NM').val(result.mgrNm);
554
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_STORE_NM').val(result.storeNm);
555
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_ZIPNO').val(result.zipNo);
556
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_ADRES').val(result.addr1);
557
+		$('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_ADRES_DTL').val(result.addr2);
558
+		
559
+		kakaoMap.init('ITP_FORM_LOANMNG03010_DETAIL', $('#ITP_FORM_LOANMNG03010_DETAIL #ITP_FORM_LOANMNG03010_DETAIL_ADRES').val());
560
+		
561
+		// 권한정보 리스트 조회
562
+		modifyObj.grid.init();
563
+	},
564
+	grid: {
565
+		init: function() {
566
+			this.unload();
567
+			this.load();
568
+		},
569
+		load : function() {
570
+			let param = $('#ITP_FORM_LOANMNG03010_DETAIL').serializeObject();
571
+			param.gridSize = $.jgrid.defaults.rowNum;
572
+			param.pagingYn = false; // 페이지안함
573
+
574
+			var option = {
575
+				gridId: LOANMNG03010_DETAIL_GRID_ID,
576
+				colModel: gridColModel.detail,
577
+				param: JSON.stringify(param),
578
+				url: DOMAIN + UNPAID_MNG_STL_GRID_LIST,
579
+				pager: LOANMNG03010_DETAIL_GRID_PAGER,
580
+				multiselect: true,
581
+				onCellSelect: function(rowId, cellIdx, cellValue) {
582
+					LOANMNG03010_DETAIL_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowId, cellIdx, LOANMNG03010_DETAIL_GRID_LAST_ROW_ID, LOANMNG03010_DETAIL_GRID_ID, ['location']);
583
+		   		},
584
+				loadComplete: function(data) {
585
+					itp_fn_grid_load_complete(data, LOANMNG03010_DETAIL_GRID_ID, true, undefined, 'LOANMNG03010_DETAIL');
586
+				},
587
+				onPaging: function(action) {
588
+					var pagingFn = {
589
+						callBack: function(args) {
590
+							$(args).trigger('reloadGrid');
591
+						}
592
+					};
593
+					if (itp_fn_check_grid_is_writing(LOANMNG03010_DETAIL_GRID_ID)) {
594
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, LOANMNG03010_DETAIL_GRID_ID);
595
+						return 'stop';
596
+					} else {
597
+						itp_fn_grid_paging(LOANMNG03010_DETAIL_GRID_ID, action, param);
598
+					}
599
+				},
600
+				onSortCol: function(index, columnIndex, sortOrder) {
601
+					var sortingFn = {
602
+						callBack: function(args) {
603
+							$(args).trigger('reloadGrid');
604
+						}
605
+					};
606
+					if (itp_fn_check_grid_is_writing(LOANMNG03010_DETAIL_GRID_ID)) {
607
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, LOANMNG03010_DETAIL_GRID_ID);
608
+						return 'stop';
609
+					} else {
610
+						itp_fn_grid_sorting(LOANMNG03010_DETAIL_GRID_ID, index, sortOrder);
611
+					}
612
+				}
613
+			};
614
+			itp_fn_grid_make_remote(option);
615
+		},
616
+		clearData : function() {
617
+			$(LOANMNG03010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
618
+			$(LOANMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
619
+			$(LOANMNG03010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
620
+			$(LOANMNG03010_DETAIL_GRID_EMPTY).show();
621
+		},
622
+		unload : function() {
623
+			$.jgrid.gridUnload(LOANMNG03010_DETAIL_GRID_ID);
624
+		}
625
+	}
626
+};
627
+
628
+/*신규화면 Object*/
629
+let createObj = {
630
+	init: function () {
631
+		kakaoMap.init('ITP_FORM_LOANMNG03010_DETAIL', '');
632
+		this.unload();
633
+		this.load();
634
+	},
635
+	button: {
636
+		cancel: function() {
637
+			listObj.grid.search();
638
+		},
639
+		save: function() {
640
+			var detailViewCd = $('#ITP_FORM_LOANMNG03010_DETAIL_VIEW_CD').val();
641
+			const formId = '#ITP_FORM_LOANMNG03010_DETAIL';
642
+			itp_fn_form_clear_validate(null, formId);
643
+			
644
+			var vali_whsStatCd = itp_fn_form_validate(formId, formId + '_WHS_ST_CD', ['empty'], undefined); // 상태
645
+			var vali_whsNm = itp_fn_form_validate(formId, formId + '_WHS_NM', ['empty'], undefined);
646
+			
647
+			if (vali_whsStatCd && vali_whsNm) {
648
+				let gridInsertData = [];
649
+				let gridUpdateData = [];
650
+				let gridDeleteData = [];
651
+				const rowData = $(LOANMNG03010_DETAIL_GRID_ID).getRowData();
652
+				// const keyValue = $(formId + '_WHS_ID').val();
653
+				$.each(rowData, function(key, value) {
654
+					if (value.viewCd != 'R') {
655
+						// value.whsId = keyValue;
656
+						if (value.viewCd == 'C') {
657
+							gridInsertData.push(value);
658
+						} else if (value.viewCd == 'U') {
659
+							gridUpdateData.push(value);
660
+						} else if (value.viewCd == 'D') {
661
+							gridDeleteData.push(value);
662
+						}
663
+					}
664
+				});
665
+				let param = $(formId).serializeObject();
666
+				param.gridInsertData = gridInsertData;
667
+				param.gridUpdateData = gridUpdateData;
668
+				param.gridDeleteData = gridDeleteData;
669
+				//console.log(JSON.stringify(param));
670
+				var searhFn = function() {
671
+					ITP_FORM_LOANMNG03010_DETAIL_IS_WRITING = false;
672
+					listObj.grid.search();
673
+				};
674
+				fn_ajax_call(detailViewCd == 'C' ? WHS_MNG_ADD_WHS : WHS_MNG_MIDIFY_WHS, JSON.stringify(param), searhFn, 'POST');
675
+			}
676
+		}, 
677
+		address: function() {
678
+			kakaoMap.address('ITP_FORM_LOANMNG03010_DETAIL');
679
+		},
680
+		popupStore: function() { // 매장선택 팝업
681
+			
682
+		}, 
683
+		eraseStore: function() { // 매장선택 삭제
684
+			$('#ITP_FORM_LOANMNG03010_DETAIL_STORE_ID').val('');
685
+			$('#ITP_FORM_LOANMNG03010_DETAIL_STORE_NM').val('');
686
+		}
687
+	},
688
+	load: function () {
689
+		let param = $('#ITP_FORM_LOANMNG03010_DETAIL').serializeObject();
690
+		param.gridSize = $.jgrid.defaults.rowNum;
691
+		param.pagingYn = false; // 페이지안함
692
+
693
+		var option = {
694
+			gridId: LOANMNG03010_DETAIL_GRID_ID,
695
+			colModel: gridColModel.detail,
696
+			param: JSON.stringify(param),
697
+			url: DOMAIN + UNPAID_MNG_STL_GRID_LIST,
698
+			pager: LOANMNG03010_DETAIL_GRID_PAGER,
699
+			multiselect: true,
700
+			loadComplete: function(data) {
701
+				itp_fn_grid_load_complete(data, LOANMNG03010_DETAIL_GRID_ID, true, undefined, 'LOANMNG03010_DETAIL');
702
+			},
703
+			onPaging: function(action) {
704
+				var pagingFn = {
705
+					callBack: function(args) {
706
+						$(args).trigger('reloadGrid');
707
+					}
708
+				};
709
+				if (itp_fn_check_grid_is_writing(LOANMNG03010_DETAIL_GRID_ID)) {
710
+					itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, LOANMNG03010_DETAIL_GRID_ID);
711
+					return 'stop';
712
+				} else {
713
+					itp_fn_grid_paging(LOANMNG03010_DETAIL_GRID_ID, action, param);
714
+				}
715
+			},
716
+			onSortCol: function(index, columnIndex, sortOrder) {
717
+				var sortingFn = {
718
+					callBack: function(args) {
719
+						$(args).trigger('reloadGrid');
720
+					}
721
+				};
722
+				if (itp_fn_check_grid_is_writing(LOANMNG03010_DETAIL_GRID_ID)) {
723
+					itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, LOANMNG03010_DETAIL_GRID_ID);
724
+					return 'stop';
725
+				} else {
726
+					itp_fn_grid_sorting(LOANMNG03010_DETAIL_GRID_ID, index, sortOrder);
727
+				}
728
+			}
729
+		};
730
+		itp_fn_grid_make_remote(option);
731
+	},
732
+	clearData : function() {
733
+		$(LOANMNG03010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
734
+		$(LOANMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
735
+		$(LOANMNG03010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
736
+		$(LOANMNG03010_DETAIL_GRID_EMPTY).show();
737
+	},
738
+	unload : function() {
739
+		$.jgrid.gridUnload(LOANMNG03010_DETAIL_GRID_ID);
740
+	}
741
+};
742
+
743
+/*로케이션정보 Object*/
744
+let locInfoObj = {
745
+	init: function () {
746
+		// if(AUTH_TYPE_CD === '10' || AUTH_TYPE_CD === '20') {
747
+		this.action();
748
+		// } else {
749
+		// this.make();
750
+		// }
751
+	},
752
+	button: {
753
+		addRow: function() {
754
+			// $(LOANMNG03010_DETAIL_GRID_ID).jqGrid('addRow', {position: 'last'});
755
+			// $(LOANMNG03010_DETAIL_GRID_EMPTY).hide();
756
+			LOANMNG03010_DETAIL_GRID_LAST_ROW_ID = itp_fn_add_grid_row(LOANMNG03010_DETAIL_GRID_ID, undefined, ['location'],'LOANMNG03010_DETAIL');
757
+		},
758
+		delRow: function() {
759
+			itp_fn_grid_del_row(LOANMNG03010_DETAIL_GRID_ID);
760
+		}
761
+	},
762
+	make: function() {
763
+		$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP').hide();
764
+		$('#ITP_FORM_LOANMNG03010_DELETE_AFFL_SHOP').hide();
765
+		if(AFFL_SHOP_LIST) {
766
+			$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP_ID').val(AFFL_SHOP_LIST[0].afflShopId);
767
+			$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP_NM').val(AFFL_SHOP_LIST[0].afflShopNm);
768
+		}
769
+		if(AFFL_BRAND_LIST) {
770
+			fn_make_select_brand(AFFL_BRAND_LIST, 'ITP_FORM_LOANMNG03010_SEARCH_BRAND_ID');
771
+		}
772
+	},
773
+	action: function () {
774
+		var _this = this;
775
+		// 로케이션정보 조회 버튼 클릭
776
+		$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP').on('click', function() {
777
+			_this.popup('L');
778
+		});
779
+		// 로케이션정보 텍스트 삭제 버튼 클릭
780
+		$('#ITP_FORM_LOANMNG03010_DELETE_AFFL_SHOP').on('click', function() {
781
+			$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP_NM').val('');
782
+			$('select#ITP_FORM_LOANMNG03010_SEARCH_BRAND_ID option').remove();
783
+		});
784
+		// 신규등록 로케이션정보 조회 버튼 클릭
785
+		$('#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_AFFL_SHOP').on('click', function() {
786
+			_this.popup('C');
787
+		});
788
+		// 신규등록 로케이션정보 텍스트 삭제 버튼 클릭
789
+		$('#ITP_FORM_LOANMNG03010_DETAIL_DELETE_AFFL_SHOP').on('click', function() {
790
+			$('#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_AFFL_SHOP_NM').val('');
791
+			$('select#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_BRAND_ID option').remove();
792
+		});
793
+	},
794
+	popup: function (view) {
795
+		// 팝업
796
+		var popFn = (view === 'C') ? this.callback.create : this.callback.list;
797
+		fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
798
+	},
799
+	callback: {
800
+		list: function(rowDataPop) {
801
+			// console.log(rowDataPop);
802
+			if(rowDataPop.AFFL_SHOP) {
803
+				$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
804
+				$('#ITP_FORM_LOANMNG03010_SEARCH_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
805
+			}
806
+			if(rowDataPop.AFFL_BRAND) {
807
+				fn_make_select_brand(rowDataPop.AFFL_BRAND, 'ITP_FORM_LOANMNG03010_SEARCH_BRAND_ID', true, '선택');
808
+			}
809
+		},
810
+		create: function(rowDataPop) {
811
+			// console.log(rowDataPop);
812
+			if(rowDataPop.AFFL_SHOP) {
813
+				// $('#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
814
+				// $('#ITP_FORM_LOANMNG03010_DETAIL_SEARCH_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
815
+			}
816
+			if(rowDataPop.AFFL_BRAND) {
817
+				fn_make_select_brand(rowDataPop.AFFL_BRAND, 'ITP_FORM_LOANMNG03010_DETAIL_SEARCH_BRAND_ID', true, '선택');
818
+			}
819
+		}
820
+	}
821
+};