feat: 단속현황 - 개별총정보 CCTV 위반정보 필드 매핑

main
minuk926 2 years ago
parent 409686923f
commit 92d77ab6d2

@ -1,5 +1,8 @@
package kr.xit.fims.biz.cmm.service;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -25,10 +28,16 @@ public class FimsCrackdownMgtService implements IFimsCrackdownMgtService {
@Override
@Transactional(readOnly = true)
public RtDTO.Reglt findCrackdownInfo(FimsCrackdownDTO.Request reqDTO) {
public Map<String,Object> findCrackdownInfo(FimsCrackdownDTO.Request reqDTO) {
Map<String,Object> rtnMap = new HashMap<>();
// 단속구분코드 : 01-고정형CCTV, 02-주행형CCTV, 07-버스장착형CCTV, 09-시민신고(국민신문고)
if(Checks.isEmpty(reqDTO.getRegltId())) return RtDTO.Reglt.builder().build();
return rtCrackdownMgtMapper.selectRtReglt(reqDTO);
RtDTO.Reglt regltDTO = null;
if(Checks.isEmpty(reqDTO.getRegltId())) regltDTO = RtDTO.Reglt.builder().build();
else regltDTO = rtCrackdownMgtMapper.selectRtReglt(reqDTO);
rtnMap.put("regltDTO", regltDTO);
rtnMap.put("payerDTO", Checks.isEmpty(regltDTO.getPayerId()) ? RtDTO.Payer.builder().build() : rtCrackdownMgtMapper.selectRtPayer(reqDTO));
return rtnMap;
}
@Override
@ -67,5 +76,4 @@ public class FimsCrackdownMgtService implements IFimsCrackdownMgtService {
/*fimsTotalPopupMapper.modifyProcErpp(vo);*/
}
}

@ -1,14 +1,15 @@
package kr.xit.fims.biz.cmm.service;
import java.util.Map;
import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO;
import kr.xit.fims.biz.cmm.model.FimsCrackdownDTO;
import kr.xit.fims.biz.rt.model.RtDTO;
public interface IFimsCrackdownMgtService {
FimsTotalPopupVO findTotalView(final FimsTotalPopupVO vo);
RtDTO.Reglt findCrackdownInfo(final FimsCrackdownDTO.Request dto);
Map<String,Object> findCrackdownInfo(final FimsCrackdownDTO.Request dto);
void addProc(FimsTotalPopupVO vo);
void modifyProc(FimsTotalPopupVO vo);

@ -10,6 +10,7 @@ import kr.xit.fims.biz.FimsConst;
import kr.xit.fims.biz.cmm.fimsTotalPopup.model.FimsTotalPopupVO;
import kr.xit.fims.biz.cmm.model.FimsCrackdownDTO;
import kr.xit.fims.biz.cmm.service.IFimsCrackdownMgtService;
import kr.xit.fims.biz.rt.service.IRtCrackdownMgtService;
import kr.xit.fims.biz.utils.FimsBizUtils;
import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.model.ResultResponse;
@ -34,13 +35,14 @@ public class FimsCrackDownMgtController {
private String rcvNatlNewspaperPath;
private final IFimsCrackdownMgtService service;
private final IRtCrackdownMgtService rtService;
@RequestMapping(value = "/cmmFimsCrackdownMgtPopup")
public ModelAndView cmmFimsCrackdownMgtPopup(final FimsCrackdownDTO.Request dto){
ModelAndView mav = new ModelAndView();
// 단속정보
mav.addObject("regltDTO", service.findCrackdownInfo(dto));
mav.addAllObjects(service.findCrackdownInfo(dto));
mav.addObject("pageTitle", "개별총정보 등록 / 변경");
mav.setViewName(FimsConst.FIMS_JSP_BASE_PATH + "cmm/cmmFimsCrackdownMgtPopup.popup");
return mav;
@ -54,7 +56,19 @@ public class FimsCrackDownMgtController {
return mav;
}
@RequestMapping(value = "/findCrackdownInfo")
public ModelAndView findCrackdownInfo(final FimsCrackdownDTO.Request dto){
return ResultResponse.of(service.findCrackdownInfo(dto));
}
@RequestMapping(value = "/findCrackdownInfoAndAttchFiles")
public ModelAndView findCrackdownInfoAndAttchFiles(final FimsCrackdownDTO.Request dto) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
mav.addAllObjects(service.findCrackdownInfo(dto));
mav.addObject("attchFiles", rtService.findRtRegltAttchFiles(dto));
return mav;
}
@RequestMapping(value = "/findRcvPathFiles")
public ModelAndView findRcvPathFiles(final String dirPath){

@ -18,6 +18,7 @@ public interface IRtCrackdownMgtMapper {
List<RtDTO.Reglt> selectRtReglts(final Map<String,Object> paraMap, final RowBounds rowBounds);
<T> RtDTO.Reglt selectRtReglt(final T t);
<T> RtDTO.Payer selectRtPayer(final T t);
void insertRtReglt(final RtDTO.Reglt dto);
void updateRtReglt(final RtDTO.Reglt dto);

@ -175,6 +175,44 @@
<!-- *************************************************************************************************************
* tb_rt_payer : 납부자
************************************************************************************************************** -->
<select id="selectRtPayer" resultType="kr.xit.fims.biz.rt.model.RtDTO$Payer">
/* rt-reglt-and-erpp-mysql-mapper|selectRtPayer-납부자 정보 조회|julim */
SELECT payer_id
, instt_code
, sys_code
, payer_se_code
, payer_no
, payer_nm
, payer_cttpc
, payer_cttpc_se_code
, payer_email_adres
, payer_sttus_code
, lnm_road_adres_se_code
, zip
, rn_code
, undgrnd_at
, buld_mnnm
, buld_slno
, legaldong_code
, adstrd_code
, mntn_se_code
, lnbr
, ho
, spcl_dong
, spcl_ho
, spcl_adres
, adres
, detail_adres
, all_adres
, payer_regist_se_code
, regist_dt
, register
, updt_dt
, updusr
FROM tb_rt_payer
WHERE payer_id = #{payerId}
</select>
<insert id="insertRtPayer">
/* rt-reglt-and-erpp-mysql-mapper|updateRtPayer-납부자 정보 변경|julim */
</insert>

@ -13,13 +13,19 @@ Date Author Description
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp"%>
<style>
#regltProcessSttusCode {
width: 29%;
}
</style>
<c:set var="isUpdate" value="${!empty regltDTO.regltId}"/>
<%--2022.10.05 박소영 웹폰트 링크 추가--%>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap" rel="stylesheet">
<form id="frmSearch" name="frmSearch">
<input type="hidden" id="payerId" name="payerId" value="<c:out value="${regltDTO.payerId }"/>">
<div class="conttitle">
<img src="${ctx }/resources/biz/content/images/common/main/titleLogo_01.png"/>
@ -38,49 +44,55 @@ Date Author Description
<div id="tabs_0">
<div class="w_fix01 gridGroup">
<p class="title deco_01">위반정보</p>
<form id="frmReglt">
<table class="tbl03">
<caption>위반정보 상세</caption>
<colgroup>
<col style="width: 12%;"/>
<col style="width: 22%;"/>
<col style="width: 12%;"/>
<col style="width: 21%;"/>
<col style="width: 12%;"/>
<col style="width: 21%;"/>
<col style="width: 15%;"/>
<col style="width: 35%;"/>
<col style="width: 15%;"/>
<col style="width: 35%;"/>
</colgroup>
<tbody>
<tr>
<th>등록구분</th>
<td><code:select id="registSeCode" name="registSeCode" codeId="FIM026" defaultSelect="${regltDTO.registSeCode}" title="단속자료등록구분" cls="selectBoxTotal" alt="단속자료등록구분" disabled="true"/></td>
<td>
<code:select id="registSeCode" name="registSeCode" codeId="FIM026" defaultSelect="${regltDTO.registSeCode}" title="단속자료등록구분" cls="selectBoxTotal" alt="단속자료등록구분" disabled="true"/>
</td>
<th>자료출처</th>
<td><code:select id="regltSeCode" name="regltSeCode" codeId="FIM002" defaultSelect="${regltDTO.regltSeCode}" title="단속구분코드" cls="selectBoxTotal" alt="단속구분코드"/></td>
<th>단속일시</th>
<td>
<fmt:parseDate value="${regltDTO.regltDe}${regltDTO.regltBeginTime}" var="regltDeDt" pattern="yyyyMMddHHmmss"/>
<input type="text" data-fmt-type="dt" name="regltDeDt" value='<fmt:formatDate value="${regltDeDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>
<code:select id="regltSeCode" name="regltSeCode" codeId="FIM002" defaultSelect="${regltDTO.regltSeCode}" title="단속구분코드" cls="selectBoxTotal" alt="단속구분코드" disabled="true"/>
</td>
</tr>
<tr>
<th>위반일시</th>
<td>
<fmt:parseDate value="${regltDTO.regltDe}${regltDTO.regltBeginTime}" var="regltDeDt" pattern="yyyyMMddHHmmss"/>
<input type="text" data-fmt-type="dt" name="regltDeDt" value='<fmt:formatDate value="${regltDeDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly/>
</td>
<th>차량번호</th>
<td>
<input type="text" id="vhcleNo" name="vhcleNo" value="${regltDTO.vhcleNo}">
<input type="text" id="vhcleNo" name="vhcleNo" value="${regltDTO.vhcleNo}"/>
</td>
</tr>
<tr>
<th>위반장소</th>
<td>
<input type="text" name="regltPlace" value="${regltDTO.regltPlace }"/>
</td>
<th>단속자</th>
<td>
<fmt:parseDate value="${regltDTO.regltDe}" var="regltDe" pattern="yyyyMMdd"/>
<input type="text" data-fmt-type="day" name="regltDe" value='<fmt:formatDate value="${regltDe}" pattern="yyyy-MM-dd"/>' readonly>
<input type="text" name="" value='' readonly/>
</td>
<th>위반장소</th>
<td><input type="text" name="regltPlace" value="${regltDTO.regltPlace }"></td>
</tr>
<tr>
<th>발행번호</th>
<td>
<input type="text" name="stickrNo" value='${regltDTO.stickrNo}' readonly>
<input type="text" name="stickrNo" value='${regltDTO.stickrNo}' readonly/>
</td>
<th>견인지시</th>
<td>
<input type="text" name="towngAtCode" value='${regltDTO.towngAtCode}' readonly>
<input type="text" name="towngAtCode" value='${regltDTO.towngAtCode}' readonly/>
</td>
</tr>
</tbody>
@ -100,66 +112,120 @@ Date Author Description
<tr>
<th>차종</th>
<td>
<input type="text" name="vhctyAsortCode" value='${regltDTO.vhctyAsortCode}' readonly>
<input type="text" name="vhctyAsortCode" value='${regltDTO.vhctyAsortCode}' readonly/>
</td>
<th>시군구</th>
<td>
<input type="text" name="violtLegaldongCode" value="${regltDTO.violtLegaldongCode}" readonly>
<input type="text" name="violtLegaldongCode" value="${regltDTO.violtLegaldongCode}" readonly/>
</td>
<th>법정동</th>
<td>
<input type="text" name="violtLegaldongCode" value="${regltDTO.violtLegaldongCode}" readonly>
<input type="text" name="violtLegaldongCode" value="${regltDTO.violtLegaldongCode}" readonly/>
</td>
</tr>
<tr>
<th>사전통지금액</th>
<td>
<input type="text" data-fmt-type="number" name="" value='<fmt:formatNumber type="number" value="${regltDTO.redutionAmount}" pattern="#,###"/>'>
<input type="text" data-fmt-type="number" name="" value='<fmt:formatNumber type="number" value="${regltDTO.redutionAmount}" pattern="#,###"/>'/>
</td>
<th>부과금액</th>
<td>
<input type="text" data-fmt-type="number" name="" value='<fmt:formatNumber type="number" value="${regltDTO.rcivAmount}" pattern="#,###"/>'>
<input type="text" data-fmt-type="number" name="" value='<fmt:formatNumber type="number" value="${regltDTO.rcivAmount}" pattern="#,###"/>'/>
</td>
<td colspan="2"></td>
</tr>
<tr>
<th>감경금액</th>
<td>
<input type="text" data-fmt-type="number" name="redutionAmount" value='<fmt:formatNumber type="number" value="${regltDTO.redutionAmount}" pattern="#,###"/>'>
<input type="text" data-fmt-type="number" name="redutionAmount" value='<fmt:formatNumber type="number" value="${regltDTO.redutionAmount}" pattern="#,###"/>'/>
</td>
</tr>
<tr>
<th>총수납액</th>
<td>
<input type="text" data-fmt-type="number" name="rcivAmount" value='<fmt:formatNumber type="number" value="${regltDTO.rcivAmount}" pattern="#,###"/>'>
<input type="text" data-fmt-type="number" name="rcivAmount" value='<fmt:formatNumber type="number" value="${regltDTO.rcivAmount}" pattern="#,###"/>'/>
</td>
<th>잔액</th>
<td>
<input type="text" data-fmt-type="number" name="redutionAftAmount" value='<fmt:formatNumber type="number" value="${regltDTO.redutionAftAmount}" pattern="#,###"/>'>
<input type="text" data-fmt-type="number" name="redutionAftAmount" value='<fmt:formatNumber type="number" value="${regltDTO.redutionAftAmount}" pattern="#,###"/>'/>
</td>
</tr>
<tr>
<th>특기사항</th>
<td>
<input type="text" name="spcmntMatter" value="${regltDTO.spcmntMatter}" readonly>
<td colspan="2">
<input type="text" name="spcmntMatter" value="${regltDTO.spcmntMatter}" readonly/>
</td>
<th>처리상태</th>
<td>
<td colspan="2">
<fmt:parseDate value="${regltDTO.lastProcessDt}" var="lastProcessDt" pattern="yyyyMMddHHmmss"/>
<input type="text" data-fmt-type="dt" name="lastProcessDt" value='<fmt:formatDate value="${lastProcessDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>
<code:select id="regltProcessSttusCode" name="regltProcessSttusCode" codeId="FIM010" defaultSelect="${regltDTO.regltProcessSttusCode}" title="단속처리상태" cls="selectBoxTotal" alt="단속처리상태"/>
<input type="text" data-fmt-type="dt" name="lastProcessDt" style="width: 69%" value='<fmt:formatDate value="${lastProcessDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly/>
<code:select id="regltProcessSttusCode" name="regltProcessSttusCode" codeId="FIM010" defaultSelect="${regltDTO.regltProcessSttusCode}" title="단속처리상태" cls="selectBoxTotal" alt="단속처리상태" disabled="true"/>
</td>
</tr>
<tr>
<th>특별단속구역</th>
<td>
<code:select id="regltSpeclZoneSeCode" name="regltSpeclZoneSeCode" codeId="FIM010" defaultSelect="${regltDTO.regltSpeclZoneSeCode}" title="특별단속구역" cls="selectBoxTotal" alt="단속처리상태"/>
<td colspan="2">
<code:select id="regltSpeclZoneSeCode" name="regltSpeclZoneSeCode" codeId="FIM010" defaultSelect="${regltDTO.regltSpeclZoneSeCode}" title="특별단속구역" cls="selectBoxTotal" alt="단속처리상태" disabled="true"/>
</td>
<th>위반내용</th>
<td colspan="2">
<input type="text" name="violtDtlsEtcCn" value="${regltDTO.violtDtlsEtcCn}" readonly/>
</td>
</tr>
</tbody>
</table>
</form>
<form id="frmPayer">
<input type="hidden" id="payerId" name="payerId" />
<table class="tbl03">
<caption>소유주 정보</caption>
<colgroup>
<col style="width: 12%;"/>
<col style="width: 22%;"/>
<col style="width: 12%;"/>
<col style="width: 21%;"/>
<col style="width: 12%;"/>
<col style="width: 21%;"/>
</colgroup>
<tbody>
<tr>
<th>소유주</th>
<td>
<input type="text" name="violtDtlsEtcCn" value="${regltDTO.violtDtlsEtcCn}" readonly>
<input type="text" name="payerNm" value='${payerDTO.payerNm}' readonly/>
</td>
<th>주민번호</th>
<td colspan="3">
<input type="text" name="payerNo" value="${payerDTO.payerNo}" readonly/>
</td>
</tr>
<tr>
<th>우편번호</th>
<td>
<input type="text" name="zip" value='${payerDTO.zip}' readonly/>
</td>
<th>주소</th>
<td colspan="3">
<input type="text" name="adres" style="width: 70%" value='${payerDTO.adres}' readonly/>
<input type="text" name="detailAdres" style="width: 29%" value='${payerDTO.detailAdres}' readonly/>
</td>
</tr>
<tr>
<th>차대번호</th>
<td>
<input type="text" name="" value='' readonly/>
</td>
<th>도로코드</th>
<td>
<input type="text" name="rnCode" value='${payerDTO.rnCode}' readonly/>
</td>
<th>등록구분</th>
<td>
<input type="text" name="payerRegistSeCode" value="${payerDTO.payerRegistSeCode}" readonly/>
</td>
</tr>
</tbody>
</table>
</form>
<%--<p class="title deco_01 mT_02">소유주 정보</p>
<table class="basics_F mTB_01 mT_02">
<colgroup>
@ -445,27 +511,29 @@ Date Author Description
/**************************************************************************
* Global Variable
**************************************************************************/
var imageEditorPopup = (flag, params) => fnBiz.pagePopup(flag, params);
var callbackReloadImage = () => fnBiz.downloadImg();
var imageEditorPopup = (flag, params) => fnPopupBiz.pagePopup(flag, params);
var callbackReloadImage = () => fnPopupBiz.downloadImg();
let orgData;
const ARR_INSTANCE = [null,null,null];
let CUR_TAB_SEQ = 0;
var callbackSearch = () => fnBiz.search();
//var callbackSearch = () => fnPopupBiz.search();
/* *******************************
* Biz function
******************************* */
const fnBiz = {
const fnPopupBiz = {
search: (params) => {
cmmAjax({
showSuccessMsg: false
,url: fimsApiUrl.FIND_RT_REGLT_INFO_AND_ATTCH_FILES
//,url: fimsApiUrl.FIND_RT_REGLT_INFO_AND_ATTCH_FILES
,url: '/fims/biz/cmm/findCrackdownInfoAndAttchFiles.do'
,data: params
,success: (res) => {
cmmImgDownload('#imgList', res.attchFiles, true, '60px');
cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px');
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('span#totCnt'))
setFormData(document.querySelector('form'), res.dto);
setFormData(document.querySelector('#frmReglt'), res.regltDTO);
setFormData(document.querySelector('#frmPayer'), res.payerDTO);
}
})
}
@ -475,7 +543,7 @@ Date Author Description
,url: fimsApiUrl.FIND_RT_REGLT_ATTCH_FILES
,data: downloadImgParam
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents, true, '60px');
cmmImgDownload('#imgList', res.data?.contents, fnPopupBiz.pagePopup, true, '60px');
}
})
}
@ -562,30 +630,30 @@ Date Author Description
});
$('#btnRegist').on('click', () => {
fnBiz.add();
fnPopupBiz.add();
});
$('#btnModify').on('click', () => {
fnBiz.modify();
fnPopupBiz.modify();
});
$('#btnPreview').on('click', () => {
fnBiz.preview();
fnPopupBiz.preview();
});
$('#btnRemove').on('click', () => {
fnBiz.remove();
fnPopupBiz.remove();
});
$('#prev').on('click', () => {
window.opener.pageNav.onClickNavBtn('prev', (gridInfo) => {
fnBiz.search(gridInfo.curRowData)
fnPopupBiz.search(gridInfo.curRowData)
});
})
$('#next').on('click', () => {
window.opener.pageNav.onClickNavBtn('next', (gridInfo) => {
fnBiz.search(gridInfo.curRowData);
fnPopupBiz.search(gridInfo.curRowData);
});
});
});
@ -595,7 +663,7 @@ Date Author Description
/* ******************************
* Grid
****************************** */
const initGrid = () => {
const initPopupGrid = () => {
const tab0Columns = [ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{
header: '발송결과',
@ -741,13 +809,13 @@ Date Author Description
$(document).ready(function(){
initGrid();
initPopupGrid();
$("#popupTabs").tabs({active : 0});
orgData = $('form').serialize();
downloadImgParam = {regltId: '${regltDTO.regltId}', regltSeCode: '${regltDTO.regltSeCode}'};
//fnBiz.search(downloadImgParam);
fnBiz.downloadImg();
fnPopupBiz.downloadImg();
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('span#totCnt'))
});

@ -196,7 +196,7 @@
,url: fimsApiUrl.FIND_CCTV_EC_EXTRL_REGLT_CNTC_AND_ATTCH_FILES
,data: params
,success: (res) => {
cmmImgDownload('#imgList', res.attchFiles, true);
cmmImgDownload('#imgList', res.attchFiles, fnBiz.pagePopup, true);
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('#totCnt span'))
setFormData(document.querySelector('form'), res.extrDTO);
}
@ -209,7 +209,7 @@
,url: fimsApiUrl.FIND_EC_EXTRL_REGLT_CNTC_ATTCH_FILES
,data: downloadImgParam
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents, true);
cmmImgDownload('#imgList', res.data?.contents, fnBiz.pagePopup, true);
}
})
}

