Bläddra i källkod

매장단가관리 리스트 무한대로 변경

dwkim 2 år sedan
förälder
incheckning
812da2fb45

+ 1 - 1
src/main/webapp/css/ui.jqgrid-bootstrap.css

@@ -186,7 +186,7 @@ div.tablediv > .table-bordered {
186 186
 }
187 187
 .ui-jqgrid .ui-jqgrid-lmt-20 {
188 188
 	position: relative;
189
-	height:510px !important;
189
+	height:525px !important;
190 190
 	margin:0;
191 191
 	padding:0;
192 192
 	text-align:left;

+ 2 - 2
src/main/webapp/js/app/config.js

@@ -1706,7 +1706,6 @@ function itp_fn_grid_make_not_paging(option) {
1706 1706
 			itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
1707 1707
 		}
1708 1708
 	}, option);
1709
-
1710 1709
 	$(options.gridId).jqGrid({
1711 1710
 		colModel: options.colModel,
1712 1711
 		postData: JSON.stringify(options.param),
@@ -1717,7 +1716,8 @@ function itp_fn_grid_make_not_paging(option) {
1717 1716
 		loadBeforeSend: options.loadBeforeSend,
1718 1717
 		onCellSelect: options.onCellSelect,
1719 1718
 		loadComplete: options.loadComplete,
1720
-		loadError: options.loadError
1719
+		loadError: options.loadError,
1720
+		rowNum: options.rowNum
1721 1721
 	});
1722 1722
 }
1723 1723
 

+ 7 - 4
src/main/webapp/js/app/stinfo/ITP_STINFO06010.js

@@ -92,7 +92,7 @@ const gridColModel = {
92 92
 			index: 'VIEW_CD', name: 'viewCd',
93 93
 			label: ITP_MSG_LOCALE.label.viewCd, //공급단가
94 94
 			width: '6', fixed: false, align: 'center',
95
-			sortable: false, hidden: false
95
+			sortable: false, hidden: true
96 96
 		},
97 97
 		{
98 98
 			index: 'VIEW_NM', name: 'viewNm',
@@ -632,7 +632,7 @@ let modifyObj = {
632 632
 	search: function() {
633 633
 		listObj.itp_STINFO06010_search = true;
634 634
 		let param = $('#ITP_FORM_STINFO06010_DETAIL').serializeObject();
635
-		param.gridSize = $.jgrid.defaults.rowNum;
635
+		param.gridSize = 100 ; //$.jgrid.defaults.rowNum;
636 636
 		param.gridPage = $.jgrid.defaults.page;
637 637
 		$(STINFO06010_DETAIL_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
638 638
 	},
@@ -644,7 +644,7 @@ let modifyObj = {
644 644
 			this.push();
645 645
 			$(STINFO06010_DETAIL_GRID_EMPTY).on('click', function() {
646 646
 				_this.back();
647
-				_this.itp_STINFO06010_param.gridSize = $.jgrid.defaults.rowNum;
647
+				_this.itp_STINFO06010_param.gridSize = 100 ; // $.jgrid.defaults.rowNum;
648 648
 				$(STINFO06010_DETAIL_GRID_ID).setGridParam($.param(_this.itp_STINFO06010_param)).trigger('reloadGrid');
649 649
 			});
650 650
 		},
@@ -673,6 +673,8 @@ let modifyObj = {
673 673
 				gridId: STINFO06010_DETAIL_GRID_ID,
674 674
 				colModel: fn_make_user_info.get('authTpCd') === '50' ?  gridColModel.sdetail : gridColModel.detail,
675 675
 				param: param,
676
+				height : 'auto',
677
+				rowNum: '',
676 678
 				url: DOMAIN + API_DETAIL_INFO,
677 679
 				loadComplete: function(data) {
678 680
 					//console.log("12121212121212");
@@ -689,7 +691,8 @@ let modifyObj = {
689 691
 					itp_fn_grid_paging(STINFO06010_GRID_ID, action, param);
690 692
 				}
691 693
 			};
692
-			itp_fn_grid_make_remote(option);
694
+			//itp_fn_grid_make_remote(option);
695
+			itp_fn_grid_make_not_paging(option);
693 696
 		},
694 697
 		clearData : function() {
695 698
 			$(STINFO06010_DETAIL_GRID_ID).jqGrid('clearGridData', true);