Browse Source

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

isna 2 years ago
parent
commit
5b32c6a9c5

+ 1 - 0
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG01010.js

@@ -648,6 +648,7 @@ let listObj = {
648
 					const th=$(INOUTMNG01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(1);
648
 					const th=$(INOUTMNG01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(1);
649
 					th.find('.s-ico').show();
649
 					th.find('.s-ico').show();
650
 					th.find('.ui-grid-ico-sort').hide();
650
 					th.find('.ui-grid-ico-sort').hide();
651
+					th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
651
 					//$(INOUTMNG01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
652
 					//$(INOUTMNG01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
652
 					$(INOUTMNG01010_GRID_LIST).find('th').eq(1).css({cursor:'pointer',background:'#FFEBCD'});
653
 					$(INOUTMNG01010_GRID_LIST).find('th').eq(1).css({cursor:'pointer',background:'#FFEBCD'});
653
 					$(INOUTMNG01010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
654
 					$(INOUTMNG01010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});

+ 7 - 6
src/main/webapp/js/app/pomng/ITP_POMNG04010.js

@@ -317,7 +317,7 @@ let listObj = {
317
 			let param = $('#ITP_FORM_POMNG04010_SEARCH').serializeObject();
317
 			let param = $('#ITP_FORM_POMNG04010_SEARCH').serializeObject();
318
 			param.gridSize = $.jgrid.defaults.rowNum;
318
 			param.gridSize = $.jgrid.defaults.rowNum;
319
             param.gridPage = $.jgrid.defaults.page;
319
             param.gridPage = $.jgrid.defaults.page;
320
-            param.sidx = '';
320
+            param.sidx = '0';
321
 			$(POMNG04010_GRID_ID).data('grid-param',param);
321
 			$(POMNG04010_GRID_ID).data('grid-param',param);
322
             $(POMNG04010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
322
             $(POMNG04010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
323
         }
323
         }
@@ -349,7 +349,7 @@ let listObj = {
349
 		load: function() {
349
 		load: function() {
350
             let param = $('#ITP_FORM_POMNG04010_SEARCH').serializeObject();
350
             let param = $('#ITP_FORM_POMNG04010_SEARCH').serializeObject();
351
             param.gridSize = $.jgrid.defaults.rowNum;
351
             param.gridSize = $.jgrid.defaults.rowNum;
352
-            param.sidx = '';
352
+            param.sidx = '0';
353
             var option = {
353
             var option = {
354
             	gridId: POMNG04010_GRID_ID,
354
             	gridId: POMNG04010_GRID_ID,
355
             	colModel: gridColModel.list,
355
             	colModel: gridColModel.list,
@@ -383,23 +383,24 @@ let listObj = {
383
 					th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로 desc 는 top
383
 					th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로 desc 는 top
384
 					//$(POMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
384
 					//$(POMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
385
 					$(POMNG04010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
385
 					$(POMNG04010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
386
+					$(POMNG04010_GRID_LIST).find('th').eq(3).css({cursor:'pointer',background:'#FFEBCD'});
386
 					$(POMNG04010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
387
 					$(POMNG04010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
387
 						const idx=$(this).index();
388
 						const idx=$(this).index();
388
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
389
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
389
-						if(idx==2 || idx==15 ) {
390
+						if(idx==2 || idx==3 ) {
390
 							var field='',sort=self['sort'+idx];
391
 							var field='',sort=self['sort'+idx];
391
 							if(sort ) {
392
 							if(sort ) {
392
 								sort=sort=='asc'?'desc':'asc';
393
 								sort=sort=='asc'?'desc':'asc';
393
 							} else {
394
 							} else {
394
 								// 등록일 내림차순, 제목 오름차순
395
 								// 등록일 내림차순, 제목 오름차순
395
-								sort=idx==2? 'desc':idx==15? 'asc': 'desc';
396
+								sort=idx==2? 'desc':idx==3? 'asc': 'desc';
396
 							}
397
 							}
397
 							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
398
 							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
398
 							self['sort'+idx]=sort;
399
 							self['sort'+idx]=sort;
399
 							if(idx==2) {
400
 							if(idx==2) {
400
 								field='pchPodrUnqNo';
401
 								field='pchPodrUnqNo';
401
-							} else if(idx==15) {
402
-								field='itemNm';
402
+							} else if(idx==3) {
403
+								field='pchOdrStNm';
403
 							} 
404
 							} 
404
 							param.page=1;
405
 							param.page=1;
405
 							param.sidx=field;
406
 							param.sidx=field;