whakdo963 2 vuotta sitten
vanhempi
commit
de634dcc08

+ 1 - 41
src/main/webapp/js/app/salesmng/ITP_SALESMNG01010.js

@@ -337,47 +337,7 @@ let listObj = {
337 337
 					$.each(ids, function(idx, rowId) {
338 338
 						$(SALESMNG01010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
339 339
 					});
340
-					const self=this;
341
-					if(self.sortUse) return;
342
-					self.sortUse=true;
343
-					self['sort3']='asc'; 
344
-					const th=$(SALESMNG01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(3);
345
-					th.find('.s-ico').show();
346
-					th.find('.ui-grid-ico-sort').hide();
347
-					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
348
-					//$(SALESMNG01010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
349
-					$(SALESMNG01010_GRID_LIST).find('th').eq(3).css({cursor:'pointer',background:'#FFEBCD'});
350
-					$(SALESMNG01010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
351
-						const idx=$(this).index();
352
-						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
353
-						if(idx==3 || idx==5) {
354
-							var field='',sort=self['sort'+idx];
355
-							if(sort ) {
356
-								sort=sort=='asc'?'desc':'asc';
357
-							} else {
358
-								// 등록일 내림차순, 제목 오름차순
359
-								sort=idx==3? 'desc':idx==5? 'asc': 'desc';
360
-							}
361
-							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
362
-							self['sort'+idx]=sort;
363
-							if(idx==3) {
364
-								field='storeNm';
365
-							} else if(idx==5) {
366
-								field='loanMgntUnqNo';
367
-							} 
368
-							param.page=1;
369
-							param.sidx=field;
370
-							param.sord=sort;
371
-							
372
-							$(SALESMNG01010_GRID_ID).jqGrid('setGridParam',{
373
-								postData:JSON.stringify(param)
374
-							}).trigger('reloadGrid');
375
-							$(this).find('.s-ico').show();
376
-							$(this).find('.ui-grid-ico-sort').hide();
377
-							$(this).find(icon).show();
378
-
379
-						}
380
-					});
340
+					
381 341
 				},
382 342
 				onPaging: function(action) {
383 343
 					itp_fn_grid_paging(SALESMNG01010_GRID_ID, action, param);

+ 1 - 41
src/main/webapp/js/app/salesmng/ITP_SALESMNG02010.js

@@ -343,47 +343,7 @@ let listObj = {
343 343
 					$.each(ids, function(idx, rowId) {
344 344
 						$(SALESMNG02010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
345 345
 					});
346
-					const self=this;
347
-					if(self.sortUse) return;
348
-					self.sortUse=true;
349
-					self['sort4']='asc'; 
350
-					const th=$(SALESMNG02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(4);
351
-					th.find('.s-ico').show();
352
-					th.find('.ui-grid-ico-sort').hide();
353
-					th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
354
-					//$(SALESMNG02010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
355
-					$(SALESMNG02010_GRID_LIST).find('th').eq(4).css({cursor:'pointer',background:'#FFEBCD'});
356
-					$(SALESMNG02010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
357
-						const idx=$(this).index();
358
-						console.log("xxxx grid header click xxxxxxx index=="+idx, param );
359
-						if(idx==4 || idx==5) {
360
-							var field='',sort=self['sort'+idx];
361
-							if(sort ) {
362
-								sort=sort=='asc'?'desc':'asc';
363
-							} else {
364
-								// 등록일 내림차순, 제목 오름차순
365
-								sort=idx==4? 'desc':idx==5? 'asc': 'desc';
366
-							}
367
-							const icon=sort=='asc'? '.glyphicon-triangle-bottom': '.glyphicon-triangle-top'; 
368
-							self['sort'+idx]=sort;
369
-							if(idx==4) {
370
-								field='storeNm';
371
-							} else if(idx==5) {
372
-								field='loanMgntUnqNo';
373
-							} 
374
-							param.page=1;
375
-							param.sidx=field;
376
-							param.sord=sort;
377
-							
378
-							$(SALESMNG02010_GRID_ID).jqGrid('setGridParam',{
379
-								postData:JSON.stringify(param)
380
-							}).trigger('reloadGrid');
381
-							$(this).find('.s-ico').show();
382
-							$(this).find('.ui-grid-ico-sort').hide();
383
-							$(this).find(icon).show();
384
-
385
-						}
386
-					});
346
+					
387 347
 				},
388 348
 				onPaging: function(action) {
389 349
 					itp_fn_grid_paging(SALESMNG02010_GRID_ID, action, param);