법원연계 조정위원추가
This commit is contained in:
parent
dd0c7cffd5
commit
3a0e0c76c8
@ -24,5 +24,7 @@ public interface AdjCourtCnctnService {
|
|||||||
|
|
||||||
public void insertCourtDept(AdjCourtDeptVO adjCourtDeptVO) throws Exception;
|
public void insertCourtDept(AdjCourtDeptVO adjCourtDeptVO) throws Exception;
|
||||||
|
|
||||||
public AdjCourtDeptVO selectAdjCourtCnctniDeptPop() throws Exception;
|
public List<AdjCourtDeptVO> selectAdjCourtCnctniDeptPop() throws Exception;
|
||||||
|
|
||||||
|
RestResponse insertAdjCourtCnctnDeptPopAjax(AdjCourtDeptVO deptVO) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,6 +63,8 @@ public class AdjCourtCnctnVO extends ComDefaultVO implements Serializable {
|
|||||||
private String crtDeptKng;
|
private String crtDeptKng;
|
||||||
private String crtDeptOrdi;
|
private String crtDeptOrdi;
|
||||||
|
|
||||||
|
private String esntlId;
|
||||||
|
|
||||||
|
|
||||||
public String getCrtSeq() {
|
public String getCrtSeq() {
|
||||||
return crtSeq;
|
return crtSeq;
|
||||||
@ -304,6 +306,12 @@ public class AdjCourtCnctnVO extends ComDefaultVO implements Serializable {
|
|||||||
public void setCrtDeptOrdi(String crtDeptOrdi) {
|
public void setCrtDeptOrdi(String crtDeptOrdi) {
|
||||||
this.crtDeptOrdi = crtDeptOrdi;
|
this.crtDeptOrdi = crtDeptOrdi;
|
||||||
}
|
}
|
||||||
|
public String getEsntlId() {
|
||||||
|
return esntlId;
|
||||||
|
}
|
||||||
|
public void setEsntlId(String esntlId) {
|
||||||
|
this.esntlId = esntlId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,12 @@ public class AdjCourtCnctnDAO extends EgovAbstractDAO {
|
|||||||
return (List<AdjCourtCnctnVO>) list("adjCourtCnctnDAO.selectAdjCourtCnctniFileList", adjCourtCnctnVO);
|
return (List<AdjCourtCnctnVO>) list("adjCourtCnctnDAO.selectAdjCourtCnctniFileList", adjCourtCnctnVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdjCourtDeptVO selectAdjCourtCnctniDeptPop() {
|
public List<AdjCourtDeptVO> selectAdjCourtCnctniDeptPop() {
|
||||||
return (AdjCourtDeptVO) select("adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop");
|
return (List<AdjCourtDeptVO>) list("adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void saveFromAdrCourtDeptMgr(AdjCourtDeptVO deptVO) {
|
||||||
|
update("adjCourtCnctnDAO.saveFromAdrCourtDeptMgr", deptVO);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -137,7 +137,18 @@ public class AdjCourtCnctnServiceImpl extends EgovAbstractServiceImpl implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AdjCourtDeptVO selectAdjCourtCnctniDeptPop() {
|
public List<AdjCourtDeptVO> selectAdjCourtCnctniDeptPop() {
|
||||||
return adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop();
|
return adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RestResponse insertAdjCourtCnctnDeptPopAjax(AdjCourtDeptVO deptVO) throws Exception {
|
||||||
|
try {
|
||||||
|
adjCourtCnctnDAO.saveFromAdrCourtDeptMgr(deptVO);
|
||||||
|
} catch (Exception e)
|
||||||
|
{ e.printStackTrace();
|
||||||
|
return new RestResponse(HttpStatus.BAD_REQUEST, "등록에 실패하였습니다.", LocalDateTime.now());
|
||||||
|
}
|
||||||
|
return new RestResponse(HttpStatus.OK, "등록 되었습니다.", LocalDateTime.now());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -192,4 +192,21 @@ public class AdjCourtCnctnController {
|
|||||||
model.addAttribute("adjCourtDeptVO", adjCourtCnctnService.selectAdjCourtCnctniDeptPop()); // 조정조사관정보
|
model.addAttribute("adjCourtDeptVO", adjCourtCnctnService.selectAdjCourtCnctniDeptPop()); // 조정조사관정보
|
||||||
return "kccadr/adjCourtCnctn/pop/adjCourtCnctnDeptPop";
|
return "kccadr/adjCourtCnctn/pop/adjCourtCnctnDeptPop";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value = "/kccadr/adjCourtCnctn/insertAdjCourtCnctnDeptPopAjax.do")
|
||||||
|
public ResponseEntity<RestResponse> insertAdjCourtCnctnDeptPopAjax(@ModelAttribute("deptVO") AdjCourtDeptVO deptVO) throws Exception {
|
||||||
|
|
||||||
|
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
||||||
|
|
||||||
|
deptVO.setLastUpdusrId(loginVO.getUniqId());
|
||||||
|
deptVO.setFrstRegisterId(loginVO.getUniqId());
|
||||||
|
|
||||||
|
return ResponseEntity.ok().body(adjCourtCnctnService.insertAdjCourtCnctnDeptPopAjax(deptVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -489,6 +489,38 @@
|
|||||||
COURT_SEQ = #courtSeq#
|
COURT_SEQ = #courtSeq#
|
||||||
|
|
||||||
</update> -->
|
</update> -->
|
||||||
|
|
||||||
|
<update id="adjCourtCnctnDAO.saveFromAdrCourtDeptMgr" parameterClass="adjCourtDeptVO">
|
||||||
|
/* adjCourtCnctnDAO.saveFromAdrCourtDeptMgr */
|
||||||
|
|
||||||
|
MERGE INTO ADR_COURT_DEPT_MGR T1 USING DB_ROOT
|
||||||
|
ON (
|
||||||
|
T1.CRT_SEQ = #crtSeq#
|
||||||
|
AND T1.ESNTL_ID = #esntlId#
|
||||||
|
)
|
||||||
|
WHEN MATCHED THEN
|
||||||
|
UPDATE SET
|
||||||
|
CRT_SEQ = #crtSeq#
|
||||||
|
, ESNTL_ID = #esntlId#
|
||||||
|
, CRT_DEPT_TY = #pstinstCode#
|
||||||
|
, LAST_UPDT_PNTTM = NOW()
|
||||||
|
, LAST_UPDUSR_ID = #lastUpdusrId#
|
||||||
|
WHEN NOT MATCHED THEN
|
||||||
|
INSERT (
|
||||||
|
CRT_SEQ
|
||||||
|
, ESNTL_ID
|
||||||
|
, CRT_DEPT_TY
|
||||||
|
, FRST_REGIST_PNTTM
|
||||||
|
, FRST_REGISTER_ID
|
||||||
|
) VALUES (
|
||||||
|
#crtSeq#
|
||||||
|
, #esntlId#
|
||||||
|
, #pstinstCode#
|
||||||
|
, NOW()
|
||||||
|
, #frstRegisterId#
|
||||||
|
)
|
||||||
|
|
||||||
|
</update>
|
||||||
|
|
||||||
<insert id="adjCourtCnctnDAO.insertCourtFileInf" parameterClass="adrCourtFileVO">
|
<insert id="adjCourtCnctnDAO.insertCourtFileInf" parameterClass="adrCourtFileVO">
|
||||||
INSERT
|
INSERT
|
||||||
@ -540,7 +572,7 @@
|
|||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop" resultClass="adjCourtDeptVO">
|
<select id="adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop" resultClass="adjCourtDeptVO">
|
||||||
SELECT a.emplyr_id AS esntlId,
|
SELECT a.emplyr_id AS emplyrId,
|
||||||
a.user_nm AS userNm,
|
a.user_nm AS userNm,
|
||||||
a.esntl_id AS esntlId,
|
a.esntl_id AS esntlId,
|
||||||
a.pstinst_code AS pstinstCode
|
a.pstinst_code AS pstinstCode
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
<%@ page language="java" contentType="text/html; charset=utf-8"
|
||||||
|
pageEncoding="utf-8"%>
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
<%@ taglib prefix="validator"
|
||||||
|
uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
<html lang="ko">
|
<html lang="ko">
|
||||||
<head>
|
<head>
|
||||||
<title>조정위원검색</title>
|
<title>조정위원검색</title>
|
||||||
@ -13,73 +15,99 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var admId = null;
|
var admId = null;
|
||||||
|
|
||||||
function setDept() {
|
$(document).ready(function() {
|
||||||
var tmpDept = $('#dept').val();
|
});
|
||||||
|
|
||||||
if ($('#dept').val() == '') {
|
|
||||||
$('#deptTxt').text('');
|
|
||||||
deptInfo = null;
|
|
||||||
} else {
|
|
||||||
deptInfo = tmpDept.split('§');
|
|
||||||
|
|
||||||
$('#deptTxt').text(deptInfo[2] + '(조정부장)' + ',' + deptInfo[3]);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function fncClose() {
|
function fncClose() {
|
||||||
var tmpAdmId = $("input[name='admId']:checked").val();
|
var tmpAdmId = $("input[name='admId']:checked").val();
|
||||||
|
|
||||||
if (typeof tmpAdmId == "undefined" || tmpAdmId == "" || tmpAdmId == null) {
|
if (typeof tmpAdmId == "undefined" || tmpAdmId == ""
|
||||||
|
|| tmpAdmId == null) {
|
||||||
alert('조정위원을 선택해주세요.')
|
alert('조정위원을 선택해주세요.')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
admId = tmpAdmId.split('§');
|
admId = tmpAdmId.split('§');
|
||||||
var targetId = $("#targetId").val();
|
var targetId = $("#targetId").val();
|
||||||
window.opener.setAdmId(admId[0], admId[1], admId[2], admId[3], targetId);
|
window.opener
|
||||||
|
.setAdmId(admId[0], admId[1], admId[2], admId[3], targetId);
|
||||||
self.close();
|
self.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
function fn_insert(p_esntlId, p_pstinstCode) {
|
||||||
});
|
|
||||||
|
var form = document.insertForm;
|
||||||
|
form.esntlId.value = p_esntlId;
|
||||||
|
form.pstinstCode.value = p_pstinstCode;
|
||||||
|
|
||||||
|
var msg = "선택 하시겠습니까?";
|
||||||
|
if(confirm(msg)){
|
||||||
|
//신청인 정보 입력
|
||||||
|
var data = new FormData(document.insertForm);
|
||||||
|
var url= "<c:url value='/kccadr/adjCourtCnctn/insertAdjCourtCnctnDeptPopAjax.do' />";
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: url,
|
||||||
|
data: data,
|
||||||
|
dataType:'json',
|
||||||
|
async: false,
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
cache: false,
|
||||||
|
success: function (data) {
|
||||||
|
alert(data.data);
|
||||||
|
if(data.status == 'OK')
|
||||||
|
{
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="area_popup search_list_popup" style="width: 640px;">
|
<form name="insertForm" id="insertForm">
|
||||||
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
<input type="hidden" id="crtSeq" name="crtSeq" value="${deptVO.crtSeq }" />
|
||||||
<input type="hidden" name="targetId" id="targetId" value="<c:out value='${dtbVO.targetId}' />"/>
|
<input type="hidden" id="esntlId" name="esntlId" />
|
||||||
|
<input type="hidden" id="pstinstCode" name="pstinstCode" />
|
||||||
<div class="cont_popup">
|
</form>
|
||||||
<p class="tit_text tt1">조정위원 선택</p>
|
<div class="area_popup search_list_popup" style="width: 640px;">
|
||||||
<table class="pop_tbType02">
|
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
||||||
<colgroup>
|
<input type="hidden" name="targetId" id="targetId" value="<c:out value='${dtbVO.targetId}' />" />
|
||||||
<col style="width: 100%">
|
<div class="cont_popup">
|
||||||
</colgroup>
|
<p class="tit_text tt1">조정위원 선택</p>
|
||||||
<thead>
|
<table class="pop_tbType02">
|
||||||
<tr>
|
<colgroup>
|
||||||
<th class="tt2">조사관</th>
|
<col style="width: 80%">
|
||||||
</tr>
|
<col style="width: 20%">
|
||||||
</thead>
|
</colgroup>
|
||||||
<tbody>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<th class="tt2">조사관</th>
|
||||||
<ul class="ap_star_check">
|
<th class="tt2"></th>
|
||||||
<li>
|
</tr>
|
||||||
<c:forEach var="list" items="${ass}" varStatus="status">
|
</thead>
|
||||||
<input type="radio" value="<c:out value='${list.memSeq}' />§<c:out value='${list.memName}' />§<c:out value='${list.offmTelno}' />§<c:out value='${list.emailAdres}' />" name="admId" /> <c:out value='${list.memName}' />
|
<tbody>
|
||||||
</c:forEach>
|
<c:forEach items="${ adjCourtDeptVO}" var="list">
|
||||||
</li>
|
<tr>
|
||||||
</ul>
|
<td>${list.userNm }</td>
|
||||||
</td>
|
<td>
|
||||||
</tr>
|
<button class="btnType06"
|
||||||
</tbody>
|
onclick="fn_insert('${list.esntlId }', '${list.pstinstCode }'); return false;">선택</button>
|
||||||
</table>
|
</td>
|
||||||
<div class="btn_wrap btn_layout04">
|
</tr>
|
||||||
<button class="btnType06" onclick="fncClose(); return false;">확인</button>
|
</c:forEach>
|
||||||
</div>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
</form:form>
|
<div class="btn_wrap btn_layout04">
|
||||||
</div>
|
<button class="btnType06" onclick="fncClose(); return false;">확인</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user