Browse Source

아래 컬럼이 ReadOnly 이면 다음 컬럼 이동

dev001 10 months ago
parent
commit
293c62c864

+ 6 - 0
src/main/webapp/ux/ei/ei0103/EI01030001U.xml

@@ -645,6 +645,12 @@
 		if (info.keyCode == 13) {
 		if (info.keyCode == 13) {
 			if (dcdataList1.getRowCount() != info.rowIndex) {
 			if (dcdataList1.getRowCount() != info.rowIndex) {
 				grdData1.setFocusedCell(info.rowIndex + 1, info.colIndex, true);
 				grdData1.setFocusedCell(info.rowIndex + 1, info.colIndex, true);
+				
+				// 아래 컬럼이 ReadOnly 이면 다음 컬럼 이동
+				var cellReadOnly = grdData1.getCellReadOnly(info.rowIndex + 1 , info.colIndex);
+				if(cellReadOnly == true){
+					grdData1.setFocusedCell(info.rowIndex + 2, info.colIndex, true);
+				}
 			}
 			}
 		}
 		}
 	};
 	};

+ 6 - 0
src/main/webapp/ux/ei/ei0104/EI01040001U.xml

@@ -592,6 +592,12 @@
 		if (info.keyCode == 13) {
 		if (info.keyCode == 13) {
 			if (dcdataList1.getRowCount() != info.rowIndex) {
 			if (dcdataList1.getRowCount() != info.rowIndex) {
 				grdData1.setFocusedCell(info.rowIndex + 1, info.colIndex, true);
 				grdData1.setFocusedCell(info.rowIndex + 1, info.colIndex, true);
+				
+				// 아래 컬럼이 ReadOnly 이면 다음 컬럼 이동
+				var cellReadOnly = grdData1.getCellReadOnly(info.rowIndex + 1 , info.colIndex);
+				if(cellReadOnly == true){
+					grdData1.setFocusedCell(info.rowIndex + 2, info.colIndex, true);
+				}
 			}
 			}
 		}
 		}
 	};
 	};