Browse Source

재고이력 수정

isna 2 years ago
parent
commit
ea2773d2a8
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/main/webapp/js/app/popup/biz/ITP_BIZPOP_PO_STOCK_HIST.js

+ 5 - 4
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_PO_STOCK_HIST.js

@@ -116,13 +116,14 @@ function itp_fn_BIZPOP_PO_STOCK_HIST(parentPopFn, args, returnType) {
116
 			if(self.sortUse) return;
116
 			if(self.sortUse) return;
117
 			self.sortUse=true;
117
 			self.sortUse=true;
118
 			self['sort2']='desc'; 
118
 			self['sort2']='desc'; 
119
-			const th=$(STOCK_MNG_HIST_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').eq(2);
119
+			const list=THIS_GIRD_ID+'_list';
120
+			const th=$(list).find('.ui-jqgrid-labels .ui-th-div').eq(2);
120
 			th.find('.s-ico').show();
121
 			th.find('.s-ico').show();
121
 			th.find('.ui-grid-ico-sort').hide();
122
 			th.find('.ui-grid-ico-sort').hide();
122
 			th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
123
 			th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
123
 			//$(STOCK_MNG_HIST_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
124
 			//$(STOCK_MNG_HIST_GRID_LIST).find('.ui-jqgrid-labels .ui-th-div').css('cursor','default');
124
-			$(STOCK_MNG_HIST_GRID_LIST).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
125
-			$(STOCK_MNG_HIST_GRID_LIST).find('.ui-jqgrid-labels>th').on('click', function() {
125
+			$(list).find('th').eq(2).css({cursor:'pointer',background:'#FFEBCD'});
126
+			$(list).find('.ui-jqgrid-labels>th').on('click', function() {
126
 				const idx=$(this).index();
127
 				const idx=$(this).index();
127
 				console.log("xxxx grid header click xxxxxxx index=="+idx, param );
128
 				console.log("xxxx grid header click xxxxxxx index=="+idx, param );
128
 				if(idx==2 || idx==3) {
129
 				if(idx==2 || idx==3) {
@@ -144,7 +145,7 @@ function itp_fn_BIZPOP_PO_STOCK_HIST(parentPopFn, args, returnType) {
144
 					param.sidx=field;
145
 					param.sidx=field;
145
 					param.sord=sort;
146
 					param.sord=sort;
146
 					
147
 					
147
-					$(STOCK_MNG_HIST_GRID_ID).jqGrid('setGridParam',{
148
+					$(THIS_GIRD_ID).jqGrid('setGridParam',{
148
 						postData:JSON.stringify(param)
149
 						postData:JSON.stringify(param)
149
 					}).trigger('reloadGrid');
150
 					}).trigger('reloadGrid');
150
 					$(this).find('.s-ico').show();
151
 					$(this).find('.s-ico').show();