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