2024-01-09 14:20 기소유예 사용자 신청 작업

This commit is contained in:
myname 2024-01-09 14:20:56 +09:00
parent b6d75077c1
commit fd1523d5f5
5 changed files with 58 additions and 42 deletions

View File

@ -184,6 +184,8 @@ public class SspnIdtmtServiceImpl implements SspnIdtmtService {
id = ""; //여기에 대상 선택을 위한 데이터를 넣어준다.
next = "N";
modelAndView.addObject("cndtnTrgtMngVOList", cndtnTrgtMngVOList);
//cndtnTrgtMngVOList.get(0).getreg
//next = Integer.toString(cndtnTrgtMngVOList.size()); //대상자
}

View File

@ -52,6 +52,7 @@ public class CndtnTrgtMngVO extends ComDefaultVO implements Serializable {
private String resultCd; //결과값 T-,F-거짓
private String regNmbr; //의뢰번호
@ -240,6 +241,12 @@ public class CndtnTrgtMngVO extends ComDefaultVO implements Serializable {
public void setResultCd(String resultCd) {
this.resultCd = resultCd;
}
public String getRegNmbr() {
return regNmbr;
}
public void setRegNmbr(String regNmbr) {
this.regNmbr = regNmbr;
}

View File

@ -337,7 +337,7 @@
/* cndtnTrgtInfoMngDAO.checkSspnIdtmtStep1 - step1.신청 가능한 대상이 있는지 찾는다. */
SELECT
a.sspn_idtmt_trgt_ord AS sspnIdtmtTrgtOrd
, a.req_nmbr AS regNmbr
, a.req_nmbr AS reqNmbr
, a.prsctr_nm AS prsctrNm
FROM
<include refid="CndtnTrgtInfoMngDAO.table_name"/> a

View File

@ -674,12 +674,12 @@ $(document).ready(function(){
</td>
<td class="aplctBtn">
<%-- <button type="button" class="btnType04" onclick="fncEduReg('<c:out value="${list.prcsAplctPrdOrd}"/>');">신청</button> --%>
<button type="button" class="btnType04" data-info="<c:out value="${list.prcsAplctPrdOrd}"/>" data-tooltip="target_confirm_popup" >신청</button>
<%-- <button type="button" class="btnType04" data-info="<c:out value="${list.prcsAplctPrdOrd}"/>" data-tooltip="target_confirm_popup" >신청</button> --%>
<!-- -->
<button type="button" class="btnType02" data-tooltip=""
<button type="button" class="btnType04" data-tooltip=""
onclick="fncAplctPopup('<c:out value="${list.prcsAplctPrdOrd}"/>','','','10','select'
,'','',''
)" title="팝업 열림">설문완료</button>
)" title="팝업 열림">신청</button>
</td>

View File

@ -68,6 +68,7 @@
location.href = "${pageContext.request.contextPath}/web/ve/aplct/sspnIdtmt/main.do";
}
//제출
function fn_new_confirm(p_prcsAplctPrdOrd){
var form = document.confirmForm;
@ -113,7 +114,7 @@
if(returnData.result == "success"){
// 대상자 테이블 pk 값
var sspnIdtmtTrgtOrd = returnData.id;
alert(returnData.msg);
//alert(returnData.msg);
// 교육 신청 ajax
// 대상자 이름, 생년월일, 대상자TB ID
@ -125,10 +126,33 @@
fn_eduRegPopup(trgtNm, dBirth, returnData.id);
}else if(returnData.next == "N"){
//동일 대상자 중에서 선택할수 있도록 처리해야 한다.
alert(returnData.cndtnTrgtMngVOList);
alert(returnData.cndtnTrgtMngVOList.length);
alert(returnData.cndtnTrgtMngVOList[0]);
alert(returnData.cndtnTrgtMngVOList[0].sspnIdtmtTrgtOrd);
//forMulti
$('#confirmBtns').hide();
$('#VOList').show();
returnData.cndtnTrgtMngVOList.forEach(
function (el, index){
var v_forMulti = '';
v_forMulti = v_forMulti +"<tr>";
v_forMulti = v_forMulti +"<td>";
v_forMulti = v_forMulti +el.reqNmbr;
v_forMulti = v_forMulti +"</td>";
v_forMulti = v_forMulti +"<td>";
v_forMulti = v_forMulti +el.prsctrNm;
v_forMulti = v_forMulti +"</td>";
v_forMulti = v_forMulti +"<td>";
//v_forMulti = v_forMulti +el.sspnIdtmtTrgtOrd;
v_forMulti = v_forMulti +"<button type=\"button\" class=\"btnType05\" onclick=\"fn_new_select('"+el.sspnIdtmtTrgtOrd+"')\">선택</button>";
v_forMulti = v_forMulti +"</td>";
v_forMulti = v_forMulti +"</tr>";
$('#forMulti').after(v_forMulti);
}
);
}
}else{
alert(returnData.msg);
@ -153,6 +177,15 @@
//$('#target_confirm_popup-close').click();
}
//선택
function fn_new_select(p_sspnIdtmtTrgtOrd){
var dBirth = $('#dBirth').val().replace(/\./g, '');
var trgtNm = $('#trgtNm').val();
$('#target_confirm_popup-close').click();
fn_eduRegPopup(trgtNm, dBirth, p_sspnIdtmtTrgtOrd);
}
$(document).ready(function(){
/*
@ -228,7 +261,7 @@ $(document).ready(function(){
</table>
</div>
<div class="pop_btn_wrap btn_layout01">
<div class="pop_btn_wrap btn_layout01" id="confirmBtns">
<div class="btn_left">
</div>
<div class="btn_center">
@ -249,7 +282,7 @@ $(document).ready(function(){
</div>
<!-- <div class="pop_tb_type01" style="overflow:visible;" id="VOList"> -->
<div class="pop_tb_type01" style="overflow:;" id="VOList">
<div class="pop_tb_type01" style="overflow:visible;display:none;" id="VOList">
<table>
<colgroup>
<col style="width:30%;">
@ -260,38 +293,12 @@ $(document).ready(function(){
<div>
<tr>
<td colspan="3">여러건의 데이터가 확인 되었습니다.하기 대상 데이터중 하나를 선택 바랍니다.</td>
</tr>
<tr>
<th>성명</th>
<td>
<input type="text" id="trgtNm">
</td>
<td>
<input type="text" id="trgtNm">
</td>
</tr>
<tr>
<th>주민번호앞자리</th>
<td>
<div class="calendar_wrap">
<duet-date-picker identifier="date" id="dBirth" class="startDate" id="" min="1940-01-01"></duet-date-picker>
</div>
<script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/duetdatepicker2.js"></script>
</td>
<td>
<input type="text" id="trgtNm">
</td>
</tr>
<tr>
<th>성별</th>
<td>
<input type="radio" id="sexM" name="sex" value="M" checked="checked"> <label class="" for="sexM">남성</label>
<input type="radio" id="sexF" name="sex" value="F"> <label class="" for="sexF">여성</label>
</td>
<td>
<input type="text" id="trgtNm">
</td>
</tr>
<tr id="forMulti">
<th>사건번호</th>
<th>검사명</th>
<th>선택</th>
</tr>
</div>