|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
<div class="p_list_item p_border_box">
|
|
|
|
|
<label for="child_weight" class="p_label">체중 입력</label>
|
|
|
|
|
<div class="p_input_box">
|
|
|
|
|
<input type="text" id="child_weight" name="child_weight" class="" placeholder="체중 입력" readonly>
|
|
|
|
|
<input type="text" id="child_weight" name="child_weight" value="${model['weight']!}" class="required" placeholder="체중 입력" data-tit="체중" step="0.1">
|
|
|
|
|
<span class="unit">kg</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -91,7 +91,7 @@
|
|
|
|
|
<div class="r_list_item">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="result_num_box">
|
|
|
|
|
<div class="height_result result_num">${item['height']?string('0.0')}<span class="unit">cm</span></div>
|
|
|
|
|
<div class="height_result result_num">${item['height']?string('0.0')}<span class="unit">cm</span> / ${item['weight']?string('0.0')}<span class="unit">kg</span></div>
|
|
|
|
|
<#if item['data_from'] == '1'><span class="icon hidden">수기입력</span></#if>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="date">
|
|
|
|
@ -138,13 +138,21 @@
|
|
|
|
|
if (!SNValidator.validateWithAlert('#frmHeight')) {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
return;
|
|
|
|
|
}else if($('#child_height').val() >= 210 || $('#child_height').val() < 30){
|
|
|
|
|
}
|
|
|
|
|
if($('#child_height').val() >= 210 || $('#child_height').val() < 30){
|
|
|
|
|
Swal.fire({
|
|
|
|
|
text: '신장범위(30~210cm)를 초과했습니다'
|
|
|
|
|
}).then((result)=>{ $('#child_height').focus() })
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if($('#child_weight').val() >= 100 || $('#child_weight').val() < 1){
|
|
|
|
|
Swal.fire({
|
|
|
|
|
text: '체중범위(1~100Kg)를 초과했습니다'
|
|
|
|
|
}).then((result)=>{ $('#child_weight').focus() })
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.ajax_insert_growth_body()
|
|
|
|
|
e.preventDefault()
|
|
|
|
@ -159,6 +167,7 @@
|
|
|
|
|
data.smc_no = $('#smc_no').val()
|
|
|
|
|
data.base_dt = moment( $('#input_date').val(),'YYYY. MM. DD' ).format('YYYYMMDD')
|
|
|
|
|
data.height = $('#child_height').val()
|
|
|
|
|
data.weight = $('#child_weight').val()
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:'${URL_ROOT}/m/bf_growth_body/ajax_insert_bf_growth_body.do?1=1',
|
|
|
|
|