Browse Source

화면 수정

SBK 1 year ago
parent
commit
10f7a8cd65

+ 8 - 4
src/main/webapp/ux/co/co0102/CO01020001U.xml

@@ -429,10 +429,14 @@
      * 함수명 : scwin.scrollToLastFocusedRow
      * 기능 : 저장 후 마지막에 선택한 로우 로 이동
      ***************************************************************************/
-    scwin.scrollToLastFocusedRow = function() {
-		grdData1.setFocusedCell( scwin.FocusedRow , "ccNm" , false );
-		scwin.FocusedRow = null;
-    };
+	scwin.scrollToLastFocusedRow = function() {
+		document.querySelector("#tabc_layout_contents_1811_body_grdData1_scrollY_div").scroll({left:0,top:50000,behavior:"smooth"});
+		setTimeout(function() {
+			grdData1.setTopRowIndex( scwin.FocusedRow );
+			grdData1.setFocusedCell(scwin.FocusedRow, "ccNm", false);
+			scwin.FocusedRow = null;
+		}, 800);
+	};
 ]]></script>
 	</head>
 	<body>

+ 6 - 2
src/main/webapp/ux/co/co0106/CO01060001U.xml

@@ -404,8 +404,12 @@
 	 * 기능 : 저장 후 마지막에 선택한 로우 로 이동
 	 ***************************************************************************/
 	scwin.scrollToLastFocusedRow = function() {
-		grdData1.setFocusedCell(scwin.FocusedRow, "ccNm", false);
-		scwin.FocusedRow = null;
+		document.querySelector("#tabc_layout_contents_1817_body_grdData1_scrollY_div").scroll({left:0,top:50000,behavior:"smooth"});
+		setTimeout(function() {
+			grdData1.setTopRowIndex( scwin.FocusedRow );
+			grdData1.setFocusedCell(scwin.FocusedRow, "ccNm", false);
+			scwin.FocusedRow = null;
+		}, 800);
 	};
 ]]></script>
 	</head>