단속자료 검사 페이징처리 복원

main
이범준 1 year ago
parent 84f26927ef
commit d59c670ec9

@ -245,10 +245,7 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
<select id="selectPhotoInspectionDataList" parameterType="map" resultType="dataobject"> <select id="selectPhotoInspectionDataList" parameterType="map" resultType="dataobject">
/* 단속사진 검사 자료 목록 조회(crdn06Mapper.selectPhotoInspectionDataList) */ /* 단속사진 검사 자료 목록 조회(crdn06Mapper.selectPhotoInspectionDataList) */
SELECT ROW_NUMBER() OVER(<include refid="utility.sortBy" />) ROW_NUM, COUNT(*) OVER() TOT_CNT <include refid="utility.paging-prefix"/>
, QBODY.*
FROM (
SELECT C.CRDN_ID <!-- 단속 ID --> SELECT C.CRDN_ID <!-- 단속 ID -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 --> , CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.VHRNO <!-- 차량번호 --> , C.VHRNO <!-- 차량번호 -->
@ -285,7 +282,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
) QBODY <include refid="utility.paging-suffix"/>
</select> </select>
<select id="selectSameVehicleMainList" parameterType="map" resultType="dataobject"> <select id="selectSameVehicleMainList" parameterType="map" resultType="dataobject">

@ -374,7 +374,7 @@ $(document).ready(function(){
//단속사진검사 datasetControl 인스턴스 //단속사진검사 datasetControl 인스턴스
$P.photoInspectionControl = new DatasetControl({ $P.photoInspectionControl = new DatasetControl({
prefix:"photoInspection", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" }, prefix:"photoInspection", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:false, keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true,
formats: { formats: {
CRDN_YMD_TM : datetimeFormat, CRDN_YMD_TM : datetimeFormat,
CRDN_INPT_SE_CD : FIM003, CRDN_INPT_SE_CD : FIM003,
@ -387,7 +387,7 @@ $(document).ready(function(){
//동일차량검사 datasetControl 인스턴스 //동일차량검사 datasetControl 인스턴스
$P.sameVehicleControl = new InspectionControl({ $P.sameVehicleControl = new InspectionControl({
prefix:"sameVehicleInspectionMain", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" }, prefix:"sameVehicleInspectionMain", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID_LIST : "", dataGetter:obj => obj.crdnList, keymapper:info => info ? info.CRDN_ID_LIST : "", dataGetter:obj => obj.crdnList, appendData:true,
formats: { CRDN_CNT : numberFormat, FFNLG_AMT : numberFormat } formats: { CRDN_CNT : numberFormat, FFNLG_AMT : numberFormat }
}, },
{ {
@ -404,7 +404,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl.on * DatasetControl.on
**************************************************************************/ **************************************************************************/
$P.photoInspectionControl.onDatasetChange = (obj) => { $P.photoInspectionControl.onDatasetChange = (obj) => {
$P.renderInspectionDataList("photoInspection"); $P.renderInspectionDataList("photoInspection");
var prefix = obj.infoPrefix; var prefix = obj.infoPrefix;
@ -587,12 +587,7 @@ $(document).ready(function(){
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields("#frmSearch--${pageName}");
var data = formFields.get(); var data = formFields.get();
data.fetchSize = 30;
if($P.currentDisplay == "sameVehicleInspection"){
data.fetchSize = 30;
} else {
data.fetchSize = 0;
}
return data; return data;
} }
@ -624,8 +619,9 @@ $(document).ready(function(){
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop()); $("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop());
//스크롤 이벤트 추가(동일차량검사) //스크롤 이벤트 추가(동일차량검사)
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/

Loading…
Cancel
Save