feat: 토사 공진주 입력 개선

토사> 공진주에서 심도 중복 검사 비활성
main
thkim 2024-07-17 16:02:36 +09:00
parent f47a6b6e16
commit b8e8ef2fb1
3 changed files with 15 additions and 4 deletions

View File

@ -966,7 +966,7 @@ public class MainController
List<Map<String, Object>> lstFile = fileService.selectFiles(map); List<Map<String, Object>> lstFile = fileService.selectFiles(map);
mv.addObject("files", lstFile); mv.addObject("files", lstFile);
} catch (SQLException e) { } catch (SQLException e) {
System.out.println(e.getMessage()); System.out.println("thkim test: " + e.getMessage());
if (true && e.getMessage().contains("Already closed")) { if (true && e.getMessage().contains("Already closed")) {
System.out.println("Already closed"); System.out.println("Already closed");

View File

@ -1506,7 +1506,18 @@ public class SandController {
params.put("SAMPLE_CODE", oSAMPLE_CODE); params.put("SAMPLE_CODE", oSAMPLE_CODE);
}else { }else {
List<EgovMap> sampleItems = sandService.selectCountTempSampleInfo1(params); List<EgovMap> 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"));
}
} }

View File

@ -404,7 +404,7 @@ function fn_saveNumberCheckKendo(type, gridRoot, dataGrid, grid, startIndex, ite
if(kind != "rockJoinshear" && kind != "rockPointload" && kind != "rockUniaxial"){ if(kind != "rockJoinshear" && kind != "rockPointload" && kind != "rockUniaxial"){
//중복 체크 함수에 심도 값을 담은 배열을 전달 //중복 체크 함수에 심도 값을 담은 배열을 전달
if(!chkDuplicates(chkDupFrom) || !chkDuplicates(chkDupTo)){ if(false && (!chkDuplicates(chkDupFrom) || !chkDuplicates(chkDupTo))){
alert("심도 값이 중복되었습니다. 확인 후 다시 저장 바랍니다.") alert("심도 값이 중복되었습니다. 확인 후 다시 저장 바랍니다.")
return false; 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("심도 값이 중복되었습니다. 확인 후 다시 저장 바랍니다.") alert("심도 값이 중복되었습니다. 확인 후 다시 저장 바랍니다.")
return false; return false;
} }