Quellcode durchsuchen

임시저장... 예전소스 돌아간것 같아서 고미준ㅇ

dwkim vor 2 Jahren
Ursprung
Commit
453ffdf55c
2 geänderte Dateien mit 138 neuen und 128 gelöschten Zeilen
  1. 2 2
      src/main/webapp/app/pomng/POMNG03010.html
  2. 136 126
      src/main/webapp/js/app/pomng/ITP_POMNG03010.js

+ 2 - 2
src/main/webapp/app/pomng/POMNG03010.html

@@ -119,7 +119,7 @@
119 119
 										<div class="form-group">
120 120
 											<label class="col-xs-2 itp_lb">발주담당자</label>
121 121
 											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
122
-											<label class="col-xs-2 itp_lb">배송구분111</label>
122
+											<label class="col-xs-2 itp_lb">배송구분</label>
123 123
 											<div class="col-xs-4 itp_ip">
124 124
 												<div class="col-xs-5 itp_in">
125 125
 												    <select id="ITP_FORM_POMNG03010_DETAIL_DLV_DVSN" data-select-code="DLV_DVSN" data-check-required="empty" class="form-control itp_input" name="dlvDvsn">
@@ -170,7 +170,7 @@
170 170
 					<div class="itp_form itp_type1 fix">
171 171
 						<div class="col-xs-12">
172 172
 							<form id="ITP_FORM_POMNG03010_NDETAIL" class="form-horizontal">
173
-								<input type="hidden" id="ITP_FORM_POMNG03010_DETAIL_NDETAIL_CD" name="viewCd" value="C">
173
+								<input type="hidden" id="ITP_FORM_POMNG03010_NDETAIL_VIEW_CD" name="viewCd" value="C">
174 174
 					
175 175
 								<section class="itp_form_sec">
176 176
 									<h4 class="itp_form_tit">구매발주상세-신규발주생성</h4>

+ 136 - 126
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -35,6 +35,7 @@ const POMNG03010_NDETAIL_GRID_PAGER = '#ITP_POMNG03010_NDETAIL_jqGridPager';
35 35
 const POMNG03010_NDETAIL_GRID_EMPTY = '#ITP_POMNG03010_NDETAIL_jqGridEmpty';
36 36
 
37 37
 let ITP_FORM_POMNG03010_DETAIL_IS_WRITING = false;
38
+let POMNG03010_GRID_LAST_ROW_ID;
38 39
 
39 40
 /*API URL*/
40 41
 let API_DETAIL_GRID_LIST 		= '/api/pomng/po-target-grid-list';	// 목록
@@ -43,6 +44,7 @@ let API_DETAIL_POPASS_CHK   	= '/api/pomng/po/chk-pchOrd'; // 목록에서 선
43 44
 let API_DETAIL_PO_INIT_INFO    	= '/api/pomng/po/init-pchOrd'; // 구매요청발주생성 오픈시 호출하여 데이타 세팅함
44 45
 let API_DETAIL_NEW_INIT_INFO    = '/api/pomng/po/init-poOrd'; // 신규발주생성 오픈시 호출하여 데이타 세팅함
45 46
 let API_DETAIL_SAVE 		    = '/api/pomng/po/save-pchPo';			// 저장
47
+let API_DETAIL_PASSQTY 		    = '/api/stock/mng/whs-passqty-list';			// 창고선택후 해당 창고의 출고가능수량을 가져옴
46 48
 
47 49
 
48 50
 /*화면 Grid ColModel*/
@@ -180,7 +182,7 @@ const gridColModel = {
180 182
 			index: 'VIEW_CD', name: 'viewCd',
181 183
 			label: ITP_MSG_LOCALE.label.viewCd,
182 184
 			width: '10', fixed: false, align: 'center',
183
-			sortable: false, hidden: true
185
+			sortable: false, hidden: false
184 186
 		},
