Ver código fonte

오류수정

whakdo963 2 anos atrás
pai
commit
8162dfe5d9
1 arquivos alterados com 1 adições e 41 exclusões
  1. 1 41
      src/main/webapp/js/app/stockmng/ITP_STOCKMNG02010.js

+ 1 - 41
src/main/webapp/js/app/stockmng/ITP_STOCKMNG02010.js

@@ -562,47 +562,7 @@ let listObj = {
562 562
 					$.each(ids, function(idx, rowId) {
563 563
 						$(STOCKMNG02010_GRID_ID).jqGrid('setCell', rowId, 'cddDt', '', ITP_GRID_COL_STYLE.link);
564 564
 					});
565
-					const self=this;
566
-					if(self.sortUse) return;
567
-					self.sortUse=true;
568
-					self['sort1']='desc'; 
569
-					const th=$(STOCKMNG02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(9);
570
-					th.find('.s-ico').show();
571
-					th.find('.ui-grid-ico-sort').hide();
572
-					th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
573
-					//$(STOCKMNG02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
574
-					$(STOCKMNG02010_GRID_LIST).find('th').eq(9).css({cursor:'pointer',background:'#FFEBCD'});
575
-					$(STOCKMNG02010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
576
-						const idx=$(this).index();
577
-						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
578
-						if(idx==9 || idx==3) {
579
-							var field='',sort=self['sort'+idx];
580
-							if(sort ) {
581
-								sort=sort=='asc'?'desc':'asc';
582
-							} else {
583
-								// 등록일 내림차순, 제목 오름차순
584
-								sort=idx==9? 'desc':idx==3? 'asc': 'desc';
585
-							}
586
-							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
587
-							self['sort'+idx]=sort;
588
-							if(idx==9) {
589
-								field='cddDt';
590
-							} else if(idx==3) {
591
-								field='locationNm';
592
-							} 
593
-							param.page=1;
594
-							param.sidx=field;
595
-							param.sord=sort;
596
-							
597
-							$(STOCKMNG02010_GRID_ID).jqGrid('setGridParam',{
598
-								postData:JSON.stringify(param)
599
-							}).trigger('reloadGrid');
600
-							$(this).find('.s-ico').show();
601
-							$(this).find('.ui-grid-ico-sort').hide();
602
-							$(this).find(icon).show();
603
-
604
-						}
605
-					});
565
+					
606 566
 				},
607 567
 				onPaging: function(action) {
608 568
 					itp_fn_grid_paging(STOCKMNG02010_GRID_ID, action, param);