2025-10-15 12:25 로그인 정보를 이용하여 기소유예 대상자 정보 자동 입력
This commit is contained in:
parent
ead0f21a88
commit
2200d1e7dd
@ -365,6 +365,15 @@ public class SspnIdtmtController {
|
||||
, HttpServletRequest request
|
||||
) throws Exception {
|
||||
|
||||
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||
System.out.println("loginVO.getMembName()");
|
||||
System.out.println(loginVO.getMembName());
|
||||
System.out.println(loginVO.getMembBirth());
|
||||
System.out.println(loginVO.getMembCelnum());
|
||||
System.out.println(loginVO.getSexCode());
|
||||
|
||||
model.addAttribute("loginVO", loginVO);
|
||||
|
||||
String s_action = request.getParameter("action"); //insert or select
|
||||
System.out.println("s_action");
|
||||
System.out.println(s_action);
|
||||
|
||||
@ -277,6 +277,45 @@ $(document).ready(function(){
|
||||
$(this).find('.duet-date__input').attr('onblur','this.value=dateSettingHere(this.value);');
|
||||
});
|
||||
},10) */
|
||||
|
||||
//성명
|
||||
if ('${loginVO.membName}'!=''){
|
||||
$('#trgtNm').val('${loginVO.membName}');
|
||||
}
|
||||
|
||||
//생년월일
|
||||
if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
$('#year').val('${fn:substring(loginVO.membBirth, 0 ,4)}');
|
||||
}
|
||||
|
||||
if ('${fn:substring(loginVO.membBirth, 4 ,6)}'>='0'){
|
||||
$('#month').val('${fn:substring(loginVO.membBirth, 4 ,6)}');
|
||||
}
|
||||
|
||||
if ('${fn:substring(loginVO.membBirth, 6 ,8)}'>='0'){
|
||||
$('#day').val('${fn:substring(loginVO.membBirth, 6 ,8)}');
|
||||
}
|
||||
|
||||
var year = $("#year").val();
|
||||
var month = $("#month").val();
|
||||
var day = $("#day").val();
|
||||
$("#dBirth").val(year+"."+month+"."+day);
|
||||
|
||||
|
||||
//휴대폰번호
|
||||
if ('${loginVO.membCelnum}'!=''){
|
||||
$('#clphone').val('${loginVO.membCelnum}');
|
||||
}
|
||||
|
||||
//성별sexMsexM
|
||||
if ('${loginVO.sexCode}'=='M'){
|
||||
$('input[id="sexM"]').attr("checked", true);
|
||||
|
||||
}else if ('${loginVO.sexCode}'=='F'){
|
||||
$('input[id="sexF"]').attr("checked", true);
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
<!-- 일정 상세 -->
|
||||
@ -326,7 +365,7 @@ $(document).ready(function(){
|
||||
|
||||
<c:forEach var="index" begin="1925" end="2024">
|
||||
<c:choose>
|
||||
<c:when test="${index eq 2000}">
|
||||
<c:when test="${fn:substring(loginVO.membBirth, 0 ,4) eq index}">
|
||||
<option value="${index}" selected>${index}</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
@ -524,9 +563,9 @@ $(document).ready(function(){
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope=“row”>성별</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>
|
||||
<input type="radio" id="sexM" name="sex" value="M"> <label class="" for="sexM">남성</label>
|
||||
<input type="radio" id="sexF" name="sex" value="F"> <label class="" for="sexF">여성</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user