검찰연계 수정화면 보완

This commit is contained in:
itn 2023-10-25 15:03:22 +09:00
parent 428796741e
commit f5a1f2ebcb
2 changed files with 38 additions and 27 deletions

View File

@ -132,7 +132,6 @@ public class AdrPrsctLinkController {
public String adjstReqOpenExamplePop(@ModelAttribute("adrPrsctLinkVO") AdrPrsctLinkVO adrPrsctLinkVO public String adjstReqOpenExamplePop(@ModelAttribute("adrPrsctLinkVO") AdrPrsctLinkVO adrPrsctLinkVO
, ModelMap model) throws Exception { , ModelMap model) throws Exception {
return "kccadr/adrpr/popup/adrPrsctLinkExcelRegistPop"; return "kccadr/adrpr/popup/adrPrsctLinkExcelRegistPop";
} }
@ -144,7 +143,6 @@ public class AdrPrsctLinkController {
public String adrPrsctLinkRegist(@ModelAttribute("adrPrsctLinkVO") AdrPrsctLinkVO adrPrsctLinkVO public String adrPrsctLinkRegist(@ModelAttribute("adrPrsctLinkVO") AdrPrsctLinkVO adrPrsctLinkVO
, ModelMap model) throws Exception { , ModelMap model) throws Exception {
return "kccadr/adrpr/adrPrsctLinkRegist"; return "kccadr/adrpr/adrPrsctLinkRegist";
} }
@ -162,19 +160,21 @@ public class AdrPrsctLinkController {
try { try {
//로그인 정보 획득 - ssoLoginVO 사용 //로그인 정보 획득 - ssoLoginVO 사용
LoginVO loginVO = checkLoginUtil.getLoginVO(); LoginVO loginVO = checkLoginUtil.getLoginVO();
adrPrsctLinkVO.setFrstRegisterId(loginVO.getUniqId()); if (loginVO != null) {
adrPrsctLinkVO.setLastUpdusrId(loginVO.getUniqId()); adrPrsctLinkVO.setFrstRegisterId(loginVO.getUniqId());
adrPrsctLinkVO.setLastUpdusrId(loginVO.getUniqId());
// 저장
if (StringUtil.isEmpty(adrPrsctLinkVO.getPrsctSeq())) { // 저장
// 인서트 if (StringUtil.isEmpty(adrPrsctLinkVO.getPrsctSeq())) {
String nextId = adrPrsctLinkIdgenService.getNextStringId(); // 인서트
adrPrsctLinkVO.setPrsctSeq(nextId); String nextId = adrPrsctLinkIdgenService.getNextStringId();
adrPrsctLinkService.adrPrsctLinkInsert(adrPrsctLinkVO); adrPrsctLinkVO.setPrsctSeq(nextId);
} adrPrsctLinkService.adrPrsctLinkInsert(adrPrsctLinkVO);
else { }
// 업데이트 else {
adrPrsctLinkService.adrPrsctLinkUpdate(adrPrsctLinkVO); // 업데이트
adrPrsctLinkService.adrPrsctLinkUpdate(adrPrsctLinkVO);
}
} }
} }
@ -297,7 +297,7 @@ public class AdrPrsctLinkController {
// 행의 두번째 (이름부터 받아오기) // 행의 두번째 (이름부터 받아오기)
HSSFCell cell = null; HSSFCell cell = null;
boolean errSts = true; boolean errSts = true;
for(int j = 0 ; j < 6; j++){ //행읽기(6행까지나 2행까지만 필요) for(int j = 0 ; j < 8; j++){ //행읽기(6행까지나 2행까지만 필요)
cellValue = ""; cellValue = "";
cell = row.getCell(j); //이름/핸드폰/변환1/변환2/변환3/변환4/변환5 cell = row.getCell(j); //이름/핸드폰/변환1/변환2/변환3/변환4/변환5
if(null == cell || "".equals(cell.toString().trim())) { //셀에 값이 없으면 if(null == cell || "".equals(cell.toString().trim())) { //셀에 값이 없으면
@ -459,7 +459,7 @@ public class AdrPrsctLinkController {
XSSFCell cell = null; XSSFCell cell = null;
boolean errSts = true; boolean errSts = true;
for(int j = 0 ; j <= 7; j++){ //행읽기(6행까지나 2행까지만 필요) for(int j = 0 ; j < 8; j++){ //행읽기(6행까지나 2행까지만 필요)
cellValue = ""; cellValue = "";
cell = row.getCell(j); //이름/핸드폰/변환1/변환2/변환3/변환4/변환5 cell = row.getCell(j); //이름/핸드폰/변환1/변환2/변환3/변환4/변환5
if(null == cell || "".equals(cell.toString().trim())) { //셀에 값이 없으면 if(null == cell || "".equals(cell.toString().trim())) { //셀에 값이 없으면

View File

@ -50,21 +50,32 @@ function getAdrPrsctLinkDetail() {
if (data.isSuccess) { if (data.isSuccess) {
//alert(JSON.stringify(data.result)); //alert(JSON.stringify(data.result));
var plntfPhone = data.result.plntfPhone.split('-');
var dfndnPhone = data.result.dfndnPhone.split('-');
$("#dividendDate").val(data.result.dividendDate); //배당일 $("#dividendDate").val(data.result.dividendDate); //배당일
$("#prsctNo").val(data.result.prsctNo); //본사건번호 $("#prsctNo").val(data.result.prsctNo); //본사건번호
$("#prsctAdrNo").val(data.result.prsctAdrNo); //조정사건번호 $("#prsctAdrNo").val(data.result.prsctAdrNo); //조정사건번호
$("#plntfNm").val(data.result.plntfNm); //원고-대리인 이름 $("#plntfNm").val(data.result.plntfNm); //원고-대리인 이름
$("#plntfPhone1").val(plntfPhone[0]); //원고-대리인 연락처
$("#plntfPhone2").val(plntfPhone[1]);
$("#plntfPhone3").val(plntfPhone[2]);
$("#dfndnNm").val(data.result.dfndnNm); //피고-대리인 이름 $("#dfndnNm").val(data.result.dfndnNm); //피고-대리인 이름
$("#dfndnPhone1").val(dfndnPhone[0]); //피고-대리인 연락처 $("#prsctCn").val(data.result.prsctCn); //사건내용
$("#dfndnPhone2").val(dfndnPhone[1]);
$("#dfndnPhone3").val(dfndnPhone[2]); var plntfPhone = "";
$("#prsctCn").val(data.result.prsctCn); //사건내용 if (data.result.plntfPhone != null && data.result.plntfPhone != "") {
plntfPhone = data.result.plntfPhone.split('-');
if (plntfPhone.length == 3) {
$("#plntfPhone1").val(plntfPhone[0]); //원고-대리인 연락처
$("#plntfPhone2").val(plntfPhone[1]);
$("#plntfPhone3").val(plntfPhone[2]);
}
}
var dfndnPhone = "";
if (data.result.dfndnPhone != null && data.result.dfndnPhone != "") {
dfndnPhone = data.result.dfndnPhone.split('-');
if (dfndnPhone.length == 3) {
$("#dfndnPhone1").val(dfndnPhone[0]); //피고-대리인 연락처
$("#dfndnPhone2").val(dfndnPhone[1]);
$("#dfndnPhone3").val(dfndnPhone[2]);
}
}
} }
else { else {
alert("Msg : " + data.msg); alert("Msg : " + data.msg);