This commit is contained in:
@@ -26,6 +26,9 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
$file_pdf = 'pdf';
|
||||
}
|
||||
$regi_pdf_path = $arr_cert_register[0];
|
||||
if ($regist['cloud_upload_yn'] == 'Y') {
|
||||
$regi_pdf_path = NCLOUD_OBJECT_STORAGE_URL . $regi_pdf_path;
|
||||
}
|
||||
|
||||
} else {
|
||||
if (empty($regist['file_name'])) {
|
||||
@@ -35,6 +38,9 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
|
||||
$file_pdf = substr($regist['file_name'], -3);
|
||||
$regi_pdf_path = $regist['file_path'] . $regist['file_name']; //등기부등본
|
||||
if ($regist['cloud_upload_yn'] == 'Y') {
|
||||
$regi_pdf_path = NCLOUD_OBJECT_STORAGE_URL . $regi_pdf_path;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -94,7 +100,7 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="col-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<form id="rcptFrm" onsubmit="return false">
|
||||
<form id="rcptFrm" name="rcptFrm" onsubmit="return false">
|
||||
<input type="hidden" name="reg_chk_val" value="<?= $data['rgbk_confirm'] ?>" />
|
||||
<input type="hidden" name="atcl_vrtc_type" id="atcl_vrtc_type"
|
||||
value="<?= $data['vrfc_type_cd'] ?>" />
|
||||
@@ -150,6 +156,7 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
}
|
||||
}
|
||||
echo '</div><br>';
|
||||
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -170,8 +177,10 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
}
|
||||
|
||||
?>
|
||||
<iframe src="<?= $regi_img_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:1200px;"></iframe><br>
|
||||
|
||||
<img src="<?= $regi_img_path ?>" alt="">
|
||||
<!-- <iframe src="<?= $regi_img_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:1200px;"></iframe><br> -->
|
||||
<br>
|
||||
<a href="<?= $regi_pdf_path ?>" class="default_val" target="_blank">등기부등본
|
||||
보기</a>
|
||||
@@ -390,62 +399,64 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php if (in_array($detail_hscp['villaType'], $villa_rlet_type_cd)): ?>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<th>단지명</th>
|
||||
<td>
|
||||
<?= $detail_hscp['villaName']; ?>
|
||||
</td>
|
||||
<th>단지타입명</th>
|
||||
<td>
|
||||
<?= $detail_hscp['villaTypeName']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소재법정동번호</th>
|
||||
<td colspan="3">
|
||||
<?= $detail_hscp['cortarNo']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소재 주소(전체)</th>
|
||||
<td colspan="3">
|
||||
<?= $detail_hscp['addr']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소(광역시/도)</th>
|
||||
<td>
|
||||
<?= $detail_hscp['city']; ?>
|
||||
</td>
|
||||
<th>주소(시군구)</th>
|
||||
<td>
|
||||
<?= $detail_hscp['dvsn']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소(읍면동)</th>
|
||||
<td>
|
||||
<?= $detail_hscp['sec']; ?>
|
||||
</td>
|
||||
<th>소재 동이하 상세주소</th>
|
||||
<td>
|
||||
<?= $detail_hscp['dtlAddr']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>단지 총 세대수</th>
|
||||
<td>
|
||||
<?= $detail_hscp['totHsehCnt']; ?>
|
||||
</td>
|
||||
<th>단지 총 동수</th>
|
||||
<td>
|
||||
<?= $detail_hscp['totDongCnt']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!empty($detail_hscp['villaType'])): ?>
|
||||
<?php if (in_array($detail_hscp['villaType'], $villa_rlet_type_cd)): ?>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<th>단지명</th>
|
||||
<td>
|
||||
<?= $detail_hscp['villaName']; ?>
|
||||
</td>
|
||||
<th>단지타입명</th>
|
||||
<td>
|
||||
<?= $detail_hscp['villaTypeName']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소재법정동번호</th>
|
||||
<td colspan="3">
|
||||
<?= $detail_hscp['cortarNo']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소재 주소(전체)</th>
|
||||
<td colspan="3">
|
||||
<?= $detail_hscp['addr']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소(광역시/도)</th>
|
||||
<td>
|
||||
<?= $detail_hscp['city']; ?>
|
||||
</td>
|
||||
<th>주소(시군구)</th>
|
||||
<td>
|
||||
<?= $detail_hscp['dvsn']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소(읍면동)</th>
|
||||
<td>
|
||||
<?= $detail_hscp['sec']; ?>
|
||||
</td>
|
||||
<th>소재 동이하 상세주소</th>
|
||||
<td>
|
||||
<?= $detail_hscp['dtlAddr']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>단지 총 세대수</th>
|
||||
<td>
|
||||
<?= $detail_hscp['totHsehCnt']; ?>
|
||||
</td>
|
||||
<th>단지 총 동수</th>
|
||||
<td>
|
||||
<?= $detail_hscp['totDongCnt']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -699,6 +710,8 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<td>
|
||||
<table class="w-100 tbl_basic2 table-bordered">
|
||||
<tr>
|
||||
<input type="hidden" name="arr_uncnfrm_status"
|
||||
id="arr_uncnfrm_status" />
|
||||
<?php
|
||||
$checks = explode('|', $data['comment']);
|
||||
// if (in_array($confirm['code_d11'], ['20011', '20012'])) {
|
||||
@@ -851,7 +864,8 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="form-check align-items-center mb-0"
|
||||
id="img_chk_chk3_area">
|
||||
<input class="form-check-input" type="checkbox"
|
||||
id="img_chk_chk3">
|
||||
name="img_chk_chk" id="img_chk_chk3"
|
||||
onclick="check_only(this)">
|
||||
<label class="form-check-label"
|
||||
for="img_chk_chk3">열람</label>
|
||||
</div>
|
||||
@@ -859,7 +873,8 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="form-check align-items-center mb-0"
|
||||
id="img_chk_chk4_area">
|
||||
<input class="form-check-input" type="checkbox"
|
||||
id="img_chk_chk4">
|
||||
name="img_chk_chk" id="img_chk_chk4"
|
||||
onclick="check_only(this)">
|
||||
<label class="form-check-label"
|
||||
for="img_chk_chk4">소유자명 확인</label>
|
||||
</div>
|
||||
@@ -868,7 +883,8 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="form-check align-items-center mb-0"
|
||||
id="img_chk_chk5_area">
|
||||
<input class="form-check-input" type="checkbox"
|
||||
id="img_chk_chk5">
|
||||
name="img_chk_chk" id="img_chk_chk5"
|
||||
onclick="check_only(this)">
|
||||
<label class="form-check-label"
|
||||
for="img_chk_chk5">리얼탑 열람</label>
|
||||
</div>
|
||||
@@ -876,7 +892,8 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="form-check align-items-center mb-0"
|
||||
id="img_chk_chk6_area">
|
||||
<input class="form-check-input" type="checkbox"
|
||||
id="img_chk_chk6">
|
||||
name="img_chk_chk" id="img_chk_chk6"
|
||||
onclick="check_only(this)">
|
||||
<label class="form-check-label"
|
||||
for="img_chk_chk6">리얼탑 기열람</label>
|
||||
</div>
|
||||
@@ -884,7 +901,8 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="form-check align-items-center mb-0"
|
||||
id="img_chk_chk2_area">
|
||||
<input class="form-check-input" type="checkbox"
|
||||
id="img_chk_chk2">
|
||||
name="img_chk_chk" id="img_chk_chk2"
|
||||
onclick="check_only(this)">
|
||||
<label class="form-check-label"
|
||||
for="img_chk_chk2">등기소</label>
|
||||
</div>
|
||||
@@ -893,7 +911,7 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
<div class="form-check align-items-center mb-0"
|
||||
id="noimg_chk_chk_area">
|
||||
<input class="form-check-input mt-0" type="checkbox"
|
||||
id="noimg_chk_chk">
|
||||
name="noimg_chk_chk" id="noimg_chk_chk">
|
||||
<label class="form-check-label small"
|
||||
for="noimg_chk_chk">
|
||||
이미지 파일 없음
|
||||
@@ -1341,6 +1359,15 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
|
||||
});
|
||||
|
||||
function check_only(chk) {
|
||||
var obj = document.getElementsByName("img_chk_chk");
|
||||
for (var i = 0; i < obj.length; i++) {
|
||||
if (obj[i] != chk) {
|
||||
obj[i].checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 이미지회전
|
||||
function faximage_rotate(degress) {
|
||||
@@ -1554,6 +1581,11 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
var trade_type = "<?= $data['trade_type_cd'] ?>";
|
||||
var vrfc_type = "<?= $data['vrfc_type_cd'] ?>";
|
||||
|
||||
var chkBox = $('input:checkbox[name=img_chk_chk]').is(':checked'); //등기소, 리얼탑 열람, 리얼탑 기열람, 열람
|
||||
|
||||
var cert_register = "<?= $data['cert_register'] ?>"; //등기부등본 url이 있을경우
|
||||
var filePdf = '<?= $file_pdf ?>';
|
||||
|
||||
if (vrfc_type == "M") {
|
||||
// 검증방식이 모바일이면 파일체크는 하지않고 열람인지 등기소, 리얼탑 열람, 리얼탑 기열람인지만 체크함
|
||||
if (chkBox == false) {
|
||||
@@ -1685,23 +1717,79 @@ if (!empty($data['confirm_doc_img_url']) && $data['confirm_doc_img_url_save_yn']
|
||||
}
|
||||
|
||||
// 다중체크된거 가져오기
|
||||
var arr_uncnfrm_status = "";
|
||||
var cnt = 0;
|
||||
$('input:checkbox[name="cert_uncnfrm_status[]"]').each(function () {
|
||||
if ($(this).is(':checked')) {
|
||||
if (cnt == 0) {
|
||||
arr_uncnfrm_status += $(this).val();
|
||||
} else {
|
||||
arr_uncnfrm_status += "|" + ($(this).val());
|
||||
}
|
||||
cnt++;
|
||||
}
|
||||
var arr_uncnfrm_status = [];
|
||||
$('input:checkbox[name="cert_uncnfrm_status[]"]:checked').each(function () {
|
||||
arr_uncnfrm_status.push($(this).val());
|
||||
});
|
||||
$('#arr_uncnfrm_status').val(arr_uncnfrm_status);
|
||||
|
||||
var uncnfrm_status_str = arr_uncnfrm_status.join('|');
|
||||
console.log('====')
|
||||
console.log(uncnfrm_status_str)
|
||||
console.log('====')
|
||||
|
||||
$('#arr_uncnfrm_status').val(uncnfrm_status_str);
|
||||
}
|
||||
|
||||
|
||||
console.log(frm.serialize())
|
||||
swal.fire({
|
||||
text: "저장 하시겠습니까?",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonText: "예",
|
||||
cancelButtonText: "아니오",
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: true,
|
||||
confirmButtonColor: "#3085d6",
|
||||
cancelButtonColor: "#d33",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
|
||||
$.ajax({
|
||||
url: '/m705/m705a/saveRegi',
|
||||
contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
|
||||
method: 'POST',
|
||||
data: $("#rcptFrm").serialize(),
|
||||
beforeSend: function () {
|
||||
blockUI.blockPage({
|
||||
message: tpl
|
||||
})
|
||||
},
|
||||
complete: function () {
|
||||
blockUI.unblockPage()
|
||||
},
|
||||
error: function (xhr, error, thrown) {
|
||||
blockUI.unblockPage()
|
||||
var msg = "";
|
||||
if (xhr.responseText != null) {
|
||||
msg = xhr.responseText
|
||||
} else {
|
||||
msg = "잠시후 다시 시도해 주세요."
|
||||
}
|
||||
|
||||
Swal.fire({
|
||||
title: msg,
|
||||
icon: "error"
|
||||
})
|
||||
},
|
||||
success: function (result) {
|
||||
if (result.code == '0') {
|
||||
Swal.fire({
|
||||
title: '정상 처리되었습니다.',
|
||||
icon: "success"
|
||||
|
||||
})
|
||||
|
||||
location.reload();
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: result.msg,
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user