diff --git a/src/main/java/geoinfo/main/main/MainController.java b/src/main/java/geoinfo/main/main/MainController.java index 4354f442..8b7d757d 100644 --- a/src/main/java/geoinfo/main/main/MainController.java +++ b/src/main/java/geoinfo/main/main/MainController.java @@ -966,7 +966,7 @@ public class MainController List> lstFile = fileService.selectFiles(map); mv.addObject("files", lstFile); } catch (SQLException e) { - System.out.println(e.getMessage()); + System.out.println("thkim test: " + e.getMessage()); if (true && e.getMessage().contains("Already closed")) { System.out.println("Already closed"); diff --git a/src/main/java/geoinfo/regi/sandInfo/SandController.java b/src/main/java/geoinfo/regi/sandInfo/SandController.java index cb6d9a99..e85f304c 100644 --- a/src/main/java/geoinfo/regi/sandInfo/SandController.java +++ b/src/main/java/geoinfo/regi/sandInfo/SandController.java @@ -1506,7 +1506,18 @@ public class SandController { params.put("SAMPLE_CODE", oSAMPLE_CODE); }else { List sampleItems = sandService.selectCountTempSampleInfo1(params); - params.put("SAMPLE_CODE", sampleItems.get(0).get("codeValue")); + if( sampleItems.size() == 0) { + // 기본물성시험 정보가 없을 때 에러가 나는 것으로 추측된다. 따라서 기본물성시험 정보가 필요 하다는 문구를 안내해야 한다. + System.out.println( + "\n--------------------------------------------------------------\n" + + request.getRequestURI() + " " + " sampleItems.size() == 0" + + "\n--------------------------------------------------------------\n" + + "SAMPLE_CODE:[" + "null" + "]\n" + + "\n--------------------------------------------------------------\n" + ); + } else { + params.put("SAMPLE_CODE", sampleItems.get(0).get("codeValue")); + } } diff --git a/src/main/webapp/kendo-ui/js/common.js b/src/main/webapp/kendo-ui/js/common.js index d796c71f..9bc12322 100644 --- a/src/main/webapp/kendo-ui/js/common.js +++ b/src/main/webapp/kendo-ui/js/common.js @@ -404,7 +404,7 @@ function fn_saveNumberCheckKendo(type, gridRoot, dataGrid, grid, startIndex, ite if(kind != "rockJoinshear" && kind != "rockPointload" && kind != "rockUniaxial"){ //중복 체크 함수에 심도 값을 담은 배열을 전달 - if(!chkDuplicates(chkDupFrom) || !chkDuplicates(chkDupTo)){ + if(false && (!chkDuplicates(chkDupFrom) || !chkDuplicates(chkDupTo))){ alert("심도 값이 중복되었습니다. 확인 후 다시 저장 바랍니다.") return false; } @@ -568,7 +568,7 @@ function fn_saveNumberCheckKendo(type, gridRoot, dataGrid, grid, startIndex, ite } //중복 체크 함수에 심도 값을 담은 배열을 전달 - if(!chkDuplicates(chkDupFrom) || !chkDuplicates(chkDupTo)){ + if(false && (!chkDuplicates(chkDupFrom) || !chkDuplicates(chkDupTo))){ alert("심도 값이 중복되었습니다. 확인 후 다시 저장 바랍니다.") return false; }