@ -271,7 +271,7 @@
,url: fimsApiUrl.FIND_EC_CTZN_STMT_DTL_AND_ATTCH_FILES
,data: params
,success: (res) => {
cmmImgDownload('#imgList', res.attchFiles, true);
cmmImgDownload('#imgList', res.attchFiles, fnBiz.pagePopup, true);
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('#totCnt span'))
setFormData(document.getElementsByName('frmStmt'), res.ctznDTO);
for(let idx; idx<res.ctznDtlDTOs.length; idx++){
@ -289,7 +289,7 @@
//,data: {interfaceSeqN: '${reqDTO.interfaceSeqN}'}
,data: downloadImgParam
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents, true);
cmmImgDownload('#imgList', res.data?.contents, fnBiz.pagePopup, true);
}
})
}

@ -233,7 +233,7 @@
,url: fimsApiUrl.FIND_EC_NATL_NEWS_PAPER_ATTCH_FILES
,data: {interfaceSeqN: '${interfaceSeqN}'}
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents);
cmmImgDownload('#imgList', res.data?.contents, fnBiz.pagePopup);
}
})
}

@ -98,15 +98,16 @@ Date Author Description
**************************************************************************/
popup = null;
let GRID = null;
var callbackSearch = () => fnBiz.search();
//var callbackSearch = () => fnBiz.search();
var pageNav = null;
/* *******************************
* Biz function
******************************* */
var fnBiz = {
const fnTab0Biz = {
search: () => {
GRID.reloadData();
//TODO:: 검색버튼 클릭시 1st page 검색 이동
GRID.getPagination().movePageTo(1);
}
,pagePopup: function(flag, params){
let url;
@ -142,7 +143,7 @@ Date Author Description
return {extrlRegltCntcId: d.extrlRegltCntcId, regltSeCode: d.regltSeCode, regltId: d.regltId}
})
pageNav = new PageNavigation(GRID, gridDatas, props.rowKey);
fnBiz.pagePopup('detail', pageNav.gridInfo.curRowData);
fnTab0Biz.pagePopup('detail', pageNav.gridInfo.curRowData);
}
};
@ -150,17 +151,17 @@ Date Author Description
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => fnTab0Biz.search());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('file');
fnTab0Biz.pagePopup('file');
});
});
/* *******************************
* Grid
******************************* */
const initGrid = () => {
const initTab0Grid = () => {
const gridColumns = [
{
header: '단속일',
@ -214,7 +215,7 @@ Date Author Description
,element: "text"
}
}
,eventFunction: fnBiz.onClickGrid
,eventFunction: fnTab0Biz.onClickGrid
,eventType: "click"
}
}
@ -344,7 +345,7 @@ Date Author Description
});
pageNav.resetGrid(res, datas, (pagiNavigation)=>{
pageNav = pagiNavigation;
fnBiz.pagePopup('detail', pageNav.gridInfo.curRowData);
fnTab0Biz.pagePopup('detail', pageNav.gridInfo.curRowData);
})
}
});
@ -356,7 +357,7 @@ Date Author Description
$(document).ready(function(){
$('#sch_date_from').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#sch_date_to').datepicker('setDate', new Date());
initGrid();
initTab0Grid();
});
</script>

