Преглед изворни кода

일부 그리드 resize 적용-3

yhl88 пре 2 година
родитељ
комит
1e10280f57

+ 2 - 2
src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -302,8 +302,8 @@ let listObj = {
302
 		init: function() {
302
 		init: function() {
303
 			// 데이터 없을때
303
 			// 데이터 없을때
304
 			this.itp_fn_OPER02010_empty.push();
304
 			this.itp_fn_OPER02010_empty.push();
305
-			//itp_fn_jqgrid_resize(OPER02010_GRID_ID, OPER02010_GRID_LIST, 'lg');
306
-			// itp_fn_fire_window_resize();
305
+			itp_fn_jqgrid_resize(OPER02010_GRID_ID, OPER02010_GRID_LIST, 'lg');
306
+			itp_fn_fire_window_resize();
307
 			this.search();
307
 			this.search();
308
 		},
308
 		},
309
 		itp_OPER02010_param: {},
309
 		itp_OPER02010_param: {},

+ 6 - 8
src/main/webapp/js/app/stinfo/ITP_STINFO06010.js

@@ -294,6 +294,7 @@ let pageObj = {
294
 	ui: {
294
 	ui: {
295
 		init: function () {
295
 		init: function () {
296
 			this.view();
296
 			this.view();
297
+			this.grid();
297
 			listObj.empty.init();
298
 			listObj.empty.init();
298
 			listObj.init();
299
 			listObj.init();
299
 		},
300
 		},
@@ -313,9 +314,11 @@ let pageObj = {
313
 			$('#ITP_TAB_STINFO06010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
314
 			$('#ITP_TAB_STINFO06010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
314
 			$('#ITP_FORM_STINFO06010_DETAIL_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
315
 			$('#ITP_FORM_STINFO06010_DETAIL_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
315
 			$('#ITP_FORM_STINFO06010_DETAIL_TO_DT').datepicker('setDate', new Date());
316
 			$('#ITP_FORM_STINFO06010_DETAIL_TO_DT').datepicker('setDate', new Date());
316
-			
317
-			
318
-		}, 
317
+		},
318
+		grid: function() {
319
+			itp_fn_jqgrid_resize(STINFO06010_GRID_ID, STINFO06010_GRID_LIST, 'lg');
320
+			itp_fn_set_resize(STINFO06010_DETAIL_GRID_ID, STINFO06010_DETAIL_GRID_LIST, 'lg');
321
+		}
319
 	},
322
 	},
320
 	event: {
323
 	event: {
321
 		init: function () {
324
 		init: function () {
@@ -586,7 +589,6 @@ let listObj = {
586
 		init: function () {
589
 		init: function () {
587
 			// 데이터 없을때
590
 			// 데이터 없을때
588
 			listObj.empty.push();
591
 			listObj.empty.push();
589
-			itp_fn_jqgrid_resize(STINFO06010_GRID_ID, STINFO06010_GRID_LIST, 'lg');
590
 			this.search();
592
 			this.search();
591
 		},
593
 		},
592
 		search: function() {
594
 		search: function() {
@@ -679,7 +681,6 @@ let modifyObj = {
679
 			listObj.empty.push();
681
 			listObj.empty.push();
680
 			this.unload();
682
 			this.unload();
681
 			this.load(param);
683
 			this.load(param);
682
-			itp_fn_set_resize(STINFO06010_DETAIL_GRID_ID, STINFO06010_DETAIL_GRID_LIST, 'lg');
683
 		},
684
 		},
684
 		load: function(param) {
685
 		load: function(param) {
685
 			var _this = this;
686
 			var _this = this;
@@ -701,7 +702,6 @@ let modifyObj = {
701
 					/*
702
 					/*
702
 					itp_fn_grid_load_complete(data, STINFO06010_DETAIL_GRID_ID, false, 'number', 'STINFO06010', modifyObj.itp_STINFO06010_search, modifyObj.empty, true, data.gridRecords, true); 
703
 					itp_fn_grid_load_complete(data, STINFO06010_DETAIL_GRID_ID, false, 'number', 'STINFO06010', modifyObj.itp_STINFO06010_search, modifyObj.empty, true, data.gridRecords, true); 
703
 					*/
704
 					*/
704
-					itp_fn_set_resize(STINFO06010_DETAIL_GRID_ID, STINFO06010_DETAIL_GRID_LIST, 'lg');
705
 					const container=$('#ITP_STINFO06010_DETAIL_jqGrid_list').closest('#ITP_CONTAINER');
705
 					const container=$('#ITP_STINFO06010_DETAIL_jqGrid_list').closest('#ITP_CONTAINER');
706
 					let hei=container.height();
706
 					let hei=container.height();
707
 					if(hei>300 ) {
707
 					if(hei>300 ) {
@@ -853,7 +853,6 @@ let createObj = {
853
 		init: function (param) {
853
 		init: function (param) {
854
 			// 데이터 없을때
854
 			// 데이터 없을때
855
 			listObj.empty.push();
855
 			listObj.empty.push();
856
-			itp_fn_set_resize(STINFO06010_DETAIL_GRID_ID, STINFO06010_DETAIL_GRID_LIST, 'lg');
857
 			this.unload();
856
 			this.unload();
858
 			this.load(param);
857
 			this.load(param);
859
 		},
858
 		},
@@ -874,7 +873,6 @@ let createObj = {
874
 					/*
873
 					/*
875
 					itp_fn_grid_load_complete(data, STINFO06010_DETAIL_GRID_ID, false, 'number', 'STINFO06010', modifyObj.itp_STINFO06010_search, modifyObj.empty, true, data.gridRecords, true); 
874
 					itp_fn_grid_load_complete(data, STINFO06010_DETAIL_GRID_ID, false, 'number', 'STINFO06010', modifyObj.itp_STINFO06010_search, modifyObj.empty, true, data.gridRecords, true); 
876
 					*/
875
 					*/
877
-					itp_fn_set_resize(STINFO06010_DETAIL_GRID_ID, STINFO06010_DETAIL_GRID_LIST, 'lg');
878
 					const container=$('#ITP_STINFO06010_DETAIL_jqGrid_list').closest('#ITP_CONTAINER');
876
 					const container=$('#ITP_STINFO06010_DETAIL_jqGrid_list').closest('#ITP_CONTAINER');
879
 					let hei=container.height();
877
 					let hei=container.height();
880
 					if(hei>300 ) {
878
 					if(hei>300 ) {