Quellcode durchsuchen

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

isna vor 2 Jahren
Ursprung
Commit
75ca8693f5

+ 9 - 2
src/main/webapp/js/app/oper/ITP_OPER01010.js

@@ -439,8 +439,15 @@ let listObj = {
439 439
 					const self=this; 
440 440
 					if(self.sortUse) return;
441 441
 					self.sortUse=true;
442
-					$(OPER01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
443
-					$(OPER01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(10).css('cursor','pointer');
442
+					self['sort10']='asc'; 
443
+					const th=$(OPER01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(10);
444
+					th.find('.s-ico').show();
445
+					th.find('.ui-grid-ico-sort').hide();
446
+					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로 desc 는 top
447
+					$(OPER01010_GRID_LIST).find('th').eq(10).css({cursor:'pointer',background:'#FFEBCD'});
448
+					console.log("xxxxx th xxxx", th, self)
449
+					
450
+					//$(OPER01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
444 451
 					$(OPER01010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
445 452
 						const idx=$(this).index();
446 453
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );

+ 6 - 4
src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -361,12 +361,14 @@ let listObj = {
361 361
 					const th=$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(8);
362 362
 					th.find('.s-ico').show();
363 363
 					th.find('.ui-grid-ico-sort').hide();
364
-					th.find('.glyphicon-triangle-top').show();
364
+					th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
365
+					
366
+					$(OPER02010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
367
+					$(OPER02010_GRID_LIST).find('th').eq(8).css({cursor:'pointer',background:'#FFEBCD'});
365 368
 					console.log("xxxxx th xxxx", th, self)
366 369
 					//
367
-					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
368
-					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
369
-					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(8).css('cursor','pointer');
370
+					//$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
371
+					
370 372
 					$(OPER02010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
371 373
 						const idx=$(this).index();
372 374
 						// console.log("xxxx grid header click xxxxxxx index=="+idx, param );

+ 9 - 2
src/main/webapp/js/app/oper/ITP_OPER03010.js

@@ -423,11 +423,18 @@ let listObj = {
423 423
 					$.each(ids, function(idx, rowId) {
424 424
 						$(OPER03010_GRID_ID).jqGrid('setCell', rowId, 'afflShopNm', '', ITP_GRID_COL_STYLE.link);
425 425
 					});
426
+					
426 427
 					const self=this; 
427 428
 					if(self.sortUse) return;
428 429
 					self.sortUse=true;
429
-					$(OPER03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
430
-					$(OPER03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
430
+					self['sort2']='asc'; 
431
+					const th=$(OPER03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2);
432
+					th.find('.s-ico').show();
433
+					th.find('.ui-grid-ico-sort').hide();
434
+					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
435
+					
436
+					//$(OPER03010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
437
+					$(OPER03010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
431 438
 					$(OPER03010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
432 439
 						const idx=$(this).index();
433 440
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );

+ 8 - 2
src/main/webapp/js/app/oper/ITP_OPER04010.js

@@ -263,8 +263,14 @@ let listObj = {
263 263
                     const self=this;
264 264
 					if(self.sortUse) return;
265 265
 					self.sortUse=true;
266
-					$(OPER04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
267
-					$(OPER04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
266
+					self['sort2']='asc'; 
267
+					const th=$(OPER04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2);
268
+					th.find('.s-ico').show();
269
+					th.find('.ui-grid-ico-sort').hide();
270
+					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로 desc 는 top
271
+					$(OPER04010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
272
+					
273
+					//$(OPER04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
268 274
 					$(OPER04010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
269 275
 						const idx=$(this).index();
270 276
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );

+ 9 - 3
src/main/webapp/js/app/oper/ITP_OPER06010.js

@@ -376,9 +376,15 @@ let listObj = {
376 376
                     const self=this;
377 377
 					if(self.sortUse) return;
378 378
 					self.sortUse=true;
379
-					$(OPER06010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
380
-					$(OPER06010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(3).css('cursor','pointer');
381
-					$(OPER06010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(5).css('cursor','pointer');
379
+					self['sort3']='asc'; 
380
+					const th=$(OPER06010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(3);
381
+					th.find('.s-ico').show();
382
+					th.find('.ui-grid-ico-sort').hide();
383
+					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
384
+					
385
+					//$(OPER06010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
386
+					$(OPER06010_GRID_LIST).find('th').eq(3).css({cursor:'pointer',background:'#FFEBCD'});
387
+					$(OPER06010_GRID_LIST).find('th').eq(5).css({cursor:'pointer',background:'#FFEBCD'});
382 388
 					$(OPER06010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
383 389
 						const idx=$(this).index();
384 390
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );

+ 7 - 2
src/main/webapp/js/app/oper/ITP_OPER07010.js

@@ -450,8 +450,13 @@ let listObj = {
450 450
         			const self=this;
451 451
 					if(self.sortUse) return;
452 452
 					self.sortUse=true;
453
-					$(OPER07010_STORE_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
454
-					$(OPER07010_STORE_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(4).css('cursor','pointer');
453
+					self['sort4']='asc'; 
454
+					const th=$(OPER07010_STORE_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(4);
455
+					th.find('.s-ico').show();
456
+					th.find('.ui-grid-ico-sort').hide();
457
+					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로 desc 는 top
458
+					//$(OPER07010_STORE_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
459
+					$(OPER07010_STORE_GRID_LIST).find('th').eq(4).css({cursor:'pointer',background:'#FFEBCD'});
455 460
 					$(OPER07010_STORE_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
456 461
 						const idx=$(this).index();
457 462
 						console.log("xxxx grid header click xxxxxxx index=="+idx, param );