|
@@ -377,9 +377,9 @@ let listObj = {
|
377
|
377
|
if(idx==2) {
|
378
|
378
|
field='rtnPodrUnqNo';
|
379
|
379
|
} else if(idx==4) {
|
380
|
|
- field='colReqDt';
|
381
|
|
- } else if(idx==9) {
|
382
|
380
|
field='rtnOdrRegDt';
|
|
381
|
+ } else if(idx==9) {
|
|
382
|
+ field='colReqDt';
|
383
|
383
|
}
|
384
|
384
|
param.page=1;
|
385
|
385
|
param.sidx=field;
|
|
@@ -620,45 +620,7 @@ let modifyObj = {
|
620
|
620
|
}
|
621
|
621
|
}
|
622
|
622
|
itp_fn_grid_load_complete(data, RTNMNG04010_DETAIL_GRID_ID, true, 'number', 'RTNMNG04010', modifyObj.itp_RTNMNG04010_search, modifyObj.empty, true, data.gridRecords, true);
|
623
|
|
- const self=this;
|
624
|
|
- if(self.sortUse) return;
|
625
|
|
- self.sortUse=true;
|
626
|
|
- self['sort1']='asc';
|
627
|
|
- const th=$(RTNMNG04010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(1);
|
628
|
|
- th.find('.s-ico').show();
|
629
|
|
- th.find('.ui-grid-ico-sort').hide();
|
630
|
|
- th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
|
631
|
|
- //$(RTNMNG04010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
632
|
|
- $(RTNMNG04010_DETAIL_GRID_LIST).find('th').eq(1).css({cursor:'pointer',background:'#FFEBCD'});
|
633
|
|
- $(RTNMNG04010_DETAIL_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
|
634
|
|
- const idx=$(this).index();
|
635
|
|
- console.log("xxxx grid header click xxxxxxx index=="+idx, param );
|
636
|
|
- if(idx==1 ) {
|
637
|
|
- var field='',sort=self['sort'+idx];
|
638
|
|
- if(sort ) {
|
639
|
|
- sort=sort=='asc'?'desc':'asc';
|
640
|
|
- } else {
|
641
|
|
- // 등록일 내림차순, 제목 오름차순
|
642
|
|
- sort=idx==1? 'asc':idx==2? 'desc': 'asc';
|
643
|
|
- }
|
644
|
|
- const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top';
|
645
|
|
- self['sort'+idx]=sort;
|
646
|
|
- if(idx==1) {
|
647
|
|
- field='rtnReqUnqNo';
|
648
|
|
- }
|
649
|
|
- param.page=1;
|
650
|
|
- param.sidx=field;
|
651
|
|
- param.sord=sort;
|
652
|
|
-
|
653
|
|
- $(RTNMNG04010_DETAIL_GRID_ID).jqGrid('setGridParam',{
|
654
|
|
- postData:JSON.stringify(param)
|
655
|
|
- }).trigger('reloadGrid');
|
656
|
|
- $(this).find('.s-ico').show();
|
657
|
|
- $(this).find('.ui-grid-ico-sort').hide();
|
658
|
|
- $(this).find(icon).show();
|
659
|
|
-
|
660
|
|
- }
|
661
|
|
- });
|
|
623
|
+
|
662
|
624
|
}
|
663
|
625
|
};
|
664
|
626
|
itp_fn_grid_make_local(option);
|