whakdo963 2 yıl önce
ebeveyn
işleme
7f869651bc

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

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