Merge branch 'fix/restore-20251029-143323' into master_tolag3
신청 수정 중
This commit is contained in:
parent
b280be2efa
commit
2df0492298
@ -247,6 +247,9 @@ public class CmdTrgtServiceImpl implements CmdTrgtService {
|
||||
vEInstrMixService.insertInstrEmailCrtfd(vEInstrDetailVO);
|
||||
|
||||
}
|
||||
|
||||
//인증번호 임시노출 실서버 운영 시 삭제_이준호_251030
|
||||
modelAndView.addObject("crtfdNumber", code);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -247,6 +247,9 @@ public class PreventServiceImpl implements PreventService {
|
||||
vEInstrMixService.insertInstrEmailCrtfd(vEInstrDetailVO);
|
||||
|
||||
}
|
||||
|
||||
//인증번호 임시노출 실서버 운영 시 삭제_이준호_251030
|
||||
modelAndView.addObject("crtfdNumber", code);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -304,6 +304,9 @@ public class SspnIdtmtServiceImpl implements SspnIdtmtService {
|
||||
vEInstrMixService.insertInstrEmailCrtfd(vEInstrDetailVO);
|
||||
|
||||
}
|
||||
|
||||
//인증번호 임시노출 실서버 운영 시 삭제_이준호_251030
|
||||
modelAndView.addObject("crtfdNumber", code);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -72,10 +72,19 @@
|
||||
//제출
|
||||
function fn_new_confirm(p_prcsAplctPrdOrd){
|
||||
var form = document.confirmForm;
|
||||
console.log('$("#dBirth").val() : ' , $('#dBirth').val());
|
||||
var dBirth = $('#dBirth').val().replace(/\./g, '');
|
||||
var dBirth = $('#birth_input').val();
|
||||
if(dBirth.substring(0,2) >= 50){
|
||||
dBirth = "19" + dBirth;
|
||||
}else{
|
||||
dBirth = "20" + dBirth;
|
||||
}
|
||||
var trgtNm = $('#trgtNm').val();
|
||||
var sex = $('input[name="sex"]:checked').val();
|
||||
var sex = $('#jender_input').val();
|
||||
if(sex % 2 == 1){
|
||||
sex = "M";
|
||||
}else{
|
||||
sex = "F"
|
||||
}
|
||||
var clphone = $('#clphone').val();
|
||||
|
||||
$('#regForm input[name="prcsAplctPrdOrd"]').val(p_prcsAplctPrdOrd);
|
||||
@ -127,11 +136,11 @@
|
||||
$("#chkBtn").hide();
|
||||
//기존정보 변경 막기
|
||||
$("#trgtNm").prop('readonly', true);
|
||||
$("#date").prop('readonly', true);
|
||||
$("#birth_input").prop('readonly', true);
|
||||
$("#jender_input").prop('readonly', true);
|
||||
$("#clphone").prop('readonly', true);
|
||||
$(".duet-date__toggle").remove();
|
||||
$("#sexM").attr("onclick", "return(false);");
|
||||
$("#sexF").attr("onclick", "return(false);");
|
||||
alert(returnData.crtfdNumber);
|
||||
|
||||
|
||||
}else{ //본인인증 후
|
||||
@ -205,7 +214,12 @@
|
||||
|
||||
//선택
|
||||
function fn_new_select(p_cmdTrgtInfoOrd){
|
||||
var dBirth = $('#dBirth').val().replace(/\./g, '');
|
||||
var dBirth = $('#birth_input').val();
|
||||
if(dBirth.substring(0,2) >= 50){
|
||||
dBirth = "19" + dBirth;
|
||||
}else{
|
||||
dBirth = "20" + dBirth;
|
||||
}
|
||||
var trgtNm = $('#trgtNm').val();
|
||||
var clphone = $('#clphone').val();
|
||||
|
||||
@ -284,7 +298,7 @@ $(document).ready(function(){
|
||||
}
|
||||
|
||||
//생년월일
|
||||
if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
/* if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
$('#year').val('${fn:substring(loginVO.membBirth, 0 ,4)}');
|
||||
}
|
||||
|
||||
@ -294,13 +308,11 @@ $(document).ready(function(){
|
||||
|
||||
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);
|
||||
|
||||
var birthStr = "${loginVO.membBirth}";
|
||||
console.log(birthStr);
|
||||
$('#birth_input').val(birthStr.substring(2, 8));
|
||||
|
||||
//휴대폰번호
|
||||
if ('${loginVO.membCelnum}'!=''){
|
||||
@ -309,12 +321,18 @@ $(document).ready(function(){
|
||||
|
||||
//성별sexMsexM
|
||||
if ('${loginVO.sexCode}'=='M'){
|
||||
$('input[id="sexM"]').attr("checked", true);
|
||||
|
||||
if(${fn:substring(loginVO.membBirth, 0 ,4) >= 2000}){
|
||||
$('#jender_input').val('3');
|
||||
}else{
|
||||
$('#jender_input').val('1');
|
||||
}
|
||||
}else if ('${loginVO.sexCode}'=='F'){
|
||||
$('input[id="sexF"]').attr("checked", true);
|
||||
|
||||
}
|
||||
if(${fn:substring(loginVO.membBirth, 0 ,4) >= 2000}){
|
||||
$('#jender_input').val('4');
|
||||
}else{
|
||||
$('#jender_input').val('2');
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
@ -357,195 +375,14 @@ $(document).ready(function(){
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope=“row”>생년월일 8자리 (ex.1988.01.01)</th>
|
||||
<th scope=“row”>생년월일/성별</th>
|
||||
<td>
|
||||
<div class="calendar_wrap">
|
||||
<input type="hidden" value="" id="dBirth"/>
|
||||
<select name="" id="year" class="selType1">
|
||||
|
||||
<c:forEach var="index" begin="1925" end="2024">
|
||||
<c:choose>
|
||||
<c:when test="${fn:substring(loginVO.membBirth, 0 ,4) eq index}">
|
||||
<option value="${index}" selected>${index}</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<option value="${index}">${index}</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
</select> 년  
|
||||
<select name="" id="month" class="selType1">
|
||||
<option value="01">1</option>
|
||||
<option value="02">2</option>
|
||||
<option value="03">3</option>
|
||||
<option value="04">4</option>
|
||||
<option value="05">5</option>
|
||||
<option value="06">6</option>
|
||||
<option value="07">7</option>
|
||||
<option value="08">8</option>
|
||||
<option value="09">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
</select> 월  
|
||||
<select name="" id="day" class="selType1">
|
||||
<option value="01">1</option>
|
||||
<option value="02">2</option>
|
||||
<option value="03">3</option>
|
||||
<option value="04">4</option>
|
||||
<option value="05">5</option>
|
||||
<option value="06">6</option>
|
||||
<option value="07">7</option>
|
||||
<option value="08">8</option>
|
||||
<option value="09">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13">13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
<option value="21">21</option>
|
||||
<option value="22">22</option>
|
||||
<option value="23">23</option>
|
||||
<option value="24">24</option>
|
||||
<option value="25">25</option>
|
||||
<option value="26">26</option>
|
||||
<option value="27">27</option>
|
||||
<option value="28">28</option>
|
||||
<option value="29">29</option>
|
||||
<option value="30">30</option>
|
||||
<option value="31">31</option>
|
||||
|
||||
</select> 일  
|
||||
<script>
|
||||
$(function(){
|
||||
$(".calendar_wrap select").change(function(){
|
||||
var year = $("#year").val();
|
||||
var month = $("#month").val();
|
||||
var day = $("#day").val();
|
||||
$("#dBirth").val(year+"."+month+"."+day);
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- <duet-date-picker identifier="date" id="dBirth" class="dBirth" min="1940-01-01"></duet-date-picker>
|
||||
<script>
|
||||
$(function(){
|
||||
setTimeout(function(){
|
||||
$('.calendar_wrap').each(function(){
|
||||
//$(this).find('.duet-date__input').attr('onkeydown','this.value=dateSettingHere(this.value);');
|
||||
|
||||
$(this).find('.duet-date__input').attr('onblur','this.value=dateSettingHere(this.value);');
|
||||
$(this).find('.duet-date__input').attr('onkeyup','this.value=dateSettingHere(this.value);');
|
||||
|
||||
});
|
||||
},1000)
|
||||
})
|
||||
|
||||
var dBirth = document.querySelector("#dBirth");
|
||||
var DATE_FORMAT = /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/
|
||||
|
||||
dBirth.dateAdapter = {
|
||||
parse: function parse() {
|
||||
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""
|
||||
var createDate = arguments.length > 1 ? arguments[1] : undefined
|
||||
var matches = value.match(DATE_FORMAT)
|
||||
|
||||
if (matches) {
|
||||
return createDate(matches[3], matches[2], matches[1])
|
||||
}
|
||||
},
|
||||
format: function format(date) {
|
||||
if (date.getMonth() < 9) {
|
||||
if (date.getDate() < 10) {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat('0', date.getMonth() + 1, ".")
|
||||
.concat('0', date.getDate())
|
||||
} else {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat('0', date.getMonth() + 1, ".")
|
||||
.concat(date.getDate())
|
||||
}
|
||||
} else {
|
||||
if (date.getDate() < 10) {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat(date.getMonth() + 1, ".")
|
||||
.concat('0', date.getDate())
|
||||
} else {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat(date.getMonth() + 1, ".")
|
||||
.concat(date.getDate())
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
// 달력 플러그인 실행
|
||||
dBirth.localization = {
|
||||
placeholder: '날짜를 입력하세요',
|
||||
selectedDateMessage: 'Selected date is',
|
||||
prevMonthLabel: '이전 달 보기',
|
||||
nextMonthLabel: '다음 달 보기',
|
||||
monthSelectLabel: '달 선택',
|
||||
yearSelectLabel: '년도 선택',
|
||||
closeLabel: '달력 닫기',
|
||||
dayNames: ['일', '월', '화', '수', '목', '금', '토'],
|
||||
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
||||
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
||||
identifier: "searchStartDt",
|
||||
name: "eduHopeDt"
|
||||
}
|
||||
dBirth.addEventListener("duetFocus", function (e) {
|
||||
calendarSetting();
|
||||
dateSettingHere();
|
||||
});
|
||||
|
||||
function dateSettingHere(objValue) {
|
||||
var v = objValue.replace("..", ".");
|
||||
if (v.match(/^\d{4}$/) !== null) {
|
||||
if (event.keyCode == "8") {
|
||||
// 백스페이스 키를 누를 때 '.' 안생기게
|
||||
} else {
|
||||
v = v + '.';
|
||||
}
|
||||
} else if (v.match(/^\d{4}\.\d{2}$/) !== null) {
|
||||
if (event.keyCode == "8") {
|
||||
// 백스페이스 키를 누를 때 '.' 안생기게
|
||||
} else {
|
||||
v = v + '.';
|
||||
}
|
||||
}
|
||||
if (v.length==10){
|
||||
setTimeout(function(){
|
||||
$('#dBirth').val(v);
|
||||
},100)
|
||||
|
||||
}else{
|
||||
$('#dBirth').val('123');
|
||||
}
|
||||
|
||||
// '-' 막기
|
||||
if (event.keyCode == "189" || event.keyCode == "109") {
|
||||
event.preventDefault();
|
||||
return v;
|
||||
} else {}
|
||||
|
||||
return v;
|
||||
}
|
||||
</script> -->
|
||||
<div class="birth_wrap">
|
||||
<input type="hidden" value="" id="dBirth"/>
|
||||
<input type="text" class="birth_input" id="birth_input" maxlength="6" placeholder="●●●●●●"/>
|
||||
- <input type="text" class="jender_input" id="jender_input" maxlength="1" placeholder="●"/>
|
||||
<span>●●●●●●</span>
|
||||
</div>
|
||||
<%-- <script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/duetdatepicker2.js"></script> --%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -561,13 +398,6 @@ $(document).ready(function(){
|
||||
<button type="button" class="btnType06" onclick="fncChkNo();">인증하기</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope=“row”>성별</th>
|
||||
<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>
|
||||
</table>
|
||||
|
||||
|
||||
@ -71,11 +71,22 @@
|
||||
|
||||
//제출
|
||||
function fn_new_confirm(p_prcsAplctPrdOrd){
|
||||
var form = document.confirmForm;
|
||||
var form = document.confirmForm;
|
||||
console.log('$("#dBirth").val() : ' , $('#dBirth').val());
|
||||
var dBirth = $('#dBirth').val().replace(/\./g, '');
|
||||
var dBirth = $('#birth_input').val();
|
||||
if(dBirth.substring(0,2) >= 50){
|
||||
dBirth = "19" + dBirth;
|
||||
}else{
|
||||
dBirth = "20" + dBirth;
|
||||
}
|
||||
var trgtNm = $('#trgtNm').val();
|
||||
var sex = $('input[name="sex"]:checked').val();
|
||||
var sex = $('#jender_input').val();
|
||||
if(sex % 2 == 1){
|
||||
sex = "M";
|
||||
}else{
|
||||
sex = "F"
|
||||
}
|
||||
var clphone = $('#clphone').val();
|
||||
|
||||
$('#regForm input[name="prcsAplctPrdOrd"]').val(p_prcsAplctPrdOrd);
|
||||
@ -127,11 +138,11 @@
|
||||
$("#chkBtn").hide();
|
||||
//기존정보 변경 막기
|
||||
$("#trgtNm").prop('readonly', true);
|
||||
$("#date").prop('readonly', true);
|
||||
$("#birth_input").prop('readonly', true);
|
||||
$("#jender_input").prop('readonly', true);
|
||||
$("#clphone").prop('readonly', true);
|
||||
$(".duet-date__toggle").remove();
|
||||
$("#sexM").attr("onclick", "return(false);");
|
||||
$("#sexF").attr("onclick", "return(false);");
|
||||
alert(returnData.crtfdNumber);
|
||||
|
||||
|
||||
}else{ //본인인증 후
|
||||
@ -205,7 +216,12 @@
|
||||
|
||||
//선택
|
||||
function fn_new_select(p_cmdTrgtInfoOrd){
|
||||
var dBirth = $('#dBirth').val().replace(/\./g, '');
|
||||
var dBirth = $('#birth_input').val();
|
||||
if(dBirth.substring(0,2) >= 50){
|
||||
dBirth = "19" + dBirth;
|
||||
}else{
|
||||
dBirth = "20" + dBirth;
|
||||
}
|
||||
var trgtNm = $('#trgtNm').val();
|
||||
var clphone = $('#clphone').val();
|
||||
|
||||
@ -284,7 +300,7 @@ $(document).ready(function(){
|
||||
}
|
||||
|
||||
//생년월일
|
||||
if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
/* if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
$('#year').val('${fn:substring(loginVO.membBirth, 0 ,4)}');
|
||||
}
|
||||
|
||||
@ -294,13 +310,11 @@ $(document).ready(function(){
|
||||
|
||||
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);
|
||||
|
||||
var birthStr = "${loginVO.membBirth}";
|
||||
console.log(birthStr);
|
||||
$('#birth_input').val(birthStr.substring(2, 8));
|
||||
|
||||
//휴대폰번호
|
||||
if ('${loginVO.membCelnum}'!=''){
|
||||
@ -309,11 +323,17 @@ $(document).ready(function(){
|
||||
|
||||
//성별sexMsexM
|
||||
if ('${loginVO.sexCode}'=='M'){
|
||||
$('input[id="sexM"]').attr("checked", true);
|
||||
|
||||
if(${fn:substring(loginVO.membBirth, 0 ,4) >= 2000}){
|
||||
$('#jender_input').val('3');
|
||||
}else{
|
||||
$('#jender_input').val('1');
|
||||
}
|
||||
}else if ('${loginVO.sexCode}'=='F'){
|
||||
$('input[id="sexF"]').attr("checked", true);
|
||||
|
||||
if(${fn:substring(loginVO.membBirth, 0 ,4) >= 2000}){
|
||||
$('#jender_input').val('4');
|
||||
}else{
|
||||
$('#jender_input').val('2');
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
@ -357,195 +377,14 @@ $(document).ready(function(){
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope=“row”>생년월일 8자리 (ex.1988.01.01)</th>
|
||||
<th scope=“row”>생년월일/성별</th>
|
||||
<td>
|
||||
<div class="calendar_wrap">
|
||||
<input type="hidden" value="" id="dBirth"/>
|
||||
<select name="" id="year" class="selType1">
|
||||
|
||||
<c:forEach var="index" begin="1925" end="2024">
|
||||
<c:choose>
|
||||
<c:when test="${fn:substring(loginVO.membBirth, 0 ,4) eq index}">
|
||||
<option value="${index}" selected>${index}</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<option value="${index}">${index}</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
</select> 년  
|
||||
<select name="" id="month" class="selType1">
|
||||
<option value="01">1</option>
|
||||
<option value="02">2</option>
|
||||
<option value="03">3</option>
|
||||
<option value="04">4</option>
|
||||
<option value="05">5</option>
|
||||
<option value="06">6</option>
|
||||
<option value="07">7</option>
|
||||
<option value="08">8</option>
|
||||
<option value="09">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
</select> 월  
|
||||
<select name="" id="day" class="selType1">
|
||||
<option value="01">1</option>
|
||||
<option value="02">2</option>
|
||||
<option value="03">3</option>
|
||||
<option value="04">4</option>
|
||||
<option value="05">5</option>
|
||||
<option value="06">6</option>
|
||||
<option value="07">7</option>
|
||||
<option value="08">8</option>
|
||||
<option value="09">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13">13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
<option value="21">21</option>
|
||||
<option value="22">22</option>
|
||||
<option value="23">23</option>
|
||||
<option value="24">24</option>
|
||||
<option value="25">25</option>
|
||||
<option value="26">26</option>
|
||||
<option value="27">27</option>
|
||||
<option value="28">28</option>
|
||||
<option value="29">29</option>
|
||||
<option value="30">30</option>
|
||||
<option value="31">31</option>
|
||||
|
||||
</select> 일  
|
||||
<script>
|
||||
$(function(){
|
||||
$(".calendar_wrap select").change(function(){
|
||||
var year = $("#year").val();
|
||||
var month = $("#month").val();
|
||||
var day = $("#day").val();
|
||||
$("#dBirth").val(year+"."+month+"."+day);
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- <duet-date-picker identifier="date" id="dBirth" class="dBirth" min="1940-01-01"></duet-date-picker>
|
||||
<script>
|
||||
$(function(){
|
||||
setTimeout(function(){
|
||||
$('.calendar_wrap').each(function(){
|
||||
//$(this).find('.duet-date__input').attr('onkeydown','this.value=dateSettingHere(this.value);');
|
||||
|
||||
$(this).find('.duet-date__input').attr('onblur','this.value=dateSettingHere(this.value);');
|
||||
$(this).find('.duet-date__input').attr('onkeyup','this.value=dateSettingHere(this.value);');
|
||||
|
||||
});
|
||||
},1000)
|
||||
})
|
||||
|
||||
var dBirth = document.querySelector("#dBirth");
|
||||
var DATE_FORMAT = /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/
|
||||
|
||||
dBirth.dateAdapter = {
|
||||
parse: function parse() {
|
||||
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""
|
||||
var createDate = arguments.length > 1 ? arguments[1] : undefined
|
||||
var matches = value.match(DATE_FORMAT)
|
||||
|
||||
if (matches) {
|
||||
return createDate(matches[3], matches[2], matches[1])
|
||||
}
|
||||
},
|
||||
format: function format(date) {
|
||||
if (date.getMonth() < 9) {
|
||||
if (date.getDate() < 10) {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat('0', date.getMonth() + 1, ".")
|
||||
.concat('0', date.getDate())
|
||||
} else {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat('0', date.getMonth() + 1, ".")
|
||||
.concat(date.getDate())
|
||||
}
|
||||
} else {
|
||||
if (date.getDate() < 10) {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat(date.getMonth() + 1, ".")
|
||||
.concat('0', date.getDate())
|
||||
} else {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat(date.getMonth() + 1, ".")
|
||||
.concat(date.getDate())
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
// 달력 플러그인 실행
|
||||
dBirth.localization = {
|
||||
placeholder: '날짜를 입력하세요',
|
||||
selectedDateMessage: 'Selected date is',
|
||||
prevMonthLabel: '이전 달 보기',
|
||||
nextMonthLabel: '다음 달 보기',
|
||||
monthSelectLabel: '달 선택',
|
||||
yearSelectLabel: '년도 선택',
|
||||
closeLabel: '달력 닫기',
|
||||
dayNames: ['일', '월', '화', '수', '목', '금', '토'],
|
||||
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
||||
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
||||
identifier: "searchStartDt",
|
||||
name: "eduHopeDt"
|
||||
}
|
||||
dBirth.addEventListener("duetFocus", function (e) {
|
||||
calendarSetting();
|
||||
dateSettingHere();
|
||||
});
|
||||
|
||||
function dateSettingHere(objValue) {
|
||||
var v = objValue.replace("..", ".");
|
||||
if (v.match(/^\d{4}$/) !== null) {
|
||||
if (event.keyCode == "8") {
|
||||
// 백스페이스 키를 누를 때 '.' 안생기게
|
||||
} else {
|
||||
v = v + '.';
|
||||
}
|
||||
} else if (v.match(/^\d{4}\.\d{2}$/) !== null) {
|
||||
if (event.keyCode == "8") {
|
||||
// 백스페이스 키를 누를 때 '.' 안생기게
|
||||
} else {
|
||||
v = v + '.';
|
||||
}
|
||||
}
|
||||
if (v.length==10){
|
||||
setTimeout(function(){
|
||||
$('#dBirth').val(v);
|
||||
},100)
|
||||
|
||||
}else{
|
||||
$('#dBirth').val('123');
|
||||
}
|
||||
|
||||
// '-' 막기
|
||||
if (event.keyCode == "189" || event.keyCode == "109") {
|
||||
event.preventDefault();
|
||||
return v;
|
||||
} else {}
|
||||
|
||||
return v;
|
||||
}
|
||||
</script> -->
|
||||
<div class="birth_wrap">
|
||||
<input type="hidden" value="" id="dBirth"/>
|
||||
<input type="text" class="birth_input" id="birth_input" maxlength="6" placeholder="●●●●●●"/>
|
||||
- <input type="text" class="jender_input" id="jender_input" maxlength="1" placeholder="●"/>
|
||||
<span>●●●●●●</span>
|
||||
</div>
|
||||
<%-- <script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/duetdatepicker2.js"></script> --%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -561,13 +400,6 @@ $(document).ready(function(){
|
||||
<button type="button" class="btnType06" onclick="fncChkNo();">인증하기</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope=“row”>성별</th>
|
||||
<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>
|
||||
</table>
|
||||
|
||||
|
||||
@ -72,10 +72,19 @@
|
||||
//제출
|
||||
function fn_new_confirm(p_prcsAplctPrdOrd){
|
||||
var form = document.confirmForm;
|
||||
console.log('$("#dBirth").val() : ' , $('#dBirth').val());
|
||||
var dBirth = $('#dBirth').val().replace(/\./g, '');
|
||||
var dBirth = $('#birth_input').val();
|
||||
if(dBirth.substring(0,2) >= 50){
|
||||
dBirth = "19" + dBirth;
|
||||
}else{
|
||||
dBirth = "20" + dBirth;
|
||||
}
|
||||
var trgtNm = $('#trgtNm').val();
|
||||
var sex = $('input[name="sex"]:checked').val() || '';
|
||||
var sex = $('#jender_input').val();
|
||||
if(sex % 2 == 1){
|
||||
sex = "M";
|
||||
}else{
|
||||
sex = "F"
|
||||
}
|
||||
var clphone = $('#clphone').val();
|
||||
|
||||
$('#regForm input[name="prcsAplctPrdOrd"]').val(p_prcsAplctPrdOrd);
|
||||
@ -127,12 +136,11 @@
|
||||
$("#chkBtn").hide();
|
||||
//기존정보 변경 막기
|
||||
$("#trgtNm").prop('readonly', true);
|
||||
$("#date").prop('readonly', true);
|
||||
$("#birth_input").prop('readonly', true);
|
||||
$("#jender_input").prop('readonly', true);
|
||||
$("#clphone").prop('readonly', true);
|
||||
$(".duet-date__toggle").remove();
|
||||
$("#sexM").attr("onclick", "return(false);");
|
||||
$("#sexF").attr("onclick", "return(false);");
|
||||
|
||||
alert(returnData.crtfdNumber);
|
||||
|
||||
}else{ //본인인증 후
|
||||
|
||||
@ -205,7 +213,12 @@
|
||||
|
||||
//선택
|
||||
function fn_new_select(p_sspnIdtmtTrgtOrd){
|
||||
var dBirth = $('#dBirth').val().replace(/\./g, '');
|
||||
var dBirth = $('#birth_input').val();
|
||||
if(dBirth.substring(0,2) >= 50){
|
||||
dBirth = "19" + dBirth;
|
||||
}else{
|
||||
dBirth = "20" + dBirth;
|
||||
}
|
||||
var trgtNm = $('#trgtNm').val();
|
||||
var clphone = $('#clphone').val();
|
||||
|
||||
@ -284,7 +297,7 @@ $(document).ready(function(){
|
||||
}
|
||||
|
||||
//생년월일
|
||||
if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
/* if ('${fn:substring(loginVO.membBirth, 0 ,4)}'>='0'){
|
||||
$('#year').val('${fn:substring(loginVO.membBirth, 0 ,4)}');
|
||||
}
|
||||
|
||||
@ -294,13 +307,11 @@ $(document).ready(function(){
|
||||
|
||||
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);
|
||||
} */
|
||||
|
||||
var birthStr = "${loginVO.membBirth}";
|
||||
console.log(birthStr);
|
||||
$('#birth_input').val(birthStr.substring(2, 8));
|
||||
|
||||
//휴대폰번호
|
||||
if ('${loginVO.membCelnum}'!=''){
|
||||
@ -309,11 +320,17 @@ $(document).ready(function(){
|
||||
|
||||
//성별sexMsexM
|
||||
if ('${loginVO.sexCode}'=='M'){
|
||||
$('input[id="sexM"]').attr("checked", true);
|
||||
|
||||
if(${fn:substring(loginVO.membBirth, 0 ,4) >= 2000}){
|
||||
$('#jender_input').val('3');
|
||||
}else{
|
||||
$('#jender_input').val('1');
|
||||
}
|
||||
}else if ('${loginVO.sexCode}'=='F'){
|
||||
$('input[id="sexF"]').attr("checked", true);
|
||||
|
||||
if(${fn:substring(loginVO.membBirth, 0 ,4) >= 2000}){
|
||||
$('#jender_input').val('4');
|
||||
}else{
|
||||
$('#jender_input').val('2');
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
@ -361,197 +378,10 @@ $(document).ready(function(){
|
||||
<td>
|
||||
<div class="birth_wrap">
|
||||
<input type="hidden" value="" id="dBirth"/>
|
||||
<input type="text" class="birth_input" maxlength="6" placeholder="●●●●●●"/>
|
||||
- <input type="text" class="jender_input" maxlength="1" placeholder="●"/>
|
||||
<input type="text" class="birth_input" id="birth_input" maxlength="6" placeholder="●●●●●●"/>
|
||||
- <input type="text" class="jender_input" id="jender_input" maxlength="1" placeholder="●"/>
|
||||
<span>●●●●●●</span>
|
||||
</div>
|
||||
<%-- <div class="calendar_wrap">
|
||||
<input type="hidden" value="" id="dBirth"/>
|
||||
<select name="" id="year" class="selType1">
|
||||
|
||||
<c:forEach var="index" begin="1925" end="2024">
|
||||
<c:choose>
|
||||
<c:when test="${fn:substring(loginVO.membBirth, 0 ,4) eq index}">
|
||||
<option value="${index}" selected>${index}</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<option value="${index}">${index}</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
</select> 년  
|
||||
<select name="" id="month" class="selType1">
|
||||
<option value="01">1</option>
|
||||
<option value="02">2</option>
|
||||
<option value="03">3</option>
|
||||
<option value="04">4</option>
|
||||
<option value="05">5</option>
|
||||
<option value="06">6</option>
|
||||
<option value="07">7</option>
|
||||
<option value="08">8</option>
|
||||
<option value="09">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
</select> 월  
|
||||
<select name="" id="day" class="selType1">
|
||||
<option value="01">1</option>
|
||||
<option value="02">2</option>
|
||||
<option value="03">3</option>
|
||||
<option value="04">4</option>
|
||||
<option value="05">5</option>
|
||||
<option value="06">6</option>
|
||||
<option value="07">7</option>
|
||||
<option value="08">8</option>
|
||||
<option value="09">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13">13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
<option value="21">21</option>
|
||||
<option value="22">22</option>
|
||||
<option value="23">23</option>
|
||||
<option value="24">24</option>
|
||||
<option value="25">25</option>
|
||||
<option value="26">26</option>
|
||||
<option value="27">27</option>
|
||||
<option value="28">28</option>
|
||||
<option value="29">29</option>
|
||||
<option value="30">30</option>
|
||||
<option value="31">31</option>
|
||||
|
||||
</select> 일  
|
||||
<script>
|
||||
$(function(){
|
||||
$(".calendar_wrap select").change(function(){
|
||||
var year = $("#year").val();
|
||||
var month = $("#month").val();
|
||||
var day = $("#day").val();
|
||||
$("#dBirth").val(year+"."+month+"."+day);
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- <duet-date-picker identifier="date" id="dBirth" class="dBirth" min="1940-01-01"></duet-date-picker>
|
||||
<script>
|
||||
$(function(){
|
||||
setTimeout(function(){
|
||||
$('.calendar_wrap').each(function(){
|
||||
//$(this).find('.duet-date__input').attr('onkeydown','this.value=dateSettingHere(this.value);');
|
||||
|
||||
$(this).find('.duet-date__input').attr('onblur','this.value=dateSettingHere(this.value);');
|
||||
$(this).find('.duet-date__input').attr('onkeyup','this.value=dateSettingHere(this.value);');
|
||||
|
||||
});
|
||||
},1000)
|
||||
})
|
||||
|
||||
var dBirth = document.querySelector("#dBirth");
|
||||
var DATE_FORMAT = /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/
|
||||
|
||||
dBirth.dateAdapter = {
|
||||
parse: function parse() {
|
||||
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""
|
||||
var createDate = arguments.length > 1 ? arguments[1] : undefined
|
||||
var matches = value.match(DATE_FORMAT)
|
||||
|
||||
if (matches) {
|
||||
return createDate(matches[3], matches[2], matches[1])
|
||||
}
|
||||
},
|
||||
format: function format(date) {
|
||||
if (date.getMonth() < 9) {
|
||||
if (date.getDate() < 10) {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat('0', date.getMonth() + 1, ".")
|
||||
.concat('0', date.getDate())
|
||||
} else {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat('0', date.getMonth() + 1, ".")
|
||||
.concat(date.getDate())
|
||||
}
|
||||
} else {
|
||||
if (date.getDate() < 10) {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat(date.getMonth() + 1, ".")
|
||||
.concat('0', date.getDate())
|
||||
} else {
|
||||
return ""
|
||||
.concat(date.getFullYear(), ".")
|
||||
.concat(date.getMonth() + 1, ".")
|
||||
.concat(date.getDate())
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
// 달력 플러그인 실행
|
||||
dBirth.localization = {
|
||||
placeholder: '날짜를 입력하세요',
|
||||
selectedDateMessage: 'Selected date is',
|
||||
prevMonthLabel: '이전 달 보기',
|
||||
nextMonthLabel: '다음 달 보기',
|
||||
monthSelectLabel: '달 선택',
|
||||
yearSelectLabel: '년도 선택',
|
||||
closeLabel: '달력 닫기',
|
||||
dayNames: ['일', '월', '화', '수', '목', '금', '토'],
|
||||
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
||||
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
||||
identifier: "searchStartDt",
|
||||
name: "eduHopeDt"
|
||||
}
|
||||
dBirth.addEventListener("duetFocus", function (e) {
|
||||
calendarSetting();
|
||||
dateSettingHere();
|
||||
});
|
||||
|
||||
function dateSettingHere(objValue) {
|
||||
var v = objValue.replace("..", ".");
|
||||
if (v.match(/^\d{4}$/) !== null) {
|
||||
if (event.keyCode == "8") {
|
||||
// 백스페이스 키를 누를 때 '.' 안생기게
|
||||
} else {
|
||||
v = v + '.';
|
||||
}
|
||||
} else if (v.match(/^\d{4}\.\d{2}$/) !== null) {
|
||||
if (event.keyCode == "8") {
|
||||
// 백스페이스 키를 누를 때 '.' 안생기게
|
||||
} else {
|
||||
v = v + '.';
|
||||
}
|
||||
}
|
||||
if (v.length==10){
|
||||
setTimeout(function(){
|
||||
$('#dBirth').val(v);
|
||||
},100)
|
||||
|
||||
}else{
|
||||
$('#dBirth').val('123');
|
||||
}
|
||||
|
||||
// '-' 막기
|
||||
if (event.keyCode == "189" || event.keyCode == "109") {
|
||||
event.preventDefault();
|
||||
return v;
|
||||
} else {}
|
||||
|
||||
return v;
|
||||
}
|
||||
</script> -->
|
||||
</div> --%>
|
||||
<%-- <script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/duetdatepicker2.js"></script> --%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -567,13 +397,6 @@ $(document).ready(function(){
|
||||
<button type="button" class="btnType06" onclick="fncChkNo();">인증하기</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope=“row”>성별</th>
|
||||
<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>
|
||||
</table>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user