feat : 개별총정보 사진

main
Kurt92 2 years ago
parent 6b276eabe3
commit 8e4b171f05

@ -5,10 +5,12 @@
<select id="findTotalView" parameterType="kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO" resultType="kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO"> <select id="findTotalView" parameterType="kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO" resultType="kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO">
/** FimsTotalPopup.findList.cjm */ /** FimsTotalPopup.findList.cjm */
/** 단속자료 단건 조회 리스트 */ /** 단속자료 단건 조회 */
select select
tr.* tr.*
, tecsd.interface_seq_n
from tb_rt_reglt tr from tb_rt_reglt tr
inner join tb_ec_ctzn_sttemnt_detail tecsd on(tr.reglt_id = tecsd.reglt_id)
<!-- <!--
1단계 차적조회를 안하고 바로 자료 전송 1단계 차적조회를 안하고 바로 자료 전송
하여 payer를 알수 없음. 하여 payer를 알수 없음.

@ -49,8 +49,8 @@
<tr> <tr>
<th>기관코드</th> <th>기관코드</th>
<td><code:select id="insttCode" name="insttCode" codeId="XIT025" defaultSelect="${contents.insttCode}" title="기관코드" cls="selectBoxTotal" alt="기관코드"/></td> <td><code:select id="insttCode" name="insttCode" codeId="XIT025" defaultSelect="${contents.insttCode}" title="기관코드" cls="selectBoxTotal" alt="기관코드"/></td>
<th>시스템코드</th> <th>과태료코드</th>
<td><code:select id="sysCode" name="sysCode" codeId="FIM001" defaultSelect="${contents.sysCode}" title="시스템코드" cls="selectBoxTotal" alt="시스템코드"/></td> <td><code:select id="sysCode" name="sysCode" codeId="FIM001" defaultSelect="${contents.sysCode}" title="과태료코드" cls="selectBoxTotal" alt="과태료코드"/></td>
<th>단속구분</th> <th>단속구분</th>
<td><code:select id="regltSeCode" name="regltSeCode" codeId="FIM002" defaultSelect="${contents.regltSeCode}" title="단속구분코드" cls="selectBoxTotal" alt="단속구분코드"/></td> <td><code:select id="regltSeCode" name="regltSeCode" codeId="FIM002" defaultSelect="${contents.regltSeCode}" title="단속구분코드" cls="selectBoxTotal" alt="단속구분코드"/></td>
</tr> </tr>
@ -116,8 +116,10 @@
</div> </div>
<div class="w_fix01 gridGroup" style="width:0px; min-width:300px!important;"> <div class="w_fix01 gridGroup" style="width:0px; min-width:300px!important;">
<p class="title deco_01">위반사진</p> <p class="title deco_01">위반사진</p>
<%--FIXME: id 고정(변경불가)--%>
<div id="imgList"></div>
<div> <div>
<img id="uploadImage"/>
</div> </div>
</div> </div>
@ -132,17 +134,34 @@
</div><!--row --> </div><!--row -->
</form> </form>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/framework/js/cmm/cmmDownloadImg.js" defer></script>
<script type="text/javaScript" language="javascript" defer="defer"> <script type="text/javaScript" language="javascript" defer="defer">
//전역변수선언 //전역변수선언
let orgData; let orgData;
var callbackSearch = () => fnBiz.search(); var callbackSearch = () => fnBiz.search();
var callbackReloadImage = () => fnBiz.downloadImg();
/* ******************************* /* *******************************
* Biz function * Biz function
******************************* */ ******************************* */
const fnBiz = { const fnBiz = {
downloadImg: () => {
cmmAjax({
showSuccessMsg: false
,url: '<c:url value="/fims/biz/ec/findNatlNewspaperAttchFiles.do"/>'
,data: {interfaceSeqN: '${contents.interfaceSeqN}'}
,success: (res) => {
// 이미지 클릭시 image editor open
const pr = {
interfaceSeqN: '${reqDTO.interfaceSeqN}',
ctznSttemntDetailSn: '${reqDTO.ctznSttemntDetailSn}'
}
<%-- FIXME: id 고정(#ctznImg - 변경불가)--%>
sttemntImgDownload(res.data?.contents, '#ctznImg', pr, true);
}
})
},
add: () => { add: () => {
if (!fnBiz.validate()) return; if (!fnBiz.validate()) return;
@ -210,6 +229,7 @@
$(document).ready(function(){ $(document).ready(function(){
orgData = $('form').serialize(); orgData = $('form').serialize();
fnBiz.downloadImg();
$('#totCnt span').text(window.opener.pageId.rowKey+1 + " / " + window.opener.$('#totCnt span').text()); $('#totCnt span').text(window.opener.pageId.rowKey+1 + " / " + window.opener.$('#totCnt span').text());
}); });

@ -202,17 +202,20 @@
</td> </td>
<th>기관코드</th> <th>기관코드</th>
<td> <td>
<input type="text" name="addressV" value='<c:out value="${dtlDTO.insttCode}"/>' readonly> <%--<input type="text" name="addressV" value='<c:out value="${dtlDTO.insttCode}"/>' readonly>--%>
<code:select id="instt_code" name="instt_code" codeId="XIT025" defaultSelect="${dtlDTO.insttCode}" title="기관코드" cls="selectBoxTotal" alt="기관코드"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<th>과태료코드</th> <th>과태료코드</th>
<td> <td>
<input type="text" name="celNoV" value='<c:out value="${dtlDTO.sysCode}"/>' readonly> <%--<input type="text" name="celNoV" value='<c:out value="${dtlDTO.sysCode}"/>' readonly>--%>
<code:select id="sysCode" name="sysCode" codeId="FIM001" defaultSelect="${dtlDTO.sysCode}" title="과태료코드" cls="selectBoxTotal" alt="과태료코드"/>
</td> </td>
<th>처리상태</th> <th>처리상태</th>
<td> <td>
<input type="text" name="telNoV" value='<c:out value="${dtlDTO.ctznSttemntDetailProcessSttus}"/>' readonly> <%--<input type="text" name="telNoV" value='<c:out value="${dtlDTO.ctznSttemntDetailProcessSttus}"/>' readonly>--%>
<code:select id="ctznSttemntDetailProcessSttus" codeId="FIM010" defaultSelect="${dtlDTO.ctznSttemntDetailProcessSttus}" title="처리상태" cls="selectBoxTotal" alt="처리상태"/>
</td> </td>
<th>등록일시</th> <th>등록일시</th>
<td> <td>

@ -74,6 +74,23 @@
let searchCount = null; let searchCount = null;
var callbackSearch = () => fnBiz.search(); var callbackSearch = () => fnBiz.search();
//개별총정보 팝업내 다음/이전페이지
var pageId = null;
var lastPageId = null;
var lastPage = false;
function clickDataChangeBtn(param){
lastPageId = GRID.store.data.rawData[pageId.rowKey];
if(param == 'next') {pageId = GRID.store.data.rawData[pageId.rowKey+1];}
else {pageId = GRID.store.data.rawData[pageId.rowKey-1];}
console.log(pageId);
if(pageId == undefined){
pageId = lastPageId;
lastPage = true;
} else {
lastPage = false;
fnBiz.pagePopup('detail', {regltId: pageId.regltId});
}
}
/******************************* /*******************************
* Biz function * Biz function
@ -101,6 +118,7 @@
} }
,onDbClickGrid: function(props){ ,onDbClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
pageId = GRID.store.data.rawData[props.rowKey];
fnBiz.pagePopup('detail', {regltId: rowData.regltId}); fnBiz.pagePopup('detail', {regltId: rowData.regltId});
} }

Loading…
Cancel
Save