|
|
@ -3,177 +3,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<!-- 민원 상담 정보 -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<div class="col-xl-12 mx-1">
|
|
|
|
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
|
|
|
|
<div class="card">
|
|
|
|
<input type="hidden" id="opnnId--${pageName}" name="opnnId" data-map="OPNN_ID" />
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<label class="w-px-120 bg-label-danger pe-2 col-form-label text-sm-center">의견제출 정보</label>
|
|
|
|
<!-- 화면 왼쪽 -->
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
<div class="col-xl-9 mx-1">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<!-- 의견제출 정보 -->
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnCreate--${pageName}" title="민원 상담 등록" onclick="fnBtnCvlcptDscsnCnCreate${pageName}();">
|
|
|
|
<div class="card">
|
|
|
|
민원 상담 등록
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
</button>
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnUpdate--${pageName}" title="민원 상담 수정" onclick="fnBtnCvlcptDscsnCnUpdate${pageName}();">
|
|
|
|
<label class="w-px-120 bg-label-danger pe-2 col-form-label text-sm-center">의견제출 정보</label>
|
|
|
|
민원 상담 수정
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
</button>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnRemove--${pageName}" title="민원 상담 삭제" onclick="fnBtnCvlcptDscsnCnRemove${pageName}();">
|
|
|
|
<button type="button" class="btn btn-primary" id="btnOpnnSbmsnCreate--${pageName}" title="의견제출 등록" onclick="fnBtnOpnnSbmsnCreate${pageName}();">
|
|
|
|
민원 상담 삭제
|
|
|
|
의견제출 등록
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
|
<button type="button" class="btn btn-primary" id="btnOpnnSbmsnUpdate--${pageName}" title="의견제출 수정" onclick="fnBtnOpnnSbmsnUpdate${pageName}();">
|
|
|
|
</div> <!-- <div class="container-page-btn"> -->
|
|
|
|
의견제출 수정
|
|
|
|
|
|
|
|
</button>
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<button type="button" class="btn btn-primary" id="btnOpnnSbmsnRemove--${pageName}" title="의견제출 삭제" onclick="fnBtnOpnnSbmsnRemove${pageName}();">
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
의견제출 삭제
|
|
|
|
<!-- hidden -->
|
|
|
|
</button>
|
|
|
|
<input type="hidden" id="cvlcptDscsnId--${pageName}" name="cvlcptDscsnId" data-map="CVLCPT_DSCSN_ID" />
|
|
|
|
<button type="button" class="btn btn-primary" id="btnDlbrtLtfrPrint--${pageName}" title="심의의결서 출력" onclick="fnBtnDlbrtLtfrPrint${pageName}();">
|
|
|
|
|
|
|
|
심의의결서 출력
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
|
|
|
|
|
</div> <!-- <div class="container-page-btn"> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 접수 번호 -->
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<label for="rcptNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">접수 번호</label>
|
|
|
|
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<input type="text" class="form-control w-30" id="rcptNo--${pageName}" name="rcptNo" data-map="RCPT_NO" readonly />
|
|
|
|
<div id="table-responsive--${pageName}" class="table-responsive" style="overflow-x:scroll; height:336px; overflow-y:scroll;" >
|
|
|
|
</div>
|
|
|
|
<table class="dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<!-- 접수 일자 -->
|
|
|
|
<thead>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<tr id="theadTr--${pageName}">
|
|
|
|
<label for="rcptYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">접수 일자</label>
|
|
|
|
<th>등록일시</th>
|
|
|
|
<input type="text" class="form-control w-30" id="rcptYmd--${pageName}" name="rcptYmd" data-map="RCPT_YMD" readonly />
|
|
|
|
<th>요일</th>
|
|
|
|
</div>
|
|
|
|
<th>등록사용자</th>
|
|
|
|
<!-- 접수 구분 -->
|
|
|
|
<th>민원접수구분</th>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<th>상담내용</th>
|
|
|
|
<label for="rcptSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">접수 구분</label>
|
|
|
|
<th>수정일시</th>
|
|
|
|
<input type="text" class="form-control w-30" id="rcptSeNm--${pageName}" name="rcptSeNm" data-map="RCPT_SE_NM" readonly />
|
|
|
|
<th>수정사용자</th>
|
|
|
|
</div>
|
|
|
|
</tr>
|
|
|
|
<!-- 진술자 이름 -->
|
|
|
|
</thead>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
<label for="sttrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">성명</label>
|
|
|
|
</tbody>
|
|
|
|
<input type="text" class="form-control w-40" id="sttrNm--${pageName}" name="sttrNm" data-map="STTR_NM" readonly />
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
</div>
|
|
|
|
<tr data-key="{CVLCPT_DSCSN_ID}">
|
|
|
|
<!-- 진술자 생년월일 -->
|
|
|
|
<td class="text-center" onclick="{onclick}">{REG_DT}</td>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<td class="text-center" onclick="{onclick}">{WEEK_NM}</td>
|
|
|
|
<label for="sttrBrdt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">생년월일</label>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RGTR_NM}</td>
|
|
|
|
<input type="text" class="form-control w-25" id="sttrBrdt--${pageName}" name="sttrBrdt" data-map="STTR_BRDT_FORMAT" placeholder="YY-MM-DD" readonly />
|
|
|
|
<td class="text-center" onclick="{onclick}">{CVLCPT_RCPT_SE_CD}</td>
|
|
|
|
</div>
|
|
|
|
<td class="text-center" onclick="{onclick}">{DSCSN_CN}</td>
|
|
|
|
<!-- 소유주 관계 구분 명 -->
|
|
|
|
<td class="text-center" onclick="{onclick}">{MDFCN_DT}</td>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<td class="text-center" onclick="{onclick}">{MDFR_NM}</td>
|
|
|
|
<label for="ownrRelNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">소유주 관계 구분</label>
|
|
|
|
</tr>
|
|
|
|
<input type="text" class="form-control w-40" id="ownrRelNm--${pageName}" name="ownrRelNm" data-map="OWNR_REL_NM" readonly />
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<!-- 진술자 주소 --><!-- 진술자 우편번호 -->
|
|
|
|
<tr class="odd">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<td valign="top" colspan="7" class="dataTables_empty text-center">민원 상담 정보를 찾지 못했습니다.</td>
|
|
|
|
<label for="sttrAddr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">주소</label>
|
|
|
|
</tr>
|
|
|
|
<input type="text" class="form-control w-80" id="sttrAddr--${pageName}" name="sttrAddr" data-map="STTR_ADDR" readonly />
|
|
|
|
</template>
|
|
|
|
<input type="text" class="form-control w-px-75" id="sttrZip--${pageName}" name="sttrZip" data-map="STTR_ZIP" readonly />
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 진술자 상세주소 -->
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
</div> <!-- / DataTables(그리드) -->
|
|
|
|
<label for="sttrDaddr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">상세 주소</label>
|
|
|
|
<!-- 상담 내용 -->
|
|
|
|
<input type="text" class="form-control w-87" id="sttrDaddr--${pageName}" name="sttrDaddr" data-map="STTR_DADDR" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 진술자 연락처 -->
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
|
|
|
<label for="sttrCttpc--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">연락처</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-35" id="sttrCttpc--${pageName}" name="sttrCttpc" data-map="STTR_CTTPC" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 진술자 이메일 -->
|
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
|
|
|
<label for="sttrEml--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">이메일</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-35" id="sttrEml--${pageName}" name="sttrEml" data-map="STTR_EML" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 의견 제출 내용 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="opnnSbmsnCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">의견제출 내용</label>
|
|
|
|
<textarea class="form-control w-100" id="dscsnCn--${pageName}" name="dscsnCn" data-map="DSCSN_CN" rows="5" data-maxlengthb="4000" readonly>
|
|
|
|
<textarea type="text" class="form-control w-87" id="opnnSbmsnCn--${pageName}" name="opnnSbmsnCn" data-map="OPNN_SBMSN_CN" rows="4" data-maxlengthb="4000" readonly>
|
|
|
|
|
|
|
|
</textarea>
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 의견 제출 구분 명 -->
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
|
|
|
<label for="opnnSbmsnSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">의견 제출 구분</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-40" id="opnnSbmsnSeNm--${pageName}" name="opnnSbmsnSeNm" data-map="OPNN_SBMSN_SE_NM" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 의견 제출 요지 -->
|
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
|
|
|
<label for="opnnSbmsnGist--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">의견제출 요지</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-80" id="opnnSbmsnGist--${pageName}" name="opnnSbmsnGist" data-map="OPNN_SBMSN_GIST" data-maxlengthb="300" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 담당자 검토 의견 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="picRvwOpnn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">검토 의견</label>
|
|
|
|
|
|
|
|
<textarea class="form-control w-87" id="picRvwOpnn--${pageName}" name="picRvwOpnn" data-map="PIC_RVW_OPNN" rows="3" data-maxlengthb="1000" readonly>
|
|
|
|
|
|
|
|
</textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 첨부 파일 테이블 -->
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
|
|
|
<table class="table table-bordered table-hover table-striped" id="fileList--${pageName}">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<th class="text-center" style="width: 24px">NO.</th>
|
|
|
|
|
|
|
|
<th class="text-center" style="width: 200px">파일 번호</th>
|
|
|
|
|
|
|
|
<th class="text-center">파일 이름</th>
|
|
|
|
|
|
|
|
<th class="text-center" style="width: 200px">파일 크기</th>
|
|
|
|
|
|
|
|
<th class="text-center" style="width: 120px">다운로드</th>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody></tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div> <!-- 첨부 파일 테이블 <div class="table-responsive"> -->
|
|
|
|
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- 의견제출 정보 <div class="card"> -->
|
|
|
|
</form>
|
|
|
|
</div> <!-- <div class="col-xl-9 mx-1"> -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
|
|
|
|
</div> <!-- 민원 상담 정보 <div class="col-xl-12 mx-1"> -->
|
|
|
|
<!-- 화면 오른쪽 -->
|
|
|
|
</div> <!-- <div class="d-flex flex-row justify-content-evenly"> -->
|
|
|
|
<div class="col-xl-3 mx-0">
|
|
|
|
|
|
|
|
<!-- 심의 정보 -->
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
|
|
|
<div class="container-page-btn">
|
|
|
|
|
|
|
|
<label class="w-px-120 bg-label-danger pe-2 col-form-label text-sm-center">심의 정보</label>
|
|
|
|
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnOpnnSbmsnDlbrt--${pageName}" title="의견제출 심의" onclick="fnBtnOpnnSbmsnDlbrt${pageName}();">
|
|
|
|
|
|
|
|
의견제출 심의
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
|
|
|
|
|
</div> <!-- <div class="container-page-btn"> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
|
|
|
<!-- 문서 번호 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="docNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">문서 번호</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-45" id="docNo--${pageName}" name="docNo" data-map="DOC_NO" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 통보 구분 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="ntfctnSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">통보 구분</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-30" id="ntfctnSeNm--${pageName}" name="ntfctnSeNm" data-map="NTFCTN_SE_NM" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 의견 제출 상태 코드 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="opnnSbmsnSttsNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">처리 결과</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-30" id="opnnSbmsnSttsNm--${pageName}" name="opnnSbmsnSttsNm" data-map="OPNN_SBMSN_STTS_NM" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 답변일시 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="ansYmdTm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">처리 일시</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-45" id="ansYmdTm--${pageName}" name="ansYmdTm" data-map="ANS_YMD_TM" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 답변 내용 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="ansCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">처리 내용</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<textarea type="text" class="form-control w-100" id="ansCn--${pageName}" name="ansCn" data-map="ANS_CN" rows="14" data-maxlengthb="4000">
|
|
|
|
|
|
|
|
</textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!-- 심의 정보 <div class="card"> -->
|
|
|
|
|
|
|
|
</div> <!-- <div class="col-xl-3 mx-0"> -->
|
|
|
|
|
|
|
|
</div> <!-- <div class="d-flex flex-row justify-content-evenly"> -->
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -184,113 +88,56 @@
|
|
|
|
var ${pageName}PrefixUrl = "/sprt/sprt02";
|
|
|
|
var ${pageName}PrefixUrl = "/sprt/sprt02";
|
|
|
|
// FormFields
|
|
|
|
// FormFields
|
|
|
|
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
|
|
|
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
|
|
|
// 파일 리스트
|
|
|
|
|
|
|
|
var $fileListArr = new Array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
prefix : "totalInfoOpnnSbmsn"
|
|
|
|
prefix : "totalInfoCvlcptDscsn"
|
|
|
|
, prefixName : "의견제출 정보"
|
|
|
|
, prefixName : "민원상담 정보"
|
|
|
|
, keymapper : info => info ? info.OPNN_ID : ""
|
|
|
|
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
|
|
|
|
, dataGetter : obj => obj.opnnSbmsn
|
|
|
|
, dataGetter : obj => obj.cvlcptDscsnCn
|
|
|
|
, formats : {
|
|
|
|
, formats : {
|
|
|
|
RCPT_YMD : dateFormat
|
|
|
|
REG_DT : datetimeFormat
|
|
|
|
, ANS_YMD_TM : datetimeFormat
|
|
|
|
, MDFCN_DT : datetimeFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.onCurrentChange = item => {
|
|
|
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
|
|
|
|
${pageName}Fields.set(item);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.data.OPNN_ID != null) {
|
|
|
|
|
|
|
|
// 첨부파일 조회
|
|
|
|
|
|
|
|
fnSearchFileList${pageName}(item.data.OPNN_ID);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 의견제출 dialog
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
${pageName}Control.getOpnnSbmsnInfo = (params) => {
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
let dialogTitle = "";
|
|
|
|
renderList${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
if (params.callPurpose == "create") {
|
|
|
|
|
|
|
|
dialogTitle = "의견제출 등록";
|
|
|
|
|
|
|
|
} else if (params.callPurpose == "update") {
|
|
|
|
|
|
|
|
dialogTitle = "의견제출 수정";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/excl/excl02/020/info.do")
|
|
|
|
|
|
|
|
, data : params || {}
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "opnnInfoDialog"
|
|
|
|
|
|
|
|
, title : dialogTitle
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "xl"
|
|
|
|
|
|
|
|
, onClose : () => { fnDataRefreshInfo(params.crdnId); } // callback 자료 조회
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 삭제 callback
|
|
|
|
|
|
|
|
${pageName}Control.onRemoveOpnnSbmsn = (resp) => {
|
|
|
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
|
|
|
fnDataRefreshInfo(); // 자료 조회
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 삭제
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
${pageName}Control.removeOpnnSbmsn = (params) => {
|
|
|
|
${pageName}Control.onCurrentChange = item => {
|
|
|
|
ajax.post({
|
|
|
|
if (!item) return;
|
|
|
|
url : wctx.url("/excl/excl02/010/remove.do")
|
|
|
|
|
|
|
|
, data : params || {}
|
|
|
|
|
|
|
|
, success : resp => ${pageName}Control.onRemoveOpnnSbmsn(resp)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 심의 dialog
|
|
|
|
let key = item.data.CVLCPT_DSCSN_ID;
|
|
|
|
${pageName}Control.getOpnnSbmsnDlbrtInfo = (params) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/excl/excl02/030/info.do")
|
|
|
|
|
|
|
|
, data : params || {}
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
id : "opnnSbmsnInfoDialog"
|
|
|
|
};
|
|
|
|
, title : "의견제출 답변 처리"
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "lg"
|
|
|
|
|
|
|
|
, onClose : () => { fnDataRefreshInfo(params.crdnId); } // callback 자료 조회
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 재조회
|
|
|
|
/**************************************************************************
|
|
|
|
fnDataRefreshInfo = (crdnId) => {
|
|
|
|
*
|
|
|
|
// 단속 ID 확인
|
|
|
|
**************************************************************************/
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
renderList${pageName} = () => {
|
|
|
|
}
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/sprt/sprt02/030/info.do")
|
|
|
|
let trs = empty ?
|
|
|
|
, headers: { Accept: "application/json; charset=utf-8" } // json
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
, data : { crdnId : crdnId }
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
, success : resp => {
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
// Dataset 셋팅
|
|
|
|
(str, dataItem) => str
|
|
|
|
${pageName}Control.setData([resp.opnnSbmsn]);
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');")
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -309,132 +156,19 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* function
|
|
|
|
* function
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 의견제출 등록
|
|
|
|
// 민원 상담 등록
|
|
|
|
fnBtnOpnnSbmsnCreate${pageName} = () => {
|
|
|
|
fnBtnCvlcptDscsnCnCreate${pageName} = () => {
|
|
|
|
let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID");
|
|
|
|
alert("민원 상담 등록");
|
|
|
|
|
|
|
|
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
|
|
|
|
if (crdnId == null || crdnId == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callPurpose : "create"
|
|
|
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.getOpnnSbmsnInfo(params);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 의견제출 수정
|
|
|
|
|
|
|
|
fnBtnOpnnSbmsnUpdate${pageName} = () => {
|
|
|
|
|
|
|
|
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 의견 ID 가 없다면.. return
|
|
|
|
|
|
|
|
if (opnnId == null || opnnId == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callPurpose : "update"
|
|
|
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.getOpnnSbmsnInfo(params);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 의견제출 삭제
|
|
|
|
|
|
|
|
fnBtnOpnnSbmsnRemove${pageName} = () => {
|
|
|
|
|
|
|
|
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 의견 ID 가 없다면.. return
|
|
|
|
|
|
|
|
if (opnnId == null || opnnId == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callPurpose : "remove"
|
|
|
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "선택한 의견제출 정보를 삭제하시겠습니까?"
|
|
|
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
${pageName}Control.removeOpnnSbmsn(params);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 의견제출 심의
|
|
|
|
|
|
|
|
fnBtnOpnnSbmsnDlbrt${pageName} = () => {
|
|
|
|
|
|
|
|
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 의견제출 ID 가 없다면.. return
|
|
|
|
|
|
|
|
if (opnnId == null || opnnId == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callPurpose : "update"
|
|
|
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.getOpnnSbmsnDlbrtInfo(params);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 심의의결서 출력
|
|
|
|
|
|
|
|
fnBtnDlbrtLtfrPrint${pageName} = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 첨부파일 조회
|
|
|
|
// 민원 상담 수정
|
|
|
|
fnSearchFileList${pageName} = (opnnId) => {
|
|
|
|
fnBtnCvlcptDscsnCnUpdate${pageName} = () => {
|
|
|
|
// 의견제출 등록일 경우에는 첨부파일을 조회하지 안는다..
|
|
|
|
alert("민원 상담 수정");
|
|
|
|
if (opnnId == null || opnnId == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 기존 table에 자료가 존재하면 table 삭제
|
|
|
|
|
|
|
|
let fileListTable = document.getElementById("fileList--${pageName}"); // table element 찾기
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (iLoop = 2; iLoop <= fileListTable.rows.length; iLoop++) {
|
|
|
|
|
|
|
|
let newRow = fileListTable.deleteRow(fileListTable.rows.length-1); // table 행(Row) 삭제
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 첨부파일 리스트
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : "file/list.do"
|
|
|
|
|
|
|
|
, data : {
|
|
|
|
|
|
|
|
infoType : "110"
|
|
|
|
|
|
|
|
, infoKeys : opnnId
|
|
|
|
|
|
|
|
, fetchSize : 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
let fileNo = 0;
|
|
|
|
|
|
|
|
let fileList = resp.fileList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fileList.forEach(function (item, index, array) {
|
|
|
|
|
|
|
|
fileNo = index + 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let innerHtml = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
innerHtml += "<tr>";
|
|
|
|
|
|
|
|
innerHtml += "<td class='text-center'>" + fileNo + "</td>";
|
|
|
|
|
|
|
|
innerHtml += "<td class='text-center'>" + item.FILE_ID + "</td>";
|
|
|
|
|
|
|
|
innerHtml += "<td class='text-center'>" + item.FILE_NM + "</td>";
|
|
|
|
|
|
|
|
innerHtml += "<td class='text-center'>" + item.FILE_SIZE + " byte</td>";
|
|
|
|
|
|
|
|
innerHtml += "<td class='text-center'>" + "<button class='btn' onclick='fnBtnFileDownload${pageName}(" + item.FILE_ID + ");'><i class='bx bx-download me-1'></i></button>" + "</td>";
|
|
|
|
|
|
|
|
innerHtml += "</tr>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#fileList--${pageName} > tbody:last").append(innerHtml);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 첨부파일 다운로드
|
|
|
|
// 민원 상담 삭제
|
|
|
|
fnBtnFileDownload${pageName} = (fileID) => {
|
|
|
|
fnBtnCvlcptDscsnCnRemove${pageName} = () => {
|
|
|
|
top.location.href = "/file/download.do?fileID=" + fileID;
|
|
|
|
alert("민원 상담 삭제");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -448,7 +182,7 @@
|
|
|
|
initForm${pageName}();
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
// Dataset 셋팅
|
|
|
|
${pageName}Control.setData([${opnnSbmsn}]);
|
|
|
|
${pageName}Control.setData(${cvlcptDscsnCn});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// #sourceURL=sprt02080-info.jsp
|
|
|
|
// #sourceURL=sprt02080-info.jsp
|
|
|
|