|
@@ -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);
|