185 187
 		{
186 188
 			index: 'PCH_REQ_UNQ_NO', name: 'pchReqUnqNo',
@@ -406,8 +408,25 @@ let pageObj = {
406 408
 				$('#ITP_FORM_POMNG03010_DETAIL_SHMT_WHS_NM').val(rowDataPop.whsNm + " - " + rowDataPop.locationNm);
407 409
 				$('#ITP_FORM_POMNG03010_DETAIL_SHMT_WHS_ID').val(rowDataPop.whsId);
408 410
 				$('#ITP_FORM_POMNG03010_DETAIL_SHMT_LOCATION').val(rowDataPop.location);
411
+				
412
+				// 본사배송일경우 해당 창고의 재고를 가져와 출고가능수량에 기입한다.
413
+				// 만약 본사 배송일 경우 진행 처리함
414
+				var param = {brandId: fn_make_user_info.get('brandId'), whsId:rowDataPop.whsId , location:rowDataPop.location };
415
+				let gridInsertData = [];
416
+				const rowData = $(POMNG03010_DETAIL_GRID_ID).getRowData();
417
+				$.each(rowData, function(key, value) {
418
+					gridInsertData.push(value);
419
+				});
420
+
421
+				param.gridItemData = gridInsertData;
422
+					
423
+				modifyObj.whsPassQty(param);
409 424
 			}
410 425
 			
426
+			
427
+			
428
+			
429
+			
411 430
 		}
412 431
 	},
