Quellcode durchsuchen

품목현황 수정

whakdo963 vor 2 Jahren
Ursprung
Commit
345ce19e64

+ 554 - 0
bin/src/main/webapp/js/app/settmng/ITP_SETTMNG02010.js

@@ -0,0 +1,554 @@
1
+/********************************************************
2
+ --------------------------------------------------------
3
+ - Object 목록								            -
4
+ --------------------------------------------------------
5
+ * const gridColModel = {}	: 화면 Grid Object			*
6
+ * let pageObj = {}			: 화면공통 Object			*
7
+ * let listObj = {}			: 목록화면 Object			*
8
+ * let modifyObj = {}			: 상세화면 Object			*
9
+ *******************************************************/
10
+
11
+/*화면 변수*/
12
+const SETTMNG02010_GRID_ID = '#ITP_SETTMNG02010_jqGrid';
13
+const SETTMNG02010_GRID_LIST = '#ITP_SETTMNG02010_jqGrid_list';
14
+const SETTMNG02010_GRID_PAGER = '#ITP_SETTMNG02010_jqGridPager';
15
+const SETTMNG02010_GRID_EMPTY = '#ITP_SETTMNG02010_jqGridEmpty';
16
+
17
+const SETTMNG02010_DETAIL_GRID_ID = '#ITP_SETTMNG02010_DETAIL_jqGrid';
18
+const SETTMNG02010_DETAIL_GRID_LIST = '#ITP_SETTMNG02010_DETAIL_jqGrid_list';
19
+const SETTMNG02010_DETAIL_GRID_PAGER = '#ITP_SETTMNG02010_DETAIL_jqGridPager';
20
+const SETTMNG02010_DETAIL_GRID_EMPTY = '#ITP_SETTMNG02010_DETAIL_jqGridEmpty';
21
+
22
+let ITP_FORM_SETTMNG02010_DETAIL_IS_DUPLICATE = false;
23
+let ITP_FORM_SETTMNG02010_DETAIL_IS_WRITING = false;
24
+let SETTMNG02010_DETAIL_GRID_LAST_ROW_ID;
25
+
26
+/*API URL*/
27
+let STTL_STATE_DETAIL_GRID_LIST = '/api/sttl/state/detail-grid-list';
28
+
29
+let STTL_REQ_REQUEST_STTL = '/api/sttl/req/request-sttl';
30
+let STTL_REQ_REQUEST_STTL_PROC = '/api/sttl/req/request-sttl-proc';
31
+let STTL_REQ_INFO_STTL = '/api/sttl/req/info-sttl';
32
+let STTL_REQ_STL_GRID_LIST = '/api/sttl/req/stl-grid-list';
33
+
34
+let LOGIN_AUTH_TYPE_CD;
35
+
36
+/*화면 Grid ColModel*/
37
+const gridColModel = {
38
+	list: [
39
+		{
40
+			index: 'VIEW_CD', name: 'viewCd',
41
+			label: ITP_MSG_LOCALE.label.viewCd,
42
+			width: '10', fixed: false, align: 'center',
43
+			sortable: false, hidden: true
44
+		},		
45
+		{
46
+			index: 'BRAND_NM', name: 'brandNm',
47
+			label: "브랜드",
48
+			width: '10', fixed: false, align: 'center',
49
+			sortable: false, hidden: true
50
+		},
51
+		{
52
+			index: 'STORE_NM', name: 'storeNm',
53
+			label: "매장명",
54
+			width: '10', fixed: false, align: 'center',
55
+			sortable: false, hidden: true
56
+		},
57
+		{
58
+			index: 'SPPLY_NM', name: 'spplyNm',
59
+			label: "공급사명",
60
+			width: '10', fixed: false, align: 'center',
61
+			sortable: false, hidden: false
62
+		},
63
+		{
64
+			index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
65
+			label: "정산번호", 
66
+			width: '10', fixed: false, align: 'center',
67
+			sortable: false, hidden: false
68
+		},
69
+		{
70
+			index: 'STTL_ST_CD', name: 'sttlStCd',
71
+			label: "정산상태코드", 
72
+			width: '8', fixed: false, align: 'center',
73
+			sortable: false, hidden: true
74
+		},
75
+		{
76
+			index: 'STTL_ST_NM', name: 'sttlStNm',
77
+			label: "정산상태", 
78
+			width: '10', fixed: false, align: 'center',
79
+			sortable: false, hidden: false
80
+		},		
81
+		{
82
+			index: 'STTL_REQ_DT', name: 'sttlReqDt',
83
+			label: "정산요청일",
84
+			width: '10', fixed: false, align: 'center',
85
+			sortable: false, editable: false, edittype: 'text'
86
+		},
87
+		{
88
+			index: 'STTL_REQ_AMT', name: 'sttlReqAmt',
89
+			label: "정산요청금액",
90
+			width: '10', fixed: false, align: 'center',
91
+			sortable: false, editable: false, edittype: 'text', 
92
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
93
+		}, 
94
+		{
95
+			index: 'STTL_DT', name: 'sttlDt',
96
+			label: "정산일",
97
+			width: '10', fixed: false, align: 'center',
98
+			sortable: false, editable: false, edittype: 'text'
99
+		},
100
+		{
101
+			index: 'STTL_REQ_AMT', name: 'sttlAmt',
102
+			label: "정산금액",
103
+			width: '10', fixed: false, align: 'center',
104
+			sortable: false, editable: false, edittype: 'text', 
105
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
106
+		},
107
+		{
108
+			index: 'ACCT_BAL', name: 'acctBal',
109
+			label: "잔금",
110
+			width: '10', fixed: false, align: 'center',
111
+			sortable: false, editable: false, edittype: 'text', 
112
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
113
+		}, 
114
+		{
115
+			index: 'STTL_REG_MGR_NM', name: 'sttlRegMgrNm',
116
+			label: "등록자",
117
+			width: '10', fixed: false, align: 'center',
118
+			sortable: false, editable: false, edittype: 'text'
119
+		}
120
+	],
121
+	view: [
122
+		{
123
+			index: 'VIEW_CD', name: 'viewCd',
124
+			label: ITP_MSG_LOCALE.label.viewCd,
125
+			width: '10', fixed: false, align: 'center',
126
+			sortable: false, hidden: true
127
+		},
128
+		{
129
+			index: 'STTL_MGNT_DTL_NO', name: 'sttlMgntDtlNo',
130
+			label: '정산관리상세번호',
131
+			width: '10', fixed: false, align: 'center',
132
+			sortable: false, hidden: true
133
+		},		
134
+		{
135
+			index: 'BRAND_NM', name: 'brandNm',
136
+			label: "브랜드",
137
+			width: '10', fixed: false, align: 'center',
138
+			sortable: false, hidden: true
139
+		},
140
+		{
141
+			index: 'STORE_NM', name: 'storeNm',
142
+			label: "매장명",
143
+			width: '10', fixed: false, align: 'center',
144
+			sortable: false, hidden: true
145
+		},
146
+		{
147
+			index: 'ITEM_ID', name: 'itemId',
148
+			label: "품목코드",
149
+			width: '10', fixed: false, align: 'center',
150
+			sortable: false, editable: false, edittype: 'text'
151
+		},
152
+		{
153
+			index: 'ITEM_NM', name: 'itemNm',
154
+			label: "품목명",
155
+			width: '10', fixed: false, align: 'center',
156
+			sortable: false, editable: false, edittype: 'text'
157
+		},
158
+		{
159
+			index: 'UNIT', name: 'unit',
160
+			label: "단위",
161
+			width: '8', fixed: false, align: 'center',
162
+			sortable: false, editable: false, edittype: 'text'
163
+		},
164
+		{
165
+			index: 'UNIT_AMT', name: 'unitAmt',
166
+			label: "단가",
167
+			width: '8', fixed: false, align: 'center',
168
+			sortable: false, editable: false, edittype: 'text', 
169
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
170
+		},
171
+		{
172
+			index: 'PODR_QTY', name: 'podrQty',
173
+			label: "발주수량",
174
+			width: '8', fixed: false, align: 'center',
175
+			sortable: false, editable: false, edittype: 'text', 
176
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
177
+		},
178
+		{
179
+			index: 'DLV_QTY', name: 'dlvQty',
180
+			label: "납품수량",
181
+			width: '8', fixed: false, align: 'center',
182
+			sortable: false, editable: false, edittype: 'text', 
183
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
184
+		},
185
+		{
186
+			index: 'WHS_COL_QTY', name: 'whsColQty',
187
+			label: "입고/수거수량",
188
+			width: '8', fixed: false, align: 'center',
189
+			sortable: false, editable: false, edittype: 'text', 
190
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
191
+		}, 
192
+		{
193
+			index: 'WHS_COL_DT', name: 'whsColDt',
194
+			label: "입고/수거일자",
195
+			width: '8', fixed: false, align: 'center',
196
+			sortable: false, editable: false, edittype: 'text'
197
+		},
198
+		{
199
+			index: 'WHS_COL_AMT', name: 'whsColAmt',
200
+			label: "입고/수거금액",
201
+			width: '8', fixed: false, align: 'center',
202
+			sortable: false, editable: false, edittype: 'text', 
203
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
204
+		},
205
+		{
206
+			index: 'STTL_DVSN_NM', name: 'sttlDvsnNm',
207
+			label: "정산구분",
208
+			width: '8', fixed: false, align: 'center',
209
+			sortable: false, editable: false, edittype: 'text'
210
+		},
211
+		{
212
+			index: 'PODR_UNQ_NO', name: 'podrUnqNo',
213
+			label: "발주번호",
214
+			width: '8', fixed: false, align: 'center',
215
+			sortable: false, editable: false, edittype: 'text'
216
+		},
217
+		{
218
+			index: 'PODR_DTL_NO', name: 'podrDtlNo',
219
+			label: "발주항번",
220
+			width: '8', fixed: false, align: 'center',
221
+			sortable: false, editable: false, edittype: 'text'
222
+		}
223
+	]
224
+};
225
+
226
+require(['config'], function() {
227
+	require([
228
+		'kakao.map.util'
229
+	], function($) {
230
+		pageObj.init();
231
+	});
232
+});
233
+
234
+/*화면공통 Object*/
235
+let pageObj = {
236
+	init: function () {
237
+		this.ui.init();
238
+		this.event.init();
239
+	},
240
+	ui: {
241
+		init: function () {
242
+			this.view();
243
+			this.grid();
244
+			this.ready();
245
+		},
246
+		view: function() {
247
+			// 버튼 권한설정
248
+			fn_proc_btn_auth('SETTMNG02010');
249
+			
250
+			// 공통코드 표시
251
+			$('select').each(function() {
252
+		        if($(this).data('select-code')) {
253
+		            fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
254
+		        }
255
+		    });
256
+
257
+			// 조회일자 지정
258
+			var now = new Date();
259
+			$('#ITP_TAB_SETTMNG02010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);			
260
+			$('#ITP_FORM_SETTMNG02010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
261
+			$('#ITP_FORM_SETTMNG02010_SEARCH_TO_DT').datepicker('setDate', new Date());
262
+			
263
+			// 권한에 따라 매장값 설정
264
+			$('#ITP_FORM_SETTMNG02010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
265
+			LOGIN_AUTH_TYPE_CD = fn_make_user_info.get('authTpCd'); // 권한타입
266
+			if(LOGIN_AUTH_TYPE_CD == '60') {
267
+				$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_ID').val(fn_make_user_info.get('storeId'));
268
+				$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_NM').val(fn_make_user_info.get('storeNm'));	
269
+			}
270
+			
271
+		},
272
+		grid: function() {
273
+			itp_fn_jqgrid_resize(SETTMNG02010_GRID_ID, SETTMNG02010_GRID_LIST, 'lg');
274
+			listObj.empty.init();
275
+			itp_fn_fire_window_resize();
276
+		},
277
+		ready: function() {
278
+			listObj.init();
279
+		}
280
+	},
281
+	event: {
282
+		init: function () {
283
+			this.button();
284
+			this.change();
285
+		},
286
+		button: function () {
287
+			// 버튼 클릭 이벤트
288
+			$('button').each(function() {
289
+				var id = $(this).attr('id');
290
+				$(this).on('click', function() {
291
+					switch (id) {
292
+						case 'ITP_BTN_SETTMNG02010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
293
+						case 'ITP_BTN_SETTMNG02010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
294
+						// case 'ITP_BTN_SETTMNG02010_NEWREG'			: listObj.button.reqSttl();	break;	// 정산요청 버튼
295
+						// case 'ITP_BTN_SETTMNG02010_REQUEST'			: modifyObj.button.request();	break;	// 요청 버튼
296
+					}
297
+				});
298
+			});
299
+
300
+			$('body').on('click', function(e) {
301
+				var gridId = SETTMNG02010_DETAIL_GRID_ID.replace('#', '');
302
+				var rids = $(SETTMNG02010_DETAIL_GRID_ID).jqGrid('getDataIDs');
303
+				var last_row_id = rids[rids.length - 1];
304
+				itp_fn_grid_reset_selection(e, last_row_id, gridId, 'SETTMNG02010_DETAIL');
305
+			});
306
+
307
+		}, 
308
+		change: function() {
309
+			$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_GUBUN').on('change', function() {
310
+				var gubunVal = $('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_GUBUN').val();
311
+				if(gubunVal == '1') { // 매장
312
+					$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_NM').attr('placeholder', '매장명');
313
+					
314
+					$(SETTMNG02010_GRID_ID).jqGrid('hideCol', ["spplyNm"]);
315
+					$(SETTMNG02010_GRID_ID).jqGrid('showCol', ["storeNm"]);		
316
+					// $(SETTMNG02010_GRID_ID).setColProp('spplyNm', {hidden: true});
317
+					// $(SETTMNG02010_GRID_ID).setColProp('storeNm', {hidden: false});
318
+								
319
+				} else if(gubunVal == '2') { // 공급업체
320
+					$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_NM').attr('placeholder', '공급사명');
321
+					
322
+					$(SETTMNG02010_GRID_ID).jqGrid('hideCol', ["storeNm"]);
323
+					$(SETTMNG02010_GRID_ID).jqGrid('showCol', ["spplyNm"]);
324
+					// $(SETTMNG02010_GRID_ID).setColProp('storeNm', {hidden: true});
325
+					// $(SETTMNG02010_GRID_ID).setColProp('spplyNm', {hidden: false});
326
+				}	
327
+				listObj.button.search();	
328
+				// itp_fn_jqgrid_resize(SETTMNG02010_GRID_ID, SETTMNG02010_GRID_LIST, 'lg');							
329
+			});			
330
+		}
331
+	},
332
+	switchScreen: function(mode) {
333
+		if(mode == 'LIST') { // 목록
334
+			$('#ITP_BTN_SETTMNG02010_MODIFY').hide();
335
+			$('#ITP_BTN_SETTMNG02010_CANCELLIST').hide();
336
+			$('#ITP_BTN_SETTMNG02010_DELETE').hide();
337
+			$('#ITP_BTN_SETTMNG02010_REQUEST').hide();
338
+			
339
+			if(LOGIN_AUTH_TYPE_CD == '60') { // 공급사
340
+				$('#ITP_BTN_SETTMNG02010_SEARCH_SPPLY_POP').hide();
341
+				$('#ITP_BTN_SETTMNG02010_SEARCH_ERASE').hide();
342
+			} else {
343
+				$('#ITP_BTN_SETTMNG02010_SEARCH_SPPLY_POP').show();
344
+				$('#ITP_BTN_SETTMNG02010_SEARCH_ERASE').show();
345
+			}
346
+			
347
+			fn_show_btn_auth('#ITP_BTN_SETTMNG02010_SRH');
348
+			fn_show_btn_auth('#ITP_BTN_SETTMNG02010_NEWREG');
349
+			
350
+			$('#ITP_AJAX_SETTMNG02010_LIST_CONTAINER').show();
351
+			$('#ITP_AJAX_SETTMNG02010_DETAIL_CONTAINER').hide();
352
+			
353
+		} else if(mode == 'DETAIL') { // 보기
354
+			$('#ITP_BTN_SETTMNG02010_SRH').hide();
355
+			$('#ITP_BTN_SETTMNG02010_NEWREG').hide();
356
+			$('#ITP_BTN_SETTMNG02010_DELETE').hide();
357
+			
358
+			fn_show_btn_auth('#ITP_BTN_SETTMNG02010_REQUEST');
359
+			fn_show_btn_auth('#ITP_BTN_SETTMNG02010_CANCELLIST');
360
+
361
+			$('#ITP_AJAX_SETTMNG02010_LIST_CONTAINER').hide();
362
+			$('#ITP_AJAX_SETTMNG02010_DETAIL_CONTAINER').show();
363
+		}
364
+	}
365
+};
366
+
367
+/*목록화면 Object*/
368
+let listObj = {
369
+	init: function () {
370
+		this.grid.init();
371
+	},
372
+	itp_SETTMNG02010_search: false,
373
+	button: {
374
+		search: function() {
375
+			listObj.itp_SETTMNG02010_search = true;
376
+			let param = $('#ITP_FORM_SETTMNG02010_SEARCH').serializeObject();
377
+			param.gridSize = $.jgrid.defaults.rowNum;
378
+			param.gridPage = $.jgrid.defaults.page;
379
+			$(SETTMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
380
+		}
381
+	},
382
+	empty: {
383
+		init: function() {
384
+			var _this = this;
385
+			this.push();
386
+			$(SETTMNG02010_GRID_EMPTY).on('click', function() {
387
+				_this.back();
388
+				_this.itp_SETTMNG02010_param.gridSize = $.jgrid.defaults.rowNum;
389
+				$(SETTMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_SETTMNG02010_param)}).trigger('reloadGrid');
390
+			});
391
+		},
392
+		itp_SETTMNG02010_param: {},
393
+		push: function() {
394
+			let param = $('#ITP_FORM_SETTMNG02010_SEARCH').serializeObject();
395
+			listObj.itp_SETTMNG02010_param = param;
396
+		},
397
+		back: function() {
398
+			$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_ID').val(listObj.itp_SETTMNG02010_param.sstoreId);
399
+			$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_NM').val(listObj.itp_SETTMNG02010_param.sstoreNm);
400
+			$('#ITP_FORM_SETTMNG02010_SEARCH_FROM_DT').val(listObj.itp_SETTMNG02010_param.fromDt);
401
+			$('#ITP_FORM_SETTMNG02010_SEARCH_TO_DT').val(listObj.itp_SETTMNG02010_param.toDt);
402
+			$('#ITP_FORM_SETTMNG02010_SEARCH_ITEM_NM').val(listObj.itp_SETTMNG02010_param.sitemNm);
403
+		}
404
+	},
405
+	grid: {
406
+		init: function () {
407
+			// 데이터 없을때
408
+			listObj.empty.push();
409
+			this.search();
410
+		},
411
+		colModel: gridColModel.list,
412
+		search: function() {
413
+			pageObj.switchScreen('LIST');
414
+			this.unload();
415
+			this.load();
416
+		},
417
+		load: function() {			
418
+			let param = $('#ITP_FORM_SETTMNG02010_SEARCH').serializeObject();
419
+			param.gridSize = $.jgrid.defaults.rowNum;
420
+
421
+			var option = {
422
+				gridId: SETTMNG02010_GRID_ID,
423
+				colModel: gridColModel.list,
424
+				param: param,
425
+				url: DOMAIN + STTL_STATE_DETAIL_GRID_LIST,
426
+				pager: SETTMNG02010_GRID_PAGER,
427
+				onCellSelect: function(rowId, cellIdx, cellValue) {
428
+					var cm = $(this).jqGrid('getGridParam', 'colModel');
429
+					var colNm = cm[cellIdx].name;
430
+					if (colNm == 'sttlMgntUnqNo') {
431
+						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
432
+						
433
+						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
434
+						var param = $.param(key);
435
+						modifyObj.init(param);
436
+					}
437
+				},
438
+				loadComplete: function(data) {
439
+					console.log(data);
440
+					itp_fn_grid_load_complete(data, SETTMNG02010_GRID_ID, true, 'number', 'SETTMNG02010', listObj.itp_SETTMNG02010_search, listObj.empty, true, data.gridRecords, true);
441
+					var ids = $(SETTMNG02010_GRID_ID).getDataIDs();
442
+					$.each(ids, function(idx, rowId) {
443
+						$(SETTMNG02010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
444
+					});
445
+				},
446
+				onPaging: function(action) {
447
+					itp_fn_grid_paging(SETTMNG02010_GRID_ID, action, param);
448
+				}
449
+			};
450
+			itp_fn_grid_make_remote(option);
451
+		},
452
+		clearData : function() {
453
+			$(SETTMNG02010_GRID_ID).jqGrid('clearGridData', true);
454
+			$(SETTMNG02010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
455
+			$(SETTMNG02010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
456
+			$(SETTMNG02010_GRID_EMPTY).show();
457
+		},
458
+		unload : function() {
459
+			$.jgrid.gridUnload(SETTMNG02010_GRID_ID);
460
+		}
461
+	}
462
+};
463
+
464
+/*상세화면 Object*/
465
+let modifyObj = {
466
+	init: function (param) {
467
+		this.load(param);
468
+	},
469
+	button: {
470
+		cancel: function() {
471
+			listObj.grid.search();
472
+		}
473
+	}, 
474
+	load: function(param) {
475
+		fn_ajax_call(STTL_REQ_INFO_STTL, param, this.callback, 'GET');
476
+	},
477
+	callback: function (result) {
478
+		// console.log(result);
479
+		pageObj.switchScreen('DETAIL');
480
+		$('#ITP_FORM_SETTMNG02010_DETAIL_BRAND_ID').val(result.brandId);
481
+		$('#ITP_FORM_SETTMNG02010_DETAIL_STORE_ID').val(result.storeId);
482
+		$('#ITP_FORM_SETTMNG02010_DETAIL_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
483
+		
484
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnBrandNm').text(result.brandNm);
485
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnStoreNm').text(result.storeNm);
486
+		$('#ITP_FORM_SETTMNG02010_DETAIL_STTL_DT').val(result.sttlDt);  // 정산일자
487
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlStNm').text(result.sttlStNm);
488
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlAmt').text(itp_fn_number_comma(result.sttlAmt));
489
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnAcctBal').text(itp_fn_number_comma(result.acctBal));
490
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
491
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSysRegNm').text(result.sysRegNm);
492
+
493
+		// 리스트 조회
494
+		modifyObj.grid.init();
495
+	},
496
+	grid: {
497
+		init: function() {
498
+			this.unload();
499
+			this.load();
500
+		},
501
+		load : function() {
502
+			let param = $('#ITP_FORM_SETTMNG02010_DETAIL').serializeObject();
503
+			param.gridSize = $.jgrid.defaults.rowNum;
504
+			param.pagingYn = false; // 페이징안함
505
+
506
+			var option = {
507
+				gridId: SETTMNG02010_DETAIL_GRID_ID,
508
+				colModel: gridColModel.view,
509
+				param: param,
510
+				url: DOMAIN + STTL_REQ_STL_GRID_LIST,
511
+				pager: SETTMNG02010_DETAIL_GRID_PAGER,
512
+				loadComplete: function(data) {
513
+					itp_fn_grid_load_complete(data, SETTMNG02010_DETAIL_GRID_ID, true, undefined, 'SETTMNG02010_DETAIL');
514
+				},
515
+				onPaging: function(action) {
516
+					var pagingFn = {
517
+						callBack: function(args) {
518
+							$(args).trigger('reloadGrid');
519
+						}
520
+					};
521
+					if (itp_fn_check_grid_is_writing(SETTMNG02010_DETAIL_GRID_ID)) {
522
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, SETTMNG02010_DETAIL_GRID_ID);
523
+						return 'stop';
524
+					} else {
525
+						itp_fn_grid_paging(SETTMNG02010_DETAIL_GRID_ID, action, param);
526
+					}
527
+				},
528
+				onSortCol: function(index, columnIndex, sortOrder) {
529
+					var sortingFn = {
530
+						callBack: function(args) {
531
+							$(args).trigger('reloadGrid');
532
+						}
533
+					};
534
+					if (itp_fn_check_grid_is_writing(SETTMNG02010_DETAIL_GRID_ID)) {
535
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, SETTMNG02010_DETAIL_GRID_ID);
536
+						return 'stop';
537
+					} else {
538
+						itp_fn_grid_sorting(SETTMNG02010_DETAIL_GRID_ID, index, sortOrder);
539
+					}
540
+				}
541
+			};
542
+			itp_fn_grid_make_remote(option);
543
+		},
544
+		clearData : function() {
545
+			$(SETTMNG02010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
546
+			$(SETTMNG02010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
547
+			$(SETTMNG02010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
548
+			$(SETTMNG02010_DETAIL_GRID_EMPTY).show();
549
+		},
550
+		unload : function() {
551
+			$.jgrid.gridUnload(SETTMNG02010_DETAIL_GRID_ID);
552
+		}
553
+	}
554
+};

+ 1 - 4
src/main/webapp/app/vendinfo/VENDINFO02010.html

@@ -70,11 +70,8 @@
70 70
 											<label class="col-xs-2 itp_lb">품목분류 *</label>
71 71
 											<div class="col-xs-12 itp_ip" style="padding:8px 0 0 15px;">
72 72
 												<div class="col-xs-a itp_in itp_noMar fnItemClass1Nm"></div>
73
-												<label class="col-xs-a itp_in">></label>
74 73
 												<div class="col-xs-a itp_in itp_noMar fnItemClass2Nm"></div>
75
-												<label class="col-xs-a itp_in">></label>
76 74
 												<div class="col-xs-a itp_in itp_noMar fnItemClass3Nm"></div>
77
-												<label class="col-xs-a itp_in">></label>
78 75
 												<div class="col-xs-a itp_in itp_noMar fnItemClass4Nm"></div>
79 76
 											</div>
80 77
 										</div>
@@ -242,7 +239,7 @@
242 239
 											<label class="col-xs-2 itp_lb">품목이미지</label>
243 240
 											<div class="col-xs-12 itp_ip colspan">
244 241
 												<div class="col-xs-1 itp_in" style="width:auto;">
245
-													<img src="/" alt="로고 샘플" id="ITP_FORM_STINFO04010_DETAIL "style="top:12px; left:12px; height:150px; width:412px; " class="form-control itp_input" name="" >
242
+													<img src="" alt="로고 샘플" id="ITP_FORM_STINFO04010_DETAIL "style="top:12px; left:12px; height:150px; width:412px; " class="form-control itp_input" name="" >
246 243
 												</div>
247 244
 											</div>
248 245
 										</div>

+ 6 - 4
src/main/webapp/js/app/vendinfo/ITP_VENDINFO02010.js

@@ -151,7 +151,7 @@ let pageObj = {
151 151
 			this.event.init();
152 152
 			this.fileUpload();
153 153
 			storeSpplyObj.init();
154
-			$('#ITP_FORM_VENDINFO02010_SEARCH_SPPLY_ID').val("SPY221000002");
154
+
155 155
 	},
156 156
 	ui: {
157 157
 			init: function () {
@@ -526,10 +526,12 @@ let viewObj = {
526 526
 			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass2').text(result.itemClass2);
527 527
 			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass3').text(result.itemClass3);
528 528
 			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass4').text(result.itemClass4);
529
+			
529 530
 			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass1Nm').text(result.itemClass1Nm);
530
-			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass2Nm').text(result.itemClass2Nm);
531
-			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass3Nm').text(result.itemClass3Nm);
532
-			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass4Nm').text(result.itemClass4Nm);
531
+			
532
+			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass2Nm').text(">" + result.itemClass2Nm);
533
+			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass3Nm').text(">" + result.itemClass3Nm);
534
+			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClass4Nm').text(">" + result.itemClass4Nm);
533 535
 			
534 536
 			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemClassMgntNo').text(result.itemClassMgntNo);
535 537
 			$('#ITP_FORM_VENDINFO02010_VIEW .fnItemId').text(result.itemId);