Browse Source

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

yhl88 2 years ago
parent
commit
b3825f0697

+ 2 - 2
src/main/webapp/app/popup/biz/BIZPOP_DLV_STTMT_PRN.html

@@ -43,7 +43,7 @@
43 43
 									<div>
44 44
 										<label style="width:100px;">납품일</label>
45 45
 										<label>:</label>
46
-										<span class="fnDlvRegDt"></span>
46
+										<span class="fnDlvSchDt"></span>
47 47
 									</div>
48 48
 									<div>
49 49
 										<label style="width:100px;">납품담당</label>
@@ -71,7 +71,7 @@
71 71
 									<div>
72 72
 										<label style="width:100px;">납품 장소</label>
73 73
 										<label>:</label>
74
-										<span style="margin:0px; " class="fnDlvAddr"></span>
74
+										<span style="margin:0px; " class="fnWhsAddr"></span>
75 75
 									</div>
76 76
 									<div>
77 77
 										<label style="width:100px;">전화번호</label>

+ 9 - 1
src/main/webapp/js/app/config.js

@@ -2564,7 +2564,15 @@ function itp_fn_form_validate(form, element, arry, msg, type) {
2564 2564
 			return false;
2565 2565
 		}
2566 2566
 	}
2567
-
2567
+	if ($.inArray('num', arry) > -1) {
2568
+		$(element).val($(element).val().replace(/[^0-9]/g, ''));
2569
+		const regExp = /^[0-9]+$/;
2570
+		if (!regExp.test($(element).val())) {
2571
+			error(ITP_MSG_LOCALE.message.form.onlynumber);
2572
+			return false;
2573
+		}
2574
+	}
2575
+	
2568 2576
 	if ($.inArray('number', arry) > -1) {
2569 2577
 		const regExp = /^[0-9]+$/;
2570 2578
 		if (!regExp.test($(element).val())) {

+ 1 - 1
src/main/webapp/js/app/loanmng/ITP_LOANMNG02010.js

@@ -641,7 +641,7 @@ let createObj = {
641 641
 			const formId = '#ITP_FORM_LOANMNG02010_DETAIL';
642 642
 			itp_fn_form_clear_validate(null, formId);
643 643
 			
644
-			var vali_dpstAmt = itp_fn_form_validate(formId, formId + '_DPST_AMT', ['empty','number'], undefined); // 입금금액
644
+			var vali_dpstAmt = itp_fn_form_validate(formId, formId + '_DPST_AMT', ['empty','num'], undefined); // 입금금액
645 645
 			var vali_dpstDt = itp_fn_form_validate(formId, formId + '_DPST_DT', ['empty'], undefined); // 입금일자
646 646
 			var vali_dpstNm = itp_fn_form_validate(formId, formId + '_DPST_NM', ['empty'], undefined); // 입금자명
647 647
 			var vali_dpstBnkCd = itp_fn_form_validate(formId, formId + '_DPST_BNK_CD', ['empty'], undefined); // 입금은행

+ 1 - 0
src/main/webapp/js/app/locales/locale-ko.js

@@ -190,6 +190,7 @@ const ITP_MSG_LOCALE = (function() {
190 190
             "dlvQty": "납품수량",
191 191
             "whsQty": "입고수량",
192 192
             "dlvSchDt": "납품예정일",
193
+			"dlvDt": "납품일",
193 194
             "dlvCmpltDt": "납품완료일",
194 195
             "whsCnfmNm": "입고확인자",
195 196
             "dlvMgrNm": "납품자명",

+ 1 - 1
src/main/webapp/js/app/pomng/ITP_POMNG05010.js

@@ -101,7 +101,7 @@ const gridColModel = {
101 101
 		},
102 102
 		{
103 103
 			index: 'DLV_SCH_DT', name: 'dlvSchDt',		
104
-			label: ITP_MSG_LOCALE.label.dlvSchDt, 		//납품예정
104
+			label: ITP_MSG_LOCALE.label.dlvDt, 		//납품일
105 105
 			width: '14', fixed: false, align: 'center',	
106 106
 			minwidth:90,
107 107
 			sortable: false, hidden: false				

+ 2 - 1
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_STTMT_PRN.js

@@ -143,9 +143,10 @@ let pageObj = {
143 143
 		console.log(result);
144 144
 		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvSttmtUnqNo').text(result.dlvSttmtUnqNo);
145 145
 		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvRegDt').text(result.dlvRegDt);
146
+		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvSchDt').text(result.dlvSchDt);
146 147
 		
147 148
 		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvMgrNm').text(result.dlvMgrNm);
148
-		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvAddr').text(result.dlvAddr);
149
+		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnWhsAddr').text(result.whsAddr);
149 150
 		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnWhsMgrTelNo').text(result.whsMgrTelNo);
150 151
 		
151 152
 		$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvBsnsRegno').text(result.dlvBsnsRegno);

+ 28 - 11
src/main/webapp/mobile/app/mpomng/MPOMNG05010.html

@@ -76,7 +76,7 @@
76 76
 			<div id="ITP_LIST_MPOMNG05010_LIST_ITEM_AREA" class="scroll_area row-5">
77 77
 				<ul id="ITP_LIST_MPOMNG05010_LIST_ITEM_ROWS" class="mb_0 panel-group"></ul>
78 78
 				<div id="ITP_LIST_MPOMNG05010_LIST_ITEM_ROWCOPY" style="display: none;">
79
-					<li class="history_list4 item-row">
79
+					<li class="history_list13 item-row">
80 80
 						<div class="left">
81 81
 							<div class="nomal">
82 82
 								<label>납품번호 </label>
@@ -86,22 +86,29 @@
86 86
 						</div>
87 87
 						<div class="left">
88 88
 							<div class="nomal">
89
-								<label class="">납품예정일</label>
89
+								<label class="">발주생성일</label>
90 90
 								<span>:</span>
91
-								<div class="fnDlvReqDt history_info"></div>
92
-								<label class="fn sub_info">납품일</label>
91
+								<div class="fnPodrReqDt"></div>
92
+								<label class="">납품요청일</label>
93 93
 								<span>:</span>
94
-								<div class="fnDlvSchDt"></div>
94
+								<div class="fnDlvReqDt"></div>
95 95
 							</div>
96 96
 						</div>
97 97
 						<div class="left">
98 98
 							<div class="nomal">
99
-								<label>공급업체</label>
99
+								<label>납품일자</label>
100
+								<span>:</span>
101
+								<div class="fnDlvSchDt"></div>
102
+								<label class="">완료일자</label>
100 103
 								<span>:</span>
101
-								<div class="fnSpplyNm history_info"></div>
102
-								<label class="sub_info">납품장소</label>
104
+								<div class="fnCmltDt"></div>
105
+							</div>
106
+						</div>
107
+						<div class="left">
108
+							<div class="nomal">
109
+								<label>납품장소 </label>
103 110
 								<span>:</span>
104
-								<div class="fnWhsNm"></div>
111
+								<div class="full fnWhsNm"></div>
105 112
 							</div>
106 113
 						</div>
107 114
 						<div class="left">
@@ -115,12 +122,22 @@
115 122
 							<div class="nomal">
116 123
 								<label>발주수량</label>
117 124
 								<span>:</span>
118
-								<div class="fnPodrQty history_info"></div>
119
-								<label class="sub_info">납품수량</label>
125
+								<div class="fnPodrQty"></div>
126
+								<label class="">납품수량</label>
120 127
 								<span>:</span>
121 128
 								<div class="fnDlvQty"></div>
122 129
 							</div>
123 130
 						</div>
131
+						<div class="left">
132
+							<div class="nomal">
133
+								<label>납품상태</label>
134
+								<span>:</span>
135
+								<div class="fnDlvStNm"></div>
136
+								<label class="">창고구분</label>
137
+								<span>:</span>
138
+								<div class="fnWhsDvsnNm"></div>
139
+							</div>
140
+						</div>
124 141
 					</li>
125 142
 				</div>
126 143
 			</div>

+ 1 - 1
src/main/webapp/mobile/app/mrtnmng/MRTNMNG06010.html

@@ -19,7 +19,7 @@
19 19
 					<div class="line">
20 20
 						<label>반품발주번호</label>
21 21
 						<div class="float_left">
22
-							<input id="ITP_FORM_MRTNMNG06010_LIST_RTN_PODR_UNQ_NO" name="scolPrckUnqNo" type="text">
22
+							<input id="ITP_FORM_MRTNMNG06010_LIST_RTN_PODR_UNQ_NO" name="srtnPodrUnqNo" type="text">
23 23
 						</div>
24 24
 					</div>
25 25
 					<div class="line">

+ 1 - 0
src/main/webapp/mobile/css/style.css

@@ -501,6 +501,7 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
501 501
 .scroll_area li.history_list9 {height: 170px;}
502 502
 .scroll_area li.history_list11 {height: 230px; padding-top:5px;}
503 503
 .scroll_area li.history_list12 {height: 170px; padding-top:4px;}
504
+.scroll_area li.history_list13 {height: 200px; padding-top:4px;}
504 505
 
505 506
 .scroll_area li .history_info {width: auto;}
506 507
 .scroll_area li .left {width:100%; height:28px; margin-top:0px;}

+ 23 - 40
src/main/webapp/mobile/js/app/mcollmng/ITP_MCOLLMNG01010.js

@@ -200,67 +200,50 @@ let mobContObj = {
200 200
 let mobPopObj = {
201 201
 	popWhsNm: {
202 202
 		popId: 'ITP_POP_MCOLLMNG01010_WHS_AREA',
203
-		rows: [],
204 203
 		init: function () {
204
+			$('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .mb_0').children().remove();
205
+			$('#ITP_POP_MCOLLMNG01010_WHS_AREA #ITP_FORM_MCOLLMNG01010_POP_WHS_KEYWORD').val('');
205 206
 			this.rows.length = 0;
206 207
 			mobPopObj.show(this.popId);
207 208
 			this.search();
208 209
 			this.action();
209 210
 		},
211
+		rows: [],
210 212
 		search: function () {
211 213
 			var _this = this;
212
-			$('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .panel-group').empty();
214
+			$('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .mb_0').empty();
213 215
 			var callbackFn = function(result) {
214
-				console.log(result);
215
-				_this.view(result.gridRows);
216
+				$.each(result.gridRows, function (i, item) {
217
+					$('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MCOLLMNG01010_POP_WHS_ROWCOPY').html());
218
+					var $li = $('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .mb_0 > .row_2:last');
219
+					$li.find('.fnWhsNm').text(item.whsNm);
220
+					$li.find('.fnLocationNm').text(item.locationNm);
221
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
222
+					$li.find('.fnWhsId').data('location', item.location);
223
+					$('#ITP_LIST_MCOLLMNG01010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
224
+				});
216 225
 			};
217 226
 			const param = $('#ITP_FORM_MCOLLMNG01010_POP_WHS').serializeObject();
218
-			param.swhsDvsn = 'W01';
227
+			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
219 228
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
220 229
 		},
221
-		view: function(gridRows) {
222
-			this.rows = gridRows;
223
-			$.each(gridRows, function (i, item) {
224
-				$('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG01010_POP_WHS_ROWCOPY').html());
225
-				var $li = $('#ITP_LIST_MCOLLMNG01010_POP_WHS_AREA .panel-group > .item-row:last');
226
-				$li.find('.fnWhsNm').text(item.whsNm);
227
-				$li.find('.fnLocationNm').text(item.locationNm);
228
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
230
+		action: function() {
231
+			var _this = this;
232
+			$('#ITP_FORM_MCOLLMNG01010_POP_WHS button[id="ITP_BTN_MCOLLMNG01010_POP_WHS_SEARCH"]').off('click').on('click', function() {
233
+				_this.search();
229 234
 			});
230 235
 		},
231 236
 		choice: function(elem) {
232
-			var _this = this;
233 237
 			var whsId = $(elem).data('whs-id');
234
-			$.each(this.rows, function (i, item) {
235
-				if(whsId === item.whsId) {
236
-					$('#ITP_FORM_MCOLLMNG01010_LIST_SEARCH #ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_ID').val(item.whsId);
237
-					$('#ITP_FORM_MCOLLMNG01010_LIST_SEARCH #ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_NM').val(item.whsNm);
238
-					_this.close();
239
-					return false;
240
-				}
241
-			});
242
-		},
243
-		action: function() {
244
-			var _this = this;
245
-			$('button[id^="ITP_BTN_MCOLLMNG01010_POP_WHS"]').off('click').on('click', function() {
246
-				var id = $(this).attr('id');
247
-				switch (id) {
248
-					case 'ITP_BTN_MCOLLMNG01010_POP_WHS_SEARCH'	: _this.search();			break;
249
-					case 'ITP_BTN_MCOLLMNG01010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
250
-					case 'ITP_BTN_MCOLLMNG01010_POP_WHS_CLOSE'	: _this.close(); 			break;
251
-				}
252
-				return false;
253
-			});
238
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
239
+			var location = $(elem).data('location');
240
+			$('#ITP_FORM_MCOLLMNG01010_LIST_SEARCH #ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_ID').val(whsId);
241
+			$('#ITP_FORM_MCOLLMNG01010_LIST_SEARCH #ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_NM').val(whsNm);
242
+			mobPopObj.hide(this.popId);
254 243
 		},
255 244
 		delete: function() {
256 245
 			$('#ITP_FORM_MCOLLMNG01010_LIST_SEARCH #ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_ID').val('');
257 246
 			$('#ITP_FORM_MCOLLMNG01010_LIST_SEARCH #ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_NM').val('');
258
-		},
259
-		close: function() {
260
-			this.rows.length = 0;
261
-			$('#ITP_POP_MCOLLMNG01010_LIST_WHS_AREA .panel-group').empty();
262
-			$('#ITP_FORM_MCOLLMNG01010_POP_WHS #ITP_FORM_MCOLLMNG01010_POP_WHS_KEYWORD').val('');
263
-			mobPopObj.hide(this.popId);
264 247
 		}
265 248
 	},
266 249
 	show: function(popId) {

+ 23 - 40
src/main/webapp/mobile/js/app/mcollmng/ITP_MCOLLMNG02010.js

@@ -287,67 +287,50 @@ let mobContObj = {
287 287
 let mobPopObj = {
288 288
 	popWhsNm: {
289 289
 		popId: 'ITP_POP_MCOLLMNG02010_WHS_AREA',
290
-		rows: [],
291 290
 		init: function () {
291
+			$('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .mb_0').children().remove();
292
+			$('#ITP_POP_MCOLLMNG02010_WHS_AREA #ITP_FORM_MCOLLMNG02010_POP_WHS_KEYWORD').val('');
292 293
 			this.rows.length = 0;
293 294
 			mobPopObj.show(this.popId);
294 295
 			this.search();
295 296
 			this.action();
296 297
 		},
298
+		rows: [],
297 299
 		search: function () {
298 300
 			var _this = this;
299
-			$('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .panel-group').empty();
301
+			$('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .mb_0').empty();
300 302
 			var callbackFn = function(result) {
301
-				console.log(result);
302
-				_this.view(result.gridRows);
303
+				$.each(result.gridRows, function (i, item) {
304
+					$('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MCOLLMNG02010_POP_WHS_ROWCOPY').html());
305
+					var $li = $('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .mb_0 > .row_2:last');
306
+					$li.find('.fnWhsNm').text(item.whsNm);
307
+					$li.find('.fnLocationNm').text(item.locationNm);
308
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
309
+					$li.find('.fnWhsId').data('location', item.location);
310
+					$('#ITP_LIST_MCOLLMNG02010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
311
+				});
303 312
 			};
304 313
 			const param = $('#ITP_FORM_MCOLLMNG02010_POP_WHS').serializeObject();
305
-			param.swhsDvsn = 'W01';
314
+			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
306 315
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
307 316
 		},
308
-		view: function(gridRows) {
309
-			this.rows = gridRows;
310
-			$.each(gridRows, function (i, item) {
311
-				$('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_POP_WHS_ROWCOPY').html());
312
-				var $li = $('#ITP_LIST_MCOLLMNG02010_POP_WHS_AREA .panel-group > .item-row:last');
313
-				$li.find('.fnWhsNm').text(item.whsNm);
314
-				$li.find('.fnLocationNm').text(item.locationNm);
315
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
317
+		action: function() {
318
+			var _this = this;
319
+			$('#ITP_FORM_MCOLLMNG02010_POP_WHS button[id="ITP_BTN_MCOLLMNG02010_POP_WHS_SEARCH"]').off('click').on('click', function() {
320
+				_this.search();
316 321
 			});
317 322
 		},
318 323
 		choice: function(elem) {
319
-			var _this = this;
320 324
 			var whsId = $(elem).data('whs-id');
321
-			$.each(this.rows, function (i, item) {
322
-				if(whsId === item.whsId) {
323
-					$('#ITP_FORM_MCOLLMNG02010_LIST_SEARCH #ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_ID').val(item.whsId);
324
-					$('#ITP_FORM_MCOLLMNG02010_LIST_SEARCH #ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_NM').val(item.whsNm);
325
-					_this.close();
326
-					return false;
327
-				}
328
-			});
329
-		},
330
-		action: function() {
331
-			var _this = this;
332
-			$('button[id^="ITP_BTN_MCOLLMNG02010_POP_WHS"]').off('click').on('click', function() {
333
-				var id = $(this).attr('id');
334
-				switch (id) {
335
-					case 'ITP_BTN_MCOLLMNG02010_POP_WHS_SEARCH'	: _this.search();			break;
336
-					case 'ITP_BTN_MCOLLMNG02010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
337
-					case 'ITP_BTN_MCOLLMNG02010_POP_WHS_CLOSE'	: _this.close(); 			break;
338
-				}
339
-				return false;
340
-			});
325
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
326
+			var location = $(elem).data('location');
327
+			$('#ITP_FORM_MCOLLMNG02010_LIST_SEARCH #ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_ID').val(whsId);
328
+			$('#ITP_FORM_MCOLLMNG02010_LIST_SEARCH #ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_NM').val(whsNm);
329
+			mobPopObj.hide(this.popId);
341 330
 		},
342 331
 		delete: function() {
343 332
 			$('#ITP_FORM_MCOLLMNG02010_LIST_SEARCH #ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_ID').val('');
344 333
 			$('#ITP_FORM_MCOLLMNG02010_LIST_SEARCH #ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_NM').val('');
345
-		},
346
-		close: function() {
347
-			this.rows.length = 0;
348
-			$('#ITP_POP_MCOLLMNG02010_LIST_WHS_AREA .panel-group').empty();
349
-			$('#ITP_FORM_MCOLLMNG02010_POP_WHS #ITP_FORM_MCOLLMNG02010_POP_WHS_KEYWORD').val('');
350
-			mobPopObj.hide(this.popId);
351 334
 		}
352 335
 	},
353 336
 	show: function(popId) {

+ 23 - 40
src/main/webapp/mobile/js/app/mcollmng/ITP_MCOLLMNG03010.js

@@ -243,67 +243,50 @@ let mobContObj = {
243 243
 let mobPopObj = {
244 244
 	popWhsNm: {
245 245
 		popId: 'ITP_POP_MCOLLMNG03010_WHS_AREA',
246
-		rows: [],
247 246
 		init: function () {
247
+			$('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .mb_0').children().remove();
248
+			$('#ITP_POP_MCOLLMNG03010_WHS_AREA #ITP_FORM_MCOLLMNG03010_POP_WHS_KEYWORD').val('');
248 249
 			this.rows.length = 0;
249 250
 			mobPopObj.show(this.popId);
250 251
 			this.search();
251 252
 			this.action();
252 253
 		},
254
+		rows: [],
253 255
 		search: function () {
254 256
 			var _this = this;
255
-			$('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .panel-group').empty();
257
+			$('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .mb_0').empty();
256 258
 			var callbackFn = function(result) {
257
-				console.log(result);
258
-				_this.view(result.gridRows);
259
+				$.each(result.gridRows, function (i, item) {
260
+					$('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MCOLLMNG03010_POP_WHS_ROWCOPY').html());
261
+					var $li = $('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .mb_0 > .row_2:last');
262
+					$li.find('.fnWhsNm').text(item.whsNm);
263
+					$li.find('.fnLocationNm').text(item.locationNm);
264
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
265
+					$li.find('.fnWhsId').data('location', item.location);
266
+					$('#ITP_LIST_MCOLLMNG03010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
267
+				});
259 268
 			};
260 269
 			const param = $('#ITP_FORM_MCOLLMNG03010_POP_WHS').serializeObject();
261
-			param.swhsDvsn = 'W01';
270
+			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
262 271
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
263 272
 		},
264
-		view: function(gridRows) {
265
-			this.rows = gridRows;
266
-			$.each(gridRows, function (i, item) {
267
-				$('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_POP_WHS_ROWCOPY').html());
268
-				var $li = $('#ITP_LIST_MCOLLMNG03010_POP_WHS_AREA .panel-group > .item-row:last');
269
-				$li.find('.fnWhsNm').text(item.whsNm);
270
-				$li.find('.fnLocationNm').text(item.locationNm);
271
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
273
+		action: function() {
274
+			var _this = this;
275
+			$('#ITP_FORM_MCOLLMNG03010_POP_WHS button[id="ITP_BTN_MCOLLMNG03010_POP_WHS_SEARCH"]').off('click').on('click', function() {
276
+				_this.search();
272 277
 			});
273 278
 		},
274 279
 		choice: function(elem) {
275
-			var _this = this;
276 280
 			var whsId = $(elem).data('whs-id');
277
-			$.each(this.rows, function (i, item) {
278
-				if(whsId === item.whsId) {
279
-					$('#ITP_FORM_MCOLLMNG03010_LIST_SEARCH #ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_ID').val(item.whsId);
280
-					$('#ITP_FORM_MCOLLMNG03010_LIST_SEARCH #ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_NM').val(item.whsNm);
281
-					_this.close();
282
-					return false;
283
-				}
284
-			});
285
-		},
286
-		action: function() {
287
-			var _this = this;
288
-			$('button[id^="ITP_BTN_MCOLLMNG03010_POP_WHS"]').off('click').on('click', function() {
289
-				var id = $(this).attr('id');
290
-				switch (id) {
291
-					case 'ITP_BTN_MCOLLMNG03010_POP_WHS_SEARCH'	: _this.search();			break;
292
-					case 'ITP_BTN_MCOLLMNG03010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
293
-					case 'ITP_BTN_MCOLLMNG03010_POP_WHS_CLOSE'	: _this.close(); 			break;
294
-				}
295
-				return false;
296
-			});
281
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
282
+			var location = $(elem).data('location');
283
+			$('#ITP_FORM_MCOLLMNG03010_LIST_SEARCH #ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_ID').val(whsId);
284
+			$('#ITP_FORM_MCOLLMNG03010_LIST_SEARCH #ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_NM').val(whsNm);
285
+			mobPopObj.hide(this.popId);
297 286
 		},
298 287
 		delete: function() {
299 288
 			$('#ITP_FORM_MCOLLMNG03010_LIST_SEARCH #ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_ID').val('');
300 289
 			$('#ITP_FORM_MCOLLMNG03010_LIST_SEARCH #ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_NM').val('');
301
-		},
302
-		close: function() {
303
-			this.rows.length = 0;
304
-			$('#ITP_POP_MCOLLMNG03010_LIST_WHS_AREA .panel-group').empty();
305
-			$('#ITP_FORM_MCOLLMNG03010_POP_WHS #ITP_FORM_MCOLLMNG03010_POP_WHS_KEYWORD').val('');
306
-			mobPopObj.hide(this.popId);
307 290
 		}
308 291
 	},
309 292
 	show: function(popId) {

+ 23 - 41
src/main/webapp/mobile/js/app/mordmng/ITP_MORDMNG01010.js

@@ -200,68 +200,50 @@ let mobContObj = {
200 200
 let mobPopObj = {
201 201
 	popWhsNm: {
202 202
 		popId: 'ITP_POP_MORDMNG01010_WHS_AREA',
203
-		rows: [],
204 203
 		init: function () {
204
+			$('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .mb_0').children().remove();
205
+			$('#ITP_POP_MORDMNG01010_WHS_AREA #ITP_FORM_MORDMNG01010_POP_WHS_KEYWORD').val('');
205 206
 			this.rows.length = 0;
206 207
 			mobPopObj.show(this.popId);
207 208
 			this.search();
208 209
 			this.action();
209 210
 		},
211
+		rows: [],
210 212
 		search: function () {
211 213
 			var _this = this;
212
-			$('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .panel-group').empty();
214
+			$('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .mb_0').empty();
213 215
 			var callbackFn = function(result) {
214
-				console.log(result);
215
-				_this.view(result.gridRows);
216
+				$.each(result.gridRows, function (i, item) {
217
+					$('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MORDMNG01010_POP_WHS_ROWCOPY').html());
218
+					var $li = $('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .mb_0 > .row_2:last');
219
+					$li.find('.fnWhsNm').text(item.whsNm);
220
+					$li.find('.fnLocationNm').text(item.locationNm);
221
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
222
+					$li.find('.fnWhsId').data('location', item.location);
223
+					$('#ITP_LIST_MORDMNG01010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
224
+				});
216 225
 			};
217 226
 			const param = $('#ITP_FORM_MORDMNG01010_POP_WHS').serializeObject();
218
-			param.swhsDvsn = 'W01';
227
+			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
219 228
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
220 229
 		},
221
-		view: function(gridRows) {
222
-			this.rows = gridRows;
223
-			$.each(gridRows, function (i, item) {
224
-				$('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MORDMNG01010_POP_WHS_ROWCOPY').html());
225
-				var $li = $('#ITP_LIST_MORDMNG01010_POP_WHS_AREA .panel-group > .item-row:last');
226
-				$li.find('.fnWhsNm').text(item.whsNm);
227
-				$li.find('.fnLocationNm').text(item.locationNm);
228
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
230
+		action: function() {
231
+			var _this = this;
232
+			$('#ITP_FORM_MORDMNG01010_POP_WHS button[id="ITP_BTN_MORDMNG01010_POP_WHS_SEARCH"]').off('click').on('click', function() {
233
+				_this.search();
229 234
 			});
230 235
 		},
231 236
 		choice: function(elem) {
232
-			var _this = this;
233 237
 			var whsId = $(elem).data('whs-id');
234
-			console.log("choice =====================", whsId, this.rows)
235
-			$.each(this.rows, function (i, item) {
236
-				if(whsId === item.whsId) {
237
-					$('#ITP_FORM_MORDMNG01010_LIST_SEARCH #ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_ID').val(item.whsId);
238
-					$('#ITP_FORM_MORDMNG01010_LIST_SEARCH #ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_NM').val(item.whsNm);
239
-					_this.close();
240
-					return false;
241
-				}
242
-			});
243
-		},
244
-		action: function() {
245
-			var _this = this;
246
-			$('button[id^="ITP_BTN_MORDMNG01010_POP_WHS"]').off('click').on('click', function() {
247
-				var id = $(this).attr('id');
248
-				switch (id) {
249
-					case 'ITP_BTN_MORDMNG01010_POP_WHS_SEARCH'	: _this.search();			break;
250
-					case 'ITP_BTN_MORDMNG01010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
251
-					case 'ITP_BTN_MORDMNG01010_POP_WHS_CLOSE'	: _this.close(); 			break;
252
-				}
253
-				return false;
254
-			});
238
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
239
+			var location = $(elem).data('location');
240
+			$('#ITP_FORM_MORDMNG01010_LIST_SEARCH #ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_ID').val(whsId);
241
+			$('#ITP_FORM_MORDMNG01010_LIST_SEARCH #ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_NM').val(whsNm);
242
+			mobPopObj.hide(this.popId);
255 243
 		},
256 244
 		delete: function() {
257 245
 			$('#ITP_FORM_MORDMNG01010_LIST_SEARCH #ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_ID').val('');
258 246
 			$('#ITP_FORM_MORDMNG01010_LIST_SEARCH #ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_NM').val('');
259
-		},
260
-		close: function() {
261
-			this.rows.length = 0;
262
-			$('#ITP_POP_MORDMNG01010_LIST_WHS_AREA .panel-group').empty();
263
-			$('#ITP_FORM_MORDMNG01010_POP_WHS #ITP_FORM_MORDMNG01010_POP_WHS_KEYWORD').val('');
264
-			mobPopObj.hide(this.popId);
265 247
 		}
266 248
 	},
267 249
 	show: function(popId) {

+ 23 - 40
src/main/webapp/mobile/js/app/mordmng/ITP_MORDMNG02010.js

@@ -299,67 +299,50 @@ let mobContObj = {
299 299
 let mobPopObj = {
300 300
 	popWhsNm: {
301 301
 		popId: 'ITP_POP_MORDMNG02010_WHS_AREA',
302
-		rows: [],
303 302
 		init: function () {
303
+			$('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .mb_0').children().remove();
304
+			$('#ITP_POP_MORDMNG02010_WHS_AREA #ITP_FORM_MORDMNG02010_POP_WHS_KEYWORD').val('');
304 305
 			this.rows.length = 0;
305 306
 			mobPopObj.show(this.popId);
306 307
 			this.search();
307 308
 			this.action();
308 309
 		},
310
+		rows: [],
309 311
 		search: function () {
310 312
 			var _this = this;
311
-			$('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .panel-group').empty();
313
+			$('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .mb_0').empty();
312 314
 			var callbackFn = function(result) {
313
-				console.log(result);
314
-				_this.view(result.gridRows);
315
+				$.each(result.gridRows, function (i, item) {
316
+					$('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MORDMNG02010_POP_WHS_ROWCOPY').html());
317
+					var $li = $('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .mb_0 > .row_2:last');
318
+					$li.find('.fnWhsNm').text(item.whsNm);
319
+					$li.find('.fnLocationNm').text(item.locationNm);
320
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
321
+					$li.find('.fnWhsId').data('location', item.location);
322
+					$('#ITP_LIST_MORDMNG02010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
323
+				});
315 324
 			};
316 325
 			const param = $('#ITP_FORM_MORDMNG02010_POP_WHS').serializeObject();
317
-			param.swhsDvsn = 'W01';
326
+			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
318 327
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
319 328
 		},
320
-		view: function(gridRows) {
321
-			this.rows = gridRows;
322
-			$.each(gridRows, function (i, item) {
323
-				$('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MORDMNG02010_POP_WHS_ROWCOPY').html());
324
-				var $li = $('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .panel-group > .item-row:last');
325
-				$li.find('.fnWhsNm').text(item.whsNm);
326
-				$li.find('.fnLocationNm').text(item.locationNm);
327
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
329
+		action: function() {
330
+			var _this = this;
331
+			$('#ITP_FORM_MORDMNG02010_POP_WHS button[id="ITP_BTN_MORDMNG02010_POP_WHS_SEARCH"]').off('click').on('click', function() {
332
+				_this.search();
328 333
 			});
329 334
 		},
330 335
 		choice: function(elem) {
331
-			var _this = this;
332 336
 			var whsId = $(elem).data('whs-id');
333
-			$.each(this.rows, function (i, item) {
334
-				if(whsId === item.whsId) {
335
-					$('#ITP_FORM_MORDMNG02010_LIST_SEARCH #ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_ID').val(item.whsId);
336
-					$('#ITP_FORM_MORDMNG02010_LIST_SEARCH #ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_NM').val(item.whsNm);
337
-					_this.close();
338
-					return false;
339
-				}
340
-			});
341
-		},
342
-		action: function() {
343
-			var _this = this;
344
-			$('button[id^="ITP_BTN_MORDMNG02010_POP_WHS"]').off('click').on('click', function() {
345
-				var id = $(this).attr('id');
346
-				switch (id) {
347
-					case 'ITP_BTN_MORDMNG02010_POP_WHS_SEARCH'	: _this.search();			break;
348
-					case 'ITP_BTN_MORDMNG02010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
349
-					case 'ITP_BTN_MORDMNG02010_POP_WHS_CLOSE'	: _this.close(); 			break;
350
-				}
351
-				return false;
352
-			});
337
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
338
+			var location = $(elem).data('location');
339
+			$('#ITP_FORM_MORDMNG02010_LIST_SEARCH #ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_ID').val(whsId);
340
+			$('#ITP_FORM_MORDMNG02010_LIST_SEARCH #ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_NM').val(whsNm);
341
+			mobPopObj.hide(this.popId);
353 342
 		},
354 343
 		delete: function() {
355 344
 			$('#ITP_FORM_MORDMNG02010_LIST_SEARCH #ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_ID').val('');
356 345
 			$('#ITP_FORM_MORDMNG02010_LIST_SEARCH #ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_NM').val('');
357
-		},
358
-		close: function() {
359
-			this.rows.length = 0;
360
-			$('#ITP_POP_MORDMNG02010_LIST_WHS_AREA .panel-group').empty();
361
-			$('#ITP_FORM_MORDMNG02010_POP_WHS #ITP_FORM_MORDMNG02010_POP_WHS_KEYWORD').val('');
362
-			mobPopObj.hide(this.popId);
363 346
 		}
364 347
 	},
365 348
 	show: function(popId) {

+ 23 - 40
src/main/webapp/mobile/js/app/mordmng/ITP_MORDMNG03010.js

@@ -249,67 +249,50 @@ let mobContObj = {
249 249
 let mobPopObj = {
250 250
 	popWhsNm: {
251 251
 		popId: 'ITP_POP_MORDMNG03010_WHS_AREA',
252
-		rows: [],
253 252
 		init: function () {
253
+			$('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .mb_0').children().remove();
254
+			$('#ITP_POP_MORDMNG03010_WHS_AREA #ITP_FORM_MORDMNG03010_POP_WHS_KEYWORD').val('');
254 255
 			this.rows.length = 0;
255 256
 			mobPopObj.show(this.popId);
256 257
 			this.search();
257 258
 			this.action();
258 259
 		},
260
+		rows: [],
259 261
 		search: function () {
260 262
 			var _this = this;
261
-			$('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .panel-group').empty();
263
+			$('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .mb_0').empty();
262 264
 			var callbackFn = function(result) {
263
-				console.log(result);
264
-				_this.view(result.gridRows);
265
+				$.each(result.gridRows, function (i, item) {
266
+					$('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MORDMNG03010_POP_WHS_ROWCOPY').html());
267
+					var $li = $('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .mb_0 > .row_2:last');
268
+					$li.find('.fnWhsNm').text(item.whsNm);
269
+					$li.find('.fnLocationNm').text(item.locationNm);
270
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
271
+					$li.find('.fnWhsId').data('location', item.location);
272
+					$('#ITP_LIST_MORDMNG03010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
273
+				});
265 274
 			};
266 275
 			const param = $('#ITP_FORM_MORDMNG03010_POP_WHS').serializeObject();
267
-			param.swhsDvsn = 'W01';
276
+			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
268 277
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
269 278
 		},
270
-		view: function(gridRows) {
271
-			this.rows = gridRows;
272
-			$.each(gridRows, function (i, item) {
273
-				$('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MORDMNG03010_POP_WHS_ROWCOPY').html());
274
-				var $li = $('#ITP_LIST_MORDMNG03010_POP_WHS_AREA .panel-group > .item-row:last');
275
-				$li.find('.fnWhsNm').text(item.whsNm);
276
-				$li.find('.fnLocationNm').text(item.locationNm);
277
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
279
+		action: function() {
280
+			var _this = this;
281
+			$('#ITP_FORM_MORDMNG03010_POP_WHS button[id="ITP_BTN_MORDMNG03010_POP_WHS_SEARCH"]').off('click').on('click', function() {
282
+				_this.search();
278 283
 			});
279 284
 		},
280 285
 		choice: function(elem) {
281
-			var _this = this;
282 286
 			var whsId = $(elem).data('whs-id');
283
-			$.each(this.rows, function (i, item) {
284
-				if(whsId === item.whsId) {
285
-					$('#ITP_FORM_MORDMNG03010_LIST_SEARCH #ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_ID').val(item.whsId);
286
-					$('#ITP_FORM_MORDMNG03010_LIST_SEARCH #ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_NM').val(item.whsNm);
287
-					_this.close();
288
-					return false;
289
-				}
290
-			});
291
-		},
292
-		action: function() {
293
-			var _this = this;
294
-			$('button[id^="ITP_BTN_MORDMNG03010_POP_WHS"]').off('click').on('click', function() {
295
-				var id = $(this).attr('id');
296
-				switch (id) {
297
-					case 'ITP_BTN_MORDMNG03010_POP_WHS_SEARCH'	: _this.search();			break;
298
-					case 'ITP_BTN_MORDMNG03010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
299
-					case 'ITP_BTN_MORDMNG03010_POP_WHS_CLOSE'	: _this.close(); 			break;
300
-				}
301
-				return false;
302
-			});
287
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
288
+			var location = $(elem).data('location');
289
+			$('#ITP_FORM_MORDMNG03010_LIST_SEARCH #ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_ID').val(whsId);
290
+			$('#ITP_FORM_MORDMNG03010_LIST_SEARCH #ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_NM').val(whsNm);
291
+			mobPopObj.hide(this.popId);
303 292
 		},
304 293
 		delete: function() {
305 294
 			$('#ITP_FORM_MORDMNG03010_LIST_SEARCH #ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_ID').val('');
306 295
 			$('#ITP_FORM_MORDMNG03010_LIST_SEARCH #ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_NM').val('');
307
-		},
308
-		close: function() {
309
-			this.rows.length = 0;
310
-			$('#ITP_POP_MORDMNG03010_LIST_WHS_AREA .panel-group').empty();
311
-			$('#ITP_FORM_MORDMNG03010_POP_WHS #ITP_FORM_MORDMNG03010_POP_WHS_KEYWORD').val('');
312
-			mobPopObj.hide(this.popId);
313 296
 		}
314 297
 	},
315 298
 	show: function(popId) {

+ 3 - 3
src/main/webapp/mobile/js/app/popup/biz/ITP_BIZPOP_PO_PAYMENT.js

@@ -321,12 +321,12 @@ function f_moblie_submit() {
321 321
 	let param = $('#frm_pay').serializeObject();
322 322
 	param.reqDataList = reqDataList;
323 323
 	
324
-	console.log("REQ : " + JSON.stringify(param));
324
+	// console.log("REQ : " + JSON.stringify(param));
325 325
 		
326 326
 	fn_ajax_call(EASYPAY_PAYMENT_REQUEST, JSON.stringify(param), function(result) {
327 327
 		
328
-		console.log("RES : " + JSON.stringify(result));
329
-		console.log("RES_CD : " + result.res_cd);
328
+		// console.log("RES : " + JSON.stringify(result));
329
+		// console.log("RES_CD : " + result.res_cd);
330 330
 		
331 331
 		if(result.res_cd === '0000') {
332 332
 			popPageObj.parentPopFn(result);