Selaa lähdekoodia

재고이력 수정

isna 2 vuotta sitten
vanhempi
commit
ea2773d2a8
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  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 116
 			if(self.sortUse) return;
117 117
 			self.sortUse=true;
118 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 121
 			th.find('.s-ico').show();
121 122
 			th.find('.ui-grid-ico-sort').hide();
122 123
 			th.find('.glyphicon-triangle-top').show();//asc 는 bottom 으로
123 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 127
 				const idx=$(this).index();
127 128
 				console.log("xxxx grid header click xxxxxxx index=="+idx, param );
128 129
 				if(idx==2 || idx==3) {
@@ -144,7 +145,7 @@ function itp_fn_BIZPOP_PO_STOCK_HIST(parentPopFn, args, returnType) {
144 145
 					param.sidx=field;
145 146
 					param.sord=sort;
146 147
 					
147
-					$(STOCK_MNG_HIST_GRID_ID).jqGrid('setGridParam',{
148
+					$(THIS_GIRD_ID).jqGrid('setGridParam',{
148 149
 						postData:JSON.stringify(param)
149 150
 					}).trigger('reloadGrid');
150 151
 					$(this).find('.s-ico').show();