413 432
 	event: {
@@ -425,7 +444,7 @@ let pageObj = {
425 444
 						case 'ITP_BTN_POMNG03010_NEWPOCREATE'			: listObj.button.newpocreate();	break;	// 신규po 버튼
426 445
 						case 'ITP_BTN_POMNG03010_REJECT'				: listObj.button.reject(); 		break;	// 반려
427 446
 						case 'ITP_BTN_POMNG03010_PO'					: modifyObj.button.save(); 			break;	// 발주
428
-						case 'ITP_BTN_POMNG03010_CANCELLIST'			: createObj.button.cancel(); 		break;	// 취소/목록 버튼
447
+						case 'ITP_BTN_POMNG03010_CANCELLIST'			: modifyObj.button.cancel(); 		break;	// 취소/목록 버튼
429 448
 						case 'ITP_BTN_POMNG03010_DETAIL_ADDROW'			: pageObj.grid.button.addRow(); 	break;	// 품목추가
430 449
 						case 'ITP_BTN_POMNG03010_DETAIL_DELROW'			: pageObj.grid.button.delRow(); 	break;	// 품목삭제
431 450
 					}
@@ -447,72 +466,107 @@ let pageObj = {
447 466
 			$('#ITP_FORM_POMNG03010_DETAIL_SBRAND_ID').val(fn_make_user_info.get('brandId'));
448 467
 			$('#ITP_FORM_POMNG03010_DETAIL_SSTORE_ID').val(fn_make_user_info.get('storeId'));
449 468
 		} else if(mode == 'NPC') { // 신규발주등록
469
+		/*
450 470
 			$('#ITP_AJAX_POMNG03010_DETAIL_CONTAINER').show();
451
-			fn_show_btn_auth_array(['#ITP_BTN_POMNG03010_PO', '#ITP_BTN_POMNG03010_CANCELLIST', '#ITP_BTN_POMNG03010_DETAIL_ADDROW', '#ITP_BTN_POMNG03010_DETAIL_DELROW']);
452
-			$('#ITP_FORM_POMNG03010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
453
-			$('#ITP_FORM_POMNG03010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
471
+			fn_show_btn_auth_array(['#ITP_BTN_POMNG03010_PO', '#ITP_BTN_POMNG03010_CANCELLIST', '#ITP_BTN_POMNG03010_NDETAIL_ADDROW', '#ITP_BTN_POMNG03010_NDETAIL_DELROW']);
472
+			$('#ITP_FORM_POMNG03010_NDETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
473
+			$('#ITP_FORM_POMNG03010_NDETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
454 474
 			
455
-			$('#ITP_FORM_POMNG03010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
456
-				$(this).attr('id') === 'ITP_FORM_POMNG03010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
475
+			$('#ITP_FORM_POMNG03010_NDETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
476
+				$(this).attr('id') === 'ITP_FORM_POMNG03010_NDETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
457 477
 				if(elem.type === 'select') {
458 478
 					$(this).val('').prop('selected', true);
459 479
 				}
460 480
 			});
461 481
 			
462
-			
463
-			// 가맹점 정보 설정
464
-			/*
465
-			$('#ITP_FORM_POMNG03010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
466
-			$('#ITP_FORM_POMNG03010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
467
-			$('#ITP_FORM_POMNG03010_DETAIL .fnBrandNm').text(fn_make_user_info.get('brandNm'));
468
-
469
-			$('#ITP_FORM_POMNG03010_DETAIL .fnStoreNm').text('(자동부여)');
470
-			$('#ITP_FORM_POMNG03010_DETAIL_STORE_ID').removeAttr('readonly');
471
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_info').hide();
472
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_info').find('input, select').each(function(i, elem) {
473
-				if($(this).data('check-required')) $(this).data('check-required', '');
474
-				$(this).attr('disabled', true);
475
-			});
476
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_change').show();
477
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_change').find('input, select').each(function(i, elem) {
478
-				if($(this).data('check-required')) $(this).data('check-required', 'empty');
479
-				$(this).attr('disabled', false);
480
-			});
481
-			*/
482 482
 			var now = new Date();
483 483
 			$('#ITP_TAB_POMNG03010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
484
-			$('#ITP_FORM_POMNG03010_DETAIL_DLV_REQ_DT').datepicker('setDate', new Date(now.setDate(now.getDate()+5)));
484
+			$('#ITP_FORM_POMNG03010_NDETAIL_DLV_REQ_DT').datepicker('setDate', new Date(now.setDate(now.getDate()+5)));
485
+			*/
485 486
 		} else if(mode == 'POC') { // 구매요청 발주
486 487
 			$('#ITP_AJAX_POMNG03010_DETAIL_CONTAINER').show();
487 488
 			fn_show_btn_auth_array(['#ITP_BTN_POMNG03010_PO', '#ITP_BTN_POMNG03010_CANCELLIST']);
488 489
 			$('#ITP_FORM_POMNG03010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
489 490
 			$('#ITP_FORM_POMNG03010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
490
-			/*
491
-			$('#ITP_FORM_POMNG03010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
492
-			$('#ITP_FORM_POMNG03010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
493
-			$('#ITP_FORM_POMNG03010_DETAIL .fnBrandNm').text(fn_make_user_info.get('brandNm'));
494
-
495
-			$('#ITP_FORM_POMNG03010_DETAIL_STORE_ID').attr('readonly', true);
496
-			// $('#ITP_BTN_POMNG03010_RESET_PW').show();
497
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_info').show();
498
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_info').find('input, select').each(function(i, elem) {
499
-				if($(this).data('check-required')) $(this).data('check-required', 'empty');
500
-				$(this).attr('disabled', false);
501
-			});
502
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_change').hide();
503
-			$('#ITP_FORM_POMNG03010_DETAIL .itp_form_change').find('input, select').each(function(i, elem) {
504
-				if($(this).data('check-required')) $(this).data('check-required', '');
505
-				$(this).attr('disabled', true);
491
+			
492
+		}
493
+	},
494
+	grid: {
495
+		init: function(mode, gridRows) {
496
+			this.gridId = (mode === 'NPC') ? POMNG03010_VIEW_NDETAIL_ID : POMNG03010_DETAIL_GRID_ID;
497
+			this.gridList = (mode === 'NPC') ? POMNG03010_NDETAIL_GRID_LIST : POMNG03010_DETAIL_GRID_LIST;
498
+			this.gridEmpty = (mode === 'NPC') ? POMNG03010_NDETAIL_GRID_EMPTY : POMNG03010_DETAIL_GRID_EMPTY;
499
+			this.gridRows = gridRows;
500
+			this.unload();
501
+			this.load(mode, gridRows);
502
+			
503
+		},
504
+		gridId: '',
505
+		mode: 'DETAIL',
506
+		button: {},
507
+		gridList: '',
508
+		gridEmpty: '',
509
+		gridRows: '',
510
+		load: function(mode, gridRows) {
511
+			var _this = this;
512
+			var option = {
513
+				gridId: _this.gridId,
514
+				colModel: gridColModel.detail,
515
+				data: gridRows,
516
+				cellEdit: true,
517
+				multiselect: (mode !== 'NPC'),
518
+				loadComplete: function(data) {
519
+					console.log(data);
520
+					
521
+					$(_this.mode === 'NPC' ? POMNG03010_NDETAIL_GRID_LIST : POMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'hidden');
522
+					data.records === 0 ? _this.clearData(_this.mode) : $(_this.mode === 'VIEW' ? POMNG03010_NDETAIL_GRID_EMPTY : POMNG03010_DETAIL_GRID_EMPTY).hide();
523
+					
524
+				},
525
+				onCellSelect: function(rowid, cellIdx, cellValue) {
526
+					console.log('mode ===> ' + mode);
527
+					//POMNG03010_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowid, cellIdx, POMNG03010_GRID_LAST_ROW_ID, _this.gridId, ['actionId']);
528
+				},
529
+				afterSaveCell: function(rowid,name,val,iRow,iCol) {
530
+					// 구매요청금액 계산 (기존금액과 )
531
+					var	unitAmt  = jQuery(_this.gridId).jqGrid('getCell',rowid,iCol-3);
532
+					jQuery(_this.gridId).jqGrid('setRowData',rowid,{podrAmt: parseInt(val)*parseInt(unitAmt)});	
533
+					
534
+					// 그리드 포문으로 금액 재계산후 구매요청금액에 넣어줌
535
+					pageObj.grid.recal(_this.mode,_this.gridId);
536
+				}
537
+			};
538
+			itp_fn_grid_make_local(option);
539
+		},
540
+		recal: function(mode, gridId) {
541
+			//PCH_REQ_AMT
542
+			console.log(gridId);
543
+			const rowData = $(gridId).getRowData();
544
+			var podrAmt = 0 ;
545
+			console.log("####################################");
546
+			$.each(rowData, function(key, value) {
547
+				console.log(rowData);
548
+				if (value.podrAmt != null && value.podrAmt != "" && value.viewCd != "D") {
549
+					podrAmt = podrAmt + parseInt(value.podrAmt) ;
550
+				}
551
+				
506 552
 			});
507
-			*/
508
-
509
-		} 
510
-		/*
511
-		else if(mode == 'VIEW') { // 보기
512
-			$('#ITP_AJAX_POMNG03010_VIEW_CONTAINER').show();
513
-			fn_show_btn_auth_array(['#ITP_BTN_POMNG03010_MODIFY', '#ITP_BTN_POMNG03010_CANCELLIST']);
553
+			
554
+			if (mode == 'NPC')  {
555
+				$('#ITP_FORM_POMNG03010_NDETAIL .fnPodrAmt').text(podrAmt);	
556
+			} else {
557
+				$('#ITP_FORM_POMNG03010_DETAIL .fnPodrAmt').text(podrAmt);
558
+			}
559
+			
560
+		},
561
+		clearData : function(mode) {
562
+			$(mode === 'NPC' ? POMNG03010_NDETAIL_GRID_ID : POMNG03010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
563
+			$(mode === 'NPC' ? POMNG03010_NDETAIL_GRID_LIST : POMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
564
+			$(mode === 'NPC' ? POMNG03010_NDETAIL_GRID_EMPTY : POMNG03010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
565
+			$(mode === 'NPC' ? POMNG03010_NDETAIL_GRID_EMPTY : POMNG03010_DETAIL_GRID_EMPTY).show();
566
+		},
567
+		unload : function() {
568
+			$.jgrid.gridUnload(this.gridId);
514 569
 		}
515
-		*/
516 570
 	}
517 571
 };
518 572
 
@@ -548,12 +602,9 @@ let listObj = {
548 602
 		},
549 603
 		chkpo: function() {	
550 604
 			let gridUpdateData = [];
551
-			console.log("==================");
552 605
 			const rowKey = $(POMNG03010_GRID_ID).getGridParam('selrow');
553
-			console.log(rowKey);
554
-		    if (!rowKey) {
555
-				console.log("################");
556
-		    	return;
606
+			if (!rowKey) {
607
+				return;
557 608
 		    }
558 609
 	
559 610
 		    var selectedIds = $(POMNG03010_GRID_ID).getGridParam('selarrrow');
@@ -605,7 +656,10 @@ let listObj = {
605 656
 		init: function () {
606 657
 			// 데이터 없을때
607 658
 			listObj.empty.push();
659
+			itp_fn_jqgrid_resize(POMNG03010_GRID_ID, POMNG03010_GRID_LIST, 'lg');
660
+			itp_fn_fire_window_resize();
608 661
 			this.search();
662
+			
609 663
 		},
610 664
 		colModel: gridColModel.list,
611 665
 		search: function() {
@@ -664,9 +718,13 @@ let modifyObj = {
664 718
 			const selectVal = $('#ITP_FORM_POMNG03010_VIEW_STORE_ID').val();
665 719
 			const key = {brandId:fn_make_user_info.get('brandId'), storeId: selectVal, viewCd: 'R'};
666 720
 			var param = $.param(key);
667
-			console.log(param);
668 721
 			modifyObj.load(param);
669 722
 		},
723
+		cancel: function() {
724
+			document.getElementById('ITP_FORM_POMNG03010_DETAIL').reset();
725
+			document.getElementById('ITP_FORM_POMNG03010_NDETAIL').reset();
726
+			listObj.grid.search();
727
+		},
670 728
 		save: function() {
671 729
 			const formId = '#ITP_FORM_POMNG03010_DETAIL';
672 730
 			itp_fn_form_clear_validate(null, formId);
@@ -689,8 +747,8 @@ let modifyObj = {
689 747
 						
690 748
 						var searhFn = function () {
691 749
 							ITP_FORM_POMNG03010_DETAIL_IS_WRITING = false;
692
-							modifyObj.grid.clearData();
693
-							createObj.button.cancel();
750
+							pageObj.grid.clearData();
751
+							modifyObj.button.cancel();
694 752
 						}
695 753
 						fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
696 754
 					}
@@ -704,7 +762,7 @@ let modifyObj = {
704 762
 		fn_ajax_call(API_DETAIL_PO_INIT_INFO, JSON.stringify(param), this.callback, 'POST');
705 763
 	},
706 764
 	callback: function (result) {
707
-		console.log(result);
765
+		
708 766
 		pageObj.switchScreen('POC');
709 767
 		$('#ITP_FORM_POMNG03010_DETAIL #ITP_FORM_POMNG03010_DETAIL_VIEW_CD').val('C');
710 768
 		$('#ITP_FORM_POMNG03010_DETAIL #ITP_FORM_POMNG03010_DETAIL_BRAND_ID').val(result.brandId);
@@ -728,74 +786,26 @@ let modifyObj = {
728 786
 		$('#ITP_FORM_POMNG03010_DETAIL #ITP_FORM_POMNG03010_DETAIL_SHMT_LOCATION').val(result.shmtLocation);
729 787
 		
730 788
 		// 품목  리스트 조회
731
-		modifyObj.grid.init('DETAIL', result.itemList);
789
+		pageObj.grid.init('DETAIL', result.itemList);
732 790
 		// modifyObj.grid.load(result.spplyMgrList);
733 791
 	},
734
-	grid: {
735
-		init: function(mode, gridRows) {
736
-			this.gridId = POMNG03010_DETAIL_GRID_ID;
737
-			this.gridList = POMNG03010_DETAIL_GRID_LIST;
738
-			this.gridEmpty = POMNG03010_DETAIL_GRID_EMPTY;
739
-			this.gridRows = gridRows;
740
-			this.load(mode, gridRows);
741
-		},
742
-		gridId: '',
743
-		mode: 'DETAIL',
744
-		button: {},
745
-		gridList: '',
746
-		gridEmpty: '',
747
-		gridRows: '',
748
-		load: function(mode, gridRows) {
749
-			var _this = this;
750
-			var option = {
751
-				gridId: _this.gridId,
752
-				colModel: gridColModel.detail,
753
-				data: gridRows,
754
-				cellEdit: true,
755
-				multiselect: false,
756
-				// cellEdit: (mode !== 'VIEW'),
757
-				loadComplete: function(data) {
758
-					console.log(data);
759
-					$(_this.gridList).find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'hidden');
760
-					(Array.isArray(data.rows) && data.rows.length === 0) ? $(_this.gridEmpty).show() : $(_this.gridEmpty).hide();
761
-				},
762
-				onCellSelect: function(rowid, cellIdx, cellValue) {
763
-					console.log('mode ===> ' + mode);
764
-					POMNG03010_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowid, cellIdx, POMNG03010_GRID_LAST_ROW_ID, _this.gridId, ['actionId']);
765
-				},
766
-				afterSaveCell: function(rowid,name,val,iRow,iCol) {
767
-					// 구매요청금액 계산 (기존금액과 )
768
-					var	unitAmt = jQuery(POMNG03010_DETAIL_GRID_ID).jqGrid('getCell',rowid,iCol-3);
769
-					jQuery(POMNG03010_DETAIL_GRID_ID).jqGrid('setRowData',rowid,{podrAmt: parseInt(val)*parseInt(unitAmt)});	
770
-					
771
-					// 그리드 포문으로 금액 재계산후 구매요청금액에 넣어줌
772
-					_this.recal();
773
-				}
774
-			};
775
-			itp_fn_grid_make_local(option);
776
-		},
777
-		recal: function() {
778
-			//PCH_REQ_AMT
779
-			console.log("==========================================");
780
-			const rowData = $(POMNG03010_DETAIL_GRID_ID).getRowData();
781
-			var podrAmt = 0 ;
782
-			console.log("####################################");
783
-			$.each(rowData, function(key, value) {
784
-				console.log(rowData);
785
-				if (value.podrAmt != null && value.podrAmt != "" && value.viewCd != "D") {
786
-					podrAmt = podrAmt + parseInt(value.podrAmt) ;
787
-				}
788
-				
789
-			});
790
-			$('#ITP_FORM_POMNG03010_DETAIL .fnPodrAmt').text(podrAmt);
791
-		},
792
-		clearData : function() {
793
-			$(POMNG03010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
794
-			$(POMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
795
-			$(POMNG03010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
796
-			$(POMNG03010_DETAIL_GRID_EMPTY).show();
797
-		}
792
+	whsPassQty: function(param) {
793
+		fn_ajax_call(API_DETAIL_PASSQTY, JSON.stringify(param), this.passQtyCallback, 'POST');
798 794
 	},
795
+	passQtyCallback: function (result) {
796
+		
797
+		console.log(result);
798
+		console.log(result.size());
799
+		
800
+		/*
801
+		if ($(gridId).jqGrid('getCell', rowId, 'viewCd') === 'R') {
802
+		 $(gridId).jqGrid('setRowData', rowId, { viewCd: "U" });
803
+		}
804
+		*/
805
+		// 품목  리스트 조회
806
+		//pageObj.grid.init('DETAIL', result.itemList);
807
+		// modifyObj.grid.load(result.spplyMgrList);
808
+	}
799 809
 };
800 810
 
801 811
 /*신규화면 Object*/