浏览代码

모바일 입고/반품처리 수

juney 2 年之前
父节点
当前提交
e0bd9bd79a

+ 2 - 2
src/main/webapp/mobile/app/mpomng/MPOMNG06010.html

@@ -119,8 +119,8 @@
119 119
 				</div>
120 120
 			</div>
121 121
 			<div class="button_bar">
122
-				<button id="ITP_BTN_MPOMNG06010_LIST_SAVE" class="col_12 btn-m-orange INPS">입고처리</button>
123
-				<!--<button id="ITP_BTN_MPOMNG06010_LIST_CANCEL" class="btn_col_3 btn-gray CLB">취소</button>-->
122
+				<!--<button id="ITP_BTN_MPOMNG06010_LIST_SAVE" class="col_12 btn-m-orange INPS">입고처리</button>-->
123
+				<button id="ITP_BTN_MPOMNG06010_LIST_CANCEL" class="btn_col_3 btn-gray CLB">취소</button>
124 124
 			</div>
125 125
 		</form>
126 126
 	</div>

+ 2 - 2
src/main/webapp/mobile/app/mrtnmng/MRTNMNG05010.html

@@ -119,8 +119,8 @@
119 119
 				</div>
120 120
 			</div>
121 121
 			<div class="button_bar">
122
-				<button id="ITP_BTN_MRTNMNG05010_LIST_MODIFY" class="btn_col_6 btn-m-orange INPS">반품처리</button>
123
-				<button id="ITP_BTN_MRTNMNG05010_LIST_CANCEL" class="btn_col_3 btn-gray CLB">취소</button>
122
+				<!--<button id="ITP_BTN_MRTNMNG05010_LIST_MODIFY" class="btn_col_6 btn-m-orange INPS">반품처리</button>-->
123
+				<button id="ITP_BTN_MRTNMNG05010_LIST_CANCEL" class="btn_col_6 btn-gray CLB">취소</button>
124 124
 			</div>
125 125
 		</form>
126 126
 	</div>

+ 20 - 6
src/main/webapp/mobile/app/popup/biz/BIZPOP_PO_WHS_QTY.html

@@ -10,15 +10,12 @@
10 10
 					<div class="col-xs-12">
11 11
 						<div class="form-horizontal">
12 12
 							<form id="ITP_FORM_PO_WHS_QTY_POPUP" target="_PAYMENT_FRAME" action="">
13
-								<input type="hidden" id="ITP_FORM_PO_WHS_QTY_POPUP_PAY_TP_CD" name="payTpCd" value="" />
14
-								<input type="hidden" id="ITP_FORM_PO_WHS_QTY_POPUP_BRAND_ID" name="brandId" value="" />
15
-								<input type="hidden" id="ITP_FORM_PO_WHS_QTY_POPUP_BRAND_NM" name="brandNm" value="" />
16 13
 								<div class="line shot">
17 14
 									<div class="label_box">
18 15
 										<label class="shot">품목번호</label>
19 16
 									</div>
20 17
 									<div class="info_box">
21
-										<div class="fnItemNo"></div>
18
+										<div class="fnItemId"></div>
22 19
 									</div>
23 20
 								</div>
24 21
 								<div class="line shot">
@@ -43,7 +40,7 @@
43 40
 									</div>
44 41
 									<div class="info_box">
45 42
 			              				<button id="ITP_BTN_PO_WHS_QTY_POPUP_ITEM_MINUS">-</button>
46
-										<input type="text" id="ITP_FORM_PO_WHS_QTY_POPUP" class="itp_input" name="whsQty" />
43
+										<input type="text" id="ITP_POP_FORM_PO_WHS_QTY" class="itp_input" name="whsQty" onKeyup="this.value=this.value.replace(/[^0-9]/g,'');" value="0" />
47 44
 										<button id="ITP_BTN_PO_WHS_QTY_POPUP_ITEM_PLUS">+</button>
48 45
 									</div>
49 46
 								</div>
@@ -54,7 +51,7 @@
54 51
 			</div>
55 52
 			<div class="modal-footer">
56 53
 				<div class="pop_btn_bar">
57
-					<button type="button" id="ITP_BTN_PO_WHS_QTY_CONFIRM_POP" class="btn btn-primary btn-sm SAB" style="display: inline-block;">&nbsp;&nbsp;확인&nbsp;&nbsp;</button>
54
+					<button type="button" id="ITP_BTN_PO_WHS_QTY_CONFIRM_POP" class="btn btn-primary btn-sm SAB" style="display: inline-block;">&nbsp;&nbsp;입고처리&nbsp;&nbsp;</button>
58 55
 					<button type="button" id="ITP_BTN_PO_WHS_QTY_CLOSE_POP" class="btn btn-danger btn-sm CLB">&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
