Browse Source

자금관리 엑셀 업로드 직후 로직 수정

ckh 10 months ago
parent
commit
1d0d67c12f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/main/webapp/ux/ei/ei0201/EI02010001U.xml

+ 6 - 1
src/main/webapp/ux/ei/ei0201/EI02010001U.xml

@@ -418,7 +418,7 @@
 	scwin.grdData1_onafteredit = function(row,col,value) {
 	scwin.grdData1_onafteredit = function(row,col,value) {
 		var col = dcdataList1.getColumnID(col);
 		var col = dcdataList1.getColumnID(col);
 		if(col == "inexGb"){
 		if(col == "inexGb"){
-			dcdataList1.setCellData( row , "inexItemGbCd" , dcdataList4.getCellData( 0 , "CODE_CD" ));
+			dcdataList1.setCellData( row , "inexItemGbCd" , dclinkedDataList1.getCellData( 0 , "CODE_CD" ));
 			grdData1.setCellReadOnly( row , "inexItemNm" , false );
 			grdData1.setCellReadOnly( row , "inexItemNm" , false );
 		}			
 		}			
 	};	
 	};	
@@ -476,6 +476,11 @@
             	for(var k = 0; k < cols.length; k++){
             	for(var k = 0; k < cols.length; k++){
 	            	dcdataList1.setCellData( i , cols[k] , dcdataList1.getCellData( i , cols[k] ).replace(/[^0-9.]/g,"") )
 	            	dcdataList1.setCellData( i , cols[k] , dcdataList1.getCellData( i , cols[k] ).replace(/[^0-9.]/g,"") )
             	}
             	}
+            	
+            	if(dcdataList4.getCellData((dcdataList4.getMatchedIndex( "CODE_CD" , dcdataList1.getCellData( i , "inexItemGbCd" ) , true , 0 , dcdataList4.getRowCount() )), "ESBS_CD2") == "END"){
+					grdData1.setCellReadOnly( i , "inexItemNm" , true );           		
+            	}
+            	
             }
             }
 		}
 		}
 	};
 	};