浏览代码

오류수정

whakdo963 2 年之前
父节点
当前提交
10fc800ab6
共有 2 个文件被更改,包括 2 次插入82 次删除
  1. 1 41
      src/main/webapp/js/app/settmng/ITP_SETTMNG02010.js
  2. 1 41
      src/main/webapp/js/app/settmng/ITP_SETTMNG03010.js

+ 1 - 41
src/main/webapp/js/app/settmng/ITP_SETTMNG02010.js

@@ -652,47 +652,7 @@ let modifyObj = {
652
 				pager: SETTMNG02010_DETAIL_GRID_PAGER,
652
 				pager: SETTMNG02010_DETAIL_GRID_PAGER,
653
 				loadComplete: function(data) {
653
 				loadComplete: function(data) {
654
 					itp_fn_grid_load_complete(data, SETTMNG02010_DETAIL_GRID_ID, true, undefined, 'SETTMNG02010_DETAIL');
654
 					itp_fn_grid_load_complete(data, SETTMNG02010_DETAIL_GRID_ID, true, undefined, 'SETTMNG02010_DETAIL');
655
-					const self=this;
656
-					if(self.sortUse) return;
657
-					self.sortUse=true;
658
-					self['sort6']='asc'; 
659
-					const th=$(SETTMNG02010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(6);
660
-					th.find('.s-ico').show();
661
-					th.find('.ui-grid-ico-sort').hide();
662
-					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
663
-					//$(SETTMNG02010_DETAIL_GRID_LIST).find('th').css({cursor:'pointer',background:'#FFEBCD'});
664
-					$(SETTMNG02010_DETAIL_GRID_LIST).find('th').eq(6).css({cursor:'pointer',background:'#FFEBCD'});
665
-					$(SETTMNG02010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
666
-						const idx=$(this).index();
667
-						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
668
-						if(idx==6 || idx==5) {
669
-							var field='',sort=self['sort'+idx];
670
-							if(sort ) {
671
-								sort=sort=='asc'?'desc':'asc';
672
-							} else {
673
-								// 등록일 내림차순, 제목 오름차순
674
-								sort=idx==6? 'desc':idx==5? 'asc': 'desc';
675
-							}
676
-							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
677
-							self['sort'+idx]=sort;
678
-							if(idx==6) {
679
-								field='itemNm';
680
-							} else if(idx==5) {
681
-								field='sttlMgntUnqNo';
682
-							} 
683
-							param.page=1;
684
-							param.sidx=field;
685
-							param.sord=sort;
686
-							
687
-							$(SETTMNG02010_DETAIL_GRID_ID).jqGrid('setGridParam',{
688
-								postData:JSON.stringify(param)
689
-							}).trigger('reloadGrid');
690
-							$(this).find('.s-ico').show();
691
-							$(this).find('.ui-grid-ico-sort').hide();
692
-							$(this).find(icon).show();
693
-
694
-						}
695
-					});
655
+					
696
 				},
656
 				},
697
 				onPaging: function(action) {
657
 				onPaging: function(action) {
698
 					var pagingFn = {
658
 					var pagingFn = {

+ 1 - 41
src/main/webapp/js/app/settmng/ITP_SETTMNG03010.js

@@ -660,47 +660,7 @@ let modifyObj = {
660
 				pager: SETTMNG03010_DETAIL_GRID_PAGER,
660
 				pager: SETTMNG03010_DETAIL_GRID_PAGER,
661
 				loadComplete: function(data) {
661
 				loadComplete: function(data) {
662
 					itp_fn_grid_load_complete(data, SETTMNG03010_DETAIL_GRID_ID, true, undefined, 'SETTMNG03010_DETAIL');
662
 					itp_fn_grid_load_complete(data, SETTMNG03010_DETAIL_GRID_ID, true, undefined, 'SETTMNG03010_DETAIL');
663
-					const self=this;
664
-					if(self.sortUse) return;
665
-					self.sortUse=true;
666
-					self['sort6']='asc'; 
667
-					const th=$(SETTMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(6);
668
-					th.find('.s-ico').show();
669
-					th.find('.ui-grid-ico-sort').hide();
670
-					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
671
-					//$(SETTMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
672
-					$(SETTMNG03010_DETAIL_GRID_LIST).find('th').eq(6).css({cursor:'pointer',background:'#FFEBCD'});
673
-					$(SETTMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
674
-						const idx=$(this).index();
675
-						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
676
-						if(idx==6 || idx==5) {
677
-							var field='',sort=self['sort'+idx];
678
-							if(sort ) {
679
-								sort=sort=='asc'?'desc':'asc';
680
-							} else {
681
-								// 등록일 내림차순, 제목 오름차순
682
-								sort=idx==6? 'desc':idx==5? 'asc': 'desc';
683
-							}
684
-							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
685
-							self['sort'+idx]=sort;
686
-							if(idx==6) {
687
-								field='itemNm';
688
-							} else if(idx==5) {
689
-								field='sttlMgntUnqNo';
690
-							} 
691
-							param.page=1;
692
-							param.sidx=field;
693
-							param.sord=sort;
694
-							
695
-							$(SETTMNG03010_DETAIL_GRID_ID).jqGrid('setGridParam',{
696
-								postData:JSON.stringify(param)
697
-							}).trigger('reloadGrid');
698
-							$(this).find('.s-ico').show();
699
-							$(this).find('.ui-grid-ico-sort').hide();
700
-							$(this).find(icon).show();
701
-
702
-						}
703
-					});
663
+					
704
 				},
664
 				},
705
 				onPaging: function(action) {
665
 				onPaging: function(action) {
706
 					var pagingFn = {
666
 					var pagingFn = {