소스 검색

발주요청 초기화 버튼 추가

isna 2 년 전
부모
커밋
f092a9dd7e

+ 1 - 0
src/main/webapp/app/pomng/POMNG01010.html

@@ -4,6 +4,7 @@
4 4
 			<div class="itp_det_head fix">
5 5
 				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i> <strong class="fnTitleMenu" ></strong></h2>
6 6
 				<div class="pull-right itp_cicon">
7
+					<button type="button" id="ITP_BTN_POMNG01010_CLS" class="btn btn-default btn-sm CLS" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;초기화&nbsp;&nbsp;</button>
7 8
 					<button type="button" id="ITP_BTN_POMNG01010_SRH" class="btn btn-primary btn-sm REQ" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;요청&nbsp;&nbsp;</button>
8 9
 					<button type="button" id="ITP_BTN_POMNG01010_NEWREG" class="btn btn-primary btn-sm TSA" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;임시저장&nbsp;&nbsp;</button>
9 10
 				</div>				

+ 1 - 1
src/main/webapp/app/popup/biz/BIZPOP_SAFE_STCK_ITEM.html

@@ -1,4 +1,4 @@
1
-<div id="ITP_BIZPOP_SAFE_STCK_ITEM" class="modal itp_modal">
1
+<div id="ITP_BIZPOP_SAFE_STCK_ITEM" class="modal itp_modal" data-backdrop="static">
2 2
 	<div class="modal-dialog" style="width:800px;">
3 3
 		<div class="modal-content">
4 4
 			<form id="ITP_FORM_BIZPOP_SAFE_STCK_ITEM">

+ 7 - 0
src/main/webapp/js/app/pomng/ITP_POMNG01010.js

@@ -205,6 +205,7 @@ let pageObj = {
205 205
 				var id = $(this).attr('id');
206 206
 				$(this).on('click', function() {
207 207
 					switch (id) {
208
+						case 'ITP_BTN_POMNG01010_CLS'				: createObj.button.clearForm(); break;	// 초기화
208 209
 						case 'ITP_BTN_POMNG01010_SRH'				: createObj.button.save("PR20"); break;	// 구매요청
209 210
 						case 'ITP_BTN_POMNG01010_NEWREG'			: createObj.button.save("PR00"); break;	// 임시저장
210 211
 						case 'ITP_BTN_POMNG01010_DETAIL_ADDROW'		: pageObj.grid.button.addRow(); break;	// 품목추가
@@ -370,6 +371,7 @@ let createObj = {
370 371
 		$('#ITP_BTN_POMNG01010_DETAIL_ADDROW').show();
371 372
 		$('#ITP_BTN_POMNG01010_DETAIL_DELROW').show();
372 373
 		$('#ITP_BTN_POMNG01010_SRH').show();
374
+		$('#ITP_BTN_POMNG01010_CLS').show();
373 375
 		$('#ITP_BTN_POMNG01010_NEWREG').show();
374 376
 		this.load();
375 377
 	},
@@ -389,6 +391,11 @@ let createObj = {
389 391
 		fn_ajax_call(API_DETAIL_INIT_INFO, key, this.callback, 'GET');
390 392
 	},
391 393
 	button: {
394
+		clearForm: function() {
395
+			 createObj.newinit();
396
+			 pageObj.grid.clearData();
397
+			 $('#ITP_FORM_POMNG01010_DETAIL_PCH_REQ_NM').focus();
398
+		},
392 399
 		save: function(arg) {
393 400
 			$('body').trigger('click');
394 401