59 56
 				</div>
60 57
 			</div>
@@ -62,4 +59,21 @@
62 59
 	</div>
63 60
 	<div id="ITP_POPUP_KICC_JS"></div>
64 61
 	<div id="ITP_POPUP_JS"></div>
62
+	<div id="ITP_POP_MODAL_ALERT" class="modal itp_modal">
63
+		<div class="modal-dialog modal-sm">
64
+			<div class="modal-content">
65
+				<div class="modal-header">
66
+					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
67
+					<h5 class="modal-title">알림</h5>
68
+				</div>
69
+				<div class="modal-body">
70
+					<div class="text-center itp_alert_txt"></div>
71
+				</div>
72
+				<div class="modal-bottom">
73
+					<button type="button" class="btn btn-default col_4" id="ITP_POP_MODAL_ALERT_CANCEL" data-dismiss="modal">취소</button>
74
+					<button type="button" class="btn btn-primary col_10" id="ITP_POP_MODAL_ALERT_CONFIRM">확인</button>
75
+				</div>
76
+			</div>
77
+		</div>
78
+	</div>
65 79
 </div>

+ 11 - 11
src/main/webapp/mobile/app/popup/biz/BIZPOP_RT_COL_QTY.html

@@ -1,4 +1,4 @@
1
-<div id="ITP_BIZPOP_PO_COL_QTY" class="modal itp_modal">
1
+<div id="ITP_BIZPOP_RT_COL_QTY" class="modal itp_modal">
2 2
 	<div class="modal-dialog">
3 3
 		<div class="modal-content">
4 4
 			<div class="modal-header">
@@ -9,16 +9,16 @@
9 9
 				<div class="itp_form itp_type1 fix">
10 10
 					<div class="col-xs-12">
11 11
 						<div class="form-horizontal">
12
-							<form id="ITP_FORM_PO_COL_QTY_POPUP" target="_PAYMENT_FRAME" action="">
13
-								<input type="hidden" id="ITP_FORM_PO_COL_QTY_POPUP_PAY_TP_CD" name="payTpCd" value="" />
14
-								<input type="hidden" id="ITP_FORM_PO_COL_QTY_POPUP_BRAND_ID" name="brandId" value="" />
15
-								<input type="hidden" id="ITP_FORM_PO_COL_QTY_POPUP_BRAND_NM" name="brandNm" value="" />
12
+							<form id="ITP_FORM_RT_COL_QTY_POPUP" target="_PAYMENT_FRAME" action="">
13
+								<input type="hidden" id="ITP_FORM_RT_COL_QTY_POPUP_PAY_TP_CD" name="payTpCd" value="" />
14
+								<input type="hidden" id="ITP_FORM_RT_COL_QTY_POPUP_BRAND_ID" name="brandId" value="" />
15
+								<input type="hidden" id="ITP_FORM_RT_COL_QTY_POPUP_BRAND_NM" name="brandNm" value="" />
16 16
 								<div class="line shot">
17 17
 									<div class="label_box">
18 18
 										<label class="shot">품목번호</label>
19 19
 									</div>
20 20
 									<div class="info_box">
21
-										<div class="fnItemNo"></div>
21
+										<div class="fnItemId"></div>
22 22
 									</div>
23 23
 								</div>
24 24
 								<div class="line shot">
@@ -42,9 +42,9 @@
42 42
 										<label class="itp_lb">수거수량</label>
43 43
 									</div>
44 44
 									<div class="info_box">
45
-			              				<button id="ITP_BTN_PO_COL_QTY_POPUP_ITEM_MINUS">-</button>
46
-										<input type="text" id="ITP_FORM_PO_COL_QTY_POPUP" class="itp_input" name="colQty" />
47
-										<button id="ITP_BTN_PO_COL_QTY_POPUP_ITEM_PLUS">+</button>
45
+			              				<button id="ITP_BTN_RT_COL_QTY_POPUP_ITEM_MINUS">-</button>
46
+										<input type="text" id="ITP_POP_FORM_RT_COL_QTY" class="itp_input" name="colQty" />
47
+										<button id="ITP_BTN_RT_COL_QTY_POPUP_ITEM_PLUS">+</button>
48 48
 									</div>
49 49
 								</div>
50 50
 							</form>
