Bladeren bron

팝업수정

whakdo963 2 jaren geleden
bovenliggende
commit
a3fc8fc819

+ 36 - 0
src/main/webapp/js/app/config.js

@@ -2408,6 +2408,42 @@ function itp_fn_modal_confirm(msg, fn, args) {
2408 2408
 		});
2409 2409
 	}
2410 2410
 };
2411
+function itp_fn_modal_confirm_req1(msg, fn, args) {
2412
+	$('#ITP_MODAL_ALERT_CANCEL').show();
2413
+	$('#ITP_MODAL_ALERT').modal('show');
2414
+	$('#ITP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
2415
+	if (fn !== undefined || typeof fn !== 'undefined') {
2416
+		$('#ITP_MODAL_ALERT_CONFIRM').off('click');
2417
+		$('#ITP_MODAL_ALERT_CONFIRM').on('click', function() {
2418
+			fn.callBack(args);
2419
+			$('#ITP_MODAL_ALERT').modal('hide');
2420
+		});
2421
+	}
2422
+};
2423
+function itp_fn_modal_confirm_req2(msg, fn, args) {
2424
+	$('#ITP_MODAL_ALERT_CANCEL').show();
2425
+	$('#ITP_MODAL_ALERT').modal('show');
2426
+	$('#ITP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
2427
+	if (fn !== undefined || typeof fn !== 'undefined') {
2428
+		$('#ITP_MODAL_ALERT_CONFIRM').off('click');
2429
+		$('#ITP_MODAL_ALERT_CONFIRM').on('click', function() {
2430
+			fn.callBack(args);
2431
+			$('#ITP_MODAL_ALERT').modal('hide');
2432
+		});
2433
+	}
2434
+};
2435
+function itp_fn_modal_confirm_req3(msg, fn, args) {
2436
+	$('#ITP_MODAL_ALERT_CANCEL').show();
2437
+	$('#ITP_MODAL_ALERT').modal('show');
2438
+	$('#ITP_MODAL_ALERT').find('.itp_alert_txt').html(msg);
2439
+	if (fn !== undefined || typeof fn !== 'undefined') {
2440
+		$('#ITP_MODAL_ALERT_CONFIRM').off('click');
2441
+		$('#ITP_MODAL_ALERT_CONFIRM').on('click', function() {
2442
+			fn.callBack(args);
2443
+			$('#ITP_MODAL_ALERT').modal('hide');
2444
+		});
2445
+	}
2446
+};
2411 2447
 
2412 2448
 function itp_fn_form_clear_validate(modal, form) {
2413 2449
 	$(form).find('.itp_ip').removeClass('has-error');

+ 1 - 0
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_LMT_PAY.js

@@ -16,6 +16,7 @@ function itp_fn_BIZPOP_DLV_LMT_PAY(parentPopFn, args, returnType) {
16 16
 			},
17 17
 			call: function( param) {
18 18
 				fn_ajax_call(API_POP_INV_INFO, JSON.stringify(param), this.callback, 'POST');
19
+				
19 20
 			},
20 21
 			button: function() {
21 22
 				$('#ITP_MODAL_ALERT_CANCEL').on('click', function (){

+ 36 - 0
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_PCH_OK.js

@@ -0,0 +1,36 @@
1
+require(['config'], function() {
2
+	require([
3
+		'jquery'
4
+	], function($) {
5
+
6
+	});
7
+});
8
+
9
+let API_POP_INV_INFO = '/api/pomng/save-pchReq';
10
+
11
+function itp_fn_BIZPOP_DLV_PCH_OK(parentPopFn, args, returnType) {
12
+	
13
+	let pageObj = {
14
+			init: function() {
15
+				this.button();
16
+			},
17
+			call: function( param) {
18
+				fn_ajax_call(API_POP_INV_INFO, JSON.stringify(param), this.callback, 'POST');
19
+				
20
+			},
21
+			button: function() {
22
+				$('#ITP_MODAL_ALERT_CANCEL').on('click', function (){
23
+					
24
+				});
25
+				$('#ITP_MODAL_ALERT_PAYMENT').on('click', function (){
26
+					
27
+				});
28
+			}, 
29
+			callback: function (result) {
30
+				console.log(result);
31
+				$('#ITP_BIZPOP_DLV_PCH_OK .fnDlvReqDt').text(result.dlvReqDt);
32
+				$('#ITP_BIZPOP_DLV_PCH_OK .fnPchReqQty').text(result.pchReqQty);
33
+				$('#ITP_BIZPOP_DLV_PCH_OK .fnPchReqAmt').text(result.pchReqAmt);
34
+			},
35
+	};
36
+};

+ 36 - 0
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_PPAY.js

@@ -0,0 +1,36 @@
1
+require(['config'], function() {
2
+	require([
3
+		'jquery'
4
+	], function($) {
5
+
6
+	});
7
+});
8
+
9
+let API_POP_INV_INFO = '/api/pomng/save-pchReq';
10
+
11
+function itp_fn_BIZPOP_DLV_DLV_PPAY(parentPopFn, args, returnType) {
12
+	
13
+	let pageObj = {
14
+			init: function() {
15
+				this.button();
16
+			},
17
+			call: function( param) {
18
+				fn_ajax_call(API_POP_INV_INFO, JSON.stringify(param), this.callback, 'POST');
19
+				
20
+			},
21
+			button: function() {
22
+				$('#ITP_MODAL_ALERT_CANCEL').on('click', function (){
23
+					
24
+				});
25
+				$('#ITP_MODAL_ALERT_PAYMENT').on('click', function (){
26
+					
27
+				});
28
+			}, 
29
+			callback: function (result) {
30
+				console.log(result);
31
+				$('#ITP_BIZPOP_DLV_DLV_PPAY .fnDlvReqDt').text(result.dlvReqDt);
32
+				$('#ITP_BIZPOP_DLV_DLV_PPAY .fnPchReqQty').text(result.pchReqQty);
33
+				$('#ITP_BIZPOP_DLV_DLV_PPAY .fnPchReqAmt').text(result.pchReqAmt);
34
+			},
35
+	};
36
+};