@ -157,7 +157,7 @@
,url: fimsApiUrl.FIND_RT_REGLT_INFO_AND_ATTCH_FILES
,data: params
,success: (res) => {
cmmImgDownload('#imgList', res.attchFiles, true);
cmmImgDownload('#imgList', res.attchFiles, fnBiz.pagePopup, true);
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('span#totCnt'))
setFormData(document.querySelector('form'), res.dto);
}
@ -169,7 +169,7 @@
,url: fimsApiUrl.FIND_RT_REGLT_ATTCH_FILES
,data: downloadImgParam
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents, true);
cmmImgDownload('#imgList', res.data?.contents, fnBiz.pagePopup, true);
}
})
},

@ -6,11 +6,12 @@
* 이미지 url 사용
* @param {string} divImgListElementId
* @param {object} cmmFileDtls json
* @param {function} fnBizPagePopup 이벤트 발생시 호출할 함수
* @param {boolean} isEditor 이미지 클릭시 이미지 에디터로 open
* @param {string} thumbnailSize 썸네일 이미지 크기 - default 100px
* </pre>
*/
function cmmImgDownload(divImgListElementId, cmmFileDtls, isEditor, thumbnailSize = '100px') {
function cmmImgDownload(divImgListElementId, cmmFileDtls, fnBizPagePopup = fnBiz.pagePopup, isEditor, thumbnailSize = '100px') {
const downloadUrl = '/framework/biz/cmm/file/download.do';
$(divImgListElementId).children().remove();
@ -47,11 +48,11 @@ function cmmImgDownload(divImgListElementId, cmmFileDtls, isEditor, thumbnailSiz
x.addEventListener('dblclick', (e)=>{
if(isEditor) {
fnBiz.pagePopup('imageEditor', {imageTagId: dtl.fileId});
fnBizPagePopup('imageEditor', {imageTagId: dtl.fileId});
}else{
dtl.downloadUrl = downloadUrl+params;
//dtl.editor = true;
fnBiz.pagePopup('imageView', dtl);
fnBizPagePopup('imageView', dtl);
}
})
imgDiv.appendChild(x);

Loading…
Cancel
Save