|
@@ -660,47 +660,7 @@ let modifyObj = {
|
660
|
660
|
pager: SETTMNG03010_DETAIL_GRID_PAGER,
|
661
|
661
|
loadComplete: function(data) {
|
662
|
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
|
665
|
onPaging: function(action) {
|
706
|
666
|
var pagingFn = {
|