@@ -54,8 +54,8 @@
54 54
 			</div>
55 55
 			<div class="modal-footer">
56 56
 				<div class="pop_btn_bar">
57
-					<button type="button" id="ITP_BTN_PO_COL_QTY_CONFIRM_POP" class="btn btn-primary btn-sm SAB" style="display: inline-block;">&nbsp;&nbsp;확인&nbsp;&nbsp;</button>
58
-					<button type="button" id="ITP_BTN_PO_COL_QTY_CLOSE_POP" class="btn btn-danger btn-sm CLB">&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
57
+					<button type="button" id="ITP_BTN_RT_COL_QTY_CONFIRM_POP" class="btn btn-primary btn-sm SAB" style="display: inline-block;">&nbsp;&nbsp;반품처리&nbsp;&nbsp;</button>
58
+					<button type="button" id="ITP_BTN_RT_COL_QTY_CLOSE_POP" class="btn btn-danger btn-sm CLB">&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
59 59
 				</div>
60 60
 			</div>
61 61
 		</div>

+ 11 - 3
src/main/webapp/mobile/js/app/mpomng/ITP_MPOMNG06010.js

@@ -60,6 +60,7 @@ let mobPageObj = {
60 60
 					case 'ITP_BTN_MPOMNG06010_LIST_DELETE_WHS_NM'		: mobPopObj.popWhsNm.delete(); 	break;
61 61
 					case 'ITP_BTN_MPOMNG06010_LIST_SEARCH'				: mobContObj.list.search();		break;
62 62
 					case 'ITP_BTN_MPOMNG06010_LIST_SAVE'				: mobContObj.list.save();		break;
63
+					case 'ITP_BTN_MPOMNG06010_LIST_CANCEL'				: mobContObj.list.cancel();		break;
63 64
 				}
64 65
 				return false;
65 66
 			});
@@ -130,7 +131,7 @@ let mobContObj = {
130 131
 					$li.find('.fnWhsAmt').text(CommonObj.currency.add(item.whsAmt));
131 132
 					$li.find('.fnDlvQty').text(CommonObj.comma.set(item.dlvQty));
132 133
 					$li.find('.fnWhsQty').val(item.whsQty);
133
-					$('button[id="ITP_BTN_MPOMNG06010_WHS_QTY"]')[$li.index()].addEventListener('click', function() { _this.inputQty(this); });
134
+					$('button[id="ITP_BTN_MPOMNG06010_WHS_QTY"]')[$li.index()].addEventListener('click', function() { _this.popupQty(item); });
134 135
 					mobContObj.list.rows.push(item);
135 136
 				});
136 137
 			};
@@ -139,8 +140,12 @@ let mobContObj = {
139 140
 			param.gridSize = mobile_list_size;
140 141
 			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST');
141 142
 		},
142
-		inputQty: function() {
143
-
143
+		popupQty: function(item) {
144
+			var popFn = function(result) {
145
+				mobContObj.list.search();
146
+			};
147
+			var args = { 'item': item };
148
+			fn_call_popup('biz', 'BIZPOP_PO_WHS_QTY', '#ITP_ASIDE', popFn, args, 'M');
144 149
 		},
145 150
 		save: function() {
146 151
 			var _this = this;
@@ -199,6 +204,9 @@ let mobContObj = {
199 204
 				};
200 205
 				itp_fn_modal_confirm('입고처리 하시겠습니까?', modalFn);
201 206
 			}
207
+		},
208
+		cancel: function () {
209
+			$(location).attr('href', MOBILE_CONTEXTPATH + '/app/main.html');
202 210
 		}
203 211
 	}
204 212
 };

+ 8 - 0
src/main/webapp/mobile/js/app/mrtnmng/ITP_MRTNMNG05010.js

@@ -124,6 +124,7 @@ let mobContObj = {
124 124
 					$li.find('.fncolReqAmt').text(CommonObj.currency.add(item.colReqAmt));
125 125
 					$li.find('.fnRodrQty').text(CommonObj.currency.add(item.rodrQty, ''));
126 126
 					$li.find('#ITP_FORM_MRTNMNG05010_LIST_COL_QTY').val(item.colQty);
127
+					$('button[id="ITP_BTN_MRTNMNG05010_COL_QTY"]')[$li.index()].addEventListener('click', function() { _this.popupQty(item); });
127 128
 					mobContObj.list.rows.push(item);
128 129
 				});
129 130
 			};
@@ -133,6 +134,13 @@ let mobContObj = {
133 134
 			// console.log(JSON.stringify(param));
134 135
 			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST');
135 136
 		},
