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

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

@ -374,7 +374,7 @@ $(document).ready(function(){
//단속사진검사 datasetControl 인스턴스
$P.photoInspectionControl = new DatasetControl({
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: {
CRDN_YMD_TM : datetimeFormat,
CRDN_INPT_SE_CD : FIM003,
@ -387,7 +387,7 @@ $(document).ready(function(){
//동일차량검사 datasetControl 인스턴스
$P.sameVehicleControl = new InspectionControl({
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 }
},
{
@ -587,12 +587,7 @@ $(document).ready(function(){
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var data = formFields.get();
if($P.currentDisplay == "sameVehicleInspection"){
data.fetchSize = 30;
} else {
data.fetchSize = 0;
}
return data;
}
@ -624,6 +619,7 @@ $(document).ready(function(){
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop());
//스크롤 이벤트 추가(동일차량검사)
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
/**************************************************************************

Loading…
Cancel
Save