Explorar el Código

정산검수현황 공급사 팝업 적용

marseyes hace 2 años
padre
commit
c1bd04c651
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. 15 0
      src/main/webapp/js/app/settmng/ITP_SETTMNG02010.js

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

@@ -293,6 +293,8 @@ let pageObj = {
293 293
 						case 'ITP_BTN_SETTMNG02010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
294 294
 						case 'ITP_BTN_SETTMNG02010_CONFIRM'			: modifyObj.button.confirmSttl();	break;	// 정산확정 버튼
295 295
 						case 'ITP_BTN_SETTMNG02010_REJECT'			: modifyObj.button.rejectSttl();	break;	// 정산반려 버튼
296
+						case 'ITP_BTN_SETTMNG02010_SEARCH_SPPLY_POP'	: listObj.button.spplyPop();	break;	// 
297
+						case 'ITP_BTN_SETTMNG02010_SEARCH_ERASE'		: listObj.button.spplyErase();	break;	// 
296 298
 					}
297 299
 				});
298 300
 			});
@@ -381,6 +383,19 @@ let listObj = {
381 383
 			param.gridSize = $.jgrid.defaults.rowNum;
382 384
 			param.gridPage = $.jgrid.defaults.page;
383 385
 			$(SETTMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
386
+		}, 
387
+		spplyPop: function() {
388
+			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', function(result) {
389
+				// alert(JSON.stringify(result));
390
+				$('#ITP_FORM_SETTMNG02010_SEARCH_SPPLY_ID').val(result.spplyId);
391
+				$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_NM').val(result.spplyNm);				
392
+				listObj.button.search();
393
+			}, null, 'S');
394
+		}, 
395
+		spplyErase: function() {
396
+			$('#ITP_FORM_SETTMNG02010_SEARCH_SPPLY_ID').val('');
397
+			$('#ITP_FORM_SETTMNG02010_SEARCH_STORE_SPPLY_NM').val('');
398
+			listObj.button.search();
384 399
 		}
385 400
 	},
386 401
 	empty: {