137
+		popupQty: function(item) {
138
+			var popFn = function(result) {
139
+				mobContObj.list.search();
140
+			};
141
+			var args = { 'item': item };
142
+			fn_call_popup('biz', 'BIZPOP_RT_COL_QTY', '#ITP_ASIDE', popFn, args, 'M');
143
+		},
136 144
 		save: function() {
137 145
 			var _this = this;
138 146
 			var chkQtyYn1 = true;

+ 112 - 6
src/main/webapp/mobile/js/app/popup/biz/ITP_BIZPOP_PO_WHS_QTY.js

@@ -10,14 +10,120 @@ const API_MOBILE_SAVE 		= '/api/pomng/inoutmng/save-warehouse';				// 저장
10 10
 
11 11
 var popPageObj = {
12 12
 	init: function () {
13
-		this.button();
14
-		this.change();
15 13
 		this.view();
14
+		this.action();
16 15
 	},
17
-	button: function() {
18
-	}, 
19
-	change: function() {
20
-	}, 	
21 16
 	view: function() {
17
+		console.log(popPageObj.args.item);
18
+		$('#ITP_FORM_PO_WHS_QTY_POPUP .fnItemId').text(popPageObj.args.item.itemId);
19
+		$('#ITP_FORM_PO_WHS_QTY_POPUP .fnItemNm').text(popPageObj.args.item.itemNm);
20
+		$('#ITP_FORM_PO_WHS_QTY_POPUP .fnDlvQty').text(popPageObj.args.item.dlvQty);
21
+	},
22
+	action: function() {
23
+		$('button[id^="ITP_BTN_PO_WHS_QTY_"]').on('click', function() {
24
+			var id = $(this).attr('id');
25
+			switch (id) {
26
+				case 'ITP_BTN_PO_WHS_QTY_POPUP_ITEM_PLUS'		: popPageObj.qty.plus($(this));		break;
27
+				case 'ITP_BTN_PO_WHS_QTY_POPUP_ITEM_MINUS'		: popPageObj.qty.minus($(this));	break;
28
+				case 'ITP_BTN_PO_WHS_QTY_CONFIRM_POP'			: popPageObj.save();				break;
29
+				case 'ITP_BTN_PO_WHS_QTY_CLOSE_POP'				: popPageObj.close();				break;
30
+			}
31
+			return false;
32
+		});
33
+
34
+	},
35
+	qty: {
36
+		plus: function(elem) {
37
+			var whsQty = $(elem).prev();
38
+			var num = Number($(whsQty).val());
39
+			$(whsQty).val((num + 1).toString());
40
+		},
41
+		minus: function(elem) {
42
+			var whsQty = $(elem).next();
43
+			var num = Number($(whsQty).val());
44
+			if(num > 0)  $(whsQty).val((num - 1).toString());
45
+		}
46
+	},
47
+	save: function() {
48
+		var value = popPageObj.args.item;
49
+		var whsQty = $('#ITP_POP_FORM_PO_WHS_QTY').val();
50
+		if (whsQty === '') {
51
+			alert("입고수량을 입력해주세요!");
52
+			// itp_fn_pop_modal_alert("입고수량을 입력해주세요!");
53
+			return;
54
+		}
55
+		if (parseInt(whsQty) > parseInt(value.dlvQty)) {
56
+			alert("납품수량보다 입고수량이 더 많습니다.");
57
+			return;
58
+		}
59
+		var gridInsertData = [];
60
+		var item = {
61
+			'dlvSttmtDtlNo'	: value.dlvSttmtDtlNo,
62
+			'dlvSttmtUnqNo'	: value.dlvSttmtUnqNo,
63
+			'itemId'		: value.itemId,
64
+			'whsQty'		: whsQty
65
+		};
66
+		gridInsertData.push(item);
67
+		if(gridInsertData.length > 0) {
68
+			var modalFn = {
69
+				callBack: () => {
70
+					let param = {};
71
+					param['viewCd'] = 'C';
72
+					param['brandId'] = fn_make_user_info.get('brandId');
73
+					param['storeId'] = fn_make_user_info.get('storeId');
74
+					param['whsId'] = value.whsId;
75
+					param['gridInsertData'] = gridInsertData;
76
+					console.log(JSON.stringify(param));
77
+					var saveFn = function () {
78
+						$('#ITP_BIZPOP_PO_WHS_QTY').modal('hide'); // 팝업닫기
79
+						popPageObj.parentPopFn();
80
+					};
81
+					fn_ajax_call(API_MOBILE_SAVE, JSON.stringify(param), saveFn, 'POST');
82
+				}
83
+			};
84
+			if(confirm('입고처리 하시겠습니까?')) {
85
+				modalFn.callBack();
86
+			}
87
+			// itp_fn_pop_modal_confirm('입고처리 하시겠습니까?', modalFn);
88
+		}
89
+	},
90
+	close: function() {
91
+		$('#ITP_BIZPOP_PO_WHS_QTY').modal('hide'); // 팝업닫기
22 92
 	}
23 93
 };
94
+
95
+function itp_fn_pop_modal_alert(msg) {
96
+	$('#ITP_POP_MODAL_ALERT_CANCEL').hide();
97
+	$('#ITP_POP_MODAL_ALERT').modal('show');
98
+	$('#ITP_POP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
99
+	$('#ITP_POP_MODAL_ALERT_CONFIRM').off('click');
100
+	$('#ITP_POP_MODAL_ALERT_CONFIRM').on('click', function() {
101
+		$('#ITP_POP_MODAL_ALERT').modal('hide');
102
+	});
103
+};
104
+
105
+function itp_fn_pop_modal_confirm(msg, fn, args) {
106
+	$('#ITP_POP_MODAL_ALERT_CANCEL').show();
107
+	$('#ITP_POP_MODAL_ALERT').modal('show');
108
+	$('#ITP_POP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
109
+	if (fn !== undefined || typeof fn !== 'undefined') {
110
+		$('#ITP_POP_MODAL_ALERT_CONFIRM').off('click');
111
+		$('#ITP_POP_MODAL_ALERT_CONFIRM').on('click', function() {
112
+			fn.callBack(args);
113
+			$('#ITP_POP_MODAL_ALERT').modal('hide');
114
+		});
115
+	}
116
+}
117
+
118
+function itp_fn_BIZPOP_PO_WHS_QTY(parentPopFn, args, returnType) {
119
+	$('#ITP_BIZPOP_PO_WHS_QTY').one('shown.bs.modal', function(e) {
120
+		itp_fn_fire_window_resize();
121
+	}).one('hidden.bs.modal', function(e) {
122
+		$('#ITP_BIZPOP_PO_WHS_QTY').remove();
123
+	}).modal('show');
124
+
125
+	popPageObj.parentPopFn = parentPopFn;
126
+	popPageObj.args = args;
127
+	popPageObj.returnType = returnType;
128
+	popPageObj.init();
129
+}

+ 130 - 0
src/main/webapp/mobile/js/app/popup/biz/ITP_BIZPOP_RT_COL_QTY.js

@@ -0,0 +1,130 @@
1
+require(['config'], function() {
2
+	require([
3
+		'jquery'
4
+	], function($) {
5
+
6
+	});
7
+});
8
+
9
+const API_MOBILE_SAVE 		= '/api/rtnmng/inoutmng/save-retstock';				// 반품처리
10
+
11
+var popPageObj = {
12
+	init: function () {
13
+		this.view();
14
+		this.action();
15
+	},
16
+	view: function() {
17
+		console.log(popPageObj.args.item);
18
+		$('#ITP_FORM_RT_COL_QTY_POPUP .fnItemId').text(popPageObj.args.item.itemId);
19
+		$('#ITP_FORM_RT_COL_QTY_POPUP .fnItemNm').text(popPageObj.args.item.itemNm);
20
+		$('#ITP_FORM_RT_COL_QTY_POPUP .fnColReqQty').text(popPageObj.args.item.colReqQty);
21
+	},
22
+	action: function() {
23
+		$('button[id^="ITP_BTN_RT_COL_QTY_"]').on('click', function() {
24
+			var id = $(this).attr('id');
25
+			switch (id) {
26
+				case 'ITP_BTN_RT_COL_QTY_POPUP_ITEM_PLUS'		: popPageObj.qty.plus($(this));		break;
27
+				case 'ITP_BTN_RT_COL_QTY_POPUP_ITEM_MINUS'		: popPageObj.qty.minus($(this));	break;
28
+				case 'ITP_BTN_RT_COL_QTY_CONFIRM_POP'			: popPageObj.save();				break;
29
+				case 'ITP_BTN_RT_COL_QTY_CLOSE_POP'				: popPageObj.close();				break;
30
+			}
31
+			return false;
32
+		});
33
+
34
+	},
35
+	qty: {
36
+		plus: function(elem) {
37
+			var whsQty = $(elem).prev();
38
+			var num = Number($(whsQty).val());
39
+			$(whsQty).val((num + 1).toString());
40
+		},
41
+		minus: function(elem) {
42
+			var whsQty = $(elem).next();
43
+			var num = Number($(whsQty).val());
44
+			if(num > 0)  $(whsQty).val((num - 1).toString());
45
+		}
46
+	},
47
+	save: function() {
48
+		var value = popPageObj.args.item;
49
+		var colQty = $('#ITP_POP_FORM_RT_COL_QTY').val();
50
+		if (colQty === '') {
51
+			alert("수거수량을 입력해주세요!");
52
+			// itp_fn_pop_modal_alert("수거수량을 입력해주세요!");
53
+			return;
54
+		}
55
+		if (parseInt(colQty) > parseInt(value.colReqQty)) {
56
+			alert("수거요청수량보다 수거수량이 더 많습니다.");
57
+			return;
58
+		}
59
+		var gridInsertData = [];
60
+		var item = {
61
+			'colPickDtlNo'	: value.colPickDtlNo,
62
+			'colPickUnqNo'	: value.colPickUnqNo,
63
+			'itemId'		: value.itemId,
64
+			'colQty'		: colQty
65
+		};
66
+		gridInsertData.push(item);
67
+		if(gridInsertData.length > 0) {
68
+			var modalFn = {
69
+				callBack: () => {
70
+					let param = {};
71
+					param['viewCd'] = 'C';
72
+					param['whsId'] = value.whsId;
73
+					param['rtnWhsId'] = value.rtnWhsId;
74
+					param['brandId'] = fn_make_user_info.get('brandId');
75
+					param['storeId'] = fn_make_user_info.get('storeId');
76
+					param['gridInsertData'] = gridInsertData;
77
+					var saveFn = function () {
78
+						$('#ITP_BIZPOP_RT_COL_QTY').modal('hide'); // 팝업닫기
79
+						popPageObj.parentPopFn();
80
+					};
81
+					console.log(JSON.stringify(param));
82
+					fn_ajax_call(API_MOBILE_SAVE, JSON.stringify(param), saveFn, 'POST');
83
+				}
84
+			};
85
+			if(confirm('반품처리 하시겠습니까?')) {
86
+				modalFn.callBack();
87
+			}
88
+			// itp_fn_pop_modal_confirm('입고처리 하시겠습니까?', modalFn);
89
+		}
90
+	},
91
+	close: function() {
92
+		$('#ITP_BIZPOP_RT_COL_QTY').modal('hide'); // 팝업닫기
93
+	}
94
+};
95
+
96
+function itp_fn_pop_modal_alert(msg) {
97
+	$('#ITP_POP_MODAL_ALERT_CANCEL').hide();
98
+	$('#ITP_POP_MODAL_ALERT').modal('show');
99
+	$('#ITP_POP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
100
+	$('#ITP_POP_MODAL_ALERT_CONFIRM').off('click');
101
+	$('#ITP_POP_MODAL_ALERT_CONFIRM').on('click', function() {
102
+		$('#ITP_POP_MODAL_ALERT').modal('hide');
103
+	});
104
+};
105
+
106
+function itp_fn_pop_modal_confirm(msg, fn, args) {
107
+	$('#ITP_POP_MODAL_ALERT_CANCEL').show();
108
+	$('#ITP_POP_MODAL_ALERT').modal('show');
109
+	$('#ITP_POP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
110
+	if (fn !== undefined || typeof fn !== 'undefined') {
111
+		$('#ITP_POP_MODAL_ALERT_CONFIRM').off('click');
112
+		$('#ITP_POP_MODAL_ALERT_CONFIRM').on('click', function() {
113
+			fn.callBack(args);
114
+			$('#ITP_POP_MODAL_ALERT').modal('hide');
115
+		});
116
+	}
117
+}
118
+
119
+function itp_fn_BIZPOP_RT_COL_QTY(parentPopFn, args, returnType) {
120
+	$('#ITP_BIZPOP_RT_COL_QTY').one('shown.bs.modal', function(e) {
121
+		itp_fn_fire_window_resize();
122
+	}).one('hidden.bs.modal', function(e) {
123
+		$('#ITP_BIZPOP_RT_COL_QTY').remove();
124
+	}).modal('show');
125
+
126
+	popPageObj.parentPopFn = parentPopFn;
127
+	popPageObj.args = args;
128
+	popPageObj.returnType = returnType;
129
+	popPageObj.init();
130
+}