2024-04-04 12:32 청소년 거리계산 수동 저장기능 개발
This commit is contained in:
parent
a177ea6abd
commit
381e336ace
@ -4685,6 +4685,7 @@
|
||||
, a.edu_aplct_ord AS eduAplctOrd
|
||||
, c.edu_chasi_ord AS eduChasiOrd
|
||||
, d.instr_nm AS instrNm
|
||||
, d.user_id AS userId
|
||||
|
||||
FROM VE_EDU_APLCT A
|
||||
, ve_schol b
|
||||
|
||||
@ -165,6 +165,47 @@
|
||||
form.target = "_dstncCountPop";
|
||||
form.submit();
|
||||
}
|
||||
|
||||
|
||||
function fncSaveOnewayDstnc(p_varEduAplctOrd
|
||||
, p_userId
|
||||
, p_sAddr
|
||||
, p_iAddr
|
||||
){
|
||||
var v_distance=$("#"+p_varEduAplctOrd+"_onewayDstnc").val();
|
||||
if (v_distance==''){
|
||||
alert("저장할 이동거리를 넣어주세요");
|
||||
return;
|
||||
}
|
||||
//alert($("#"+p_varEduAplctOrd+"_onewayDstnc").val());
|
||||
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/popup/instrDstncAjax.do",
|
||||
data: {
|
||||
"eduAplctOrd" : p_varEduAplctOrd
|
||||
, "userId" : p_userId
|
||||
, "scholAddr" : p_sAddr
|
||||
, "instrAddr" : p_iAddr
|
||||
|
||||
, "onewayDstnc" : v_distance
|
||||
},
|
||||
dataType:'json',
|
||||
|
||||
|
||||
success:function(returnData){
|
||||
//callback func
|
||||
location.reload();
|
||||
alert("정상적으로 저장되었습니다.");
|
||||
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@ -216,21 +257,22 @@
|
||||
</div>
|
||||
|
||||
<div class="pop_tb_tit01">
|
||||
<p>거리 계산</p>
|
||||
<p>거리 계산(*자동거리계산이 안되면 이동거리 확인 후 수동저장해주세요 )</p>
|
||||
</div>
|
||||
|
||||
<div class="pop_tb_type01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 7%;">
|
||||
<col style="width: 5%;">
|
||||
<col style="width: 50px;">
|
||||
<col style="width: 50px;">
|
||||
<col style="width: 11%;">
|
||||
<col style="width: 11%;">
|
||||
<col style="width: auto;">
|
||||
<%-- <col style="width: 9%;"> --%>
|
||||
|
||||
<col style="width: 40%">
|
||||
<col style="width: 9%;">
|
||||
<col style="width: 30%">
|
||||
<col style="width: 120px;">
|
||||
<col style="width: 80px;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -241,6 +283,7 @@
|
||||
<th scope="col">학교주소</th>
|
||||
<th scope="col">강사주소</th>
|
||||
<th scope="col">이동거리</th>
|
||||
<th scope="col">수동저장</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -275,7 +318,18 @@
|
||||
<td><c:out value='${list.instrNm}'/></td>
|
||||
<td><c:out value='${list.sAddr}'/></td>
|
||||
<td><c:out value='${list.iAddr}'/></td>
|
||||
<td><c:out value='${list.onewayDstnc}'/>Km</td>
|
||||
<td><input type="text" id="${list.eduAplctOrd}_onewayDstnc" value="<c:out value="${list.onewayDstnc}" />"
|
||||
maxLength="4" size="3"
|
||||
/>Km
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn_type04"
|
||||
onclick="fncSaveOnewayDstnc('${list.eduAplctOrd}'
|
||||
, '${list.userId}'
|
||||
, '${list.sAddr}'
|
||||
, '${list.iAddr}'
|
||||
);">저장</button>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user