법원연계 조정위원추가
This commit is contained in:
parent
dd0c7cffd5
commit
3a0e0c76c8
@ -24,5 +24,7 @@ public interface AdjCourtCnctnService {
|
||||
|
||||
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 crtDeptOrdi;
|
||||
|
||||
private String esntlId;
|
||||
|
||||
|
||||
public String getCrtSeq() {
|
||||
return crtSeq;
|
||||
@ -304,6 +306,12 @@ public class AdjCourtCnctnVO extends ComDefaultVO implements Serializable {
|
||||
public void setCrtDeptOrdi(String 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);
|
||||
}
|
||||
|
||||
public AdjCourtDeptVO selectAdjCourtCnctniDeptPop() {
|
||||
return (AdjCourtDeptVO) select("adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop");
|
||||
public List<AdjCourtDeptVO> 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
|
||||
public AdjCourtDeptVO selectAdjCourtCnctniDeptPop() {
|
||||
public List<AdjCourtDeptVO> 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()); // 조정조사관정보
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -490,6 +490,38 @@
|
||||
|
||||
</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
|
||||
INTO adr_court_doc_mgr
|
||||
@ -540,7 +572,7 @@
|
||||
</insert>
|
||||
|
||||
<select id="adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop" resultClass="adjCourtDeptVO">
|
||||
SELECT a.emplyr_id AS esntlId,
|
||||
SELECT a.emplyr_id AS emplyrId,
|
||||
a.user_nm AS userNm,
|
||||
a.esntl_id AS esntlId,
|
||||
a.pstinst_code AS pstinstCode
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
<!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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ 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">
|
||||
<head>
|
||||
<title>조정위원검색</title>
|
||||
@ -13,66 +15,92 @@
|
||||
<script type="text/javascript">
|
||||
var admId = null;
|
||||
|
||||
function setDept() {
|
||||
var tmpDept = $('#dept').val();
|
||||
|
||||
if ($('#dept').val() == '') {
|
||||
$('#deptTxt').text('');
|
||||
deptInfo = null;
|
||||
} else {
|
||||
deptInfo = tmpDept.split('§');
|
||||
|
||||
$('#deptTxt').text(deptInfo[2] + '(조정부장)' + ',' + deptInfo[3]);
|
||||
}
|
||||
|
||||
}
|
||||
$(document).ready(function() {
|
||||
});
|
||||
|
||||
function fncClose() {
|
||||
var tmpAdmId = $("input[name='admId']:checked").val();
|
||||
|
||||
if (typeof tmpAdmId == "undefined" || tmpAdmId == "" || tmpAdmId == null) {
|
||||
if (typeof tmpAdmId == "undefined" || tmpAdmId == ""
|
||||
|| tmpAdmId == null) {
|
||||
alert('조정위원을 선택해주세요.')
|
||||
return;
|
||||
}
|
||||
admId = tmpAdmId.split('§');
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
$(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>
|
||||
</head>
|
||||
<body>
|
||||
<form name="insertForm" id="insertForm">
|
||||
<input type="hidden" id="crtSeq" name="crtSeq" value="${deptVO.crtSeq }" />
|
||||
<input type="hidden" id="esntlId" name="esntlId" />
|
||||
<input type="hidden" id="pstinstCode" name="pstinstCode" />
|
||||
</form>
|
||||
<div class="area_popup search_list_popup" style="width: 640px;">
|
||||
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
||||
<input type="hidden" name="targetId" id="targetId" value="<c:out value='${dtbVO.targetId}' />"/>
|
||||
|
||||
<input type="hidden" name="targetId" id="targetId" value="<c:out value='${dtbVO.targetId}' />" />
|
||||
<div class="cont_popup">
|
||||
<p class="tit_text tt1">조정위원 선택</p>
|
||||
<table class="pop_tbType02">
|
||||
<colgroup>
|
||||
<col style="width: 100%">
|
||||
<col style="width: 80%">
|
||||
<col style="width: 20%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tt2">조사관</th>
|
||||
<th class="tt2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${ adjCourtDeptVO}" var="list">
|
||||
<tr>
|
||||
<td>${list.userNm }</td>
|
||||
<td>
|
||||
<ul class="ap_star_check">
|
||||
<li>
|
||||
<c:forEach var="list" items="${ass}" varStatus="status">
|
||||
<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}' />
|
||||
</c:forEach>
|
||||
</li>
|
||||
</ul>
|
||||
<button class="btnType06"
|
||||
onclick="fn_insert('${list.esntlId }', '${list.pstinstCode }'); return false;">선택</button>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="btn_wrap btn_layout04">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user