This commit is contained in:
@@ -545,83 +545,83 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
onclick="priceChange();" style="display: none;">가격수정</button>
|
||||
<button class="mb-2 me-2 btn-transition btn btn-outline-secondary" id="btnModify">수정</button>
|
||||
<button class="mb-2 me-2 btn btn-primary" id="btnSave" onclick="modifyInfo();" disabled>저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($detail_hscp)): ?>
|
||||
<?php
|
||||
$apt_rlet_type_cd = ['A01', 'A02', 'A03', 'A04', 'B01', 'B02', 'B03'];
|
||||
$villa_rlet_type_cd = ['A05', 'A06'];
|
||||
if (in_array($detail_hscp['aptType'], $apt_rlet_type_cd)):
|
||||
?>
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body ">
|
||||
<h5 class="card-title">단지 정보</h5>
|
||||
<table class="table table-bordered table-sm tbl_basic2 apt-info-table">
|
||||
<tr>
|
||||
<th>단지명</th>
|
||||
<td><?= $detail_hscp['aptName']; ?></td>
|
||||
<th>소재주소</th>
|
||||
<td><?= $detail_hscp['addr']; ?></td>
|
||||
<th>상세주소</th>
|
||||
<td><?= $detail_hscp['dtlAddr']; ?></td>
|
||||
<th>사용승인일</th>
|
||||
<td><?= $detail_hscp['useAprvYmd']; ?></td>
|
||||
<th>단지 총 동수</th>
|
||||
<td><?= $detail_hscp['dongCount']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$apt_rlet_type_cd = ['A01', 'A02', 'A03', 'A04', 'B01', 'B02', 'B03'];
|
||||
$villa_rlet_type_cd = ['A05', 'A06'];
|
||||
if (in_array($detail_hscp['aptType'], $apt_rlet_type_cd)):
|
||||
?>
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body ">
|
||||
<h5 class="card-title">단지 정보</h5>
|
||||
<table class="table table-bordered table-sm tbl_basic2 apt-info-table">
|
||||
<tr>
|
||||
<th>단지명</th>
|
||||
<td><?= $detail_hscp['aptName']; ?></td>
|
||||
<th>소재주소</th>
|
||||
<td><?= $detail_hscp['addr']; ?></td>
|
||||
<th>상세주소</th>
|
||||
<td><?= $detail_hscp['dtlAddr']; ?></td>
|
||||
<th>사용승인일</th>
|
||||
<td><?= $detail_hscp['useAprvYmd']; ?></td>
|
||||
<th>단지 총 동수</th>
|
||||
<td><?= $detail_hscp['dongCount']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if (in_array($detail_hscp['aptType'], $villa_rlet_type_cd)):
|
||||
?>
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body ">
|
||||
<h5 class="card-title">단지 정보</h5>
|
||||
<table class="table table-bordered table-sm tbl_basic2 apt-info-table">
|
||||
<tr>
|
||||
<th>단지명</th>
|
||||
<td><?= $detail_hscp['villaName']; ?></td>
|
||||
<th>단지타입명</th>
|
||||
<td colspan="3"><?= $detail_hscp['villaTypeName']; ?></td>
|
||||
<th>단지 총 세대수</th>
|
||||
<td><?= $detail_hscp['totHsehCnt']; ?></td>
|
||||
<th>단지 총 동수 </th>
|
||||
<td><?= $detail_hscp['totDongCnt']; ?></td>
|
||||
<?php
|
||||
if (in_array($detail_hscp['aptType'], $villa_rlet_type_cd)):
|
||||
?>
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body ">
|
||||
<h5 class="card-title">단지 정보</h5>
|
||||
<table class="table table-bordered table-sm tbl_basic2 apt-info-table">
|
||||
<tr>
|
||||
<th>단지명</th>
|
||||
<td><?= $detail_hscp['villaName']; ?></td>
|
||||
<th>단지타입명</th>
|
||||
<td colspan="3"><?= $detail_hscp['villaTypeName']; ?></td>
|
||||
<th>단지 총 세대수</th>
|
||||
<td><?= $detail_hscp['totHsehCnt']; ?></td>
|
||||
<th>단지 총 동수 </th>
|
||||
<td><?= $detail_hscp['totDongCnt']; ?></td>
|
||||
|
||||
<th>주소(광역시/도)</th>
|
||||
<td><?= $detail_hscp['city']; ?></td>
|
||||
<th>주소(시군구)</th>
|
||||
<td><?= $detail_hscp['dvsn']; ?></td>
|
||||
<th>주소(광역시/도)</th>
|
||||
<td><?= $detail_hscp['city']; ?></td>
|
||||
<th>주소(시군구)</th>
|
||||
<td><?= $detail_hscp['dvsn']; ?></td>
|
||||
|
||||
<th>주소(읍면동)</th>
|
||||
<td><?= $detail_hscp['sec']; ?></td>
|
||||
<th>소재 동이하 상세주소</th>
|
||||
<td><?= $detail_hscp['dtlAddr']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소재 주소(전체)</th>
|
||||
<td colspan="17"><?= $detail_hscp['addr']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<th>주소(읍면동)</th>
|
||||
<td><?= $detail_hscp['sec']; ?></td>
|
||||
<th>소재 동이하 상세주소</th>
|
||||
<td><?= $detail_hscp['dtlAddr']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소재 주소(전체)</th>
|
||||
<td colspan="17"><?= $detail_hscp['addr']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body ">
|
||||
<h5 class="card-title">상태변경</h5>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<button class="mb-2 me-2 btn btn-light"
|
||||
onclick="fn_status_change(<?= $data['vr_sq'] ?>, '<?= $c['cd'] ?>', '<?= $c['cd_nm'] ?>');"><?= $c['cd_nm'] ?></button>
|
||||
<?php endif; ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<button class="mb-2 me-2 btn btn-light"
|
||||
onclick="fn_status_change(<?= $data['vr_sq'] ?>, '<?= $c['cd'] ?>', '<?= $c['cd_nm'] ?>');"><?= $c['cd_nm'] ?></button>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -644,59 +644,59 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<div id="douc_img_dis" class="py-2">
|
||||
<?php if (!empty($data['confirm_doc_img_url'])): ?>
|
||||
|
||||
<?php if ($data['confirm_doc_img_url_save_yn'] == 'Y'):
|
||||
$img_path = $record['file_path'] . $record['file_name'];
|
||||
$ext = $record['file_ext'];
|
||||
<?php if ($data['confirm_doc_img_url_save_yn'] == 'Y'):
|
||||
$img_path = $record['file_path'] . $record['file_name'];
|
||||
$ext = $record['file_ext'];
|
||||
|
||||
if (strtolower($ext) == '.pdf'):
|
||||
if (strtolower($ext) == '.pdf'):
|
||||
?>
|
||||
<iframe src="<?= $server_addr ?><?= $img_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br>
|
||||
<?php elseif (!in_array($ext, ['.zip', '.ZIP', '.pdf', '.PDF'])): ?>
|
||||
<?php foreach ($arrRecord as $row):
|
||||
$arr_img_path = $row['file_path'] . $row['file_name'];
|
||||
?>
|
||||
<iframe src="<?= $server_addr ?><?= $img_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br>
|
||||
<?php elseif (!in_array($ext, ['.zip', '.ZIP', '.pdf', '.PDF'])): ?>
|
||||
<?php foreach ($arrRecord as $row):
|
||||
$arr_img_path = $row['file_path'] . $row['file_name'];
|
||||
?>
|
||||
<a href="<?= $arr_img_path ?>">
|
||||
<?php if (strcmp($img_path, $arr_img_path) == 0): ?>
|
||||
<img id="photo-display" src="<?= $img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else:
|
||||
$img_path = $data['confirm_doc_img_url'];
|
||||
$ext = strrchr($data['confirm_doc_img_url'], "."); //맨뒤에.부터 자른다
|
||||
|
||||
if (strtolower($ext) == '.pdf'):
|
||||
?>
|
||||
<iframe src="<?= $img_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe>
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<img id="photo-display" src="<?= $img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<a href="<?= $arr_img_path ?>">
|
||||
<?php if (strcmp($img_path, $arr_img_path) == 0): ?>
|
||||
<img id="photo-display" src="<?= $img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else:
|
||||
$img_path = $data['confirm_doc_img_url'];
|
||||
$ext = strrchr($data['confirm_doc_img_url'], "."); //맨뒤에.부터 자른다
|
||||
|
||||
if (strtolower($ext) == '.pdf'):
|
||||
?>
|
||||
<iframe src="<?= $img_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe>
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<img id="photo-display" src="<?= $img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
|
||||
<a href="#" rel="lightbox[gallery]">
|
||||
<img id="photo-display" src="/plugin/img/photo.gif" alt="Image"
|
||||
style="width:100%; max-width:945px; border:0;">
|
||||
</a>
|
||||
<a href="#" rel="lightbox[gallery]">
|
||||
<img id="photo-display" src="/plugin/img/photo.gif" alt="Image"
|
||||
style="width:100%; max-width:945px; border:0;">
|
||||
</a>
|
||||
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (empty($data['confirm_doc_img_url'])): ?>
|
||||
<div id="div_fild_upload" class="text-end">
|
||||
<label class="btn btn-sm btn-outline-secondary mb-0">
|
||||
<i class="fa fa-upload me-1"></i> 업로드
|
||||
<input type="file" id="docu_file" name="docu_file" class="d-none"
|
||||
onchange="myfile_onchange(event)" />
|
||||
</label>
|
||||
</div>
|
||||
<div id="div_fild_upload" class="text-end">
|
||||
<label class="btn btn-sm btn-outline-secondary mb-0">
|
||||
<i class="fa fa-upload me-1"></i> 업로드
|
||||
<input type="file" id="docu_file" name="docu_file" class="d-none"
|
||||
onchange="myfile_onchange(event)" />
|
||||
</label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
@@ -721,11 +721,11 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
name="fax_conf_res_d11">
|
||||
<option value="">-선택-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "CONFIRM_RESULT_D11"): ?>
|
||||
<option value="<?= $c['cd'] ?>" <?= ($c['cd'] === $data['result_d11']) ? 'selected' : '' ?>>
|
||||
<?= $c['cd_nm'] ?>
|
||||
</option>
|
||||
<?php endif; ?>
|
||||
<?php if ($c['category'] === "CONFIRM_RESULT_D11"): ?>
|
||||
<option value="<?= $c['cd'] ?>" <?= ($c['cd'] === $data['result_d11']) ? 'selected' : '' ?>>
|
||||
<?= $c['cd_nm'] ?>
|
||||
</option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
@@ -768,23 +768,23 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
}
|
||||
|
||||
?>
|
||||
<td style="border: 0; padding:2px 0 2px 0; height:18px;">
|
||||
<div class="form-check d-flex align-items-center mb-0">
|
||||
<input class="form-check-input mt-0" type="checkbox"
|
||||
id="comment_<?= $key ?>" disabled>
|
||||
<label class="form-check-label ms-1 small"
|
||||
for="price_ignore1">
|
||||
<?= $value['cd_nm'] ?>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td style="border: 0; padding:2px 0 2px 0; height:18px;">
|
||||
<div class="form-check d-flex align-items-center mb-0">
|
||||
<input class="form-check-input mt-0" type="checkbox"
|
||||
id="comment_<?= $key ?>" disabled>
|
||||
<label class="form-check-label ms-1 small"
|
||||
for="price_ignore1">
|
||||
<?= $value['cd_nm'] ?>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<?php $nCnt++;
|
||||
<?php $nCnt++;
|
||||
} ?>
|
||||
|
||||
<?php if ($nCnt > 0) { ?>
|
||||
</tr>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
@@ -898,11 +898,11 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<select class="form-select" name="tel_agree" id="tel_agree">
|
||||
<option value="">-선택-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "CONFIRM_RESULT_T11"): ?>
|
||||
<option value="<?= $c['cd'] ?>" <?php if ($c['cd'] === $data['tel_agree']) {
|
||||
echo "selected";
|
||||
} ?>><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php if ($c['category'] === "CONFIRM_RESULT_T11"): ?>
|
||||
<option value="<?= $c['cd'] ?>" <?php if ($c['cd'] === $data['tel_agree']) {
|
||||
echo "selected";
|
||||
} ?>><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
@@ -928,15 +928,15 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
|
||||
<!-- 기존 업로드된 파일 정보 -->
|
||||
<?php if (!empty($tel)) { ?>
|
||||
<div class="mb-2 small">
|
||||
<div class="d-flex align-items-center gap-2 flex-wrap">
|
||||
<a href="<?= $tel['file_url'] ?? '#' ?>" class="text-decoration-none">
|
||||
<i class="fa fa-file-audio-o me-1"></i><?= $tel['file_name'] ?>
|
||||
</a>
|
||||
<span class="badge text-dark"><?= $tel['file_size'] ?>kb</span>
|
||||
<span class="text-muted"><?= $tel['insert_tm'] ?></span>
|
||||
</div>
|
||||
<div class="mb-2 small">
|
||||
<div class="d-flex align-items-center gap-2 flex-wrap">
|
||||
<a href="<?= $tel['file_url'] ?? '#' ?>" class="text-decoration-none">
|
||||
<i class="fa fa-file-audio-o me-1"></i><?= $tel['file_name'] ?>
|
||||
</a>
|
||||
<span class="badge text-dark"><?= $tel['file_size'] ?>kb</span>
|
||||
<span class="text-muted"><?= $tel['insert_tm'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 파일 업로드 -->
|
||||
@@ -1060,11 +1060,11 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<td class="d-flex gap-2">
|
||||
<select class="form-select" name="tel_fail_cause" id="tel_fail_cause">
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "TEL_FAIL_CAUSE"): ?>
|
||||
<option value="<?= $c['cd'] ?>" <?php if ($c['cd'] === $data['tel_fail_cause']) {
|
||||
echo 'selected';
|
||||
} ?>><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php if ($c['category'] === "TEL_FAIL_CAUSE"): ?>
|
||||
<option value="<?= $c['cd'] ?>" <?php if ($c['cd'] === $data['tel_fail_cause']) {
|
||||
echo 'selected';
|
||||
} ?>><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</select>
|
||||
@@ -1076,10 +1076,10 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<?php
|
||||
if ($usr_level == '1') {
|
||||
?>
|
||||
<button class="btn btn-sm btn-light" style="white-space: nowrap;" onclick="saveTel();">
|
||||
저장
|
||||
</button>
|
||||
<?php
|
||||
<button class="btn btn-sm btn-light" style="white-space: nowrap;" onclick="saveTel();">
|
||||
저장
|
||||
</button>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -1101,77 +1101,77 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<!-- 좌측 : 이미지 -->
|
||||
<td>
|
||||
<?php if (!empty($data['cert_register'])): ?>
|
||||
<?php if ($data['cert_register_save_yn'] == 'Y'): ?>
|
||||
<?php if (strtolower($file_pdf) == 'pdf') { ?>
|
||||
<iframe src="<?= $server_addr ?><?= $regi_pdf_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br />
|
||||
<?php } else { ?>
|
||||
<div id="regi_file_dis" style="padding: 10px 0px; height: 730px; overflow-y: auto;">
|
||||
<?php if (empty($arrRegist)) { ?>
|
||||
<img id="photo-display2" src="/img/photo.gif" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php } else {
|
||||
foreach ($arrRegist as $row) {
|
||||
$img_path = $row['file_path'] . $row['file_name']; ?>
|
||||
<a href="<?= $img_path ?>" class="default_val" target="_blank"
|
||||
rel="lightbox[gallery1]">
|
||||
<img id="photo-display2" src="'.$img_path.'" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
</a>
|
||||
<?php }
|
||||
} ?>
|
||||
</div><br />
|
||||
<?php } ?>
|
||||
<?php else: ?>
|
||||
<?php if (strtolower($file_pdf) == 'pdf') { ?>
|
||||
<iframe src="<?= $regi_pdf_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br>
|
||||
<?php } else { ?>
|
||||
<div id="regi_file_dis" style="padding: 10px 0px; height: 730px; overflow-y: auto;">
|
||||
<?php if (empty($arr_cert_register)) { ?>
|
||||
<img id="photo-display2" src="/plugin/img/photo.gif" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php } else {
|
||||
foreach ($arr_cert_register as $img_path) { ?>
|
||||
<a href="<?= $img_path ?>" class="default_val" target="_blank"
|
||||
rel="lightbox[gallery1]">
|
||||
<img id="photo-display2" src="'.$img_path.'" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
</a>
|
||||
<?php }
|
||||
} ?>
|
||||
</div><br />
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($data['cert_register_save_yn'] == 'Y'): ?>
|
||||
<?php if (strtolower($file_pdf) == 'pdf') { ?>
|
||||
<iframe src="<?= $server_addr ?><?= $regi_pdf_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br />
|
||||
<?php } else { ?>
|
||||
<div id="regi_file_dis" style="padding: 10px 0px; height: 730px; overflow-y: auto;">
|
||||
<?php if (empty($arrRegist)) { ?>
|
||||
<img id="photo-display2" src="/img/photo.gif" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php } else {
|
||||
foreach ($arrRegist as $row) {
|
||||
$img_path = $row['file_path'] . $row['file_name']; ?>
|
||||
<a href="<?= $img_path ?>" class="default_val" target="_blank"
|
||||
rel="lightbox[gallery1]">
|
||||
<img id="photo-display2" src="'.$img_path.'" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
</a>
|
||||
<?php }
|
||||
} ?>
|
||||
</div><br />
|
||||
<?php } ?>
|
||||
<?php else: ?>
|
||||
<?php if (strtolower($file_pdf) == 'pdf') { ?>
|
||||
<iframe src="<?= $regi_pdf_path ?>" frameborder="0"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br>
|
||||
<?php } else { ?>
|
||||
<div id="regi_file_dis" style="padding: 10px 0px; height: 730px; overflow-y: auto;">
|
||||
<?php if (empty($arr_cert_register)) { ?>
|
||||
<img id="photo-display2" src="/plugin/img/photo.gif" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php } else {
|
||||
foreach ($arr_cert_register as $img_path) { ?>
|
||||
<a href="<?= $img_path ?>" class="default_val" target="_blank"
|
||||
rel="lightbox[gallery1]">
|
||||
<img id="photo-display2" src="'.$img_path.'" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
</a>
|
||||
<?php }
|
||||
} ?>
|
||||
</div><br />
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<?php if (empty($regist)) {
|
||||
<?php if (empty($regist)) {
|
||||
$regi_img_path = '/plugin/img/photo.gif';
|
||||
} else {
|
||||
if (empty($regist['file_path']) || empty($regist['file_name'])) {
|
||||
$regi_img_path = '/plugin/img/photo.gif';
|
||||
} else {
|
||||
if (empty($regist['file_path']) || empty($regist['file_name'])) {
|
||||
$regi_img_path = '/plugin/img/photo.gif';
|
||||
} else {
|
||||
$regi_img_path = $regist['file_path'] . $regist['file_name'];
|
||||
$regi_img_path = $regist['file_path'] . $regist['file_name'];
|
||||
|
||||
if ($regist['cloud_upload_yn'] === "Y") {
|
||||
$regi_img_path = NCLOUD_OBJECT_STORAGE_URL . $regi_img_path;
|
||||
}
|
||||
if ($regist['cloud_upload_yn'] === "Y") {
|
||||
$regi_img_path = NCLOUD_OBJECT_STORAGE_URL . $regi_img_path;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="regi_file_dis" style="padding: 10px 0;">
|
||||
<img id="photo-display2" src="<?= $regi_img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
</div>
|
||||
<div id="regi_file_pdf" style="padding: 10px 0; display:none;">
|
||||
<a href="<?= $regi_pdf_path ?>" class="embed"></a>
|
||||
</div>
|
||||
<a href="<?= $regi_img_path ?>" class="default_val" target="_blank">등기부등본
|
||||
보기</a>
|
||||
<a href="" class="default_val" target="_blank" rel="lightbox" id="hongbo"
|
||||
onclick="chk_hongbo(event); return false;">홍보확인서 보기</a>
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="regi_file_dis" style="padding: 10px 0;">
|
||||
<img id="photo-display2" src="<?= $regi_img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
</div>
|
||||
<div id="regi_file_pdf" style="padding: 10px 0; display:none;">
|
||||
<a href="<?= $regi_pdf_path ?>" class="embed"></a>
|
||||
</div>
|
||||
<a href="<?= $regi_img_path ?>" class="default_val" target="_blank">등기부등본
|
||||
보기</a>
|
||||
<a href="" class="default_val" target="_blank" rel="lightbox" id="hongbo"
|
||||
onclick="chk_hongbo(event); return false;">홍보확인서 보기</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
@@ -1244,18 +1244,18 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</tr>
|
||||
|
||||
<?php if ($data['vrfc_type_cd'] == "N"): ?>
|
||||
<tr>
|
||||
<th>소유자명 확인</th>
|
||||
<td>
|
||||
<select class="form-select" name="ownerVerifiable" id="ownerVerifiable">
|
||||
<option value="">-선택-</option>
|
||||
<option value="1" <?php if ($data['owner_verifiable'] == "1")
|
||||
echo "selected"; ?>>일치</option>
|
||||
<option value="0" <?php if ($data['owner_verifiable'] == "0")
|
||||
echo "selected"; ?>>불일치</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>소유자명 확인</th>
|
||||
<td>
|
||||
<select class="form-select" name="ownerVerifiable" id="ownerVerifiable">
|
||||
<option value="">-선택-</option>
|
||||
<option value="1" <?php if ($data['owner_verifiable'] == "1")
|
||||
echo "selected"; ?>>일치</option>
|
||||
<option value="0" <?php if ($data['owner_verifiable'] == "0")
|
||||
echo "selected"; ?>>불일치</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<th>메모</th>
|
||||
@@ -1312,14 +1312,14 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
|
||||
<!-- 왼쪽 버튼 영역 -->
|
||||
<?php if (empty($data['cert_register'])): ?>
|
||||
<div class="d-flex gap-1">
|
||||
<button class="btn btn-sm btn-outline-success" id="btnUploadModal">
|
||||
<i class="fa fa-fw" aria-hidden="true"></i> 파일업로드
|
||||
</button>
|
||||
<!-- <button class="btn btn-sm btn-outline-secondary">
|
||||
<div class="d-flex gap-1">
|
||||
<button class="btn btn-sm btn-outline-success" id="btnUploadModal">
|
||||
<i class="fa fa-fw" aria-hidden="true"></i> 파일업로드
|
||||
</button>
|
||||
<!-- <button class="btn btn-sm btn-outline-secondary">
|
||||
저장
|
||||
</button> -->
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 오른쪽 버튼 영역 -->
|
||||
@@ -1331,13 +1331,13 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
&& $data['stat_cd'] != '49')
|
||||
|| $usr_level == '1'
|
||||
): ?>
|
||||
<button type="button" class="btn btn-light btn-sm" onclick="saveFinalRegi();">
|
||||
최종실패
|
||||
</button>
|
||||
<button type="button" class="btn btn-light btn-sm" onclick="saveFinalRegi();">
|
||||
최종실패
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="saveRegi();">
|
||||
저장
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="saveRegi();">
|
||||
저장
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
@@ -1361,15 +1361,15 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<th style="text-align: center;">세부내용</th>
|
||||
</tr>
|
||||
<?php if (!empty($history)) { ?>
|
||||
<?php foreach ($history as $h) { ?>
|
||||
<tr>
|
||||
<td style="text-align: center;"><?= $h['stat_cd_nm'] ?></td>
|
||||
<td style="text-align: center;"><?= $h['chg_type'] ?></td>
|
||||
<td style="text-align: center;"><?= $h['insert_id'] ?></td>
|
||||
<td style="text-align: center;"><?= $h['insert_tm'] ?></td>
|
||||
<td><?= $h['memo'] ?></td>
|
||||
<?php foreach ($history as $h) { ?>
|
||||
<tr>
|
||||
<td style="text-align: center;"><?= $h['stat_cd_nm'] ?></td>
|
||||
<td style="text-align: center;"><?= $h['chg_type'] ?></td>
|
||||
<td style="text-align: center;"><?= $h['insert_id'] ?></td>
|
||||
<td style="text-align: center;"><?= $h['insert_tm'] ?></td>
|
||||
<td><?= $h['memo'] ?></td>
|
||||
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
@@ -1726,31 +1726,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
});
|
||||
|
||||
dz.on("queuecomplete", function () {
|
||||
let result = lastUploadResponse;
|
||||
|
||||
if (typeof result === "string") {
|
||||
try {
|
||||
result = JSON.parse(result);
|
||||
} catch (e) {
|
||||
result = { code: "-1", msg: result };
|
||||
}
|
||||
}
|
||||
|
||||
if (String(result.code) === "0") {
|
||||
swal.fire({
|
||||
title: "업로드가 완료되었습니다.",
|
||||
icon: "success",
|
||||
});
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
|
||||
const msg = result.msg ? result.msg : "업로드 실패";
|
||||
swal.fire({
|
||||
title: msg,
|
||||
icon: "error",
|
||||
draggable: true
|
||||
});
|
||||
location.reload();
|
||||
});
|
||||
|
||||
dz.on("successmultiple", function () {
|
||||
@@ -2525,14 +2501,14 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
}
|
||||
|
||||
<?php if ($data['vrfc_type_cd'] == "N") { ?>
|
||||
if (frm.ownerVerifiable.value == "") {
|
||||
swal.fire({
|
||||
text: "소유자명 확인 결과를 선택해 주세요",
|
||||
icon: "warning"
|
||||
});
|
||||
frm.ownerVerifiable.focus();
|
||||
return false;
|
||||
}
|
||||
if (frm.ownerVerifiable.value == "") {
|
||||
swal.fire({
|
||||
text: "소유자명 확인 결과를 선택해 주세요",
|
||||
icon: "warning"
|
||||
});
|
||||
frm.ownerVerifiable.focus();
|
||||
return false;
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
if (frm.reg_conf_yn_2.value == "20000") {
|
||||
|
||||
@@ -1429,31 +1429,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
});
|
||||
|
||||
dz.on("queuecomplete", function () {
|
||||
let result = lastUploadResponse;
|
||||
|
||||
if (typeof result === "string") {
|
||||
try {
|
||||
result = JSON.parse(result);
|
||||
} catch (e) {
|
||||
result = { code: "-1", msg: result };
|
||||
}
|
||||
}
|
||||
|
||||
if (String(result.code) === "0") {
|
||||
swal.fire({
|
||||
title: "업로드가 완료되었습니다.",
|
||||
icon: "success",
|
||||
});
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
|
||||
const msg = result.msg ? result.msg : "업로드 실패";
|
||||
swal.fire({
|
||||
title: msg,
|
||||
icon: "error",
|
||||
draggable: true
|
||||
});
|
||||
location.reload();
|
||||
});
|
||||
|
||||
dz.on("successmultiple", function () {
|
||||
|
||||
@@ -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