|
@@ -247,7 +247,7 @@ let listObj = {
|
247
|
247
|
let param = $('#ITP_FORM_INOUTMNG04010_SEARCH').serializeObject();
|
248
|
248
|
param.gridSize = $.jgrid.defaults.rowNum;
|
249
|
249
|
param.gridPage = $.jgrid.defaults.page;
|
250
|
|
- param.sidx = '0';
|
|
250
|
+ param.sidx = '';
|
251
|
251
|
$(INOUTMNG04010_GRID_ID).data('grid-param',param);
|
252
|
252
|
$(INOUTMNG04010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
253
|
253
|
}
|
|
@@ -265,7 +265,7 @@ let listObj = {
|
265
|
265
|
push: function() {
|
266
|
266
|
let param = $('#ITP_FORM_INOUTMNG04010_SEARCH').serializeObject();
|
267
|
267
|
listObj.itp_INOUTMNG04010_param = param;
|
268
|
|
- param.sidx = '0';
|
|
268
|
+ param.sidx = '';
|
269
|
269
|
},
|
270
|
270
|
back: function() {
|
271
|
271
|
$('#ITP_FORM_INOUTMNG04010_SERVICE_BRAND_TYPE').val(listObj.itp_INOUTMNG04010_param.brandType);
|
|
@@ -288,7 +288,7 @@ let listObj = {
|
288
|
288
|
load: function() {
|
289
|
289
|
let param = $('#ITP_FORM_INOUTMNG04010_SEARCH').serializeObject();
|
290
|
290
|
param.gridSize = $.jgrid.defaults.rowNum;
|
291
|
|
- param.sidx = '0';
|
|
291
|
+ param.sidx = '';
|
292
|
292
|
var option = {
|
293
|
293
|
gridId: INOUTMNG04010_GRID_ID,
|
294
|
294
|
colModel: gridColModel.list,
|
|
@@ -304,16 +304,11 @@ let listObj = {
|
304
|
304
|
const self=this;
|
305
|
305
|
if(self.sortUse) return;
|
306
|
306
|
self.sortUse=true;
|
307
|
|
- self['sort1']='asc';
|
308
|
|
- const th=$(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(1);
|
309
|
|
- th.find('.s-ico').show();
|
310
|
|
- th.find('.ui-grid-ico-sort').hide();
|
311
|
|
- th.find('.glyphicon-triangle-bottom').show();//asc 는 bottom 으로
|
312
|
|
- //$(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
313
|
|
- $(INOUTMNG04010_GRID_LIST).find('th').eq(1).css({cursor:'pointer',background:'#FFEBCD'});
|
314
|
|
- $(INOUTMNG04010_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
|
315
|
|
- $(INOUTMNG04010_GRID_LIST).find('th').eq(3).css({cursor:'pointer',background:'#FFEBCD'});
|
316
|
|
- $(INOUTMNG04010_GRID_LIST).find('th').eq(4).css({cursor:'pointer',background:'#FFEBCD'});
|
|
307
|
+ $(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
|
|
308
|
+ $(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(1).css('cursor','pointer');
|
|
309
|
+ $(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2).css('cursor','pointer');
|
|
310
|
+ $(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(3).css('cursor','pointer');
|
|
311
|
+ $(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(4).css('cursor','pointer');
|
317
|
312
|
$(INOUTMNG04010_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
|
318
|
313
|
const idx=$(this).index();
|
319
|
314
|
console.log("xxxx grid header click xxxxxxx index=="+idx, param );
|